TL;DR
DT-Pro is a new variant of the Decision Transformer that fixes the model's "short-sightedness" by adding an implicit planning layer. By learning to map current states to a structured latent plan space, it achieves state-of-the-art performance on long-horizon tasks with only a marginal increase in computational cost.
What Problem Does This Paper Address?
Decision Transformers (DTs) have revolutionized offline reinforcement learning by treating decision-making as a sequence modeling problem. However, they have a "myopia" problem: they typically predict the next action based only on historical data and a target return. In complex, long-horizon tasks—like navigating a large maze—this lack of foresight leads to suboptimal strategies.
While previous researchers tried to fix this by forcing models to predict "subgoals" (intermediate milestones), these explicit planning methods are often inefficient, unstable, and sensitive to how those subgoals are chosen. DT-Pro aims to provide the benefits of planning without the overhead of generating explicit, noisy subgoals during inference.
Methods
The authors introduce DT-Pro (Proactive Decision Transformer), which operates through three main modules:
- Plan Search: Instead of picking subgoals at fixed time intervals (e.g., every 20 steps), DT-Pro identifies "critical subgoals" based on Return-to-Go (RTG) decay. It looks for states in the training data where the remaining reward drops to specific target levels. This ensures milestones are semantically meaningful markers of progress toward the goal.
- Plan Coding: This module learns a compact, latent representation of the future. An MLP encoder maps the current state and RTG to a latent vector ($z_t$). To ensure this vector actually represents a plan, a Transformer-based decoder is trained to reconstruct the sequence of critical subgoals from $z_t$. Crucially, a contrastive regularizer is used to ensure that plans are temporally consistent (i.e., the plan at step $t$ shouldn't be radically different from the plan at step $t+1$).
- Action Prediction: The core DT architecture is modified to condition its action prediction on this latent plan $z_t$.
The training happens in two stages: first, the plan encoder/decoder are trained via self-supervision; second, the encoder is frozen, and the DT policy is trained to use the latent plans to pick actions.
Datasets
The model was evaluated on the standard D4RL benchmark, specifically:
- Gym-MuJoCo: Classic control tasks like HalfCheetah, Hopper, and Walker2d across various data quality levels (Medium, Medium-Replay, Medium-Expert).
- Maze2d: Long-horizon navigation tasks (Umaze, Medium, and Large) that require significant planning to reach a goal.
Key Insights and Ideas
- RTG as a Planning Compass: The most clever insight is using the decay of the "Return-to-Go" to find subgoals. In a navigation task, time is a poor proxy for progress (you could be stuck in a corner), but the remaining reward is a direct measure of how much "work" is left.
- Implicit is Efficient: By using a latent vector ($z_t$) instead of generating raw state subgoals at test time, DT-Pro avoids the "error propagation" that plagues explicit planners. If a model predicts a slightly wrong subgoal state, the whole plan can fail; a latent representation is more robust to these small fluctuations.
- The "Goldilocks" Zone of Abstraction: The authors found that the number of subgoals ($N$) matters. Too few subgoals don't provide enough guidance; too many subgoals introduce noise and redundancy that confuse the model.
Key Results
- New State-of-the-Art: DT-Pro achieved an average score of 81.4 across D4RL benchmarks, significantly outperforming the previous best baseline, ADT (73.7).
- Maze Mastery: In the
Maze2d-mediumenvironment—a classic long-horizon challenge—DT-Pro scored 98.0, while the next best planning-based Transformer (WT) only managed 65.8. - Low Overhead: Despite the extra planning step, DT-Pro only increases training time by about 10-12% compared to a vanilla DT, making it much more practical than heavy hierarchical models.
- Robustness: The model maintained high performance even when Gaussian noise was added to the subgoals during training, proving that the latent plan space successfully filters out "junk" information.
Limitations and Future Work
- Two-Stage Training: The current approach requires pre-training the plan encoder before training the policy. Future work could explore end-to-end training methods to simplify the pipeline.
- Hyperparameter Sensitivity: The optimal number of subgoals ($N$) varies by environment. While the paper provides heuristics, an automated way to determine the "granularity" of a plan for a new task would be a valuable addition.
- Sparse Rewards: While the authors show DT-Pro can work in sparse reward settings by using a pre-trained DT as a "critic," this adds another layer of complexity to the setup.
Summary updated