End-to-End Game-Focused Learning of Adversary Behavior in Security Games

Andrew Perrault, Bryan Wilder, Eric Ewing, Aditya Mate, Bistra Dilkina, Milind Tambe

TL;DR

This paper introduces an end-to-end "game-focused" learning approach for Stackelberg Security Games, optimizing a predictive model of adversary behavior directly for the defender's expected utility rather than standard predictive accuracy. By differentiating through the defender's non-convex optimization problem, the method focuses learning on high-value targets and significantly outperforms traditional two-stage approaches, especially when historical data is scarce.

Introduction: The Gap Between Prediction and Utility

In real-world security scenarios—such as park rangers protecting wildlife from poachers—defenders must allocate limited resources against strategic adversaries. This is modeled as a Stackelberg Security Game (SSG). Because the adversary's preferences aren't known in advance, defenders must learn them from historical data, such as the locations of previously discovered snares.

The standard approach is a two-stage pipeline: first, train a machine learning model to predict adversary attacks by minimizing an accuracy-based loss function (like cross-entropy); second, compute an optimal patrol strategy against that learned model. However, a model with high global accuracy might still poorly estimate the value of the most critical targets, leading to sub-optimal patrols. The authors argue for training the model end-to-end to directly maximize the Defender's Expected Utility (DEU).

Methods: Game-Focused Learning

The authors develop a Game-Focused (GF) learning pipeline that embeds the defender's optimization problem directly into the training loop.

Comparison of the traditional Two-Stage pipeline versus the proposed Game-Focused learning approach.

To make this end-to-end training feasible, they introduce two key technical innovations:

  1. Counterfactual Adversary Estimates: Using the properties of the Subjective Utility Quantal Response (SUQR) model, the authors mathematically separate target attractiveness from historical patrol coverage. This allows them to simulate how an adversary would have reacted to a different patrol strategy.
  2. Gradients of Non-Convex Optimization: The defender's optimization problem against a boundedly rational attacker is non-convex. The authors overcome this by fitting a local quadratic program around the optimal point returned by a black-box solver, allowing them to compute gradients and backpropagate through the optimization step.

Evaluation and Key Insights

The approach was evaluated on synthetic data and human subject data from 8-target and 24-target security games.

A central insight is that Accuracy ≠ Utility. In human subject experiments, the game-focused model had 2–20% worse cross-entropy loss than the two-stage model, yet resulted in significantly better patrol strategies. This is because GF learning naturally distributes its prediction errors strategically, prioritizing accuracy on "important" targets that heavily impact utility while allowing larger errors on irrelevant ones.

Results

Game-focused learning shines brightest when data is scarce. In simulations with many features but few training games and observed attacks, GF consistently achieved higher DEU than two-stage methods.

Performance comparison (Defender Expected Utility) between Game-Focused (GF), Two-Stage (2S), and other baselines across varying data availability.

On the human subject dataset, GF outperformed a heavily regularized, tuned two-stage approach (2S-GT). GF achieved up to a 28% improvement in DEU for 8-target games and a massive 66% improvement for 24-target games when only one attack per training game was observed.

Limitations

The counterfactual estimation trick relies on the adversary using a bounded rationality model that is stochastic and decomposable (like SUQR). It cannot be easily applied to a perfectly rational attacker model, as such attackers only reveal information about their single most preferred target. Future work aims to extend this approach to a wider variety of behavioral models common in security games.

Summary updated

BibTeX
@inproceedings{perrault2020end,
  author = {Andrew Perrault and Bryan Wilder and Eric Ewing and Aditya Mate and Bistra Dilkina and Milind Tambe},
  title = {{End-to-End Game-Focused Learning of Adversary Behavior in Security Games}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.1609/aaai.v34i02.5494},
}
Figure