On-the-fly Adaptation of Patrolling Strategies in Changing Environments

Tomáš Brázdil, David Klaška, Antonín Kučera, Vít Musil, Petr Novotný, Vojtěch Řehák

Introduction

In adversarial patrolling games, a Defender moves through a graph to detect attacks. While traditional research assumes a static environment, real-world scenarios—such as police patrols or drone surveillance—are dynamic. Changes in traffic, weather, or target priorities necessitate a switch from an old strategy ($\sigma_1$) to a new one ($\sigma_2$). However, this transition is fraught with risk. If the strategies are incompatible, they may inadvertently create a security hole: a window of time where a target is left unvisited for longer than intended, providing an Attacker with a perfect opportunity to strike.

The concept of a security hole: an attack initiated just before a strategy switch may have very low coverage due to strategy incompatibility.

Addressing the Transition Risk

This paper introduces a framework to detect, mitigate, and synthesize high-quality patrolling strategies on-the-fly. The authors identify that even individually optimal strategies can be catastrophic when combined. For instance, if $\sigma_1$ follows a clockwise path and $\sigma_2$ follows a counter-clockwise path, certain targets might be skipped entirely during the flip.

To address this, the authors propose:

  1. Security Hole Detection: An algorithm that uses forward-search to calculate the maximum potential loss (the "steal") during a switch.
  2. Randomized Switching: Instead of an instantaneous transition, the Defender uses a biased coin at each vertex to decide when to adopt the new strategy, effectively "blurring" the transition and closing potential holes.
  3. Warm-Starting: Initializing the search for $\sigma_2$ using $\sigma_1$ as a baseline, which leads to significantly smaller security holes compared to random initialization.

Efficient Strategy Synthesis

A major contribution of this work is the overhaul of the state-of-the-art REGSTAR algorithm. By implementing strategy evaluation in PyTorch and utilizing reverse-mode automatic differentiation, the authors achieved massive efficiency gains. This shift from forward-mode to reverse-mode differentiation—a technique standard in deep learning but novel in this context—reduced gradient computation time from seconds to milliseconds.

Table 1: Comparison of runtimes between REGSTAR and the proposed method, showing a 3,000x speedup in the backward pass.

Key Results and Performance

The framework was evaluated on synthetic office building graphs and a real-world-inspired map of downtown Vancouver. The results demonstrate that the new synthesis method consistently finds higher-protection strategies than the original REGSTAR across various configurations. Most notably, for a memory size of 8, the backward pass (gradient calculation) was accelerated from 186 seconds to just 60 milliseconds—a 3,000x speedup that makes real-time adaptation feasible.

Conclusion

By providing tools to detect and close security holes while dramatically increasing the speed of strategy synthesis, this research enables autonomous patrolling systems to remain robust in the face of environmental change. Future work may explore preventive adaptation, where Defenders proactively adjust strategies based on predicted environmental shifts.

Summary updated

BibTeX
@inproceedings{brazdil2022fly,
  author = {Tomáš Brázdil and David Klaška and Antonín Kučera and Vít Musil and Petr Novotný and Vojtěch Řehák},
  title = {{On-the-fly Adaptation of Patrolling Strategies in Changing Environments}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2022},
  url = {https://openreview.net/forum?id=HnNgVPUiqx9},
}
Figure