Abstract
Reinforcement Learning (RL) agents are increasingly deployed in critical systems, yet their vulnerability to adversarial manipulation remains a significant concern. This paper introduces BadRL, a novel sparse and targeted backdoor attack that exploits the sequential nature of RL. By strategically injecting dynamically optimized triggers only into states with high "attack value," BadRL achieves near 100% attack success rates with a poisoning budget as low as 0.003% of training steps, effectively evading state-of-the-art defenses.
Introduction
Standard backdoor attacks in RL involve poisoning training data such that an agent behaves normally in clean environments but executes a malicious target action when a specific "trigger" is present. However, existing attacks like TrojDRL often require intense poisoning during both training and testing. This high frequency of intervention is computationally expensive and degrades the agent's performance in clean scenarios (Clean Data Accuracy), making the attack detectable.
BadRL addresses these limitations by focusing on sparsity and stealthiness. By identifying high-impact states and using gradient-aligned triggers, BadRL minimizes the required poisoning budget while maximizing the impact on the agent's cumulative rewards.
Methodology: Strategic and Dynamic Poisoning
BadRL's efficiency stems from its selective approach to poisoning, answering two fundamental questions: when to attack and how to attack.
State Selection (When to Attack)
Rather than poisoning every state, BadRL calculates an "attack value" for each observed state. This value represents the difference in expected future reward between the agent's optimal action and the attacker's target action. By only poisoning states with the highest attack values, the adversary ensures that forcing a wrong action leads to the most significant drop in cumulative reward.
Trigger Tuning (How to Attack)
Instead of static triggers, BadRL generates sample-specific triggers optimized through Mutual Information (MI). By maximizing the MI between the gradients of the primary RL task and the backdoor task, the trigger is "aligned" with the agent's natural learning process. This prevents the agent from forgetting the backdoor during the vast majority of clean training steps.
Experimental Results
The authors evaluated BadRL against baselines like TrojDRL and BadRL-CE (a variant using Cross-Entropy loss for triggers) across four Atari games: Pong, Breakout, Qbert, and SpaceInvaders.
Performance and Stealth
As shown in the comparison table, BadRL consistently outperforms baselines in terms of Attack Success Rate (ASR) and Clean Data Accuracy (CDA).
Key findings include:
- Extreme Sparsity: BadRL requires poisoning only ~0.003% of total training steps, significantly lower than TrojDRL's 0.025%.
- High Effectiveness: Despite the minimal budget, BadRL maintains a near 100% ASR. In Breakout, BadRL caused an 84.9% performance drop (AER), whereas TrojDRL only achieved 3.13%.
- Defense Evasion: The stealthy nature of the sparse, MI-tuned triggers allowed BadRL to bypass defenses like Neural Cleanse and standard RL sanitization techniques.
Discussion and Insights
The success of BadRL highlights that "quality over quantity" is a potent strategy for RL attackers. By aligning backdoor learning with the main task's gradients, the attack becomes deeply embedded in the policy without disrupting normal behavior. The failure of BadRL-CE suggests that standard classification losses are insufficient for the dynamic nature of RL training, where the policy is constantly evolving.
Conclusion
BadRL demonstrates a severe vulnerability in RL systems, where a tiny fraction of poisoned data can lead to complete control over agent behavior. While the current threat model assumes access to an environment simulator to estimate state values, the effectiveness of the attack underscores the need for more robust RL-specific defenses. Future research should focus on detecting sparse, high-impact state manipulations and identifying gradient-aligned triggers that current vision-based defenses miss.
Summary updated