Skip to content
Robotics.world

Research

Distributed Swarm Morphogenesis with Neural Cellular Automata

Most shape-formation methods for robot swarms assume that the target geometry is already known and handed to the robots as a list of goal positions. This paper asks whether the shape itself can be…

The paper’s first page · arXiv:2610.31900
arXiv
2610.31900 · Preprint · not peer-reviewed
Published
2026-10-22
Authors
Ray Verma, Eliseo Ferrante, Anthony Tzes

In plain words

Most shape-formation methods for robot swarms assume that the target geometry is already known and handed to the robots as a list of goal positions.

AI summary

Overview

Research area: Swarm robotics, multi-robot formation control, and learned morphogenesis using neural cellular automata (NCA).

Technical level: Advanced — the paper assumes familiarity with neural cellular automata, backpropagation through time, rigid-body (least-squares) frame alignment, and distributed assignment/control for multi-robot systems.

Scope: The paper proposes a modular framework in which a trained NCA lets a swarm of robots discover attachment sites locally and grow into a desired lattice shape, validated in simulation with up to several hundred robots and on eight Crazyflie quadrotors.

What This Paper Is About

Most shape-formation methods for robot swarms assume that the target geometry is already known and handed to the robots as a list of goal positions. This paper asks whether the shape itself can be grown from local rules instead: robots already in the formation run a small learned neural update on their local neighborhood and advertise the next cells that should be occupied, so the structure develops incrementally without any robot holding a deployment-time goal list. The goal is to make this developmental process work under the messy realities of physical assembly, where robots arrive asynchronously and only a partial structure exists at any moment.

Key Contributions

  1. A modular lattice-morphogenesis framework. The system separates learned attachment-site generation from distributed assignment and collision-aware control, so the assignment and control modules can be swapped out without retraining the NCA. The reported implementation uses the artificial-light-field (ALF) assignment and constrained controller of Li et al. [7].

  2. Distributed attachment-site discovery. Attached robots (called Advertisers) maintain and exchange local NCA states, update a 5×5 state patch, and advertise unoccupied neighboring cells whose predicted alpha value exceeds a threshold. Unattached robots (Joiners) select these advertised cells, attach, and then become Advertisers themselves — enabling progressive growth without a predefined site list.

  3. Offline sparse-retention fine-tuning. Standard Growing NCAs are trained on virtual grids where cells can activate freely and ahead of the structure. The authors introduce rollouts that simulate gradual, partial attachment — retaining only a random subset of candidate frontier cells at each step and pruning state far from occupied cells — so the NCA sees the restricted regime it will actually encounter during deployment.

  4. A false-positive loss. Because adjacency alone cannot rule out invalid sites, an additional penalty suppresses alpha activation on cells outside the desired morphology, combined with the final RGBA reconstruction loss.

Main Findings

  • Diverse morphologies form from local rules only: Four target shapes — Lizard, Tree, Pretzel, and Hand-heart — were assembled in simulation with 250 robots, and the runs converged toward F1 scores close to 1 (F1 is a Dice overlap between occupied cells and the desired morphology), without a deployment-time goal list.

  • Shape geometry affects formation speed: Morphologies that expand broadly in multiple directions, such as Tree, form faster, while those with narrow paths or constrained branches, such as Lizard and Hand-heart, require longer formation times.

  • Scaling behavior is favorable: In the scaling study on the Tree morphology, saturation time grows approximately linearly with robot count while the final F1 score decreases only slowly, indicating morphologies remain stable across scale. The abstract describes scaling to several hundred robots.

  • Fine-tuning drives most of the accuracy gain: On Tree with 250 robots, standard Growing NCA reached F1 = 0.583 (std. 0.107); adding sparse-retention fine-tuning raised this to 0.764 (std. 0.141); adding the false-positive loss reached 0.988 (std. 0.004) — a large gain in both mean accuracy and run-to-run consistency.

  • Physical execution works: Eight Crazyflie quadrotors assembled the lattice morphologies E and 4. Because the platform lacks the required relative-position sensing, Lighthouse tracking and centralized computation served as an experimental interface to reconstruct local-frame observations and return body-frame velocity commands, preserving the algorithm's local information structure. The paper reports that these experiments demonstrate the pipeline despite localization noise, actuation error, and asynchronous motion.

  • Not reported numerically: The paper does not give explicit final F1 values or exact saturation times for the four 250-robot morphologies beyond stating they converge close to 1, nor does it state the specific robot counts swept in the Tree scaling study.

Methodology in Plain English

Setup. Robots live on a symbolic square lattice with a fixed physical spacing (ℓ_space = 0.5 in the reported parameters). One robot is the stationary seed at cell (0,0). Each cell holds a state vector of C = 16 channels: red, green, blue, and alpha, plus internal channels. RGB describes appearance; alpha predicts whether the cell belongs to the shape. Only one robot may occupy a cell, and the target shape must contain no more cells than there are robots.

Two temporary roles. An Advertiser is a robot already attached to the formation. It keeps a persistent 5×5 patch of NCA state centered on its own cell, refreshes it with states broadcast by nearby Advertisers, applies the shared NCA update rule, and then looks at its four cardinal neighbors. Any unoccupied neighbor whose updated alpha exceeds θ_α = 0.5 is advertised, along with its symbolic coordinate and NCA state. A Joiner is an unattached robot that hears advertisements, picks one, flies to it, and — once attached — becomes an Advertiser and starts advertising in turn.

Translating lattice coordinates into body-frame targets. A Joiner sees neighbors in its own body frame but receives sites in lattice coordinates. It solves a rigid least-squares alignment (rotation in SO(2) plus translation) between scaled lattice coordinates and observed neighbor positions, assuming enough sensing range to see three adjacent robots. Early on, when fewer than two attached robots exist, the first robot to attach to a seed-advertised cell simply defines the initial lattice axis from its own body frame.

Handling duplicate advertisements. If several Advertisers advertise the same cell, the Joiner averages their alpha values to evaluate the site, then deterministically picks one full NCA state to initialize its own patch once attached.

Who picks which site. Joiners use the distributed artificial-light-field assignment of [7], which assigns intensities from locally observed robot positions and favors lower-intensity candidates — effectively steering robots toward nearby cells with low robot density. The constrained controller of [7] then turns weighted goals into velocity commands while balancing goal tracking, collision avoidance, and velocity smoothing under speed and safety limits.

Training, in two stages. First, a standard Growing NCA learns to reconstruct the reference image: a convolution reads each cell's 3×3 neighborhood, a shared network predicts a state change, the change is added to the state, and a stochastic per-cell mask emulates asynchronous updates. Training unrolls H = 64 to 96 steps and backpropagates through time to minimize a mean-squared-error RGBA reconstruction loss. Second, sparse-retention fine-tuning replays the assembly process virtually: update the state, find frontier cells adjacent to the occupied region, randomly retain a subset of candidates as newly attached, and zero out state that is neither occupied nor adjacent to an occupied cell. The retention distribution picks no candidates with probability 0.15, all with probability 0.10, and otherwise keeps candidates independently with probability drawn from Uniform(0.1, 0.6). These restricted rollouts are mixed with ordinary rollouts, and a false-positive penalty (τ_fp = 0.2, loss weights λ_FP = 2.0 and λ_RGBA = 4.0) penalizes alpha activation on background cells. Weights are frozen at deployment.

Evaluation. Accuracy is measured as F1 between occupied and desired cells, and saturation time is the earliest time after which F1 stays within 5% of its terminal value. Results are averaged over 30 random seeds, with initial robot positions sampled uniformly in the arena and asynchronous, robot-local updates.

Why This Matters

Impact on research. The paper's stated novelty is that, to the authors' knowledge, NCAs have not previously been established for morphogenesis in swarms of independently mobile robots, and no existing method uses learned NCAs for distributed attachment-site discovery in mobile robot swarms. The ablation makes a second, methodological point: a standard Growing NCA can drop to F1 = 0.583 under gradual physical assembly, and the sparse-retention plus false-positive recipe recovers it to 0.988. That gap suggests that developmental models for robotics need to be trained under the same partial-structure conditions they will face at deployment.

Real-world applications:

  • GNSS-denied operations — the paper explicitly motivates local-relative sensing without globally referenced robot poses, relevant where GPS or motion capture is unavailable.
  • Coordinated aerial displays — large formations that must scale or adapt across environments.
  • Distributed inspection and search/surveillance — structures that need to reconfigure as the environment or task changes.
  • Defence and infrastructure monitoring — the paper lists defence among motivating applications.

Industry relevance. The framework's modularity is its practical selling point: the NCA layer generates sites, and any compatible assignment and control stack can be plugged in. That means drone-show companies or inspection providers could adopt the developmental layer on top of controllers they already trust, rather than replacing their entire autonomy stack. The Crazyflie experiments, while reliant on external tracking, show the pipeline closing the loop on real hardware.

Future Directions

  • Onboard relative sensing. The hardware study used Lighthouse tracking plus centralized computation because the Crazyflie platform lacked the required relative-position sensing. Closing this gap with onboard vision, ranging, or distance-only measurements would make the framework actually infrastructure-free, which is the paper's core motivation.
  • Scaling the physical validation. Hardware tests covered eight quadrotors and two simple shapes (E and 4), while simulation covered 250 robots and four complex morphologies. Whether the F1 = 0.988-level accuracy survives tens or hundreds of physical robots under real noise is untested.
  • Beyond lattice morphologies. The approach assumes a symbolic square lattice with one robot per cell and rigid frame estimation requiring roughly three visible neighbors. Extending to general graphs (as graph NCA work suggests) or to three-dimensional structures is an open question.
  • Generalizing across shapes. A dedicated NCA is trained offline for each desired morphology. Whether a single conditional or multi-task model could handle many shapes without per-shape training is not addressed.

Target Audience

Researchers and graduate students in swarm robotics, multi-robot formation control, and embodied artificial life who are interested in replacing hand-designed assembly rules with learned local developmental policies. It is also useful for practitioners building decentralized drone fleets who want to understand what a learned morphogenesis layer adds on top of conventional assignment and collision-avoidance controllers, and for NCA researchers looking for a physical robotics testbed beyond image generation and simulated soft robots.

Authors’ abstract

Swarm morphogenesis requires robots to assemble desired shapes through local interactions. We present a modular framework integrating neural cellular automata (NCA) with existing site selection and collision-aware control. Within this framework, we introduce a decentralized attachment-site discovery mechanism. Robots already in the formation update and share local NCA states to identify new attachment sites, enabling progressive growth without a predefined list of sites…

The full abstract on arXiv
Read the original paper

Related papers