Analyzing Adversarial Inputs in Deep Reinforcement Learning

Davide Corsi, Guy Amir, Guy Katz, Alessandro Farinelli · DOI

Deep Reinforcement Learning (DRL) has achieved remarkable success in complex domains ranging from strategic games like Go to intricate biological tasks like protein folding. However, as these agents transition into safety-critical real-world applications—such as autonomous driving or robotic surgery—the issue of reliability becomes paramount. A DRL agent may exhibit near-perfect performance in 99.9% of simulated scenarios, yet fail catastrophically when subjected to minute, "adversarial" perturbations in its input sensors.

In the paper "Analyzing Adversarial Inputs in Deep Reinforcement Learning," Davide Corsi and colleagues propose a rigorous framework for quantifying these vulnerabilities. Rather than simply identifying individual failure points, the authors utilize formal verification to measure the "bugginess" of a model's entire input space.

The Reliability Gap in DRL

Standard empirical testing, which involves running an agent through thousands of randomized episodes, remains the industry standard for evaluation. However, this approach is fundamentally limited; if an adversarial region (a set of inputs leading to failure) is sufficiently small, random sampling is likely to overlook it. In safety-critical domains, "likely safe" is an insufficient guarantee.

While formal verification—mathematically proving that a property holds for all inputs—can identify these failures, it typically yields a binary "Safe/Unsafe" result. This paper introduces the Adversarial Rate (AR), a quantitative metric that measures the proportion of the input space susceptible to adversarial attacks, providing a more nuanced understanding of agent safety.

Methodology: Quantifying Vulnerability

The researchers leverage a verification tool called ProVe (and its optimized version, Counting-ProVe) to calculate the Adversarial Rate through two primary mechanisms:

1. Interval Propagation

Instead of testing discrete points, ProVe propagates entire "intervals" of inputs through the neural network. This allows the tool to determine the range of all possible outputs for a given set of input perturbations.

Interval propagation through a neural network, showing how input ranges map to output ranges.

2. Iterative Splitting

If an initial output range is too broad to confirm safety, the tool employs iterative splitting. It subdivides the input domain into smaller sub-domains and re-evaluates them. This refinement process continues until the "unsafe" volume can be accurately bounded.

The iterative splitting process, refining interval approximations to more accurately bound non-linear functions.

The Adversarial Rate is then defined as the ratio of the total "unsafe" volume to the total volume of the input domain. To validate these findings, the authors use Verification-Driven Sampling, specifically targeting the identified unsafe regions to calculate an Adversarial Collision Rate, proving these are tangible failure points rather than theoretical artifacts.

Experimental Benchmarks

The methodology was evaluated on two distinct benchmarks:

  • Jumping World: A continuous-state GridWorld variant designed for exhaustive visualization of unsafe regions in a 2D map.
  • Mapless Navigation: A high-dimensional task where a simulated TurtleBot4 navigates an arena using 15 LiDAR streams and polar coordinates. This benchmark tests the scalability of the verification approach in complex environments.

Key Insights and Results

  • Hidden Vulnerabilities: In the Mapless Navigation task, models with a 95%+ success rate in standard testing were found to have an Adversarial Collision Rate of up to 23% when sampled strategically within regions identified by ProVe. This highlights how standard testing can provide a false sense of security.
  • The Complexity Tax: The study found a clear correlation between network size and vulnerability. In Jumping World, increasing the architecture from 2x32 to 6x256 more than doubled the average Adversarial Rate (from 0.09 to 0.20), suggesting that over-parameterization may introduce more adversarial "holes."
  • Shifting Targets: Analysis of training snapshots revealed that unsafe regions "shift" across the input space as the model learns. Even when overall performance plateaus, the specific vulnerabilities of the model remain in flux.
  • Model Uniqueness: Adversarial vulnerabilities were found to be highly specific to individual training runs (seeds). An attack that successfully crashes one agent may have no effect on another trained with identical hyperparameters but a different seed.

Conclusion and Future Work

The primary challenge for this approach remains scalability, as formal verification is computationally intensive (NP-complete). While Counting-ProVe offers significant speedups, verifying massive state-of-the-art architectures remains a hurdle.

Furthermore, the authors observed that simply retraining a model on discovered adversarial points often just relocates the vulnerability. Future research will focus on developing training objectives that directly minimize the Adversarial Rate during the learning process, moving toward agents that are robust by design rather than just by measurement.

Summary updated

BibTeX
@misc{corsi2024analyzing,
  author = {Davide Corsi and Guy Amir and Guy Katz and Alessandro Farinelli},
  title = {{Analyzing Adversarial Inputs in Deep Reinforcement Learning}},
  year = {2024},
  eprint = {2402.05284},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2402.05284},
}
Figure