Policy Learning for Continuous Space Security Games Using Neural Networks

Nitin Kamra, Umang Gupta, Fei Fang, Yan Liu, Milind Tambe

Abstract

Stackelberg Security Games (SSGs) are vital for modeling strategic interactions between defenders and adversaries in domains like wildlife protection. However, traditional solvers rely on discretization, which struggles with the high-dimensional, continuous nature of real-world environments. This paper introduces OptGradFP, an algorithm that combines deep reinforcement learning with game-theoretic fictitious play. By employing a Convolutional Neural Network (CNN) to parameterize strategies, the approach learns to predict optimal defender policies directly from spatial data. Evaluations on a Forest Security Game show that OptGradFP achieves significant computational speedups—reducing strategy computation from hours to milliseconds—while maintaining high defensive utility and generalizing to unseen maps.

Introduction

Stackelberg Security Games (SSGs) provide a mathematical framework for allocating limited defensive resources against strategic adversaries. In "green security" contexts, such as protecting forests from poachers or illegal loggers, the environment is inherently continuous. Traditional approaches typically discretize the space into a grid and solve the resulting game using linear programming. However, fine discretization leads to computational intractability, while coarse discretization results in suboptimal strategies. There is a clear need for methods that can operate directly in continuous spaces and generalize across different environmental configurations.

Methodology: OptGradFP and Neural Architectures

The authors propose OptGradFP (Optimization with Policy Gradients and Fictitious Play), which addresses the instability of standard policy gradient methods in competitive settings. In multi-agent games, simple gradient descent often leads to oscillatory behavior. To stabilize convergence toward a Nash Equilibrium, OptGradFP incorporates Fictitious Play via a replay memory. This allows agents to "best respond" to the historical average of their opponent's strategies rather than just the most recent action.

To handle spatial environments, the policy is implemented as a Convolutional Neural Network (CNN), referred to as OptGradFP-NN. The network processes a grayscale representation of the environment (e.g., tree density in a forest) and outputs the parameters—mean (μ) and variance (ν)—of a Logit-normal distribution. This distribution is particularly effective for continuous actions within bounded regions, as it remains fully differentiable for gradient-based updates.

The CNN architecture of OptGradFP-NN, showing convolutional layers followed by dense layers that output distribution parameters for the defender's strategy.

Experimental Setup

The model was evaluated on two primary domains:

  1. Rock-Paper-Scissors (RPS): A stateless game used as a sanity check to verify convergence to the known Nash Equilibrium (playing each hand 1/3 of the time).
  2. Forest Security Game: A continuous-space environment where a defender protects a circular forest from intruders. The "state" is a 120x120 grayscale image representing tree locations. The model was trained on 1,000 random forest configurations and tested on 10 previously unseen maps to evaluate generalization.
Visualization of the Forest Security Game: (a) the input grayscale image representing tree density, and (b) the resulting game state with defender and adversary strategies visualized.

Key Results and Insights

  • Convergence and Stability: OptGradFP successfully converged to the Nash Equilibrium in RPS, whereas baseline methods like Cournot Adjustment (CA) and StackGrad continued to oscillate. The inclusion of replay memory was critical for this stability.
  • Superior Defense: In the forest domain, OptGradFP achieved a significantly lower "Opponent Best Response Utility" compared to traditional methods, meaning the adversary found it much harder to succeed against the learned policy.
  • Massive Computational Speedup: The most striking result is the shift from online to offline computation. While training the network took approximately 7 days, the trained CNN can generate a high-quality strategy for a brand-new map in just 90 milliseconds. For comparison, solving a single state from scratch using traditional methods takes over 3 hours (12,250 seconds).

Limitations and Future Work

While OptGradFP shows great promise, it relies on the availability of non-zero gradients; if the utility surface is very flat, the algorithm can stagnate. Additionally, the current work focuses on zero-sum games. Extending this framework to general-sum games is a necessary next step for broader real-world application. Future research will also explore improved initialization techniques to further enhance the stability of the deep learning process.

Summary updated

BibTeX
@inproceedings{kamra2018policy,
  author = {Nitin Kamra and Umang Gupta and Fei Fang and Yan Liu and Milind Tambe},
  title = {{Policy Learning for Continuous Space Security Games Using Neural Networks}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2018},
  doi = {10.1609/aaai.v32i1.11446},
}
Figure