TL;DR
Offline reinforcement learning (RL) often struggles when training data is noisy or corrupted, particularly in data-scarce regimes. This paper introduces the Robust Decision Transformer (RDT), which leverages the inherent resilience of sequence modeling and adds three targeted techniques—embedding dropout, Gaussian weighted learning, and iterative data correction—to achieve state-of-the-art performance on corrupted offline datasets.
The Challenge: Corrupted Data in Offline RL
Offline RL allows agents to learn from pre-collected datasets, avoiding the risks and costs of real-world exploration. However, real-world data is rarely perfect; it often contains sensor noise, human errors, or even malicious adversarial attacks.
Most existing offline RL methods rely on Temporal Difference (TD) learning, which uses "bootstrapping" (estimating values based on other estimates). When data is corrupted, these errors compound through the bootstrapping process, leading to catastrophic performance drops. This problem is exacerbated when the available dataset is small, as the model has fewer "clean" examples to counteract the noise. The authors set out to find a more stable foundation for learning in these "dirty," low-data environments.
The Solution: Robust Decision Transformer (RDT)
To address these vulnerabilities, the authors propose the Robust Decision Transformer (RDT). While traditional RL tries to learn a value function, RDT treats RL as a supervised sequence modeling task, predicting actions based on a history of states, actions, and rewards.
RDT introduces three key modifications to the standard Decision Transformer (DT):
- Embedding Dropout: Instead of dropping raw input features (which can lose vital information, especially in low-data regimes), RDT applies dropout to the latent embeddings. This encourages the model to learn robust representations that don't over-rely on specific, potentially corrupted, input dimensions.
- Gaussian Weighted Learning (GWL): Corrupted labels (like a wrong action recorded for a state) typically result in high training loss. GWL applies a weight to each sample that decays exponentially as the loss increases, effectively "silencing" likely corrupted data points during training.
- Iterative Data Correction (IDC): RDT identifies outliers in the dataset by calculating z-scores of its own prediction errors. If a data point is flagged as highly suspicious, the model replaces the original corrupted value in the dataset with its own prediction for the next training iteration.
Experimental Setup
The authors evaluated RDT on several standard RL benchmarks, specifically modified to simulate real-world challenges:
- MuJoCo (HalfCheetah, Hopper, Walker2d): Down-sampled to 10% of the original size to simulate data scarcity.
- Adroit (Door, Hammer, Relocate): Down-sampled to a mere 1% sampling ratio.
- Kitchen (Complete, Partial, Mixed): Used in their original (already small) sizes.
The researchers applied three types of corruption to these datasets: Random (Gaussian noise), Adversarial (noise designed to minimize the value function), and Mixed (corrupting states, actions, and rewards simultaneously).
Key Insights and Results
A major insight from the study is that sequence modeling is naturally more robust than TD learning. Because DT doesn't bootstrap, errors in one part of the sequence don't automatically poison the entire value estimate. Furthermore, the model's own predictions eventually become more reliable than the corrupted labels, allowing the dataset to iteratively self-correct.
Empirically, RDT demonstrated massive gains:
- Superior Performance: RDT achieved the highest score in 24 out of 27 tested settings under random corruption.
- Significant Improvements: RDT showed a 28.2% overall improvement over the standard Decision Transformer. In the most challenging adversarial action attack scenarios, it improved average scores by 105%.
- Test-Time Resilience: Even when the agent was attacked during the testing phase with observation perturbations, RDT maintained high performance, whereas traditional robust RL methods often failed.
Limitations and Future Work
While RDT is highly robust, its performance still degrades when state corruption rates become extremely high (e.g., over 50%), as the underlying distribution becomes too distorted to recover. Additionally, RDT currently corrects actions and rewards but avoids correcting states due to their high dimensionality. The authors suggest exploring model-based RL techniques to better handle state prediction and correction within the sequence modeling framework in future work.
Summary updated