cs.NENov 24, 2026

NCPU: Towards Cell-Inspired Spatial Computing

Authors: Iliya Zhechev, Piotr Walas

Organizations: Sofia University, Bulgaria · Warsaw University of Technology, Poland

Abstract

Simple cellular automata (CAs) can be computationally universal, but their rules are designed by hand. We train Neural Cellular Automata (NCAs), which learn a local update rule by gradient descent, to compute exact digital logic. Bits are encoded as clusters of cells on a 2D grid, and a result reaches the output only by propagating through intermediate cells. One model is trained per task: logic gates, 4- and 8-bit ripple-carry adders, and a preliminary 8-bit arithmetic logic unit (ALU). All gate and adder models reach 100% bit correctness in 10 of 10 seeds, and exhaustive tests over all input pairs find at most 1 error in 256 (4-bit) and 7 in 65,536 (8-bit). Adders trained on operands of up to 3 bits generalize to 8 bits. The adders propagate the carry as a wave, with a delay of about 3.5 steps per bit of the carry chain. Outputs are correct only within the trained rollout length.

Figures & tables

Explore similar work

CardsList
  1. Reasoning with Neural Cellular Automata

    Sep 28, 2026Mayalen Etcheverry, Pietro Miotti, Aidan Sirbu +7Neural Cellular AutomataNeural Network Generalization

  2. A New Kind of Network? Review and Reference Implementation of Neural Cellular Automata

    Apr 27, 2026Martin Spitznagel, Janis KeuperNeural Cellular AutomataCellular Automata

  3. Visualising the Attractor Landscape of Neural Cellular Automata

    Apr 12, 2026James Stovold, Mia-Katrin Kvalsund, Harald Michael Ludwig +2Neural Cellular AutomataNeural Network Interpretability