Targeted Adversarial Attacks on Deep Reinforcement Learning Policies via Model Checking

Dennis Gross, Thiago D. Simão, Nils Jansen, Guillermo A. Pérez

TL;DR

This paper introduces Property Impact Attacks (PIAs), a novel method for crafting targeted adversarial attacks on Deep Reinforcement Learning (DRL) policies by focusing on specific logical behaviors rather than just total reward. By integrating formal model checking, the authors provide a rigorous framework to both measure a policy's vulnerability and verify its robustness against a wide range of temporal logic constraints.

What Problem Does This Paper Address?

Deep Reinforcement Learning has seen massive success in complex decision-making tasks, but these policies are notoriously "brittle." Small, adversarial perturbations to an agent's observations can cause its performance to plummet.

Traditionally, researchers have focused on attacks that minimize the cumulative reward. However, the authors argue that reward is a "blunt instrument." In safety-critical systems (like autonomous taxis or smart grids), an adversary might not just want the agent to "fail"; they might want it to fail in a specific, dangerous way—such as ensuring a passenger is never picked up or causing a specific type of system deadlock. Standard attacks cannot target these fine-grained temporal logic properties. Furthermore, there has been a lack of formal methods to certify exactly how robust a DRL policy is against all possible small perturbations for a given property.

Methods

The authors bridge the gap between DRL and Formal Verification (specifically Model Checking) through several key contributions:

  1. Property Impact (PI) Metric: Instead of measuring the drop in reward, this metric uses model checking to calculate exactly how much an adversarial attack changes the probability that a specific property (expressed in PCTL—Probabilistic Computation Tree Logic) is satisfied.
  2. Property Impact Attack (PIA): This is a targeted version of the Fast Gradient Sign Method (FGSM). It identifies which feature in the agent's observation is most "influential" for a specific logical property and perturbs it to mislead the agent.
  3. Robustness Checking: The authors use the Storm model checker and the COOL-MC framework to build an "induced MDP" (Markov Decision Process). This model represents every possible action the agent might take under any valid adversarial perturbation. By analyzing this model, they can determine the "worst-case" impact an attacker could ever have, providing a formal $(\epsilon, \alpha)$-robustness guarantee.

Datasets

The methods were evaluated across five distinct environments, ranging from classic benchmarks to specialized simulations:

  • Freeway: An abstracted version of the Atari game where a chicken must cross a busy highway.
  • Taxi: A grid-world task where an agent must pick up and drop off passengers while managing fuel.
  • Collision Avoidance: A grid world where an agent must navigate around moving obstacles.
  • Smart Grid: A controller managing renewable and non-renewable energy to prevent blackouts.
  • Stock Market: A simulation where an agent trades stocks to increase capital without going bankrupt.

Key Insights and Ideas

  • Targeted Sabotage: PIAs allow an attacker to be surgical. In the Taxi environment, an attacker can specifically increase the probability of a "deadlock" (where the agent wanders forever) without necessarily triggering the same features that a simple "reduce reward" attack would use.
  • The "Aha" Moment on Feature Sensitivity: The research shows that different features of an observation govern different logical properties. A feature that is critical for "reaching the goal" might be completely irrelevant for "avoiding a collision." PIAs exploit this by targeting the specific "levers" of a behavior.
  • The Robustness Trade-off: One of the most striking findings is that adversarial training is not a silver bullet. While training a policy against an attack on one specific property (e.g., preventing deadlocks) makes it robust to that attack, it can actually make the policy more vulnerable to attacks targeting other properties. Robustness is often a zero-sum game.
  • Formal vs. Heuristic: Heuristic attacks (like FGSM) often underestimate how much damage an adversary can do. The model checking approach reveals the true "optimal" attack impact, which is frequently higher than what standard adversarial methods find.

Key Results

  • Effectiveness of PIAs: In the Taxi environment, PIAs successfully increased the probability of specific unsafe states (like running out of fuel with a passenger on board) from 0.0 to as high as 1.0.
  • Comparison to Baseline: While standard FGSM attacks often failed to influence complex temporal properties (like pass_empty), PIAs consistently moved the needle by targeting the correct features.
  • Verification Speed: Using the COOL-MC framework, the authors were able to verify policy robustness in seconds for most environments, proving that formal verification is becoming increasingly viable for mid-sized DRL problems.

Limitations and Future Work

  • State Space Explosion: Like all model-checking approaches, this method is limited by the size of the state space. While it works well for the discrete environments tested, scaling this to high-dimensional continuous spaces (like raw video input or complex robotics) remains a significant challenge.
  • Single-Agent Focus: The current work focuses on a single agent against an environment. The authors suggest that extending this to multi-agent reinforcement learning (where agents might collude or compete) is a promising next step.
  • Defense Mechanisms: While the paper explores adversarial training, the results suggest we need more sophisticated "property-aware" defense mechanisms that don't compromise one safety rule to protect another.

Summary updated

BibTeX
@inproceedings{gross2023targeted,
  author = {Dennis Gross and Thiago D. Simão and Nils Jansen and Guillermo A. Pérez},
  title = {{Targeted Adversarial Attacks on Deep Reinforcement Learning Policies via Model Checking}},
  booktitle = {ICAART},
  year = {2023},
  doi = {10.5220/0011693200003393},
}
Figure