Abstract
Distributed control of multi-agent systems, such as drone swarms, requires balancing high-performance decision-making with real-time computational constraints. While Model Predictive Control (MPC) provides optimal trajectories, its centralized nature and high computational cost often preclude real-time deployment. This paper introduces "Neural Flocking" (NF), a supervised learning framework that distills centralized MPC expertise into a distributed, symmetric deep neural network. The resulting controller achieves near-expert performance at speeds 750x faster than the original optimizer and generalizes to larger swarms than those seen during training.
Introduction
Flocking behavior in nature—characterized by separation, cohesion, and alignment—is a cornerstone of distributed robotics. Traditional rule-based approaches, like Reynolds' rules, are computationally efficient but difficult to tune for complex objectives such as obstacle navigation or predator avoidance.
Model Predictive Control (MPC) offers a mathematically rigorous alternative by minimizing a cost function over a receding time horizon. However, MPC faces two primary challenges:
- Computational Latency: Solving non-linear optimization problems at every time step is often too slow for high-speed flight.
- Centralization Requirements: High-fidelity MPC typically requires global state information, which is unavailable in truly distributed systems where agents rely on local sensors.
Neural Flocking bridges this gap by training a Distributed Neural Controller (DNC) to imitate a Centralized MPC (CMPC) "teacher," combining optimal planning with distributed execution.
Methodology
The Neural Flocking pipeline consists of three primary stages: expert data generation, imitation learning, and formal verification.
The Teacher-Student Framework
The "Teacher" is a Centralized MPC agent with global visibility, solving heavy optimization problems to determine ideal accelerations for the entire flock. The "Student" is a Distributed Neural Controller (DNC) designed as a fully connected feed-forward network with 5 hidden layers and 84 neurons each.
Crucially, the DNC is distributed and symmetric. During execution, each agent runs an identical copy of the network, taking only local information—its own state and the states of its 14 nearest neighbors—as input. This "distillation" process allows the network to learn the underlying interaction laws of the CMPC without needing to perform the optimization itself.
Verification
To ensure reliability, the authors employ Statistical Model Checking (SMC). Using the Additive Approximation Algorithm, they calculate confidence intervals for convergence metrics, ensuring the learned controller consistently meets safety and performance thresholds.
Experimental Scenarios
The system was evaluated across four distinct flocking scenarios, each defined by a specific cost function in the CMPC teacher.
- Basic Flocking: Focuses on inter-agent collision avoidance and group cohesion.
- Obstacle Avoidance: Navigating through a field of random rectangular blocks.
- Target Seeking: Moving the flock toward a global goal while maintaining formation.
- Predator Avoidance: Escaping an agile predator that actively targets the flock's center of mass.
Training was conducted on a synthetic dataset of 3 million state-action pairs generated from 200 trajectories of 15 agents.
Key Results
The Neural Flocking approach demonstrates significant improvements in both speed and scalability:
- Computational Efficiency: The DNC reduced computation time from 1209 ms (CMPC) to just 1.6 ms per step—a 750x speedup. This latency is well within the requirements for real-time robotic control.
- Fidelity and Safety: The DNC maintained a 100% convergence rate in basic flocking for 15 agents. In collision avoidance tests, it achieved zero collisions in the training scenario.
- Generalization: Remarkably, a DNC trained on only 15 agents successfully controlled a flock of 40 agents with less than a 2% increase in collision rates. This suggests the network successfully learned local interaction principles that scale beyond the training distribution.
Conclusion and Future Work
Neural Flocking successfully translates the high performance of centralized optimization into a fast, distributed format suitable for real-world swarms. While currently limited to 2D point-mass models, future work aims to extend this framework to 3D environments and incorporate complex quadrotor aerodynamics through transfer learning. By moving from "nearest N" to distance-based neighborhoods, the researchers hope to further align the model with physical sensor constraints.
Summary updated