Arbitrarily Scalable Environment Generators via Neural Cellular Automata

Yulun Zhang, Matthew C. Fontaine, Varun Bhatt, Stefanos Nikolaidis, Jiaoyang Li

TL;DR

Researchers have developed a way to generate massive, high-efficiency robot environments by optimizing Neural Cellular Automata (NCA) generators rather than the environments themselves. By training these generators on small grids using Quality Diversity (QD) algorithms, they can produce arbitrarily large warehouse and manufacturing layouts that maintain high throughput for thousands of robots—far exceeding the scalability of previous optimization methods.

What Problem Does This Paper Address?

Designing efficient layouts for multi-robot systems, such as automated warehouses, is a high-stakes optimization problem. A well-designed environment reduces traffic congestion and travel distances, directly increasing throughput.

However, current approaches face a "scalability wall." Previous state-of-the-art methods use direct search to optimize specific grid layouts. As the environment size grows, the search space increases exponentially, making it computationally impossible to optimize real-world scale warehouses (which can host thousands of robots). Furthermore, these direct-search methods often produce irregular, "noisy" patterns that don't translate well when scaled up. The authors aim to bridge this gap by creating a system that generates regularized, high-performance patterns that work at any scale.

Methods

The core innovation is shifting the optimization target from the environment to the generator.

  1. Neural Cellular Automata (NCA): Instead of a static map, the authors use an NCA—a grid of cells where each cell updates its state based on its neighbors using a small, shared neural network. Because NCAs rely on local interactions, a generator trained on a $36 \times 33$ grid can be applied to a $101 \times 102$ grid (or larger) simply by running more iterations.
  2. Quality Diversity (CMA-MAE): The authors use the CMA-MAE algorithm to evolve a diverse "archive" of NCA generators. They don't just want one good generator; they want a collection that produces different types of layouts (varying in entropy or shelf connectivity) to find the most robust patterns.
  3. MILP Repair: NCAs are "fuzzy" and might generate invalid layouts (e.g., disconnected paths). The system uses Mixed Integer Linear Programming (MILP) to minimally "repair" the generated grid, ensuring it meets hard constraints like robot reachability and storage capacity.
  4. Similarity Objective: To ensure the NCA learns to produce "naturally" valid patterns, the objective function includes a similarity score ($\Delta$). This rewards NCA generators whose output requires very little repair from the MILP solver, encouraging the emergence of clean, regularized structures.
Figure 2: Overview of our method of using CMA-MAE to train diverse NCA generators.

Datasets

The authors evaluated their method across three simulated domains:

  • Warehouse (Even & Uneven): Robots move between workstations and shelves. The "uneven" variant simulates realistic bottlenecks where certain workstations are much busier than others.
  • Manufacturing: A more complex domain where robots must visit three different types of workstations in a specific sequence.
  • Maze: A single-agent domain used to show that NCA-generated patterns can also help scale Reinforcement Learning (RL) policies.

Training was performed on small grids ($S$), while evaluation was conducted on much larger grids ($S_{eval}$), as summarized below:

Summary of experiment configurations for training (S) vs evaluation (Seval).

Key Insights and Ideas

  • Regularity is the Key to Scalability: Direct optimization (like the previous DSAGE method) creates "overfitted" layouts that look like random noise. These fail when scaled. NCAs naturally produce repetitive, tile-like patterns that maintain their logic even when the grid expands.
  • The "Repair" Feedback Loop: By penalizing the NCA for generating layouts that the MILP solver has to change significantly, the authors forced the neural network to learn the underlying "grammar" of a valid warehouse.
  • Emergent Traffic Management: In the "uneven" warehouse domain, the NCA generators learned to leave more open space near busy workstations to alleviate congestion—a strategy that emerged purely from optimizing for throughput.
  • Zero-Shot RL Scaling: An RL agent trained in a small NCA-generated maze could solve a much larger maze of the same style with a 93% success rate, compared to only 22% in human-designed baselines. This suggests NCA generators create "locally consistent" features that RL policies can exploit.

Key Results

  • Massive Robot Scaling: The NCA-generated environments successfully supported up to 2,350 robots in the manufacturing domain and 1,400 robots in the warehouse domain.
  • Throughput Superiority: As shown in Figure 3, NCA-generated environments (green/purple lines) maintain high throughput as the number of agents increases, whereas human-designed (blue) and previous optimized (orange) layouts suffer from early congestion and performance collapse.
  • Computational Efficiency: While optimizing a large environment directly is impractical, the NCA approach only requires running the expensive MILP repair once at test time after the generator is trained.
Figure 3: Throughput with an increasing number of agents in environments of size S (a-c) and Seval (d-f). For size S, we run 50 simulations and increase the number of agents by a step size of 10. For Seval, we run 50 and 20 simulations and increase the number of agents by step sizes of 25 and 50 in warehouse and manufacturing domains, respectively. The solid lines are the average throughput while the shaded area shows the 95% confidence interval.

Limitations and Future Work

  • Finite Compute Limits: While theoretically "arbitrarily" scalable, the authors noted that their current hardware limited testing to roughly $100 \times 100$ grids.
  • Grid Constraints: The current work is limited to 4-neighbor grid worlds and undirected movement. Real warehouses might use directed "lanes" or irregular, non-grid shapes.
  • Safety and Real-world Physics: The simulations focus on throughput and congestion but ignore low-level safety measures and complex physical dynamics (like floor friction or battery levels) that would be critical for a real-world deployment.

The authors suggest that future work could explore generating environments with directed movement graphs or applying these generators to 3D structures.

Summary updated

BibTeX
@inproceedings{zhang2024arbitrarily,
  author = {Yulun Zhang and Matthew C. Fontaine and Varun Bhatt and Stefanos Nikolaidis and Jiaoyang Li},
  title = {{Arbitrarily Scalable Environment Generators via Neural Cellular Automata}},
  booktitle = {SOCS},
  year = {2024},
  doi = {10.1609/socs.v17i1.31594},
}
Figure