Memory Assignment for Finite-Memory Strategies in Adversarial Patrolling Games

Vojtech Kur, Vít Musil, Vojtech RehákarXiv 2025 · DOI

Abstract

In adversarial patrolling games, the effectiveness of a Defender's strategy often hinges on the use of finite memory to avoid predictability. However, determining the optimal memory allocation for different locations in a graph has traditionally been a manual and inefficient process. This paper introduces a novel heuristic algorithm, ADJUSTMEMORY, which automates memory assignment using a gradient-based approach. By identifying conflicting strategic requirements at specific states and splitting them into multiple memory states, the method achieves near-optimal performance across diverse environments without requiring expert manual tuning.

Introduction

Adversarial Patrolling Games model scenarios where a Defender moves through a graph to protect various targets from an Attacker. The Attacker observes the Defender's movements and strikes when the probability of detection is lowest. While simple "positional" strategies—where the next move depends only on the current location—are computationally easy to find, they are highly predictable.

To enhance security, researchers employ finite-memory strategies. These allow the Defender’s choices to depend on both their current location and an internal "memory state." A persistent challenge in this field is memory assignment: deciding how much memory to allocate to each node. Insufficient memory leads to exploitable patterns, while excessive memory causes a state-space explosion that makes optimization computationally infeasible. Historically, this was solved via uniform allocation or manual expert design.

The ADJUSTMEMORY Framework

The authors propose an iterative framework that alternates between strategy optimization and memory adjustment. The core of this framework is the ADJUSTMEMORY procedure, which utilizes a gradient-based heuristic to refine the Defender's memory profile.

Behavioral Splitting via Gradients

The key innovation lies in analyzing the gradients of maximal attacks. If the gradients for two different potential attacks (e.g., Target A vs. Target B) at a specific state are in opposition, it suggests the Defender is attempting to satisfy two conflicting strategic goals simultaneously.

Figure 6: Comparison of optimal strategies for different graph configurations. In (a), uniform target values lead to a cyclic strategy. In (b), varying target values require a more complex memory assignment to achieve optimality.

When such a conflict is detected, the algorithm performs "behavioral splitting." It clones the location into multiple memory states, allowing the Defender to "remember" which behavior to prioritize based on their path history. This targeted expansion prevents the state-space explosion associated with uniform memory assignment.

Experimental Evaluation

The method was evaluated on several benchmarks representing different patrolling challenges:

  • Offices & Buildings: Multi-floor environments with hard-constrained and probabilistic detection targets.
  • Airports: Models with "linear" targets where damage accumulates over time.
  • Stars & Terrains: Specialized star-shaped graphs and randomly generated planar graphs designed to test memory-intensive strategies.

Key Results

  • Superiority over Uniformity: In the Offices benchmark, the automated method identified optimal strategies that uniform memory assignments could not find within the same computational time limits.
  • Benchmarking against Experts: On Airport and Terrain maps, the heuristic performed as well as handcrafted assignments, such as the degree heuristic (which assigns memory based on node connectivity).
  • Scalability: The framework successfully managed graphs with over 40 nodes and state spaces of up to 300 states, demonstrating its applicability to real-world security scenarios.

Discussion and Future Work

The paper demonstrates that memory is not merely about recording the last visited node, but about enabling distinct strategic behaviors. The ADJUSTMEMORY algorithm effectively automates this insight, providing a robust tool for security professionals.

One observed limitation was a slight performance lag in "linear" target models (like the Airport benchmark), likely due to the unbounded nature of the objective function. Future work will explore bounded objective functions and more sophisticated "warm-starting" techniques to carry over transition probabilities between iterations of memory expansion, potentially further accelerating convergence.

Summary updated

BibTeX
@misc{kur2025memory,
  author = {Vojtech Kur and Vít Musil and Vojtech Rehák},
  title = {{Memory Assignment for Finite-Memory Strategies in Adversarial Patrolling Games}},
  year = {2025},
  eprint = {2505.14137},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.14137},
}
Figure