Abstract
Achieving safe optimal control in multi-agent systems (MAS) remains a significant challenge, particularly when system dynamics are unknown and agent topologies are dynamic. Traditional Control Barrier Functions (CBFs) provide safety guarantees but often require precise mathematical models and pre-existing nominal policies. This paper introduces Discrete Graph CBF Proximal Policy Optimization (DGPPO), a reinforcement learning framework that simultaneously learns a task policy and a discrete-time safety shield. By leveraging Graph Neural Networks (GNNs) and a novel gradient projection method, DGPPO ensures near-perfect safety and high task performance across diverse environments without requiring known physics or static agent neighborhoods.
Introduction
In multi-agent systems—ranging from warehouse robotics to autonomous vehicle fleets—the primary objective is to maximize task efficiency while ensuring collision avoidance and operational safety. The standard control-theoretic approach to safety involves Control Barrier Functions (CBFs), which act as filters to keep agents within a safe set. However, traditional CBFs face three critical limitations: they typically require known system dynamics, they depend on a pre-existing "nominal" policy to filter, and they struggle with dynamic topologies where agents frequently enter or leave sensing ranges.
To bridge these gaps, we present DGPPO. This framework integrates the safety guarantees of CBFs with the flexibility of Reinforcement Learning (RL), specifically designed for discrete-time systems with unknown dynamics and limited, local sensing.
Methodology
DGPPO introduces several architectural innovations to overcome the limitations of classical safety filters:
1. Discrete Graph CBF (DGCBF)
The framework extends CBFs to discrete-time systems using Graph Neural Networks (GNNs) equipped with attention mechanisms. This allows the safety function to handle a variable number of neighbors by dynamically "attending" to agents within a critical sensing radius, effectively managing changing network topologies.
2. Learning the Barrier Function
Rather than hand-crafting a CBF, DGPPO learns the safety shield through policy evaluation. The authors prove that the constraint-value function—defined as the maximum safety violation expected over a trajectory—serves as a valid Discrete CBF. This insight allows the agent to learn safety requirements directly from environment interactions.
3. Decoupled Policy Optimization
To avoid the instabilities common in constrained RL (such as Lagrangian methods), DGPPO employs a gradient projection technique. The optimization logic is bifurcated:
- Safe State: If the agent is within safety bounds, the algorithm optimizes for the task objective.
- Unsafe State: If a violation occurs, the algorithm takes a gradient step specifically to minimize that violation.
An indicator function ensures that task-oriented updates do not interfere with safety-critical corrections, leading to more stable training curves.
4. Score Function Gradients
Because the underlying physics of the environment are assumed to be unknown, DGPPO utilizes the "log-derivative trick" (score function) to estimate gradients for safety constraints directly from rollouts, removing the need for a differentiable world model.
Experimental Setup
The framework was evaluated across seven distinct environments using three simulation engines:
- LiDAR Environments: Tasks including Target, Spread, Line, and Bicycle, testing both double-integrator and complex bicycle dynamics.
- MuJoCo: A Transport task requiring collaborative box-pushing while avoiding obstacles.
- VMAS: Complex coordination tasks (Transport2 and Wheel) involving contact physics and multi-agent synchronization.
Key Results and Insights
Near-Perfect Safety and Performance
DGPPO achieved a near 100% safety rate across all tested environments. Remarkably, it maintained task performance (low cost) comparable to "unsafe" baselines that ignore constraints entirely. Unlike myopic safety filters that can lead agents into deadlocks (e.g., getting stuck behind U-shaped obstacles), DGPPO’s RL-based approach learns to navigate around obstacles to reach long-term goals.
Zero-Shot Scalability
A policy trained with only 8 agents in the Target environment was successfully deployed on up to 512 agents. This demonstrates the robustness of the GNN-based DGCBF in handling massive increases in agent density and swarm size without additional training.
Hyperparameter Robustness
One of the most significant practical advantages of DGPPO is its robustness to hyperparameters. While Lagrangian-based safe RL often requires extensive per-environment tuning, the authors used a single set of hyperparameters across all seven diverse environments, consistently outperforming tuned baselines.
Conclusion and Future Work
DGPPO represents a significant step toward deploying safe multi-agent systems in the real world by removing the requirement for known dynamics and static topologies. While the framework is highly effective, future work will focus on improving sample efficiency—as the dual-rollout requirement makes it more data-intensive than standard MAPPO—and extending theoretical safety guarantees to truly stochastic environments. Additionally, investigating the limits of agent density beyond training distributions remains an open area for research.
Summary updated