TL;DR
This paper identifies a critical weakness in Decision Transformers (DTs): they struggle to improve during online finetuning when starting from low-quality offline data. By injecting "vitamins" in the form of standard Reinforcement Learning (RL) gradients from the TD3 algorithm, the authors enable DTs to perform local policy improvements, leading to state-of-the-art performance across challenging robotic and navigation benchmarks.
What Problem Does This Paper Address?
Decision Transformers (DTs) revolutionized offline RL by treating the problem as a sequence modeling task—predicting the next action given a history of states and a "Return-to-Go" (RTG) target. However, moving from offline pretraining to online interaction (finetuning) has been a major hurdle.
The current state-of-the-art, Online Decision Transformer (ODT), often fails when the initial offline data is "low-reward." Because DTs learn via supervised learning on fixed trajectories, they lack a mechanism for "local" improvement. If you ask a DT for a high reward it has never seen, it produces out-of-distribution actions that usually fail. Essentially, DTs know how to imitate what they've seen, but they don't naturally know how to improve upon it without a direct gradient pointing toward higher rewards.
Methods
The authors propose TD3+ODT, a hybrid approach that combines the sequence-modeling power of transformers with the local optimization strengths of traditional actor-critic RL.
- The "Vitamin" (TD3 Gradients): They add a weighted TD3 actor loss to the standard DT supervised objective. While the DT loss handles sequence consistency, the TD3 loss provides a gradient ($\partial Q / \partial a$) that tells the model exactly how to change an action to increase the expected reward.
- Stable Critics: They train two Multi-Layer Perceptron (MLP) critics to estimate Q-values. Interestingly, they found that simple MLPs are more stable for value estimation than transformer-based critics, which often struggle with the noise of online environments.
- Theoretical Link: The paper provides a theoretical analysis showing that DT updates are mathematically related to Advantage-Weighted Actor-Critic (AWAC). They demonstrate that when the target RTG is far from the training data, the DT's performance bound collapses, necessitating the "local" guidance provided by RL gradients.
Datasets
The method was evaluated on three major suites of RL benchmarks:
- Adroit: Highly complex robotic manipulation tasks (Pen, Hammer, Door, Relocate) using "Expert," "Cloned," and "Human" demonstration data.
- Antmaze: Navigation tasks where a robotic ant must find a goal in a maze (Umaze, Medium, Large), testing the model's ability to "stitch" trajectories together.
- MuJoCo: Standard locomotion tasks (Hopper, Halfcheetah, Walker2d, Ant) with "Medium," "Medium-Replay," and "Random" data. The "Random" datasets are particularly important as they represent the most difficult starting point for finetuning.
Key Insights and Ideas
- The Gradient Mismatch: A standard DT provides the gradient $\partial a / \partial RTG$ (how actions change with target rewards). However, to improve a policy, you need $\partial RTG / \partial a$ (how rewards change with actions). Traditional RL critics provide exactly this missing piece.
- Transformers as Better Actors, MLPs as Better Critics: The authors find a "best of both worlds" setup. Transformers are excellent at capturing long-term context for the policy (the actor), while MLPs are more robust for the high-variance task of value estimation (the critic).
- Overcoming the "Unreachable Target": By adding RL gradients, the agent can improve even if it is never "prompted" with a high RTG, because the critic can infer the direction of improvement from suboptimal data.
Key Results
- Superior Finetuning: TD3+ODT significantly outperformed ODT and other baselines like IQL and TD3+BC.
- Robustness to Bad Data: On the MuJoCo "Hopper-Random" task, standard ODT achieved a score of ~29, while TD3+ODT reached 76.13, nearly tripling the performance.
- Adroit Success: In the notoriously difficult Adroit "Hammer-Cloned" environment, TD3+ODT achieved a score of 116.83, whereas standard ODT and PDT (another transformer baseline) hovered around 1.0.
- Efficiency: The proposed method adds only about 20% computational overhead compared to standard ODT training, making it a practical "plug-and-play" improvement.
Limitations and Future Work
- Theoretical Assumptions: The formal proofs rely on specific distribution assumptions (like Laplace distributions for returns) that may not perfectly hold in all real-world scenarios.
- Computational Cost: While the overhead is relatively low, training two additional critics and performing backpropagation through them is still more expensive than pure supervised learning.
- Future Directions: The authors suggest exploring image-based environments (where transformers excel) and investigating if more complex, history-dependent critics could further boost performance in partially observable tasks.
Summary updated