NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Learning Distributed Safe Multi-Agent Navigation via Infinite-Horizon Optimal Graph Control

Fenglan Wang, Xiujun Shu, Lei He, Linkai ZhaoarXiv 2025 · DOI

Abstract

Distributed multi-agent navigation faces inherent challenges due to the competing requirements of maintaining safety and achieving goal-directed behavior, particularly for agents with limited sensing range operating in unknown environments with dense obstacles. Existing approaches typically project predefined goal-reaching controllers onto control barrier function (CBF) constraints, often resulting in conservative and suboptimal trade-offs between safety and goal-reaching performance. We propose an infinite-horizon CBF-constrained optimal graph control formulation for distributed safe multi-agent navigation. By deriving the analytical solution structure, we develop a novel Hamilton-Jacobi-Bellman (HJB)-based learning framework to approximate the solution. In particular, our algorithm jointly learns a CBF and a distributed control policy, both parameterized by graph neural networks (GNNs), along with a value function that robustly guides agents toward their goals. Moreover, we introduce a state-dependent parameterization of Lagrange multipliers, enabling dynamic trade-offs between safety and performance. Unlike traditional short-horizon, quadratic programming-based CBF methods, our approach leverages long-horizon optimization to proactively avoid deadlocks and navigate complex environments more effectively. Extensive simulation results demonstrate substantial improvements in safety and task success rates across various agent dynamics, with strong scalability and generalization to large-scale teams in previously unseen environments. Real-world experiments using Crazyflie drone swarms on challenging antipodal position-swapping tasks further validate the practicality, generalizability, and robustness of the proposed HJB-GNN learning framework.

Introduction

Navigating a swarm of robots through a crowded environment is a complex balancing act: agents must reach their goals efficiently while avoiding collisions with obstacles and each other. Most current safety-critical navigation methods rely on Control Barrier Functions (CBFs) integrated into a Quadratic Program (QP). While mathematically elegant, these QP-CBF methods suffer from two major flaws: they are often "short-sighted," looking only one step ahead and leading to deadlocks in complex geometries, and they typically require hand-crafted safety functions that are brittle in unknown environments.

To address these limitations, we introduce HJB-GNN, a framework that jointly learns safety functions and distributed control policies by solving an infinite-horizon optimal control problem. By moving beyond traditional short-horizon methods, HJB-GNN effectively eliminates deadlocks and scales seamlessly to large swarms in complex, unknown environments.

Methodology

The core innovation of the HJB-GNN framework is the combination of classical control theory with modern deep learning to achieve long-horizon planning:

  • Infinite-Horizon Formulation: Instead of optimizing for the immediate next step, the problem is formulated as an infinite-horizon optimal control task. We utilize the Hamilton-Jacobi-Bellman (HJB) equation to derive an analytical structure for the controller.
  • Joint Learning with GNNs: Graph Neural Networks (GNNs) parameterize both the CBF and the distributed control policy. GNNs are uniquely suited for this task as they handle variable numbers of neighbors, allowing a model trained on a small group to generalize to hundreds of agents.
  • State-Dependent Lagrange Multipliers: Unlike methods with fixed safety weights, our approach derives multipliers that adapt to the robot's state. This allows the goal-reaching component to dominate in open space while the safety component automatically takes over when a collision is imminent.
  • Physics-Informed Training: The neural networks are trained using a loss function that enforces Bellman errors and Lyapunov stability conditions, ensuring the learned policy respects underlying physics and control guarantees.

Experimental Setup

We evaluated HJB-GNN across diverse simulation environments and real-world hardware:

  • Simulated Dynamics: Testing included 2D nonlinear unmanned surface vessels, 2D linear double integrators, and 3D nonlinear Crazyflie drones.
  • Scalability: Scenarios ranged from 4 agents to 1024 agents, navigating environments with up to 144 obstacles.
  • Real-World Validation: Experiments were conducted using a swarm of Crazyflie 2.1 drones performing antipodal position-swapping tasks, where agents on opposite sides of a circle must switch places without colliding.

Results and Discussion

A primary advantage of HJB-GNN is its ability to mitigate deadlocks. By approximating the infinite-horizon value function, agents become "forward-looking," steering around obstacles proactively rather than reacting only at the boundary.

Comparison of navigation trajectories between the baseline QP-GCBF+ (left) and the proposed HJB-GNN (right) in an environment with an X-shaped obstacle.

As illustrated in Figure 1, the HJB-GNN approach successfully navigates around an X-shaped obstacle where the state-of-the-art baseline (QP-GCBF+) gets stuck indefinitely. Furthermore, the model demonstrates remarkable zero-shot scalability; although trained on only 8 agents, it maintained a safety rate above 90% in dense 3D simulations with 320 agents, significantly outperforming baselines which dropped below 60%.

Conclusion

HJB-GNN represents a significant step forward in distributed multi-agent navigation by integrating long-horizon optimization with scalable graph-based learning. While the current work relies on LiDAR-like relative position data, future research will explore integrating raw vision-based inputs and addressing communication challenges such as delays and packet loss. Additionally, extending the framework to heterogeneous swarms with mixed robot types remains a promising direction.

Summary updated

BibTeX
@misc{wang2025learning,
  author = {Fenglan Wang and Xiujun Shu and Lei He and Linkai Zhao},
  title = {{Learning Distributed Safe Multi-Agent Navigation via Infinite-Horizon Optimal Graph Control}},
  year = {2025},
  eprint = {2506.22117},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.22117},
  howpublished = {arXiv},
}
Figure