Decision Transformer: Reinforcement Learning via Sequence Modeling
About
We introduce a framework that abstracts Reinforcement Learning (RL) as a sequence modeling problem. This allows us to draw upon the simplicity and scalability of the Transformer architecture, and associated advances in language modeling such as GPT-x and BERT. In particular, we present Decision Transformer, an architecture that casts the problem of RL as conditional sequence modeling. Unlike prior approaches to RL that fit value functions or compute policy gradients, Decision Transformer simply outputs the optimal actions by leveraging a causally masked Transformer. By conditioning an autoregressive model on the desired return (reward), past states, and actions, our Decision Transformer model can generate future actions that achieve the desired return. Despite its simplicity, Decision Transformer matches or exceeds the performance of state-of-the-art model-free offline RL baselines on Atari, OpenAI Gym, and Key-to-Door tasks.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Offline Reinforcement Learning | D4RL halfcheetah-medium-expert | Normalized Score86.8 | 117 | |
| Offline Reinforcement Learning | D4RL hopper-medium-expert | Normalized Score108.7 | 115 | |
| Auto-bidding | AuctionNet | Score454.9 | 90 | |
| Offline Reinforcement Learning | D4RL walker2d-medium-expert | Normalized Score109 | 86 | |
| Offline Reinforcement Learning | D4RL Medium-Replay Hopper | Normalized Score82.7 | 72 | |
| Offline Reinforcement Learning | D4RL Walker2d Medium v2 | Normalized Return74 | 67 | |
| Offline Reinforcement Learning | Kitchen Partial | Normalized Score48.6 | 62 | |
| Offline Reinforcement Learning | D4RL Medium-Replay HalfCheetah | Normalized Score39.1 | 59 | |
| Offline Reinforcement Learning | D4RL Medium HalfCheetah | Normalized Score42.8 | 59 | |
| Offline Reinforcement Learning | D4RL Medium Walker2d | Normalized Score76.6 | 58 |