A Decision Transformer is a transformer-based architecture that reframes reinforcement learning and sequential decision-making as a conditional sequence modeling problem. Instead of learning a value function or policy through reward maximization, it models trajectories of states, actions, and returns-to-go as a single sequence. The model is trained via supervised learning on offline datasets to autoregressively predict future actions, conditioned on a desired future return, making it inherently goal-conditioned.
Primary Use Cases & Applications
The Decision Transformer reinterprets reinforcement learning as a sequence modeling problem. By conditioning on desired returns (rewards-to-go), it generates future actions autoregressively, enabling goal-directed behavior without traditional dynamic programming.
Offline Reinforcement Learning
The Decision Transformer excels in offline RL, where an agent must learn an optimal policy from a fixed, previously-collected dataset without further environment interaction. It treats the dataset as sequences of (state, action, return) tuples and learns to predict actions conditioned on high returns-to-go, effectively imitating high-return trajectories. This makes it robust and safe for real-world applications like robotics, where online exploration is costly or dangerous.
Goal-Conditioned Robotic Manipulation
In robotics, the model is used for goal-conditioned manipulation, where a robot must perform tasks like picking, placing, or assembling objects. The desired goal (e.g., 'place block A on B') is encoded as a target return or a language instruction. The transformer, conditioned on this goal and past states, autoregressively predicts a sequence of end-effector poses or joint angles. This allows for flexible, multi-task learning from demonstration datasets.
Trajectory Optimization & Planning
The architecture can be used for trajectory optimization by framing it as sequence generation. Starting from an initial state and a desired outcome, the model generates a sequence of future states and actions. By adjusting the conditioning return-to-go, users can steer the generated trajectory toward higher rewards or specific outcomes, providing a differentiable alternative to traditional sampling-based planners like Model Predictive Control (MPC).
Learning from Human Demonstrations
Decision Transformers are highly effective for imitation learning from human demonstrations. The model learns the mapping from states to actions present in the expert dataset. By conditioning on the maximum observed return in the demonstrations, it learns to replicate expert behavior. This is crucial for training robots in complex tasks where designing a reward function is difficult, such as surgical robotics or autonomous driving.
Multi-Task & Meta-Learning
The model's conditioning mechanism naturally supports multi-task learning. A single transformer can be trained on datasets from multiple tasks, with each task identified by a unique task embedding or a language descriptor prepended to the sequence. During inference, specifying a different task embedding steers the policy to perform the corresponding task. This facilitates efficient knowledge transfer and meta-learning for rapid adaptation to new, related tasks.
Language-Guided Embodied AI
When integrated with a vision-language model, the Decision Transformer becomes a powerful language-guided policy for embodied agents. A natural language instruction (e.g., 'open the top drawer') is encoded and used as the conditioning signal instead of, or in addition to, a numerical return. The model then generates the sequence of actions needed to fulfill the command, enabling robots to follow open-ended, high-level instructions in interactive environments.




