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

GCBF+: A Neural Graph Control Barrier Function Framework for Distributed Safe Multiagent Control

Songyuan Zhang, Oswin So, Kunal Garg, Chuchu Fan · DOI

Abstract

GCBF+ is a novel framework that leverages Graph Neural Networks (GNNs) to learn distributed safety certificates—specifically Graph Control Barrier Functions—for large-scale multi-agent systems. By training on small-scale simulations of just eight agents, the system generalizes to swarms of over 1,000 agents in complex, obstacle-ridden environments. GCBF+ significantly outperforms state-of-the-art reinforcement learning and hand-crafted control methods in both simulated environments and real-world drone hardware.

Introduction

Controlling a swarm of robots, such as drones or warehouse automation units, requires balancing two often-conflicting objectives: liveness (reaching a destination) and safety (avoiding collisions with peers and obstacles). Existing solutions typically struggle with scalability, as centralized controllers become computationally intractable as the swarm grows. Furthermore, hand-crafting Control Barrier Functions (CBFs)—mathematical guarantees of safety—is notoriously difficult for robots with nonlinear dynamics or in environments with arbitrary obstacle geometries.

Reinforcement Learning (RL) approaches often fail to bridge this gap, frequently treating safety as a mere penalty. This results in agents that either take excessive risks or become "frozen" by over-caution. GCBF+ addresses these challenges by learning local safety logic that scales naturally to massive swarms.

The GCBF+ Framework

The core innovation of GCBF+ lies in its use of Graph Neural Networks to define local safety certificates. Instead of a global safety function, GCBF+ defines a local one that considers only an agent's immediate neighbors. Because GNNs are permutation-invariant and handle variable-sized inputs, the same safety logic applies regardless of whether an agent has two neighbors or twenty.

Local sensing and graph-based interaction in GCBF+. Agents within a sensing radius R form a graph, allowing for distributed safety certification against peers and obstacles.

Teacher-Student Training

To resolve the safety-liveness tradeoff, GCBF+ employs a "teacher-student" training architecture. The framework uses a "safe" version of a nominal controller, derived via a Quadratic Program (QP), as a teacher. The neural network learns to mimic this safe-but-effective behavior, allowing the training loss to converge more effectively than standard RL methods. Additionally, a look-ahead mechanism is integrated into the loss function to ensure the learned controller respects physical actuation limits, preventing commands that are dynamically impossible.

The GCBF+ training framework, featuring a teacher-student loss that leverages a Quadratic Program (QP) policy to guide the neural network toward safe and effective control.

Experimental Evaluation and Results

The model was trained on scenarios involving only 8 agents and 8 obstacles but was evaluated on much larger scales.

  • Zero-Shot Scaling: Despite the small training set, GCBF+ maintained a success rate of over 98% when scaled to 256 agents and 128 obstacles. In extreme tests, it successfully managed swarms of up to 1,024 agents.
  • Performance Benchmarks: In complex nonlinear drone simulations, GCBF+ achieved success rates 45% higher than state-of-the-art multi-agent RL (InforMARL) and 65% higher than its predecessor, GCBFv0.
  • Hardware Robustness: The system was validated on a swarm of eight Crazyflie 2.1 nano-quadrotors. The drones successfully performed position swapping and docking on moving TurtleBot platforms, even when human-controlled obstacles were introduced mid-flight.

Key Insights

The most significant insight of this work is that safety is fundamentally a local property. By training a GNN to manage safety within a small neighborhood, the resulting policy naturally scales to massive swarms without retraining. Furthermore, by using LiDAR point clouds as GNN edge features, the system treats obstacles and other agents through a unified framework, making it highly adaptable to previously unseen obstacle shapes.

Limitations and Future Work

While GCBF+ provides robust safety, agents currently operate "selfishly" regarding safety. They do not yet coordinate to "make room" for one another, which can lead to deadlocks in extremely dense environments like narrow hallways. Future work will explore adding agent-type features to the GNN nodes to handle heterogeneous swarms and investigating methods to formally verify the trained neural networks, which remains a computationally difficult (NP-complete) problem.

Summary updated

BibTeX
@article{zhang2025gcbf,
  author = {Songyuan Zhang and Oswin So and Kunal Garg and Chuchu Fan},
  title = {{GCBF+: A Neural Graph Control Barrier Function Framework for Distributed Safe Multiagent Control}},
  journal = {IEEE Trans. Robotics},
  year = {2025},
  doi = {10.1109/tro.2025.3530348},
}
Figure