Reinformer: Max-Return Sequence Modeling for Offline RL
About
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.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Offline Reinforcement Learning | D4RL Gym walker2d (medium-replay) | Normalized Return72.9 | 68 | |
| Offline Reinforcement Learning | D4RL Gym halfcheetah-medium | Normalized Return42.9 | 60 | |
| Offline Reinforcement Learning | D4RL Gym walker2d medium | Normalized Return80.5 | 58 | |
| Offline Reinforcement Learning | D4RL Gym hopper (medium-replay) | Normalized Return83.3 | 44 | |
| Offline Reinforcement Learning | D4RL Gym halfcheetah-medium-replay | Normalized Average Return39 | 43 | |
| Offline Reinforcement Learning | D4RL Gym hopper-medium | Normalized Return63.5 | 41 | |
| Offline Reinforcement Learning | D4RL Kitchen-Partial | Normalized Performance73.1 | 19 | |
| Offline Reinforcement Learning | D4RL AntMaze | Medium Diverse Success Rate10.6 | 19 | |
| Offline Reinforcement Learning | D4RL MuJoCo | HalfCheetah (m)42.9 | 13 | |
| Offline Reinforcement Learning | D4RL Adroit hammer-human v1 | Normalized Score1.72e+3 | 9 |