Introduction
As Reinforcement Learning (RL) agents transition from controlled research environments to safety-critical applications—including autonomous driving, high-frequency trading, and warehouse robotics—their vulnerability to adversarial manipulation becomes a primary concern. Among these threats, the backdoor attack is particularly insidious. In this scenario, an adversary poisons the training data to instill a hidden malicious behavior. The agent remains "stealthy," performing perfectly under normal conditions, but executes a specific target action when it encounters a predefined "trigger" (e.g., a specific pixel pattern or sensor reading).
While backdoor attacks are well-documented in supervised learning, RL presents unique challenges. Previous attempts at RL backdoors often relied on "static reward poisoning," which fails to account for the fundamental mechanics of RL, such as discount factors and value functions. SleeperNets addresses these gaps, introducing a universal framework that achieves near-perfect success rates across diverse domains while remaining virtually invisible to standard monitoring.
The Limitations of Static Poisoning
Existing RL backdoor methods typically employ static reward poisoning, where an attacker provides a fixed reward (e.g., +1) whenever the agent takes a target action in a poisoned state. However, the authors provide formal proof that this approach is mathematically flawed. Because RL agents optimize for long-term cumulative rewards, a static poison may be insufficient if the "benign" reward for a different action is high enough to outweigh the fixed malicious reward over time. This explains why prior methods often fail to generalize across different environments or inadvertently degrade the agent's performance on clean tasks, making the attack easy to detect.
The SleeperNets Framework
SleeperNets introduces two major innovations to overcome the limitations of static methods:
1. The "Outer-Loop" Threat Model
Most prior research assumes an "inner-loop" attacker who must modify rewards in real-time at every millisecond. SleeperNets shifts to an outer-loop approach. In this model, the attacker waits for a full episode (trajectory) to conclude, observes the entire sequence of states and rewards, and then modifies the data within the agent’s replay buffer or during the policy evaluation step. This "global view" allows the attacker to make informed, strategic modifications based on the agent's actual experience.
2. Dynamic Reward Poisoning
Instead of a fixed constant, SleeperNets calculates a dynamic reward based on the agent’s current Value Function ($V$). By utilizing Monte-Carlo estimates from the observed trajectory, the attacker can mathematically "cancel out" the future consequences of an action. This ensures that the malicious target action becomes the optimal choice in the presence of a trigger, regardless of the environment's complexity or the magnitude of benign rewards. The paper proves that under this dynamic framework, the malicious policy is guaranteed to be optimal in poisoned states in the limit, while the benign policy remains optimal in clean states.
Experimental Evaluation
The researchers evaluated SleeperNets across six diverse environments to demonstrate its universality:
- Atari Games: Breakout and Qbert (standard benchmarks for deep RL).
- Robotics & Navigation: Safety Car (Safety-Gymnasium) and Car Racing (Box2D).
- Autonomous Driving: Highway Merge, simulating complex lane-changing maneuvers.
- Finance: Trade BTC, a stock trading environment utilizing real-world Bitcoin price data.
These environments encompass a wide range of observation types, including raw pixels, LIDAR data, and numerical time-series data.
Key Results and Insights
SleeperNets significantly outperforms current state-of-the-art methods (such as TrojDRL and BadRL) in three critical dimensions:
- Universal Success: SleeperNets achieved a 100% Attack Success Rate (ASR) across all six environments. In contrast, previous methods often struggled in complex tasks like Highway Merge, where success rates frequently stagnated between 0% and 90%.
- Uncompromising Stealth: The Benign Return Ratio (BRR) remained above 96.5% in all tests. This indicates that the agent's performance during normal operations is indistinguishable from a non-poisoned agent, making the backdoor nearly impossible to detect through performance monitoring.
- Extreme Sparsity: Due to the high efficiency of the dynamic reward calculation, the attack requires very little poisoned data. By "annealing" (gradually reducing) the poisoning rate, the authors achieved successful backdoors by poisoning as little as 0.0006% of the training data.
Conclusion and Future Work
SleeperNets represents a significant advancement in the study of RL vulnerabilities, proving that dynamic, value-aware poisoning is far more effective than static methods. While the attack is highly effective, the authors note that the dynamic reward calculation can occasionally produce reward outliers, which might be flagged by sophisticated defenders.
Future research may focus on optimizing "invisible" triggers via gradients to further enhance stealth. Ultimately, this work serves as a critical wake-up call for the RL community to develop robust isolated training systems and active detection techniques to mitigate the threat of high-performance backdoor attacks in real-world deployments.
Summary updated