Toward Subspace-Perturbed Trajectory-Aware Backdoor Attacks in Deep Reinforcement Learning

Yaguan Qian, Taining Zhang, Qiqi Bao, Yanru Guo, Lufang Zhang, Zhaoquan Gu, Shouling Ji, Bin Wang, Zhen LeiICML 2026

Deep Reinforcement Learning (DRL) agents are increasingly deployed in complex, safety-critical domains, making their security a paramount concern. While backdoor attacks—where an AI behaves normally until a specific "trigger" induces malicious behavior—are well-studied in standard image recognition, they remain incredibly challenging to execute effectively in DRL environments.

To address these challenges, researchers have introduced SpecDRL, a novel framework that achieves near-100% attack success rates while remaining virtually undetectable to state-of-the-art defenses. By hiding triggers in the "blind spots" of an agent's state space and using a clever reward-backfilling technique to keep the environment's underlying mathematics consistent, SpecDRL represents a significant leap in understanding DRL vulnerabilities.

The Backdoor Trilemma in DRL

Executing a backdoor attack in DRL is fundamentally difficult due to a three-sided trade-off, often referred to as the backdoor trilemma:

  1. Perceptual Stealth: Traditional triggers, such as a static square of pixels in the corner of an image, create "out-of-distribution" artifacts. In DRL, frequency filters and anomaly detectors can easily spot these visual inconsistencies.
  2. Sampling Efficiency: DRL training is notoriously slow and sample-heavy. If an attacker poisons data randomly across an entire trajectory, they waste their limited "poisoning budget" on unimportant time steps, making the attack slow to take hold.
  3. Bellman Consistency: DRL agents learn based on rewards. If an attacker simply flips a reward to encourage bad behavior, it breaks the mathematical relationship between consecutive states (the Bellman equation). This leaves a glaring "statistical fingerprint" that anomaly detectors can easily flag.

SpecDRL is designed to solve all three of these problems simultaneously.

The SpecDRL Framework

SpecDRL overcomes the trilemma using three synchronized modules that dictate where to inject the trigger, when to poison the data, and how to manipulate the rewards.

1. Subspace-Aware Injection (Where to Inject)

Instead of relying on visible pixel patches, SpecDRL uses Principal Component Analysis (PCA) on benign states to identify the "least sensitive" dimensions of the environment—essentially its noise floor. The framework embeds the trigger within these low-energy subspaces. This creates a "secret handshake" signal that the agent can learn to recognize, but which remains visually and statistically indistinguishable from normal environmental observations.

2. Value-Guided Strategic Sampling (When to Poison)

Rather than poisoning data at random, SpecDRL strategically targets specific time steps. It looks for moments with high Return-to-Go (RTG) (where the agent's action has the highest impact on the final outcome) and low Temporal-Difference (TD) error (where the agent's learning is most stable). This "high-impact, low-noise" strategy ensures the backdoor converges rapidly while using a fraction of the typical poisoning budget.

3. Bellman-Consistent Dynamic Reward Poisoning (How to Reward)

To hide the reward tampering, the authors introduce Differential Temporal Backfilling. When the framework modifies a reward at time $t$ to induce a malicious action, it applies a precise mathematical "correction" to the reward at time $t-1$. By treating reward poisoning as a telescoping sum problem, this ensures the two-step return remains identical to benign training. Consequently, the global return distribution is preserved, making the attack invisible to defenses that monitor for performance drops or unusual reward spikes.

Experimental Setup and Key Results

The authors evaluated SpecDRL across three distinct domains: 12 classic high-dimensional visual games from the Atari 2600 suite, safety-constrained tasks from SafetyGym, and complex traffic dynamics in a Highway Environment.

The results demonstrate that SpecDRL is both highly effective and remarkably stealthy:

  • Near-Perfect Success: SpecDRL achieved a 100% Attack Success Rate (ASR) across almost all tested Atari and Safety environments.
  • Blazing Fast Convergence: Because SpecDRL targets the most influential moments in a trajectory, it requires a poisoning budget as low as 0.01% of the data. While baseline attacks often require millions of training steps to take root, SpecDRL reached 90% ASR within just $10^5$ steps.
  • Undetectable by Forensics: In forensic tests using the Neural Cleanse defense, SpecDRL scored an anomaly index of 1.21—well below the 2.0 threshold for detection. For comparison, previous state-of-the-art attacks like TrojDRL scored as high as 11.57.
  • Utility Preservation: The "benign" performance of the agents (how they operate when the trigger is absent) remained at 100% in most cases, ensuring the attack does not degrade the agent's primary skills and arouse suspicion.

Limitations and Future Directions

While highly effective, SpecDRL primarily focuses on outer-loop attacks, which assume the adversary has some level of access to intercept the data pipeline before it reaches the replay buffer during training.

The authors emphasize that understanding these sophisticated, subspace-perturbed vulnerabilities is a necessary first step toward building more secure autonomous systems. Future defensive research must focus on developing "poisoning-aware" training methods and more robust, trajectory-level consistency checks capable of detecting mathematically sound but malicious reward backfilling.

Summary updated

BibTeX
@inproceedings{qian2026toward,
  author = {Yaguan Qian and Taining Zhang and Qiqi Bao and Yanru Guo and Lufang Zhang and Zhaoquan Gu and Shouling Ji and Bin Wang and Zhen Lei},
  title = {{Toward Subspace-Perturbed Trajectory-Aware Backdoor Attacks in Deep Reinforcement Learning}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=xj8fxP9GZ6},
}
Figure