Abstract
Deep Reinforcement Learning (DRL) policies are critically vulnerable to adversarial noise in observations, posing severe risks in safety-critical scenarios. For example, a self-driving car receiving manipulated sensory inputs about traffic signs could lead to catastrophic outcomes. Existing strategies to fortify RL algorithms against such adversarial perturbations generally fall into two categories: (a) using regularization methods that enhance robustness by incorporating adversarial loss terms into the value objectives, and (b) adopting "maximin" principles, which focus on maximizing the minimum value to ensure robustness. While regularization methods reduce the likelihood of successful attacks, their effectiveness drops significantly if an attack does succeed. On the other hand, maximin objectives, although robust, tend to be overly conservative. To address this challenge, we introduce a novel objective called Adversarial Counterfactual Error (ACoE), which naturally balances optimizing value and robustness against adversarial attacks. To optimize ACoE in a scalable manner in model-free settings, we propose a theoretically justified surrogate objective known as Cumulative-ACoE (C-ACoE). The core idea of optimizing C-ACoE is utilizing the belief about the underlying true state given the adversarially perturbed observation. Our empirical evaluations demonstrate that our method outperforms current state-of-the-art approaches for addressing adversarial RL problems across all established benchmarks (MuJoCo, Atari, and Highway) used in the literature.
Introduction
Deep Reinforcement Learning (DRL) has achieved remarkable success in complex environments, yet it remains notoriously brittle. A tiny, calculated "nudge" to observations—often invisible to human observers—can cause a self-driving car to deviate from its path or a robotic system to fail catastrophically. This vulnerability stems from the assumption that agents have access to the "true" state of the environment. Adversarial attacks break this assumption, turning a standard environment into a game of hidden information.
Re-framing Adversarial RL as a POMDP
The fundamental insight of this work is treating adversarial RL as a Partially Observable Markov Decision Process (POMDP). When an observation is perturbed, the agent no longer knows the true state; it only knows a "neighborhood" of possibilities.
Existing defenses typically take two paths: robust regularization, which forces similar actions for similar states, or maximin optimization, which plans for the absolute worst case. The former fails against strong, strategic attacks, while the latter often results in overly conservative behavior that degrades performance in clean environments. By adopting a POMDP perspective, we can instead use "beliefs" about the world to balance reward maximization with error minimization.
Methodology: ACoE and A3B
We introduce the Adversarial Counterfactual Error (ACoE), an objective that measures the difference between the value an agent would receive in a clean environment versus the value it receives under attack. To make this computationally feasible, we utilize a surrogate objective called Cumulative-ACoE (C-ACoE).
The core of our implementation is Adversary-Attack-Aware Belief Estimation (A3B). Rather than assuming all states in a neighborhood are equally likely, A3B recognizes that an adversary is an optimizer. It asks: "If the adversary wanted to hurt me the most, which true state would they have started from to land me at this specific observation?" By modeling the adversary's preferences using KL divergence of action distributions, the agent builds a more accurate belief map of the true state.
Experimental Results
We evaluated our proposed methods, A2B and A3B, against leading defenses such as RADIAL, WocaR, and RAD across MuJoCo, Atari, and Highway-Env benchmarks. Our approach consistently demonstrated superior robustness without the typical "robustness tax" seen in maximin methods.
Key findings include:
- Strategic Resilience: A3B showed particular strength against long-horizon strategic adversaries (like PA-AD) that plan multiple steps ahead to deceive the agent.
- Stability: Qualitative analysis in MuJoCo environments showed that ACoE-trained agents develop more stable, human-like gaits that are naturally harder to disrupt than the "gliding" behaviors often exploited by vanilla agents.
- High Clean Performance: Unlike conservative maximin methods, A3B maintained performance levels in unperturbed environments that nearly matched vanilla PPO.
Conclusion
By framing adversarial vulnerability as a problem of partial observability, we provide a probabilistic framework for robust RL. The ACoE objective and A3B belief estimation allow agents to maintain high performance while remaining resilient to both myopic and strategic attacks. Future work will explore the use of different F-divergences and more complex temporal dependencies to further refine belief estimation.
Summary updated