Learning Verified Safe Neural Network Controllers for Multi-Agent Path Finding

Mingyue Zhang, Nianyu Li, Yi Chen, Jialong Li, Xiaoyi Zhang, Hengjun Zhao, Jiamou Liu, Wu Chen

Abstract

Multi-Agent Path Finding (MAPF) requires navigating groups of agents through complex environments without collisions. While neural network controllers offer high performance, their lack of safety guarantees limits real-world deployment. This paper presents VSMANC (Verified Safe Multi-Agent Neural Control), a framework that integrates Decentralized Control Barrier Functions (DCBFs) with formal verification. By jointly training controllers and safety functions and using a verification-guided retraining loop, VSMANC identifies and corrects safety "holes" in the neural logic. Experimental results across diverse simulated environments demonstrate that VSMANC achieves significantly higher safety rates and efficiency compared to state-of-the-art baselines, scaling effectively to over 1,000 agents.

Introduction

The challenge of Multi-Agent Path Finding (MAPF) involves coordinating a swarm of robots to reach their respective targets while avoiding collisions with obstacles and each other. Deep learning-based controllers have shown promise in handling high-dimensional state spaces efficiently. However, these models often function as "black boxes," lacking the rigorous safety proofs required for critical applications. Traditional control theory employs Control Barrier Functions (CBFs) to provide mathematical safety shields, but designing these functions for complex multi-agent systems is manually intensive. VSMANC bridges this gap by learning safety functions from data and validating them through formal verification.

Methodology

VSMANC is built upon three primary pillars designed to ensure robust safety and performance. First, it employs the joint learning of a Decentralized Control Barrier Function (DCBF) and a control policy. By training these components together with a unified loss function, the controller is forced to respect the safety boundaries defined by the DCBF.

Second, the framework incorporates a mathematically derived "worst-case safe distance" ($K_B$). This theoretical bound accounts for maximum agent velocities and adversarial movement probabilities, establishing a conservative safety floor.

Finally, the core innovation is a formal verification-guided retraining loop. To make verification tractable, the safety logic is distilled into a simpler Multi-Layer Perceptron (MLP). A formal analyzer, Marabou, then searches for counterexamples—input states where a collision might occur. These counterexamples are fed back into the training set, iteratively hardening the model against edge-case failures.

The VSMANC framework overview, highlighting the joint learning of DCBF/controllers and the formal verification-guided retraining loop.

Experimental Setup

The performance of VSMANC was evaluated in high-fidelity simulations involving shape formation tasks and obstacle navigation. The study utilized three distinct map types to test generalization:

  1. Random Map: Arbitrarily placed cuboidal obstacles.
  2. Cross Map: A simulation of a high-traffic intersection.
  3. Street Map: Modeled after real-world building data from Portland, USA.
Visualization of the three simulation environments: (a) random map, (b) cross map, and (c) street map.

Results and Discussion

VSMANC demonstrated superior safety and efficiency across all test scenarios. It outperformed major baselines, including MDBC and CS-MARL, with safety rate improvements ranging from 3% to 37%. Notably, the agents reached their goals 16% to 30% faster than competing methods, suggesting that the learned safety constraints do not lead to overly conservative behavior.

A key finding was the "coupling effect": training the controller and DCBF together proved more effective than isolated training. Furthermore, the verification-guided loop acted as a "tutor," specifically targeting the network's weaknesses. The system also exhibited remarkable scalability; although trained on only 8 agents, it successfully generalized to 1,024 agents in zero-shot transfer tests.

Conclusion

VSMANC provides a robust framework for learning verifiable safety in multi-agent systems. While the current model relies on supervised learning from a teacher policy and simplified dynamics, it sets a new standard for safety in neural MAPF. Future work will explore the integration of Reinforcement Learning for path optimization and the application of the framework to more complex, non-linear aerodynamic models.

Summary updated

BibTeX
@inproceedings{zhang2025learning,
  author = {Mingyue Zhang and Nianyu Li and Yi Chen and Jialong Li and Xiaoyi Zhang and Hengjun Zhao and Jiamou Liu and Wu Chen},
  title = {{Learning Verified Safe Neural Network Controllers for Multi-Agent Path Finding}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i22.34504},
}
Figure