Investigating vulnerabilities of deep neural policies

Ezgi Korkmaz

Abstract

Adversarial training (AT) is often considered the gold standard for securing Deep Reinforcement Learning (DRL) agents against adversarial attacks. However, the fundamental changes AT induces in an agent's internal representation remain poorly understood. This paper investigates these changes, revealing that AT does not simply eliminate vulnerabilities but shifts them toward lower spatial frequencies and introduces highly localized "blind spots" that are often decoupled from task-relevant environmental features.

Introduction

Deep Reinforcement Learning (DRL) has achieved remarkable success in complex domains, yet the resulting policies are notoriously fragile. Similar to image classifiers, DRL agents can be catastrophically disrupted by imperceptible input noise. Adversarial training—training on a mixture of clean and perturbed data—is the primary defense. This research explores whether AT merely patches specific vulnerabilities or fundamentally alters the agent's sensitivity to its environment, potentially creating new, non-robust failure modes.

Methodology

The study employs two primary analytical frameworks to probe trained agents:

  1. Fourier Domain Analysis: The researchers computed minimal perturbations required to flip an agent's decision and analyzed these via Fourier transforms to identify changes in the "texture" of vulnerabilities.
  2. Feature Vulnerability Mapping: Two novel visualization methods were introduced:
  3. KMAP: Measures the drop in expected reward (Q-value) when a specific input pixel is zeroed.
  4. HMAP: Measures the shift in the agent's action probability distribution when a pixel is zeroed.
  5. Sparsity and Entropy Metrics: Sensitivity heatmaps were quantified using the ratio of $\ell_1$ and $\ell_2$ norms to measure vulnerability concentration.

The benchmark included Atari games (RoadRunner, BankHeist, Freeway, Pong) comparing standard Deep Q-Networks (DDQN) with State-Adversarial DDQN (SA-DDQN).

Key Insights: The Frequency Shift and Decoupling

A primary finding is the Frequency Shift. Minimal perturbations for AT agents are significantly more concentrated in lower frequencies compared to vanilla models. This implies that while AT protects against high-frequency "pixel noise," it increases sensitivity to broader, low-frequency structural changes.

Figure 3: Energy spectrum $\mathcal{E}(f)$ vs frequency $f$ for RoadRunner, BankHeist, and Freeway. Adversarially trained models (dashed) show a clear shift toward low-frequency sensitivity compared to vanilla models (solid).

Furthermore, AT models exhibit Decoupled Vulnerability. In vanilla models, sensitivity maps typically overlap with task-relevant objects (e.g., the player or enemies). In contrast, AT models often develop vulnerabilities that are decoupled from game logic, appearing as arbitrary grid-like patterns or vertical columns in non-interactive areas of the screen.

Figure 6: Sensitivity heatmap (HMAP) for an adversarially trained agent. The visualization reveals a highly concentrated, grid-like sensitivity pattern that is decoupled from the actual semantic content of the game.

Quantitative Results

The shift toward concentrated weakness is supported by sparsity and entropy metrics:

  • Sparsity ($S(K)$): AT models showed significantly lower sparsity scores, indicating more concentrated vulnerabilities. For example, in BankHeist, the sparsity dropped from 38.41 (vanilla) to 4.88 (AT).
  • Entropy ($H(K)$): The entropy of the sensitivity maps was markedly lower for AT models (e.g., 0.08 for AT Freeway vs. 8.83 for vanilla), confirming that "blind spots" are highly localized rather than distributed across the scene.

Conclusion

This research demonstrates that adversarial training introduces a fundamental trade-off. While it enhances robustness against standard attacks, it shifts the agent's sensitivity toward low-frequency structures and creates localized, task-decoupled vulnerabilities. These "grid artifacts" suggest that AT may cause agents to over-rely on specific convolutional filter alignments rather than semantic content. Future work should investigate if these phenomena persist in continuous control tasks and whether they are an inherent property of $\ell_p$-norm bounded training.

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