RoSSO: A High-Performance Python Package for Robotic Surveillance Strategy Optimization Using JAX

Yohan John, Connor Hughes, Gilberto Díaz-García, Jason R. Marden, Francesco Bullo

TL;DR

RoSSO (Robotic Surveillance Strategy Optimization) is a high-performance Python package that uses JAX to design unpredictable, optimal patrol routes for robot teams. By leveraging automatic differentiation and novel game-theoretic algorithms, it outperforms existing solvers by orders of magnitude, enabling real-world deployment on complex urban graphs.

What Problem Does This Paper Address?

If a security robot follows a fixed, deterministic path, an intelligent intruder can simply wait for it to pass and then strike. To counter this, researchers use randomized patrols modeled as Markov chains. The goal is to find a transition matrix—the probabilities of moving from one point to another—that maximizes the chance of catching an intruder while minimizing travel time.

However, optimizing these matrices is notoriously difficult. The problems are often non-convex, high-dimensional, and must satisfy strict constraints (e.g., the robot can only move along existing roads, and probabilities must sum to one). Existing tools in MATLAB or Julia often rely on general-purpose solvers that are either too slow for large-scale problems or require simplifying assumptions that hurt performance.

Methods

The authors introduce RoSSO, which shifts the heavy lifting to JAX, a library designed for high-performance machine learning. Key methodological highlights include:

  • Constraint Parametrization: Instead of using slow, constrained optimization solvers, RoSSO transforms an unconstrained matrix into a valid Markov transition matrix using differentiable functions. This allows the use of fast, first-order gradient descent methods (like RMSprop).
  • JAX Integration: By using JAX, RoSSO benefits from just-in-time (JIT) compilation and hardware acceleration (GPU/TPU), making the calculation of complex metrics like "Return-Time Entropy" feasible.
  • Novel Stackelberg Game (SG) Formulations: The paper introduces a greedy algorithm to co-optimize both the patrol strategy and the "defense budget" (how much time an attacker needs to succeed at a specific node).
  • Multi-Robot Coordination: They extend the SG formulation to teams of robots, using a power iteration method to efficiently handle stationary distribution constraints across the team.

Datasets

The primary evaluation uses a 12-node complete graph of a police district in downtown San Francisco.

  • Nodes: Represent major intersections.
  • Edge Weights: Real-world driving times in minutes.
  • Node Priorities: Derived from monthly crime rates to ensure the "optimal" patrol spends more time in high-crime areas.
Map of the San Francisco police district intersections used for the case study.

Key Insights and Ideas

  • The "Sweet Spot" Metric: The authors compare three metrics: Mean Hitting Time (MHT), Return-Time Entropy (RTE), and the Stackelberg Game (SG). They find that the SG metric is the most balanced; MHT is fast but predictable, while RTE is highly unpredictable but results in slow traversal.
  • Emergent Division of Labor: In multi-robot tests, the optimizer naturally "partitioned" the graph. Even without being told to stay in certain areas, robots evolved strategies to focus on different sectors of the city to maximize collective coverage.
  • Sparsity vs. Density: MHT strategies tend to be sparse (resembling a simple cycle), whereas RTE and SG strategies are denser and more complex, making them significantly harder for an adversary to predict.
Heatmaps showing the difference in strategy "density" between MHT, RTE, and SG formulations.

Key Results

  • Massive Speedups: For the Return-Time Entropy (RTE) formulation, RoSSO achieved a 35x speedup over existing MATLAB implementations (11.5 seconds vs. 409 seconds).
  • Better Optimization: Because RoSSO doesn't require the "reversibility" constraints often used by other solvers to simplify the math, it consistently finds patrol strategies with better objective values.
  • Multi-Robot Scalability: The package successfully optimized 2-robot and 3-robot teams on the San Francisco graph, demonstrating that the JAX-based approach can handle the increased computational load of multi-agent systems.

Limitations and Future Work

  • The Curse of Dimensionality: While RoSSO is fast, multi-robot optimization still scales poorly as the number of robots increases. For very large teams, the authors suggest that pre-partitioning the graph (manually dividing the city into zones) is still more efficient than a global search.
  • Hardware Acceleration: The current results were gathered on a standard laptop; the authors expect even more dramatic performance gains when running RoSSO on dedicated GPU/TPU hardware.
  • Future Directions: The team plans to explore integrating RoSSO with reinforcement learning libraries to handle even more dynamic and complex surveillance environments.

Summary updated

BibTeX
@inproceedings{john2024rosso,
  author = {Yohan John and Connor Hughes and Gilberto Díaz-García and Jason R. Marden and Francesco Bullo},
  title = {{RoSSO: A High-Performance Python Package for Robotic Surveillance Strategy Optimization Using JAX}},
  booktitle = {IEEE International Conference on Robotics and Automation},
  year = {2024},
  doi = {10.1109/icra57147.2024.10610477},
}
Figure