Investigating Vulnerabilities of Deep Neural Policies

Ezgi Korkmaz

Introduction

Adversarial training (AT) is the standard defense mechanism used to protect deep learning models from malicious, imperceptible perturbations. In the context of Deep Reinforcement Learning (DRL), AT is intended to harden agents against input noise. However, research presented by Ezgi Korkmaz at UAI 2021 suggests that this protection comes with significant "side effects." Rather than eliminating vulnerabilities, AT fundamentally redistributes them, shifting an agent's sensitivity toward new, unexpected directions.

Methodology

The study employs two primary diagnostic approaches to evaluate neural policies:

  1. Fourier Spectrum Analysis: By calculating the minimal perturbations required to fool an agent and analyzing them in the frequency domain, the researchers determine whether an agent is more sensitive to high-frequency "jitter" or low-frequency "smooth" shifts.
  2. Feature Vulnerability Mapping: Two new tools, KMAP and HMAP, are introduced. KMAP measures the drop in Q-value confidence when a single pixel is occluded, while HMAP measures the change in the overall decision-making probability distribution.

Frequency Sensitivity Shift

A key finding is the "Frequency Shift." While standard (vanilla) agents are typically vulnerable to high-frequency noise, adversarially trained agents shift their sensitivity toward low-frequency signals. This implies that AT agents may become more susceptible to smooth environmental changes that the training process did not explicitly account for.

Fourier spectrum analysis of minimal perturbations for Freeway, RoadRunner, and BankHeist. The top row represents vanilla agents, while the bottom row shows the shift toward low-frequency sensitivity in adversarially trained agents.

As seen in the spectral analysis, the perturbations required to fool AT agents are more concentrated in the center of the spectrum (low frequencies) compared to the more distributed noise patterns seen in vanilla agents. This suggests that AT agents are fundamentally more sensitive to global, structural changes in the input image.

Structural Vulnerability and Decoupling

Perhaps the most striking discovery is "vulnerability decoupling." In vanilla agents, weaknesses are generally tied to semantically important game features, such as the player's character or enemies. In contrast, AT agents develop vulnerabilities that are decoupled from game logic. These often manifest as artificial grid patterns across the input space, including empty areas of the screen.

Vulnerability map H(i,j) for an adversarially trained agent, illustrating the emergence of a sparse, decoupled grid-like sensitivity pattern across the input space.

This decoupling is accompanied by increased sparsity. AT policies exhibit significantly lower sparsity scores and entropy in their vulnerability maps. For instance, in the BankHeist environment, the entropy for the AT agent collapsed to near zero, indicating that its sensitivity is hyper-concentrated on a tiny, seemingly random subset of features rather than the broader game environment.

Conclusion

This research highlights that adversarial training in DRL does not simply "fix" fragility; it alters the nature of the agent's weaknesses. The shift toward low-frequency vulnerability and the emergence of decoupled, grid-like sensitivities suggest that current robust training methods may introduce new, non-intuitive failure modes. These findings serve as a critical step toward developing agents that learn truly stable representations of their environments, rather than just shifting their vulnerabilities to different parts of the signal spectrum.

Summary updated

BibTeX
@inproceedings{korkmaz2021investigating,
  author = {Ezgi Korkmaz},
  title = {{Investigating Vulnerabilities of Deep Neural Policies}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2021},
}
Figure