Skip to main content
QUICK REVIEW

[Paper Review] Texture Generation with Neural Cellular Automata

Alexander Mordvintsev, Eyvind Niklasson|arXiv (Cornell University)|May 15, 2021
Cellular Automata and ApplicationsComputer Science27 references6 citations
TL;DR

This paper proposes a novel texture generation method using Neural Cellular Automata (NCA) that learns local, differentiable update rules from a single template image. By training the NCA via backpropagation through time, the model achieves fast, high-fidelity texture synthesis with inherent robustness to damage and adaptability to new grid topologies, demonstrating a learned distributed algorithm for texture formation.

ABSTRACT

Neural Cellular Automata (NCA) have shown a remarkable ability to learn the required rules to "grow" images, classify morphologies, segment images, as well as to do general computation such as path-finding. We believe the inductive prior they introduce lends itself to the generation of textures. Textures in the natural world are often generated by variants of locally interacting reaction-diffusion systems. Human-made textures are likewise often generated in a local manner (textile weaving, for instance) or using rules with local dependencies (regular grids or geometric patterns). We demonstrate learning a texture generator from a single template image, with the generation method being embarrassingly parallel, exhibiting quick convergence and high fidelity of output, and requiring only some minimal assumptions around the underlying state manifold. Furthermore, we investigate properties of the learned models that are both useful and interesting, such as non-stationary dynamics and an inherent robustness to damage. Finally, we make qualitative claims that the behaviour exhibited by the NCA model is a learned, distributed, local algorithm to generate a texture, setting our method apart from existing work on texture generation. We discuss the advantages of such a paradigm.

Motivation & Objective

  • To develop a texture generation method that learns from a single example image using a biologically plausible, locally interacting system.
  • To investigate whether Neural Cellular Automata can learn a distributed, algorithmic process for texture synthesis that mimics natural pattern formation.
  • To explore the robustness and adaptability of trained NCA models to structural changes like grid topology shifts or cell damage.
  • To demonstrate that NCA-based texture generation achieves high fidelity and fast convergence with minimal assumptions on the underlying state manifold.
  • To show that the learned NCA rules generalize across different computational implementations, such as square and hexagonal grids.

Proposed method

  • The method uses a 2D grid of homogeneous cells, each applying a shared differentiable update rule based on local neighborhood states.
  • The update rule is learned via backpropagation through time using a differentiable loss function that minimizes the difference between generated and target texture distributions.
  • Local spatial derivatives (gradients and Laplacians) are computed using fixed 3x3 convolutional kernels (Sobel and 9-point Laplacian), forming a perception vector for each cell.
  • The system evolves asynchronously over discrete time steps, with the state vector updated using a learned function applied to the perception vector.
  • The model is trained on a single input texture image, with the goal of generating similar textures quickly and efficiently.
  • Post-training adaptations include changing the grid topology (e.g., square to hexagonal) or rotating local gradient vectors to project textures onto vector fields without retraining.

Experimental results

Research questions

  • RQ1Can Neural Cellular Automata learn a local, differentiable rule that generates high-fidelity textures from a single example image?
  • RQ2Does the learned NCA rule exhibit properties of a distributed, algorithmic process for texture formation, rather than mere pixel reconstruction?
  • RQ3How robust is the NCA model to structural perturbations such as cell deletion or grid topology changes?
  • RQ4Can the trained NCA generalize to new computational environments, such as non-square grids or rotated gradient fields, without retraining?
  • RQ5To what extent does the NCA model approximate a PDE-based reaction-diffusion system in its learned dynamics?

Key findings

  • The NCA model achieves fast convergence and high-fidelity texture synthesis from a single template image, with generation being embarrassingly parallel and efficient.
  • The model demonstrates inherent robustness to damage, such as deletion of individual cells or groups, with the pattern self-healing in a consistent manner.
  • The learned NCA rule generalizes across different grid topologies—e.g., the same rule successfully generates textures on both square and hexagonal grids when using appropriate convolution kernels.
  • By rotating local gradient vectors before application, the NCA can project textures onto arbitrary vector fields without retraining, demonstrating strong inductive bias and generalization.
  • The model learns a distributed, local algorithm for texture formation, as evidenced by non-stationary dynamics and emergent pattern coherence, distinguishing it from standard GAN or optimization-based methods.
  • The training process effectively identifies a PDE-like rule within a family of reaction-diffusion systems, even in discretized time and space, suggesting NCA as a differentiable approximation of natural pattern-forming processes.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.