arXiv:2610.40757cs.LGOct 2026

Manuscript Offprint

arXiv:2610.40757

AutoHebb: Self-Modifying Neural Networks that Zero-Shot Infer and Continually Learn

Daniel Levine, David van Dijk, Kenneth Kay

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

Abstract

Humans and animals have a unique capacity to generalize and learn in novel circumstances. This capacity manifests in various ways, including "0-shot" inference (ZI) and continual learning (CL) — two distinctively powerful cognitive abilities. Despite this importance, efforts to model and explain ZI and CL are seriously limited in several ways. First, existing models typically lack components critical to ZI and CL in the brain, namely, strong inductive biases (for ZI) and autonomous control of learning (for CL). Second, models that incorporate brain-like components can be less tractable to analysis if model components are overly complex (lacking simplicity), or too restricted to narrow problem classes if model components are overly bespoke (lacking expressivity).

To address these limitations, we introduce autonomous Hebbian networks ("AutoHebb"), a class of online learning neural networks that realize strong inductive biases and autonomously controlled learning, and are composed of simple yet expressive feedforward architectures. Unlike conventional models that learn via externally controlled optimization (e.g. standard gradient descent), these networks contain auxiliary architecture that combines external feedback with internally generated activity to produce a global learning signal (neuromodulator) fed back to the network. This global learning signal in turn gates a biologically grounded local learning rule (3-factor Hebbian rule) that updates plastic weights within the network. Using meta-learning to search for appropriate fixed (non-plastic) weights, we find that AutoHebb networks (i) succeed on ZI tasks, (ii) exhibit a collection of emergent (untrained) ZI and CL abilities, including rapid knowledge assembly and length generalization, (iii) admit reverse-engineering into explicit learning-inference algorithms that are in turn amenable to theoretical analysis, and (iv) outperform competitive learning models on both ZI and CL tasks, including learning multiple 0-shot tasks. Lastly, performance comparisons to models closely related to AutoHebb yet lacking specific components of AutoHebb implied an essential role for three model components: meta-learning, Hebbian plasticity, and autonomous neuromodulatory control. These findings indicate that AutoHebb may be useful in hypothesis generation, analysis, and discovery of biologically grounded forms of learning and generalization.

1 Introduction

Humans and animals routinely encounter novel circumstances across a lifetime. Novel circumstances present a double challenge: first, generalization, which entails drawing upon prior knowledge to respond appropriately; second, learning, which entails acquiring knowledge while retaining prior knowledge. Brains overcome both challenges [1] — yet it remains an open and central question what components, processes, and principles are responsible.

Among types of generalization and learning, two are distinctively powerful and potentially foundational, yet remain deficient and poorly understood, thereby motivating new approaches. The first is "0-shot" ability, or the ability to respond to a novel setting, problem, or input in the absence of direct training or lifetime examples: an extreme form of generalization that requires that some form of strong prior structure, i.e. prior knowledge and/or inductive biases, already be in place [2, 3]. In particular, 0-shot ability can be understood as a response to combinatorial (compositional) novelty – i.e. where input is composed of new combinations

*Correspondence to: daniel.levine@yale.edu, david.vandijk@yale.edu, kaykenneth@gmail.com.

of familiar elements – thereby entailing inference of unseen structure (relational, conceptual, or semantic) underlying novel combinations. Given this requirement, we here call this ability "0-shot inference" (ZI).

The second is continual learning (CL), the ability to learn progressively from a non-stationary stream of input [4, 5, 6]. Despite being natural to the brain, CL is a longstanding limitation of models, thus suggesting a critical role for brain-like components. Further, CL is now widely regarded to entail more than the traditional criterion of avoiding catastrophic forgetting, namely entailing also transfer: the ability to use ongoing learning to enhance past knowledge and/or subsequent learning. Transfer, particularly in the "backward" direction [7], implies that systems that realize CL must be able to revisit and revise prior knowledge – put differently, prior knowledge and ongoing learning must somehow closely, or even intrinsically, interact.

Past work points to the foundational importance of both ZI and CL. ZI relates closely to insight learning [8], cognitive maps [9, 10], relational and semantic memory [11, 12], and schemas [13, 14, 15], each characterized by prior structural knowledge that resolves combinatorial novelty. Studies across animal species indicate these abilities are widespread and evolutionarily ancient [16, 17, 18, 19, 20, 21], implying a foundational role in natural cognition. Indeed, various successes in AI/ML also point to the importance of prior constraints [22, 3, 23], i.e. strong or appropriate inductive biases, including structured inductive biases [24]. However, whether and how such inductive biases are realized remains an open question, apart from special cases [25, 26, 27, 28, 29].

Past study of CL implies that major components remain similarly unresolved. Remarkably, most approaches rely on components external to the model and/or manually provided by the researcher, in contrast to the brain. These components include external memory buffers (e.g. [7, 30]), external architectural augmentation (e.g. [31]), externally cued task identities (e.g. [32]), and, most widely used, externally calculated gradients (e.g. [33, 34, 7, 35]).

Here we hypothesize that a major limitation of current models is their divergence from an essential characteristic of learning in the brain: that learning is controlled autonomously by the brain itself. In particular, by virtue of being self-generated, the signals in the brain that govern learning can reflect pre-existing structure – whether innate or learned previously within a lifetime (via self-organizing processes such as Hebbian (or local) plasticity [36, 37, 38]) – relevant to learning and generalization. Crucially, learning processes that exploit this pre-existing structure can in principle surpass forms of learning that are agnostic ("oblivious") to this pre-existing structure, including those relying on external components (e.g., loss functions and conventional gradients) [33, 35, 39]. It is worth noting that the physical identity, behavioral/cognitive meaning, and exact roles of self-generated learning signals in the brain (e.g. dopamine, acetylcholine, plateau potentials; reward prediction error, novelty, surprise) remain open research questions [36, 40, 41]. These observations highlight that autonomous control of learning remains a crucial yet open issue in CL.

In this study, we introduce "AutoHebb", a class of feedforward neural network that learns from a continuous input stream (online) and realizes both strong inductive biases (for ZI) and autonomous control of learning (for CL). AutoHebb is a plastic network, a neural network with weights that are updated locally [42, 43, 44, 45]), and builds directly on recent work establishing autonomous control of learning in recurrent plastic networks [46, 47, 48]. To gain both simplicity and expressivity, AutoHebb introduces feedforward architectural modifications to make network operations more amenable to analysis (simplicity), while also expanding the range of applicable tasks (expressivity). On four ZI/CL tasks that each involve simple 0-shot inferential structure, we find that AutoHebb networks consistently outperform popular learning models, express emergent (untrained) learning-generalization behaviors, and admit reverse-engineering algorithms. These results indicate that AutoHebb has exceptional ZI/CL abilities among modern learning models, and may be more broadly useful in investigating additional forms of biologically grounded learning and generalization, including as models of learning in the brain (neuroscience and psychology) and in applied settings.

Figure

Figure 1: AutoHebb architecture. Network weights (W) are either fixed (black) or plastic (red). The architecture consists of a "main" network (here an MLP with hidden layers h) and an auxiliary "control" network (here an MLP with hidden layers c) that receives two inputs: (1) internally generated activity from the main network (here from last hidden layer hlast\mathbf{h}_{\text{last}}), and (2) external input reflecting environmental (external) feedback given an output (y) generated by the network. The control network generates a scalar-valued neuromodulatory signal (m, red circle) that gates changes to the plastic weights within network (here Wn∗\mathbf{W}_{n^*}). See Appendix E for further details; additional network variants in Figure 16.

References (78)