Collision Avoidance Verification of Multiagent Systems With Learned Policies

Zihao Dong, Shayegan Omidshafiei, Michael Everett

Abstract

As neural network (NN) controllers become increasingly prevalent in multi-agent systems such as autonomous vehicle fleets and drone swarms, the need for formal safety guarantees grows. This paper introduces ReBAR (Relative BAckward Reachability), a framework designed to verify collision avoidance in systems governed by NN policies. By transforming the verification problem into a relative coordinate frame and utilizing backward reachability, ReBAR overcomes the computational explosion and over-approximation errors typical of traditional methods. The framework scales to systems with up to 10 agents and maintains real-time performance even under measurement uncertainty.

Introduction

Neural networks offer powerful solutions for complex multi-agent control tasks, yet their "black box" nature poses significant risks in safety-critical environments. Proving that a swarm of agents will not collide requires formal verification. However, traditional verification techniques often struggle with the high dimensionality of multi-agent states and the inherent non-linearity of neural network activations. ReBAR addresses these challenges by focusing on relative dynamics and backward reachability to provide efficient, scalable safety certificates.

Challenges in Multi-Agent Verification

Existing verification methods generally fall into two traps that limit their utility in multi-agent scenarios:

  1. The "Convex Hull" Trap: Forward reachability methods predict where an agent will go. When an agent has multiple valid paths to avoid an obstacle (e.g., going left or right), the convex hull of these potential trajectories often overlaps with the obstacle itself. This leads to "false positive" safety violations where the system is flagged as unsafe despite being perfectly capable of avoidance.
  2. The Moving Target Problem: In a global coordinate frame, the "avoid set" (the region representing a collision) is dynamic because all agents are moving simultaneously. This makes calculating the set of states that lead to a crash computationally explosive as the number of agents increases.

The ReBAR Framework

To circumvent these issues, the authors propose Relative BAckward Reachability (ReBAR). The framework relies on several key innovations:

Relative Coordinate Frame

Instead of tracking agents in a global map, ReBAR analyzes the relative position of agent $j$ with respect to agent $i$. This transformation effectively "freezes" the collision set in the relative frame, simplifying the geometry of the unsafe region and making it easier to analyze.

Relative Backprojection Over-Approximation (RBPOA)

The core of the algorithm is the computation of the RBPOA—a convex "envelope" of all relative states that could potentially result in a collision in the subsequent timestep. By using backward reachability, ReBAR can prove that even if multiple disjoint paths exist, none of them intersect the unsafe region.

Offline-Online Computation Split

To handle the non-linearities of ReLU-based Neural Networks, ReBAR formulates the backprojection problem as a Mixed-Integer Linear Program (MILP).

  • Offline: The complex MILP is solved to create a safety certificate.
  • Online: During operation, agents do not need to solve MILPs. Instead, they solve a low-dimensional Linear Program (LP) to check if their current state estimate (including potential noise) falls within the pre-computed unsafe RBPOA. This ensures the safety check is fast enough for high-frequency control loops.

Scalability and Robustness

ReBAR addresses the "curse of dimensionality" through pairwise decomposition. The authors demonstrate that multi-agent safety can be decomposed into $O(n^2)$ pairwise sub-problems. This allows the system to scale to many agents through parallelization, as the safety of the entire system is guaranteed if every individual pair of agents is proven safe.

Furthermore, the method explicitly incorporates state measurement uncertainty. By modeling uncertainty as $L_\infty$ balls, the online LP check ensures that an agent remains safe even if its exact position is not known with 100% certainty, provided the "possibly unsafe" zone is avoided.

Experimental Evaluation

The framework was evaluated using agents trained to imitate classic collision avoidance algorithms, such as Reciprocal Velocity Obstacles (RVO) and Vector Field Policies. The training involved 1 million state-action pairs to ensure the NNs accurately mimicked these behaviors.

Key Results

  • Efficiency: For a 2-agent system, ReBAR computes offline safety certificates in approximately 11 seconds. The online safety check is remarkably fast, taking only 1.4ms, which is well within the requirements for real-time robotics.
  • Scalability: The authors successfully verified systems with up to 10 agents. Even with more complex NN controllers (e.g., hidden layers of [20, 20]), the online check remained under 1.6ms per pair.
  • Precision: ReBAR demonstrated superior precision compared to exhaustive Monte Carlo sampling. It successfully identified unsafe regions and "edge case" failures that traditional simulation-based testing overlooked.
  • Dynamics: The method proved versatile, validated on both single-integrator (velocity control) and double-integrator (acceleration control) models.

Conclusion and Future Work

ReBAR provides a robust framework for the formal verification of multi-agent neural control. By leveraging relative coordinates and backward reachability, it offers a scalable solution to the collision avoidance problem.

While currently optimized for ReLU activations and joint state representations, future work aims to extend ReBAR to handle smooth activation functions (like tanh or sigmoid) through complex convex relaxations. Additionally, the authors plan to explore decentralized observation spaces, where agents operate based only on local vicinity data, and more highly non-linear dynamics, such as those found in quadrotor flight.

Summary updated

BibTeX
@article{dong2024collision,
  author = {Zihao Dong and Shayegan Omidshafiei and Michael Everett},
  title = {{Collision Avoidance Verification of Multiagent Systems With Learned Policies}},
  journal = {IEEE Control. Syst. Lett.},
  year = {2024},
  doi = {10.1109/lcsys.2024.3400190},
}
Figure