This paper introduces TrojanTO, the first action-level backdoor attack specifically designed for Trajectory Optimization (TO) models in offline reinforcement learning.
TL;DR
TrojanTO is a highly efficient post-training backdoor attack that targets Trajectory Optimization models (like Decision Transformers) by forging a strong link between a specific trigger and a malicious target action. Using a tiny data budget (just 0.3% of trajectories), it achieves high attack success rates across diverse tasks while remaining virtually invisible during normal operation.
What Problem Does This Paper Address?
In the world of offline Reinforcement Learning (RL), Trajectory Optimization (TO) models have become the gold standard. Unlike traditional RL agents that learn via trial and error to maximize rewards, TO models treat RL as a sequence modeling problem—essentially "predicting" the next best action based on past states and desired returns.
While traditional RL agents are vulnerable to backdoor attacks that manipulate reward signals during training, TO models are largely immune to these methods. This is because they focus on reconstruction loss (matching the dataset) rather than reward maximization. Furthermore, TO models are often massive, making the computational cost of retraining them for an attack prohibitive. Finally, the high-dimensional, continuous nature of their action spaces makes it incredibly difficult for an attacker to force a precise, predictable "malicious" behavior.
Methods
The authors propose TrojanTO, a post-training attack framework that doesn't require access to the original training loop.
It consists of three core components:
- Trajectory Filtering (TF): To maintain "stealth" (benign performance), the attacker only selects high-quality, long trajectories from the dataset to use for poisoning. This prevents the model from overfitting to "bad" behaviors that would tip off a user.
- Batch Poisoning (BP): Instead of poisoning an entire dataset, TrojanTO uses a "consensus" strategy. During a fine-tuning phase, it duplicates training batches and poisons only a single, random transition in one copy. This ensures the model learns the trigger without losing its grasp on normal task logic.
- Alternating Training (AT): This is the "secret sauce." The attack uses a bi-level optimization process. It alternates between:
- Trigger Learning: Using a gradient-based method (MI-FGSM) to optimize the values of the trigger itself so it creates the strongest possible signal.
- Parameter Updating: Modifying the model weights to ensure that when the optimized trigger appears, the model outputs the specific target action.
Datasets and Evaluation
The researchers evaluated TrojanTO using the D4RL benchmark suite, the industry standard for offline RL. They tested across six diverse environments:
- Locomotion: Hopper, HalfCheetah, Walker2d.
- Navigation: AntMaze.
- Manipulation: Kitchen, Pen.
The attack was tested against three state-of-the-art TO architectures: Decision Transformer (DT), Graph Decision Transformer (GDT), and Decision ConvFormer (DC).
Key Insights and Results
- Reward Manipulation is Useless: The authors empirically proved that changing reward signals—the primary vector for traditional RL backdoors—has almost zero effect on TO models. This confirms that security research for sequence-modeling RL needs an entirely different playbook.
- High Efficiency: TrojanTO achieved an average Attack Success Rate (ASR) of 71.9% with a poisoning rate of only 0.3% (just 10 trajectories). For comparison, previous state-of-the-art methods required a 10% poisoning rate and only achieved ~37% ASR.
- Stealthy Performance: The Benign Task Performance (BTP) remained at 91.4% of the original model's capability, meaning users would likely never notice the agent was compromised until the trigger was activated.
- Persistence: The attack can be "persistent." Once triggered, the model can be forced to execute the malicious action for multiple subsequent timesteps, which is critical for causing real-world damage in robotics or autonomous driving.
- The "Inter-type" Variance Mask: Standard backdoor defenses (like Activation Clustering) fail because TO models process different input types (states, actions, returns-to-go). The variance between these types is so massive that it effectively "masks" the subtle changes introduced by a malicious trigger, making detection nearly impossible for current tools.
Limitations and Future Work
- Manual Dimension Selection: While the trigger values are learned automatically, selecting which dimensions to use as the trigger still involves some trial and error. The authors found no clear correlation between gradient information and optimal trigger dimensions.
- State Modality: This study focused on vector-based states. Future research is needed to see if these "action-level" backdoors are equally effective in pixel-based (image) environments.
- Defense Gaps: While fine-tuning on clean data can mitigate the attack, most other standard defenses (pruning, spectral analysis) were ineffective, highlighting a major security gap in the deployment of TO models.
Summary updated