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

Discovery and Deployment of Emergent Robot Swarm Behaviors via Representation Learning and Real2Sim2Real Transfer

Connor Mattson, Varun Raveendra, Ricardo Vega, Cameron Nowzari, Daniel S. Drew, Daniel S. Brown

Abstract

This paper introduces a pipeline to automatically discover and deploy emergent swarm behaviors on real robots without requiring human-designed metrics. By combining self-supervised representation learning (SimCLR) with a "Real2Sim2Real" (RSRS) transfer process, the researchers successfully discovered behaviors like aggregation and cyclic pursuit in simulation and deployed them onto low-cost hardware with a 90% success rate.

Introduction

In swarm robotics, "emergent behaviors"—complex collective patterns arising from simple local rules—are notoriously difficult to design. Traditionally, researchers have relied on human intuition to hand-craft "fitness metrics" (e.g., measuring how close robots are to each other) and high-fidelity simulations. However, this approach has two major flaws. First, hand-crafted metrics limit discovery to behaviors we already expect. Second, the "reality gap" means that behaviors that look great in a simulator often fail on real hardware due to unmodeled physics like friction, sensor noise, or battery levels. This paper seeks to automate the discovery process while ensuring that what works in simulation actually works in the real world.

Methods

The authors propose a three-pillar approach to bridge the gap between simulation and reality while automating behavior discovery.

The automated pipeline for discovering and deploying swarm behaviors through RSRS and representation learning.

Real2Sim2Real (RSRS) Simulator Design

Instead of building a perfect physics engine, the researchers measured the actual capabilities of their low-cost robots (the HeRo+) and intentionally under-represented them in the simulator. By making the simulated robots slightly less capable than the real ones (e.g., accounting for friction and sensor range limits), they ensured that any behavior discovered in simulation was robust enough for the real world. Hardware upgrades, including Time-of-Flight (ToF) laser sensors, provided the reliable sensing necessary for stable emergent behavior.

Self-Supervised Representation Learning

To avoid hand-crafting metrics, the system uses SimCLR, a contrastive learning framework. The model was trained on a dataset of 6,000 unlabeled greyscale videos (64x64 resolution, 600 timesteps) from the RSRS-tuned simulator. SimCLR learned to map these videos into a low-dimensional "latent space" where similar behaviors are grouped together, effectively learning what constitutes a "behavior" autonomously.

Using an evolutionary algorithm, the system searches for robot controllers that produce "novel" embeddings in the learned latent space. Instead of rewarding a specific goal, the algorithm rewards controllers that do something different from what has been seen before.

Key Results

The system successfully discovered and deployed three distinct, stable collective behaviors: Aggregation, Cyclic Pursuit, and Dispersal, all without human-defined mathematical definitions.

Time-series sequences of discovered behaviors (a-c) and simulation trajectories of behaviors that failed real-world deployment (d-e).

Deployment Performance

Using the RSRS-tuned simulator, 70% of discovered behaviors worked "one-shot" on real robots. With minor adjustments to starting positions, the success rate increased to 90%. Without the RSRS improvements (using a "default" simulator), the one-shot success rate was only 22%.

SimCLR vs. Human Metrics

The self-supervised model outperformed traditional hand-crafted metrics, particularly in distinguishing "Dispersal" (robots spreading out) from random noise—a task where human-designed metrics often struggle.

The "Milling" Mirage

The search discovered behaviors like "Milling" (swirling) and "Wall-Following" in a standard simulator. However, when tested on real robots, they failed due to real-world friction. This proved that a "naive" simulator discovers too many behaviors that aren't physically viable, highlighting the necessity of the RSRS approach.

Conclusion

This work demonstrates a viable path toward automated swarm intelligence. While the discovery is automated, the robots currently rely on a centralized server for initialization. Future work will focus on decentralized control and exploring how changing the environment itself might act as a catalyst for discovering entirely new classes of swarm behavior.

Summary updated

BibTeX
@inproceedings{mattson2025discovery,
  author = {Connor Mattson and Varun Raveendra and Ricardo Vega and Cameron Nowzari and Daniel S. Drew and Daniel S. Brown},
  title = {{Discovery and Deployment of Emergent Robot Swarm Behaviors via Representation Learning and Real2Sim2Real Transfer}},
  booktitle = {AAMAS},
  year = {2025},
}
Figure