Robust Decision Transformer: Tackling Data Corruption in Offline RL via Sequence Modeling

Jiawei Xu, Rui Yang, Feng Luo, Meng Fang, Baoxiang Wang, Lei Han · DOI

Introduction

Offline Reinforcement Learning (RL) enables policy learning from fixed historical datasets without environment interaction. However, real-world datasets are frequently "dirty," suffering from sensor noise (state errors), human mistakes (action errors), or logging failures (reward corruption). Traditional offline RL algorithms typically rely on Temporal Difference (TD) learning, which estimates action values by bootstrapping from future estimates. In low-data regimes with corrupted logs, these errors compound through the Q-function, leading to catastrophic policy failure.

The Robust Decision Transformer (RDT) addresses this by reframing RL as a sequence modeling task. By avoiding the bootstrapping inherent in TD-learning, RDT provides a more stable foundation for learning from imperfect data.

The Robust Decision Transformer Architecture

RDT builds upon the Transformer architecture, introducing three primary mechanisms to enhance robustness against data corruption.

The Robust Decision Transformer architecture incorporates embedding dropout, Gaussian weighted learning, and iterative data correction to handle corrupted offline datasets.

1. Embedding Dropout

Standard dropout on raw input features can be counterproductive in low-data settings where every bit of clean signal is vital. RDT instead applies dropout to the latent embeddings. This regularizes the model by preventing over-reliance on specific feature-space dimensions that might be heavily influenced by corrupted inputs, preserving the limited information available in the raw data.

2. Gaussian Weighted Learning (GWL)

To mitigate the impact of outliers, RDT employs a "soft" down-weighting strategy. During training, the model calculates prediction errors for each sample. Samples with high errors—likely indicating corruption—receive an exponentially decaying weight via GWL, reducing their influence on the gradient updates and preventing the model from fitting to noise.

3. Iterative Data Correction (IDC)

RDT proactively cleans the training data. By tracking the mean and variance of prediction errors, the algorithm identifies data points with significant deviations (using a z-score threshold). These suspected corrupted values are then replaced with the model's own predictions, creating a virtuous cycle where the model iteratively refines its training set.

Unlike the standard Decision Transformer, RDT is trained to predict both actions and rewards, providing richer supervision and helping the model distinguish high-quality behavior even in noisy environments.

Experimental Evaluation

The researchers evaluated RDT across three diverse benchmarks in low-data regimes:

  • MuJoCo (10% subset): Locomotion tasks including HalfCheetah, Hopper, and Walker2d.
  • Kitchen: Multi-step robotic manipulation tasks.
  • Adroit (1% subset): High-dimensional hand manipulation tasks (Door, Hammer, Relocate).

The models were tested against both Random Corruption (Gaussian noise) and Adversarial Corruption (Projected Gradient Descent-based noise targeting states and actions).

Results and Discussion

RDT demonstrated significant performance gains over both vanilla Decision Transformers (DT) and state-of-the-art TD-learning methods.

Performance comparison under Mixed Adversarial Attack across MuJoCo, Kitchen, and Adroit benchmarks. RDT consistently outperforms RIQL and the standard Decision Transformer.

Key Findings:

  • Performance Boost: RDT achieved a 29% overall improvement over vanilla DT. In specific adversarial action corruption scenarios, the improvement reached 105%.
  • TD-Learning Fragility: Robust TD-learning baselines like RIQL often struggled, sometimes performing worse than simple Behavior Cloning when data was both scarce and corrupted. This highlights the inherent instability of Q-learning under these conditions.
  • Generalization: Models trained with RDT remained robust to perturbations during deployment (test-time), suggesting that the learned representations are fundamentally more resilient.
  • Efficiency: The additional robustness components do not significantly increase computational overhead; training time per epoch remains comparable to standard DT.

Conclusion

The Robust Decision Transformer demonstrates that sequence modeling is a powerful paradigm for offline RL, particularly when dealing with the imperfections of real-world data. By combining latent-space regularization with intelligent data weighting and iterative correction, RDT overcomes the compounding error issues that plague traditional TD-learning methods. Future research will explore scaling these techniques to larger foundation models and improving state-space correction in high-dimensional environments.

Summary updated

BibTeX
@inproceedings{xu2025robust,
  author = {Jiawei Xu and Rui Yang and Feng Luo and Meng Fang and Baoxiang Wang and Lei Han},
  title = {{Robust Decision Transformer: Tackling Data Corruption in Offline RL via Sequence Modeling}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=phAlw3JPms},
}
Figure