arXiv:2610.08479cs.LGOct 2026

Manuscript Offprint

arXiv:2610.08479

MetaLearnNCA: Few-Shot Offline Meta-Learning via Interacting Neural Cellular Automata

Etienne Guichard, Stefano Nichele

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Few-shot meta-learning traditionally formulates task adaptation either as analytical gradient descent through unrolled computational graphs or as metric-based distance comparisons over flattened 1D feature vectors, which either incur costly test-time backpropagation or discard native 2D spatial geometry. In this work, we propose METALEARNNCA, a decentralized framework that achieves few-shot adaptation through the dynamical interaction of coupled Neural Cellular Automata (NCAs) without computing analytical gradients during inference. METALEARNNCA decomposes task adaptation into an Active-NCA, which executes task inference conditioned on a continuous 2D spatial memory grid termed the spatial program, and a learned Meta-NCA, which acts as a decentralized cellular optimizer by diffusing spatial error residuals across local neighborhoods to dynamically update this program. METALEARNNCA is competitive against canonical meta-learners in-distribution (96.12% on Omniglot) with Out-Of-Distribution transfer gains on MNIST, KMNIST, and Fashion-MNIST transfer across 10 independent testing seeds across 1-, 5-, and 10-shot regimes (e.g., surpassing Prototypical Networks by +10.54% on 10-shot MNIST and a +3.87% gain on 10-shot Fashion-MNIST over FOMAML). Our results establish that robust, gradient-free learning-to-learn can emerge from decentralized cellular dynamics on non-von Neumann substrates.

1 Introduction

Few-shot meta-learning seeks to equip computational systems with the ability to acquire novel concepts rapidly from minimal supervision [Hospedales et al., 2021, Vinyals et al., 2016]. In biological organisms, this learning-to-learn capacity emerges not from monolithic, centralized gradient updates across billions of parameters, but through coordinated, decentralized cellular processes operating under strict physical and energetic constraints [Levin, 2019]. Recently, Neural Cellular Automata (NCAs) [Mordvintsev et al., 2020] have emerged as a compelling paradigm of decentralized computing. Characterized by uniform local transition rules, translational invariance, and extreme parameter efficiency, NCAs have demonstrated remarkable prowess across morphogenesis [Mordvintsev et al., 2020], robust functional regeneration, texture synthesis [Niklasson et al., 2021], and spatial reasoning tasks—often utilizing orders of magnitude fewer parameters than conventional deep architectures.

Crucially, recent investigations reveal that the representational capacity of NCAs extends beyond static pattern formation. Studies have demonstrated that NCAs organize their latent, non-observable channels into structured functional representations [Guichard and Nichele, 2026, Montero et al., 2026, Randazzo et al., 2020]. For instance, NCAs can learn reusable functional primitives in hidden state channels that are subsequently recombined to execute hierarchical, multi-stage behaviors [Guichard et al., 2025b, Montero et al., 2026]. Furthermore, partitioning NCA states into private, immutable channels enables universal cellular computation, where distinct sub-channels act as isolated memory registers or programmable routing mechanisms [Béna et al., 2025]. In discriminative settings, NCAs have been shown to encode orthogonal, task-relevant representations within their latent channels; remarkably, features distilled from one NCA can bootstrap another to achieve competitive one-shot recognition [Guichard and Nichele, 2026]. This body of evidence points toward an unexplored frontier: the localized, recurrent hidden channels of NCAs provide a natural substrate for decentralized, gradient-free meta-learning.

In contrast, current deep meta-learning paradigms suffer from fundamental trade-offs: gradient-based approaches [Finn et al., 2017, Nichol et al., 2018] require unrolling computational graphs and executing costly backpropagation during test-time inference, while black-box and in-context methods [Santoro et al., 2016, Brown et al., 2020] avoid test-time gradients only at the expense of massive parameter footprints ( 108−101110^{8}-10^{11} parameters), quadratic sequence complexity, and an absence of native 2D spatial inductive biases.

To bridge this divide, we propose MetaLearnNCA, a decentralized framework that achieves few-shot offline adaptation without computing gradients at test time. MetaLearnNCA decomposes task adaptation into the dynamical interaction of two localized cellular systems:

• An Active-NCA, which executes the primary task (e.g., visual character classification) conditioned on a localized, spatial memory grid termed the spatial program

• A Meta-NCA, which functions as a decentralized, learned cellular optimizer. Rather than calculating explicit gradients via chain-rule backpropagation, the Meta-NCA receives spatial residual error maps computed on the support set. Over a sequence of localized homogeneous transition functions, the Meta-NCA processes these residual errors and writes updated steering signals directly into the spatial program.

During adaptation, the Active-NCA and Meta-NCA communicate iteratively in a closed feedback loop: task inference produces residual errors, and cellular dynamics refines the spatial program. Once adaptation on the support set concludes, the resulting spatial program is frozen and broadcast across query instances. The query predictions are then computed purely through forward cellular unrolling—demanding zero gradient computation at adaptation or inference time.

Contributions. (1) We introduce METALEARNNCA, an offline meta-learning framework realizing few-shot adaptation via coupled NCAs that eliminates test-time backpropagation while maintaining a compact < 120k parameter footprint; (2) we formulate a spatially distributed conditioning mechanism where a learned Meta-NCA translates pixel-wise residual errors into persistent pre-activation program channels; and (3) we demonstrate good empirical performance, with competitive performance on in-distribution (96.12% on Omniglot) with Out-Of-Distribution transfer gains on MNIST, KMNIST, and Fashion-MNIST.

References (37)