Learning to flock in open space by avoiding collisions and staying together

Martino Brambati, Antonio Celani, Marco Gherardi, Francesco Ginelli
6/18/2025
cond-mat.softcs.MAphysics.bio-ph

No confident code implementation found for this paper.

Abstract

We investigate the emergence of cohesive flocking in open, boundless space using a multi-agent reinforcement learning framework. Agents integrate positional and orientational information from their closest topological neighbours and learn to balance alignment and attractive interactions by optimizing a local cost function that penalizes both excessive separation and close-range crowding. The resulting Vicsek-like dynamics is robust to algorithmic implementation details and yields cohesive collective motion with high polar order. The optimal policy is dominated by strong aligning interactions when agents are sufficiently close to their neighbours, and a flexible combination of alignment and attraction at larger separations. We further characterize the internal structure and dynamics of the resulting groups using liquid-state metrics and neighbour exchange rates, finding qualitative agreement with empirical observations in starling flocks. These results suggest that flocking may emerge in groups of moving agents as an adaptive response to the biological imperatives of staying together while avoiding collisions.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{brambati2025learning,
  title  = {Learning to flock in open space by avoiding collisions and staying together},
  author = {Martino Brambati and Antonio Celani and Marco Gherardi and Francesco Ginelli},
  year   = {2025},
  eprint = {2506.15587},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.15587v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.15587.svg)](https://codeofpaper.com/paper/2506.15587)

Discussion