Abstract
The use of deep neural networks as function approximators has led to striking progress for reinforcement learning algorithms and applications. Yet the knowledge we have on decision boundary geometry and the loss landscape of neural policies is still quite limited. In this paper, we propose a framework to investigate the decision boundary and loss landscape similarities across states and across MDPs. We conduct experiments in various games from Arcade Learning Environment, and discover that high sensitivity directions for neural policies are correlated across MDPs. We argue that these high sensitivity directions support the hypothesis that non-robust features are shared across training environments of reinforcement learning agents. We believe our results reveal fundamental properties of the environments used in deep reinforcement learning training, and represent a tangible step towards building robust and reliable deep reinforcement learning agents.
Introduction
Deep Reinforcement Learning (DRL) has achieved remarkable success in complex domains, yet these agents remain notoriously fragile. Their susceptibility to adversarial perturbations—tiny, often imperceptible changes to input—raises critical questions about the nature of their learned representations. This research investigates whether these vulnerabilities are isolated incidents or if they stem from "non-robust features": patterns in the training data that are statistically predictive of rewards but easily manipulated by adversaries.
We hypothesize that these features are not merely artifacts of specific training runs but are inherent to the Markov Decision Processes (MDPs) themselves. If so, agents trained on the same environment, regardless of the algorithm used, may inherit a shared set of fundamental weaknesses.
Probing Decision Boundaries
To investigate this, we propose a diagnostic framework that probes the decision boundaries of DRL policies across four levels of increasingly general settings:
- Individual State ($A^{individual}$): Computing unique adversarial directions for specific states.
- Episode Independent ($A^{random}_e$): Applying a direction found in one state to all states within an episode of the same game.
- Environment Independent ($A^{random}_M$): Transferring adversarial directions across different games (e.g., from RoadRunner to BankHeist).
- Algorithm Independent ($A^{random}_{alg}$): Testing directions found on a standard agent (DDQN) against an adversarially trained "robust" agent (SA-DDQN).
Adversarial directions are identified using the Carlini & Wagner (C&W) and Elastic-Net (ENR) optimization formulations, which seek the minimal perturbation required to alter an agent's decision. The ENR formulation was found to be particularly consistent in identifying sparse, effective features that transfer across states.
The Action Shift Phenomenon
A key finding of this study is the "Action Shift" phenomenon. When subjected to adversarial perturbations, agents do not fail randomly. Instead, they exhibit a systematic shift toward a specific "wrong" action across a wide variety of states.
For instance, in the game JamesBond, perturbations consistently drive the agent toward "Action 12," effectively preventing it from performing necessary maneuvers like jumping over obstacles. This suggests that the adversarial direction aligns with a feature that the network strongly associates with a particular action, regardless of the actual state context.
Empirical Action Statistics
The impact of these perturbations is clearly visible in the empirical action distributions. We compare the base policy distribution ($P_{base}$) with the distribution under adversarial shift ($P_{shift}$) and a control distribution ($P_{control}$) using Gaussian noise.
In games like Pong, a single adversarial direction can drastically reallocate probability mass, causing the agent to abandon optimal actions in favor of sub-optimal ones. Our results show that applying a single random adversarial direction from one state to an entire episode often results in an "Impact" score near 1.0 (indicating total performance collapse), whereas random Gaussian noise has a negligible effect (around 0.03).
Cross-Game and Cross-Algorithm Transfer
Perhaps most surprisingly, adversarial directions are correlated across different MDPs. An attack direction optimized for RoadRunner can degrade performance in CrazyClimber, suggesting that neural policies are picking up on similar low-level visual features (such as specific edge patterns or pixel distributions) across different simulated environments.
Furthermore, even "robust" policies share these high-sensitivity directions. In CrazyClimber, a perturbation derived from a vanilla agent reduced the performance of an adversarially trained agent by 54.6%. This indicates that while adversarial training increases the threshold for failure, it does not necessarily eliminate the underlying non-robust features shared with standard models.
Conclusion and Future Work
This study demonstrates that DRL vulnerabilities are universal and tied to shared non-robust features across states, games, and algorithms. While our focus was on discrete action spaces in the Arcade Learning Environment, future research should explore whether these findings extend to continuous control tasks and temporal domains. Understanding these shared features is a vital step toward developing truly robust and reliable reinforcement learning agents.
Citation: Korkmaz, E. (2022). Deep Reinforcement Learning Policies Learn Shared Adversarial Features across MDPs. Proceedings of the Thirty-Sixth AAAI Conference on Artificial Intelligence (AAAI-22).
Summary updated