When pixels learn to repair themselves: the magic of NCAs
Neural cellular automata, or NCAs, allow pixels to cooperate locally to grow, rebuild, and stabilize an image, much like living cells that heal.
What if an image no longer merely displayed itself, but also knew how to grow back after being damaged? That is one of the promises of Neural Cellular Automata (NCAs). In these models, each pixel acts like a tiny cell: it observes its neighbors, exchanges information with them, and updates its state. Repeated dozens or hundreds of times, this local conversation can bring forth a complete image — and sometimes rebuild it after degradation.
Pixels that “talk” to their neighborhood
A traditional cellular automaton relies on a simple rule applied to a grid. Each cell evolves according to the state of nearby cells. John Conway’s famous Game of Life is the best-known example: with just a few basic rules, complex behaviors emerge.
NCAs build on this idea, but replace hand-written rules with a small trained neural network. Instead of explicitly saying, “if three neighbors are colored, then color this pixel,” researchers ask the system to learn a development rule. Each cell generally has an internal state: visible color, latent information, and sometimes a signal indicating whether it is active. At each step, it analyzes a small neighborhood — often a 3 × 3-pixel area — and then slightly adjusts its own state.
The result is surprising: rather than drawing an image all at once, the model learns to grow it. Starting from a small seed, a few pixels can gradually produce a target shape, pattern, or emblem.
Repair at the heart of scientific interest
The most spectacular demonstration occurs when part of the generated image is erased. If the NCA has been trained for this purpose, the remaining pixels can restart the local growth process and fill in the missing area. This ability is not simply a matter of copying neighboring pixels: the system must recover an organization consistent with the entire form it has learned to produce.
This property evokes biological regeneration. When tissue is injured, cells do not necessarily have a global map of the organism to rebuild. They respond to local signals, communicate with their environment, and help restore a structure. Research on NCAs and their links to biology explores precisely this analogy between distributed computation, morphogenesis, and repair.
Intelligence without a conductor
The strength of NCAs lies in their decentralized operation. There is not necessarily a central program controlling every pixel. Each cell applies the same neural rule, yet the whole system brings forth an organized structure. This approach can make systems more robust: if one part is removed, the surviving cells can sometimes restore the pattern.
To train an NCA, researchers compare the image obtained after several iterations with the desired image. The error is then used to adjust the neural network’s parameters. To prevent the model from being able to produce the image only from an ideal situation, it can be exposed during learning to varied states, including partially damaged versions of its own creation.
Applications still being explored
The envisioned applications go beyond image generation. NCAs are of interest for computer vision, procedural textures, the simulation of natural phenomena, and so-called morphological robotics, where a system’s shape and behavior evolve together. They also provide a research tool for studying how local rules can produce stable global behaviors.
But the comparison with living systems has its limits. An NCA does not “understand” its drawing and does not heal like an organism. It optimizes parameters to achieve a learned result. Its robustness depends heavily on the training data, the chosen architecture, and the type of disruption encountered.
One particularly fruitful idea remains: instead of programming every detail of an image or an object, it may be possible to program the rules of its growth and repair. NCAs thus offer an original way of thinking about artificial intelligence: no longer as a system that directly produces an answer, but as a multitude of small units that cooperate until a form emerges.