Reinformer: Max-Return Sequence Modeling for Offline RL
Zifeng Zhuang, Dengyun Peng, Jinxin Liu, Ziqi Zhang, Donglin Wang
TL;DR
The paper addresses the gap in offline RL where sequence-modeling approaches neglect the core objective of return maximization. It introduces Reinformer, a Reinforced Transformer that implements max-return sequence modeling by predicting the maximum in-distribution return via expectile regression and conditioning action selection on this predicted return during inference. Empirical results on D4RL show competitive performance with classical offline RL methods and clear advantages over prior sequence-modeling methods, particularly in trajectory stitching tasks such as Antmaze. The approach provides a principled mechanism to stitch suboptimal trajectories without relying on naive max-return initialization, offering practical benefits for learning from diverse offline data.
Abstract
As a data-driven paradigm, offline reinforcement learning (RL) has been formulated as sequence modeling that conditions on the hindsight information including returns, goal or future trajectory. Although promising, this supervised paradigm overlooks the core objective of RL that maximizes the return. This overlook directly leads to the lack of trajectory stitching capability that affects the sequence model learning from sub-optimal data. In this work, we introduce the concept of max-return sequence modeling which integrates the goal of maximizing returns into existing sequence models. We propose Reinforced Transformer (Reinformer), indicating the sequence model is reinforced by the RL objective. Reinformer additionally incorporates the objective of maximizing returns in the training phase, aiming to predict the maximum future return within the distribution. During inference, this in-distribution maximum return will guide the selection of optimal actions. Empirically, Reinformer is competitive with classical RL methods on the D4RL benchmark and outperforms state-of-the-art sequence model particularly in trajectory stitching ability. Code is public at https://github.com/Dragon-Zhuang/Reinformer.
