Learning Decentralized Controllers for Robot Swarms with Graph Neural Networks

Ekaterina V. Tolstaya, Fernando Gama, James Paulos, George J. Pappas, Vijay Kumar, Alejandro Ribeiro

Abstract

We consider the problem of finding distributed controllers for large networks of mobile robots with interacting dynamics and sparsely available communications. Our approach is to learn local controllers that mimic the behavior of a "clairvoyant" centralized expert. By utilizing Graph Neural Networks (GNNs) to aggregate information over multiple communication hops, we enable individual robots to achieve global coordination, such as cohesive flocking, without a central leader.

Introduction

Controlling large-scale robot swarms presents a significant challenge in robotics. While centralized controllers—where a single processor manages all agents—can achieve optimal coordination, they scale poorly due to communication bottlenecks and represent a single point of failure. Conversely, decentralized control, where agents rely on local observations, is more robust but notoriously difficult to design. Purely local rules often fail to produce global behaviors; for instance, in flocking tasks, agents may lose group cohesion because they lack awareness of the swarm's overall state beyond their immediate neighbors.

Methodology

The proposed framework addresses these challenges by combining Imitation Learning with Delayed Aggregation Graph Neural Networks (GNNs).

Imitation Learning via DAgger

The researchers employ a "centralized expert" during the training phase—a controller with full access to the positions and velocities of every robot. The goal is to train a local GNN policy to mimic this expert. To ensure stability in states not encountered during expert demonstrations, the Dataset Aggregation (DAgger) algorithm is used, iteratively refining the policy based on the agent's own trajectories.

Delayed Aggregation GNNs

The swarm is modeled as a graph where robots are nodes and communication links are edges. Unlike standard GNNs designed for static graphs, the authors extended the architecture to handle time-varying topologies inherent in mobile swarms. By performing $K$ rounds of communication (hops), a robot can aggregate information from distant teammates. This "multi-hop" sensing allows agents to perceive trends several layers deep into the swarm while maintaining a decentralized communication structure.

Experimental Evaluation

The approach was validated in two distinct environments:

  1. Synthetic Point-Mass Simulator: A 2D environment used for initial training and testing of swarms ranging from 100 to 250 agents.
  2. AirSim: A high-fidelity quadrotor simulator used to test robustness against complex aerodynamics, latency, and higher-order dynamics.

Key Insights and Results

The Value of the "Hop"

A critical finding is that multi-hop information serves as the bridge between local and global control. As shown in the experimental results, increasing the number of communication hops ($K$) significantly improves performance and reduces the cost of coordination.

Impact of communication hops (K) on controller cost and scalability.

While a robot using only immediate neighbor data ($K=1$) often fails to maintain cohesion (resulting in high costs), those using $K=3$ or $K=4$ can anticipate wider flock movements, matching the performance of the centralized expert across varying swarm sizes.

Performance and Stability

In flocking tests, purely local controllers eventually resulted in swarm fragmentation. In contrast, GNN-based controllers maintained stable, cohesive flocks indefinitely, keeping velocity differences low and maintaining safe but close neighbor distances.

Comparison of GNN and local controllers across velocity difference, neighbor distance, and flocking stability.

The GNN controllers also demonstrated remarkable zero-shot scalability. Because the network weights are shared across all nodes, a controller trained on 100 agents could be deployed on 250 agents without further training. Furthermore, models trained on simple point-mass physics transferred successfully to the complex AirSim environment, indicating that the learned coordination logic is robust to underlying physical differences.

Conclusion and Future Work

This research demonstrates that GNNs can effectively learn decentralized controllers that achieve global swarm intelligence. By leveraging multi-hop communication, these controllers overcome the limitations of purely local sensing.

However, limitations remain. The system assumes the swarm remains sufficiently connected; if a subgroup breaks communication range entirely, they cannot rejoin the flock. Future work aims to incorporate hard safety and connectivity constraints directly into the neural network architecture to provide mathematical guarantees against collisions and fragmentation in cluttered environments.

Reference: Tolstaya, E., Gama, F., Paulos, J., Pappas, G., Kumar, V., & Ribeiro, A. (2019). Learning Decentralized Controllers for Robot Swarms with Graph Neural Networks. Proceedings of the 3rd Conference on Robot Learning (CoRL).

Summary updated

BibTeX
@inproceedings{tolstaya2019learning,
  author = {Ekaterina V. Tolstaya and Fernando Gama and James Paulos and George J. Pappas and Vijay Kumar and Alejandro Ribeiro},
  title = {{Learning Decentralized Controllers for Robot Swarms with Graph Neural Networks}},
  booktitle = {Conference on Robot Learning},
  year = {2019},
  url = {https://openreview.net/forum?id=dbz1MqwVnb},
}
Figure