Introduction
Neural Cellular Automata (NCA) are bio-inspired models that grow complex structures from simple, local rules. While traditional NCAs are effective at regenerating specific patterns from a single seed, they often struggle with versatility and robustness. Most NCA models are "one-trick ponies," requiring separate training for each target output and failing when presented with noisy or out-of-distribution (OOD) inputs. This paper introduces GANCA, a framework that combines the iterative growth of NCAs with the competitive training of Generative Adversarial Networks (GANs) to create a single, robust model capable of generating diverse outputs from edge-based environments.
Methodology: The GANCA Architecture
The core innovation of GANCA lies in its dual-component structure: an NCA generator and a standard convolutional discriminator. Unlike previous NCAs that start from a blank pixel seed, GANCA utilizes an edge image (derived via Canny filters) as the initial state. This environment provides the necessary spatial cues for the model to "color in" the desired shape.
The generator consists of a small NCA (approximately 20,000 parameters) that performs iterative updates. Each cell (pixel) observes its $3 \times 3$ neighborhood and applies a $1 \times 1$ convolution to determine its next state. This local interaction allows global patterns to emerge without a centralized controller. To ensure high-quality results, the model is trained adversarially; the discriminator learns to distinguish between ground-truth emojis and those grown by the NCA, forcing the generator to produce realistic textures and colors.
Datasets and Robustness
The model was evaluated using the Windows 10 Segoe UI Emoji font, covering 50 distinct emoji faces and various nature-themed icons. A critical aspect of this research is the transition from clean digital edges to "out-of-distribution" inputs.
As shown in the figure above, the OOD set consists of hand-drawn sketches with irregular line widths and imperfect geometry. While standard supervised NCAs (trained with L2 loss) often produce artifacts when faced with such noise, the GANCA framework demonstrates remarkable stability, successfully mapping these messy inputs to the learned emoji style.
Key Insights
- Parameter Efficiency: Despite its small size, the NCA stores significant reconstructive information within its iterative process rather than just its weights.
- Emergent Stability: By employing "persistence" training—where the model's output is fed back into the training loop—the generated images remain stable over hundreds of iterations instead of dissolving into noise.
- Adversarial Generalization: Adversarial training encourages the model to learn the underlying distribution of the target images, making it far more resilient to input perturbations than pixel-wise supervised methods.
Conclusion and Future Directions
GANCA represents a significant step toward more adaptable and robust bio-inspired generative models. By moving away from fixed seeds to environmental edge-conditioning, a single model can now handle multiple tasks. Future work will focus on scaling these models to higher resolutions and exploring real-time interactive applications, such as assistive drawing tools that dynamically colorize user sketches.
Summary updated