Manuscript Offprint
arXiv:2610.40757AutoHebb: Self-Modifying Neural Networks that Zero-Shot Infer and Continually Learn
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 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 ), 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 ). See Appendix E for further details; additional network variants in Figure 16.
2.1 Architecture
AutoHebb is a class of simple yet expressive feedforward neural networks that implement autonomous control of learning. AutoHebb consists of two subnetworks, the main and control networks, and two types of weights, fixed and plastic. The role of the control network is to generate a (scalar-valued) global learning signal ('neuromodulator', akin to dopamine) whose function is to gate updates to the plastic weights. AutoHebb builds on recent work on recurrent plastic networks that have learning neuromodulation ([46]) by introducing three modifications: restriction to solely feedforward connectivity, isolation of neuromodulator generation to a separate subnetwork, and localization of plastic weights within the network (i.e. to specific layers). These modifications have four aims: (1) to enhance tractability to analysis, since each modification spatially restricts neural computation within the model architecture, (2) to expand the range of applicable tasks to those that do not require temporal/sequential inputs within trials, (3) to access network models that may better match experimental data (neural or behavioral) from the brain, (4) to access network models that may have better learning and generalization properties. In the present study, we mainly focus on aims (1) and (2).
The main network is a feedforward architecture with hidden layer activity given by
where is an activation function (tanh unless stated otherwise), and are fixed weights and biases, and is the Hadamard product of the plastic weights with fixed plasticity parameters , which govern the sign and magnitude of plastic weight changes. In this work, we consider binary response tasks with targets in ; we generate responses from a network with layers by applying a fixed linear readout to the last hidden state , consisting of weights and a bias , and then a sigmoid :
The control network is a feedforward network consisting of fixed weights (though plastic weights are possible), whose inputs are and an external feedback signal and output is a scalar neuromodulator signal
For all tasks in this study, is 1 for correct responses and 0 for incorrect responses.
Note that corresponds to inputs presented on successive trials of a task; we refer to as "trials". Each trial models four steps: presentation of input (e.g. task stimuli) to the network ('input'), generation of an output by the main network ('output'), generation of the neuromodulator by the control network ('control'), and a plastic weight update ('update'), which is gated by the neuromodulator. More specifically, AutoHebb models the events that occur in a task trial after the learner has generated a response (an output): given the (trial-specific) response, the external environment provides an external feedback signal (Fig. 1) to the learner; in AutoHebb, this external feedback signal is an input to the control network, which then generates the scalar neuromodulator . The neuromodulator gates updates to the network's plastic weights via a 3-factor Hebbian rule, a local learning rule that captures current essential knowledge of plasticity in deep brain regions [36, 40, 41, 49]:
where is a fixed learning rate parameter and is a decay rate. The rule is "3-factor" as the weight update combines pre-synaptic activity (), post-synaptic activity (), and the global neuromodulatory signal (); it is local because each synapse updates using only quantities available at that synapse, without requiring backpropagated error signals or access to the global loss. These various features of AutoHebb: feedforward connectivity, modularity, localizability, and grounding in a brain-derived learning rule together yield a model that is biologically relevant, potentially tractable to analysis, applicable across diverse tasks.
2.2 Meta-learning
In AutoHebb networks, all fixed (non-plastic) weights across both main and control subnetworks (, and the fixed weights of control network ), in addition to the learning rate parameter and decay term , are meta-learned via optimization. In neural networks, meta-learning is a common approach to finding fixed parameters that facilitate efficient learning (e.g. [50, 51, 45, 52]). Note that these fixed parameters serve to implement inductive biases, prior knowledge, and other forms of prior structure – innate or gained previously in a lifetime – for a learning system; in this study, we focus on prior structure enabling ZI and CL, while noting that our approach (meta-learning in the AutoHebb architecture) can nonetheless be used to model other types of learning and adaptation, such as few-shot learning.
Typically, meta-learning is implemented as a nested loop with alternating "outer" and "inner" loop optimizations [51, 53, 47]. With AutoHebb, the inner loop corresponds to 3-factor Hebbian learning rather than gradient descent; the outer loop could corresponds to any optimization algorithm, such as evolutionary algorithms ([54]) or gradient descent (Figure 2, Algorithm 1). In this study, gradient descent with cross-entropy loss was used.

Figure 2: Meta-learning in AutoHebb. In AutoHebb networks, fixed (non-plastic) network weights were identified through meta-learning optimization, which involves two levels of adaptation: an "inner" and "outer" loop. In the inner loop, corresponding to learning, (3-factor Hebbian) plastic updates to the network occur across an episode, i.e. a sequence of trials (where each trial involves input, output, control, and update steps; see main text). At the start of each episode, fixed weights are frozen and plastic weights are set to 0. In the outer loop, corresponding to meta-learning (or meta-training), the network's fixed weights are updated via optimization based on performance within the episode and/or testing following the episode.

Figure 3: Task items and trial structure. In the present study, a given task involves a set of items (item panel) that correspond to arbitrary sensory stimuli, such as fractal images. Trials consist of four steps: (1) presentation of two items (input), (2) generation of a binary output (e.g. choose item 1 vs. 2) by the model or participant (output), (3) generation of a learning control signal by the model or participant upon receiving external feedback from the environment (e.g. cash reward) (control), and (4) a learning or plasticity update (update), as governed by the control signal.
3 Tasks
3.1 Transitive inference (0-shot ranking)
A classic 0-shot ability seen in humans and a wide range of animal species is transitive inference (TI), the ability to infer serial order (ranking) without explicit instruction [55, 56, 57, 58, 59]: informally, "if A > B and B > C, then A > C." The concept of serial order is foundational to numerous additional concepts that support inference and generalization, including space, time, magnitude, and number [60]. As a task, TI is typically tested by presenting subjects with a series of trials in which two items are presented per trial. Items are arbitrary stimuli (e.g. fractal images) and belong to an underlying ranking (items designated as A, B, C, etc., where A is highest rank) not shown to the participant, who receives reward if they choose the higher-ranked item in each trial. Trials are presented in two phases: training, consisting of only adjacent item pairs (e.g. A vs. B, B vs. C); and testing, consisting of all item pairs, including non-adjacent items (e.g. A vs. C, B vs. E). After each choice, external feedback is provided to the subject (e.g. reward vs. lack of reward). Note that non-adjacent item pairs constitute novel combinations of familiar elements (here items), making TI an instance of ZI (Figure 4A).
To model TI, we adopt a task format similar to that in past work [48]. In each meta-learning episode (hereafter episode), we randomly generate a panel of items, where there exists an underlying ranking across items (A, B, C, etc.), and each item is presented to the network as an input vector of dimension sampled uniformly from . We set and across experiments unless stated otherwise.
For each trial (schematic in Figure 3), a pair items and is randomly sampled. The correct answer ('ground-truth' label) is determined by the items' relative rankings: if item has higher ranking than item , the label is 0 (corresponding to "choose item 1"), and otherwise is 1 ("choose item 2"). A trial input is the concatenation of the two items input vectors .
In each episode, trials are divided into training vs. testing phases, mirroring classic TI task design [56, 57, 58]. For the training phase, only adjacent item pairs are presented; for the testing phase, both adjacent and non-adjacent item pairs are presented. During meta-learning, plastic weights are updated across
Algorithm 1 Meta-learning in AutoHebb
Require: Main network , control network , and fixed parameters , i.e. fixed network weights, fixed plasticity parameters, learning rate , and decay
Require: Outer loop learning rate
Require: meta-learning episodes
1: for in do 2: 3: Sample sequence of trials 4: for in do 5: 6: 7: 8: 9: end for 10: 11: end for

Figure 4: Transitive inference (TI) task and performance of representative models. TI tests 0-shot inference (ZI) of ranking. a. Task schematic. Items (A to H) belong to an unseen underlying ranking, and a pair of items are presented in each trial. In training trials, only adjacent items are presented; in test trials, non-adjacent items are presented; inferential (infer) trials are test trials that do not contain the first or last item. b, Average model output after training trials. c, Model performance by trial type. Trial types (item pairs) are grouped based on the difference in rank between items ("symbolic distance" [57, 58]). Solid lines and shaded regions represent the mean and IQR, respectively. Example outputs across all models in Figures 17 and 18. Model performance across all models reported in Table 1.
both phases. However, reported 0-shot evaluations in Section 4 are done on networks for which plastic weights have been frozen at the end of the training phase, ensuring that measured performance on non-adjacent item pairs in the testing phase derives from only experience of adjacent (rather than non-adjacent) item pairs in the training phase. See Appendix E for further details on training.
3.2 Transitive equivalence (0-shot grouping)
A second 0-shot ability reported in both humans and animals is transitive equivalence (TE), or the ability to infer groupings (equivalence classes) without explicit instruction [61, 29]: informally, "if A = B and B = C, then A = C." As with ranking (see above), grouping is a concept that enables ZI, yet inference of grouping requires a fundamentally different kind of representation [29]. Tasks testing TE take various forms (e.g. acquired equivalence and associative inference tasks [62, 63, 64, 65, 61]), with all such tasks entailing judging equivalence for novel combinations of items (e.g. "A = C?" where A and C have never been seen together before), making TE an instance of ZI.
Here we adopt the two-item TE task format of [29] (schematized in Figure 5a), which retains essential underlying 0-shot structure (equivalence classes or "group") and parallels the classic two-item format TI task. The trial sequence in each episode (i.e. training then testing phase; random sampling of items within each phase) follows that of TI (Section 3.1), though here an item pair has label 1 if the items are equivalent (same group) and 0 otherwise (different group). In each episode, M items are randomly generated for each of Q groups. We assign indexing to refer to items within each class. In the training phase, trials consist of item pairs and where items are sampled from any of the Q groups, and the item pairs are subject to the condition that (i.e. items are "adjacent" pairs, within- or across- group). In the testing phase, all possible item pairs are presented and the network must 0-shot infer whether items belong to the same or different group when . Unless stated otherwise, we set Q = 3 and M = 3; we investigate the ability of models to perform larger problems further below.
3.3 Continual learning (CL)
We propose three non-standard benchmark CL tasks derived from TI and/or TE: two test the underlying concepts (ranking and grouping) under more demanding conditions; the third tests multi-task ability. Since a
Transitive Equivalence (TE)

b
c

Figure 5: Transitive equivalence (TE) task and performance of representative models. TE tests 0-shot inference (ZI) of grouping. a, Task schematic. Items (A, B, C, etc.) belong to multiple unseen underlying groups (e.g. ABC and JKL), and pairs of items are presented in each trial. In training trials, particular item pairs are omitted both within- (e.g. AC and CA) and across- (AL and LA) group: these item pairs are testing trials, here equivalent to inferential (infer) trials. b, Average model output after training trials. c, Model performance across trial types. Trial types (item pairs) are separated based on same group (choice 1) or different group (choice 2). Example outputs across all models in Figure 19. Model performance across all models reported in Table 1.
TI and TE test ZI, these three proposed tasks assess ZI and CL jointly.
TI linking (TI-L), also termed "list-linking" [66, 67, 68, 48], tests the ability to globally order separate rankings (lists) when presented with minimal new information: informally, "if A > B > C and D > E > F, then upon learning C > D, infer A > B > C > D > E > F." The ability underlying TI-L, which has been termed "rapid knowledge assembly" [68], is a unique test of CL transfer as the transfer is based on a single concept (ranking) and relies on extremely limited information (e.g. solely "C > D"). The trial sequence for TI-L differs from TI (in Section 3.1) only the order of training trials: adjacent item pairs for items ranked 1 to N/2 ('list 1') are shown first, then adjacent pairs for items ranked (N/2) + 1 to N ('list 2'), and lastly a 'linking pair' between items N/2 and (N/2) + 1.
TE linking (TE-L), which we introduce here, tests the ability to update unseen equivalence class (grouping) relationships given minimal new information: informally, "if A = B = C and X = Y = Z, then upon learning D = C, infer that A = B = C = D and D ≠ X = Y = Z." Like TI-L, TE-L tests CL transfer based on a single concept (grouping) and likewise relies on extremely limited information (e.g. solely "D = C"). The TE-L training phase is exactly the same as in TE (Section 3.2) but introduces a single novel item (x') at the end of TE training, namely doing so by presenting two linking-pair trials (x, x') and (x', x), where x is a familiar item. In the testing phase, the model must 0-shot infer that x' inherits x's equivalence relationships.
Multi-task 0-shot continual learning, also introduced here, tests the ability to acquire and retain knowledge across multiple ZI tasks. We specifically test the ability to learn TI then TE (TI-TE) and vice versa (TE-TI), testing ZI responses only after both tasks are presented. Critically, we omit task-identity cues, a more stringent setting than task-cued (also called "task-aware" or "task-incremental" [32]) settings common in studies of CL (e.g. [33, 34, 7]). Within an episode, two abilities are tested: (i) inferring the currently active ZI task without task-identity cues, and (ii) retaining knowledge from tasks presented earlier. To our knowledge, each of these abilities – particularly in the context of ZI – has received little attention in past work. We provide further details in reporting results in 4.2.
4 Results
We tested AutoHebb on the ZI and CL tasks described on Section 3, comparing performance to that of leading models in meta-learning and CL. In choosing models to test we had two aims, namely (i) to test established and competitive modern learning models against AutoHebb, and (ii) to test modern learning models that are systematically comparable to AutoHebb in model components, and in so doing provide the equivalent of ablation analysis of AutoHebb. A more complete rationale is provided in Appendix F. Briefly, the models spanned three categories: meta-learning models (MAML ([51], Reptile [69], OML [70], MER [71], ANML [72], FLP [73]), 2-factor Hebbian plastic networks ([74, 44]), denoted 2-factor-A (2F-A) and 2-factor-ABCD (2F-ABCD), and explicit continual learning strategies (weight regularization methods EWC [33] and SI [34]; and replay-based methods DER [75] and A-GEM [76]). The two specific AutoHebb architectures we tested – termed 1- and 2-neuromodulator AutoHebb (AH-1NM and AH-2NM), the latter a model variant inspired by multiple neuromodulator systems in the brain – are diagrammed in Figure 16. Complete experimental details are in Appendix F. Benchmarking results take the mean of the average accuracy over 6 meta-training runs (model instances) with different random parameter initializations and report two standard errors from the mean; in figures showing example outputs (e.g. Figures 4, 5, 6), average accuracy over 100 episodes for a single meta-trained model is reported, and is indicated accordingly.
4.1 Zero-shot inference (ZI)
We tested AutoHebb and leading learning models on ZI tasks, followed by algorithmic analyses of AutoHebb networks. The testing results disclosed unexpected strengths and weaknesses of leading models, in addition to AutoHebb's exceptional capacity for ZI. Further details of task setup, benchmarks, architectures, and training are in Appendices E and F.
ZI in the TI task We meta-trained each model using the episode structure outlined in Section 3.1. Each meta-training episode randomly samples a set of 8 items (input representations) and a sequence of 20 training and 10 test trials (or separate batches in the cases of MAML and Reptile [69]). The test trials contain both adjacent and non-adjacent pairs of items from the underlying ranking. After meta-training, all parameters are frozen, and the outputs of the models for each trial type (item pair) are collected.
To evaluate ZI ability, we benchmarked model performance on ‘critical’ item pairs: non-adjacent pairs that do not contain the first or last items in the ranking (dotted item pairs in Figure 4a), following standard practice in studies of TI [56, 57, 58, 77]. Model outputs and performance of leading models are shown in Figures 4b and 4c [72]. These results indicated that AutoHebb networks achieve substantially better performance than established models. Interestingly, FLP and 2F-ABCD performed comparably to AH-1NM, and a number of additional models showed above-chance performance, though AH-2NM outperformed all models (Table 1). Additional example model outputs are in Figures 17 and 18.
Reverse-engineering learning/inference algorithms from AutoHebb networks A primary motivation for AutoHebb is the algorithmic tractability potentially afforded by virtue of solely feedforward architecture. Given this possibility, we adopted a procedure (outlined in Appendix A) by which we sought to reverse-engineer learning/inference algorithms from meta-learned AutoHebb networks that successfully performed a given task. Importantly, we sought to do so while retaining understanding of how algorithmic variables and operations related to specific neural components (e.g. activities, weights, neuromodulators, plasticity rules, non-linearities, etc.; [45, 48, 26, 78]).
In Appendix B, we provide algorithms implemented by AutoHebb for TI and TI-L. In order to find networks with the fewest possible components (e.g. hidden layers, plastic weights, nonlinearities, etc.), we meta-trained a collection of AutoHebb networks with components progressively removed and observed their task performance. For TI, this led to an architecture that consists of only a fixed and plastic readout (Eq. 5). In Appendix B.1, we find that this minimal TI network learns a scalar rank representation for each item and applies a subtraction mechanism between the two items' scalar rank representations. During learning, only the ranks of items presented in a trial are updated. Algorithmic analysis of AutoHebb networks performing TI-L are presented further below.
Table 1: Model performance on two ZI tasks: TI and transitive equivalence TE tasks. Best scores are bolded. Both AutoHebb models outperform all other methods on TI and TE. Among other models on TI, MAML, Reptile, ANML, FLP, and 2F-ABCD methods show viable performance on TI, whereas MAML, OML, and 2F-A perform relatively poorly. On TE, apart from Autohebb, ANML, 2F-A, and 2F-ABCD show strong performance, while all other models do not perform above chance. Trial type-based breakdowns of TE performance are reported in Table 4.
| Model | TI | TE |
|---|---|---|
| MAML [51] | 0.697 ± 0.025 | 0.502 ± 0.010 |
| Reptile [69] | 0.744 ± 0.012 | 0.509 ± 0.010 |
| MER [71] | 0.500 ± 0.009 | 0.495 ± 0.002 |
| OML [70] | 0.603 ± 0.015 | 0.503 ± 0.003 |
| FLP [73] | 0.845 ± 0.011 | 0.504 ± 0.002 |
| ANML [72] | 0.702 ± 0.011 | 0.831 ± 0.005 |
| 2F-A | 0.765 ± 0.040 | 0.717 ± 0.050 |
| 2F-ABCD | 0.878 ± 0.022 | 0.844 ± 0.015 |
| AH-1NM | 0.904 ± 0.053 | 0.945 ± 0.042 |
| AH-2NM | 0.986 ± 0.006 | 0.933 ± 0.014 |
ZI on the TE task TE provides a simple paradigm for investigating ZI of grouping: a concept fundamental to numerous concepts and cognitive domains [79, 80]. Recent theoretical work [26] shows that kernel models can perform TI but not TE, highlighting the qualitative difference in inductive bias (and representation) at stake between these tasks. We evaluated models on 3 groups of 3 items, corresponding to 81 item pairs (63 training, 18 test) (Figure 5a). For each episode during meta-training, we presented all 63 training pairs and then 30 test pairs (randomly sampled) for each episode during meta-training, adopting the same stopping criteria as TI meta-training. Results are mean accuracy across 100 episodes per model, averaged (± 2 s.e.) across six model instances.
Table 1 reports mean model performance, equally weighted for the two categories of item pairs: equivalent ('same-group') pairs and the non-equivalent ('different-group') pairs. Breakdowns of performance based on these categories are in Table 4, with further details in Appendix F. Notably, prior to any learning, all (meta-trained) models defaulted to outputting 'different-group' (for all item pairs except for same-item pairs), likely due to the inherent imbalance of these trial type categories in the TE task. Different-group accuracy thus saturates for many models (Table 4), making same-group item pairs the critical test of ZI for this task. Strikingly, among all models, only AutoHebb, ANML, 2F-A, and 2F-ABCD performed above chance (Figure 5b-c; see also example outputs in Figure 19), with AutoHebb networks moreover outperforming all models.
Emergent (untrained) learning and generalization abilities in AutoHebb One possibility afforded by meta-learning is the possibility of finding "meta-test" abilities: learning or generalization abilities that go beyond what was explicitly optimized in meta-learning ("meta-trained"). Such abilities, if expressed, provide evidence that meta-learning conferred an inductive bias (here implemented as fixed weights in a network) that better implements the learning/generalization ability in question. For the present tasks (TI and TE), we were especially interested in this possibility given that the concepts/relations they probe (ranking and grouping, respectively) are in principle applicable to an indefinitely large number of items and group sizes.
Strikingly, we found that AutoHebb generalized to larger numbers of items and group sizes (Figures 9, 10, 11, 12 13) in both TI and TE (length generalization; in TI, meta-learning performed for 8 items, with AutoHebb showing generalization to 20 items (or more); in TE, meta-learning performed for 3 items and 3 groups, with AutoHebb showing generalization to 5 items and 6 groups of 3 items; see Appendix C for further results); further, two representative models (OML and ANML) showed relatively weaker or no length generalization.
Apart from length generalization, we were also interested in probing the ability of models to self-regulate learning in conditions not seen during meta-learning, as such abilities are naturally relevant to CL. In
Table 2: Model performance on two CL tasks: TI-L and TE-L. Best scores are bolded. TE-L Original corresponds to ZI performance on the originally presented groups after the networks are shown the new item. TE-L New Item is the ZI performance on all test trials that have the new item as one input. TE-L Total is the equal-weighted average of the two scores. On TI-L, both AutoHebb models (AH-1NM and AH-2NM) outperform all other models. Both 2-factor models (2F-A, 2F-ABCD) and FLP also show successful linking. On TE-L, both AutoHebb models outperform on both the original TE task (TE-L Original) after being presented the linking trial, as well as the linking task (TE-L New Item), with AH-1NM slightly outperforming AH-2NM. Among other models, ANML shows the strongest linking ability. Trial type-based breakdowns of TE performance are reported in Table 5.
| Model | TI-L | TE-L Original | TE-L New Item | TE-L Total |
|---|---|---|---|---|
| MAML [51] | 0.621 ± 0.035 | 0.498 ± 0.006 | 0.501 ± 0.005 | 0.500 ± 0.005 |
| Reptile [69] | 0.726 ± 0.008 | 0.510 ± 0.009 | 0.500 ± 0.003 | 0.505 ± 0.005 |
| MER [71] | 0.504 ± 0.011 | 0.499 ± 0.008 | 0.493 ± 0.014 | 0.496 ± 0.004 |
| OML [70] | 0.663 ± 0.015 | 0.501 ± 0.017 | 0.509 ± 0.012 | 0.505 ± 0.012 |
| FLP [73] | 0.761 ± 0.020 | 0.500 ± 0.009 | 0.497 ± 0.014 | 0.499 ± 0.004 |
| ANML [72] | 0.601 ± 0.017 | 0.816 ± 0.012 | 0.736 ± 0.013 | 0.776 ± 0.011 |
| 2F-A | 0.787 ± 0.072 | 0.699 ± 0.041 | 0.542 ± 0.010 | 0.621 ± 0.025 |
| 2F-ABCD | 0.838 ± 0.041 | 0.798 ± 0.010 | 0.571 ± 0.008 | 0.684 ± 0.006 |
| AH-1NM | 0.918 ± 0.029 | 0.922 ± 0.037 | 0.862 ± 0.042 | 0.892 ± 0.040 |
| AH-2NM | 0.976 ± 0.009 | 0.907 ± 0.017 | 0.837 ± 0.011 | 0.872 ± 0.013 |
particular, previous work on TI shows that repeated exposure of traditional learning models to a single trial type (e.g. item pair EF) can severely interfere with subsequent correct responses, whereas animals performing TI are robust to this manipulation [58, 81]. Performing the trial exposure procedure (solely in meta-testing), we found that AutoHebb similarly showed robustness in subsequent responses, in contrast to two representative models tested (OML and ANML, Figure 14). Notably, direct examination of the neuromodulator in AutoHebb networks showed that networks progressively down-regulated neuromodulation during massed trial presentation (Figure 15).
Lastly, for the TI-L and TE-L tasks, we adopted a training-testing strategy such that performance of these tasks constitutes evidence of an additional emergent ability that has been termed "rapid knowledge assembly" [68, 48]. We provide further details in presenting results from these two tasks further below.
4.2 Continual learning (CL)
We next tested AutoHebb on three non-traditional CL tasks: TI-L, TE-L, and multi-task 0-shot learning (outlined in Section 3.3); further, as with the ZI tasks (Section 4.1), we also tested established learning models on these tasks. Surprisingly, we found that, besides AutoHebb, no model uniformly succeeded on all three CL tasks. However, on a subset of tasks, ANML, FLP, 2F-A, and 2F-ABCD showed viable performance.
CL on TI-L task In evaluating TI-L, we were expressly interested in the possibility that models meta-trained (or hyperparameter-tuned) only on TI would emergently show an ability to perform TI-L. We therefore took the models meta-trained on TI (but not TI-L) and simply evaluated their performance on TI-L, i.e. keeping all meta-trained parameters fixed and presenting the networks with new episodes. In these episodes, the training phase followed that in Section 3.3 (under TI-L), in particular where 8 items were generated, then 4 items were assigned to two separate item rankings (lists). We showed 10 training trials from list 1, then 10 training trials from list 2, and finally 4 linking trials DE/ED (Figure 6a). TI-L performance was measured on critical (inferential) item pairs: across-list item pairs excluding end items (dotted item pairs in Figure 6a).
We found that nearly all models performed poorly and/or inconsistently on these inferential item pairs (see Figure 6b for example outputs from OML and ANML; see also example outputs for all models in Figures 17 and 18); interestingly, the exceptions were models incorporating Hebbian plasticity, namely FLP, 2F-A,

Figure 6: Two continual learning (CL) tasks and performance of representative models. a and c, Task schematics. Each task (TI-L and TE-L) is based on the ZI tasks TI and TE, respectively, and tests 0-shot inference following presentation of a new item pair (new input; diagramed in green). In TI-L, also known as "list-linking" [66, 68, 48], the item pair is a "linking pair" (here DE or ED) that connects separate previously learned rankings (here A to D and E to H). In TE-L, the new input is an item pair (here CD/DC) containing a novel item (here D) and previously presented item (here C). Note that both tasks test the ability to perform structure-sensitive transfer to items beyond that of the new item pair. b and d, Average model output (across all item pairs) following presentation of the new item pair. See Figures 17 and 18 for example outputs across all models. Model performance across all models reported in Table 2.
and 2F-ABCD, which showed viable performance both on average (Table 2) and across all trial types (Figures 17 and 18). AutoHebb outperformed all models, with two neuromodulators (AH-2NM) providing marginal improvement over one (AH-1NM) (Table 2).
In algorithmic analyses of AutoHebb networks, we found that two sets of plastic weights appeared necessary to perform TI-L (Eq. 11), unlike the minimal TI network. In particular, the simplest AutoHebb network that could perform TI-L had one hidden layer with plastic weights both in the hidden and readout layers, without any nonlinearity. Plastic weights in the hidden layer stored information linking currently shown items to items that had been (in past trials) co-presented with the currently shown items. In contrast, the plastic weights in the readout encode past network responses associated with each item (via prior association with a specific presented item pair; e.g. item A associated with an AB trial). Given an input, the network 'recalls' associated items not currently shown in the trial and uses the trial outcomes associated with all recalled items to compute a scalar rank representation. In contrast, the minimal TI network produces a scalar rank representation for a given item based only on the outcome of trials with (directly) co-presented items. See Appendix B.2 and Algorithm 3 for complete analysis and discussion.
CL on TE-L task As in TI-L, with TE-L we were expressly interested in the possibility that models meta-trained (or hyperparameter-tuned) only on TE would emergently show an ability to perform TE-L. We therefore took the models meta-trained on TE and simply evaluated their performance on TE-L. The episode training phase followed that in Section 3.3, where the original 63 TE training trials are presented, then 4 linking trials of the form CD/DC as shown in Figure 6c. TE-L performance was measured on critical (inferential) item pairs: pairs containing D and an item not already in the linking trial (dotted item pairs in Figure 6c). We found that AutoHebb achieved the highest performance across all models, both on inferential linking trials and on inferential trials for originally presented groups (example outputs in Figure 6d; performance across models in Tables 2 and 5). Notably, ANML was the only baseline that showed substantial above-chance performance.
Multi-task ZI learning We lastly tested AutoHebb and established models on a challenging multi-task paradigm. Given limited prior work on continual learning across single-concept 0-shot tasks, we examined models' ability to perform TI followed by TE (TI-TE) and vice versa (TE-TI), testing successful (0-shot) inference after both tasks were presented. To obtain models capable of this task, during meta-learning each episode consisted of presentation of TI then TE or vice versa (Figure 7a), where only training phases were shown for each task (as described in Sections 3.3 and 4.1); further, to avoid overfitting to task boundaries, TI and TE episode lengths were randomized within 20-100 and 63-120 trials, respectively (Figure 7a).
Table 3: Model performance on multi-task ZI: TI→TE and TE→TI. Best scores are bolded. EWC, SI, A-GEM, and DER are non-meta-learning methods. AutoHebb with two neuromodulators (AH-2NM) is the only model that can continually learn multiple ZI tasks. While ANML shows reasonable performance overall, Table 6 it only performs chance on ZI trials when items belong to the same group. Of the meta-learning models, 2F-A, 2F-ABCD, and AH-1NM show good TI performance in the TI→TE direction. Of the non-meta-learning methods, A-GEM shows strong performance on TI in the TI→TE direction while all other tasks remain at chance performance. Trial type-based breakdowns of TE performance are reported in Table 6. *Only 3 runs are reported.
| Model | TI → TE | TE → TI | ||
|---|---|---|---|---|
| TI | TE | TI | TE | |
| MAML [51] | ||||
| Reptile [69] | ||||
| MER [71] | ||||
| OML [70] | ||||
| FLP [73] | ||||
| ANML [72] | ||||
| 2F-A | ||||
| 2F-ABCD | ||||
| EWC [33] | ||||
| SI [34] | ||||
| A-GEM [76] | ||||
| DER [75] | ||||
| AH-1NM* | ||||
| AH-2NM | ||||
As an overall assessment across continual learning models, we plot in Figure 7b model performance across random sequences of 10 tasks (each either TI or TE); performance here is the mean performance (specifically on 0-shot inference trials) across all tasks presented up to that point (task #). Strikingly, this test indicated exceptional performance of AutoHebb. The performances of ANML and OML decayed more slowly, but asymptoted to a lower accuracy. Full experimental details are in Appendix F.4.
On 2-task tests (TI-TE and TE-TI; Table 3), AH-2NM was the only model successful on all tasks, while ANML was successful on all tasks except on TE ZI trials where items belonged to the same group (Table 6). The limited ability of models to perform these tasks suggests that it is a considerable challenge to perform different kinds of ZI when task-identity cues are absent; that said, AutoHebb shows exceptional multi-task ability among models, demonstrating a unique capacity to engage different relational inductive biases (ranking vs. grouping) depending on the input presented (i.e. the sequence of trials shown in testing, corresponding to uncued tasks), in addition to retaining ZI knowledge from past lifetime experience.
5 Discussion
We introduce AutoHebb, a neural network architecture that addresses three major limitations of current models of learning: (1) lack of autonomous control of learning, (2) lack of strong (or appropriate) inductive biases, and (3) limited simplicity and expressivity. AutoHebb is a variant of plastic neural network [43, 46, 44, 45] and is thus comprised of fixed and plastic weights; fixed weights are identified via meta-learning optimization. On a set of non-traditional zero-shot inference (ZI) and continual learning (CL) tasks, we found that AutoHebb not only consistently outperformed popular learning models, but also showed multiple emergent learning-generalization abilities (abilities not explicitly optimized in meta-learning) which other models either did not express or expressed less strongly – these abilities include rapid knowledge assembly, length generalization, and self-regulation of plasticity. Lastly, beyond performance, the architectural simplicity of AutoHebb also
Multi-task 0-shot continual learning


Figure 7: Multi-task 0-shot continual learning: model setup, tasks, and performance. Left, schematic of meta-learning and learning modeling procedure. Models were meta-trained on episodes in which 2 to 4 TI and TE tasks (i.e. having different randomly generated items) were serially presented and with variable numbers of trials. Models were then presented with a random sequence of 10 TI and TE tasks at evaluation. Right, performance of models at testing (mean 2 s.e., n=100 task sequences). Full details are in Appendix F.4.
enabled reverse-engineering the networks' algorithms, demonstrating the tractability of these models to analysis and explanation.
Importantly, our findings delineate the model components essential to AutoHebb's exceptional capacity for ZI/CL, doing so in two ways: by evaluating performance on various qualitatively different ZI/CL tasks (thereby probing different kinds of inductive biases and CL capacities), and by evaluating performance of models that share one or more components with AutoHebb (thereby controlling for the shared model components). In particular, it was notable that performance of the various models tested was generally poor, with the exception of three models – ANML, which implements meta-learning and neuromodulation but lacks Hebbian plasticity; 2-factor Hebbian, which implements meta-learning and Hebbian plasticity but lacks neuromodulation; and FLP, which also implements meta-learning and Hebbian plasticity but lacks neuromodulation – showed competitive performance on at least one (though not all) tasks (e.g. ANML on TE and TE-L; 2-factor Hebbian on TI, TI-L, and TE; FLP on TI and TI-L). This pattern of performance across these related models implies that the three main model components of AutoHebb – i.e. neuromodulation (autonomous control of learning), Hebbian plasticity, and meta-learning – are jointly essential for AutoHebb's consistently exceptional ZI/CL abilities, at least as evidenced in the present tasks.
In future work, we envision a variety of use cases and task settings where AutoHebb may contribute. In neuroscience, AutoHebb is of potential interest as a "fully neural" learning model (i.e. solely made of units, weights, local learning rules, and global signals like neuromodulators), providing a naturally more brain-like alternative to models relying on externally applied learning signals (e.g. researcher-provided gradients [82, 83, 84, 85]); further, among meta-learned neural network models, AutoHebb provides a simpler alternative to those based on recurrence [46, 48] or spikes [52, 86], while also providing a more expressive alternative to models based on 2-factor Hebbian plasticity [44, 45]; aside from potential enhancement in task performance, these differences may facilitate connections to experimental data (behavior and neural activity). In machine learning, AutoHebb is an alternative to gradient-based optimization in simulating within-lifetime learning (currently dominant), particularly in the setting of CL [5]. Further, components of AutoHebb may be combined with existing models such as transformers for online learning or test-time adaptation through post-training methods (e.g. GRPO [87]) either by strategically placing plastic weights within blocks and throughout layers (analogous to LoRA [88]) or by adding AutoHebb as an entirely separate module. Importantly – whether in a basic or applied settings – the combined simplicity and expressiveness of AutoHebb networks may be suited for algorithmic discovery, analysis, and interpretability, specifically in the context of brain-like constraints.
Lastly, we emphasize that the basic AutoHebb architecture (prior to meta-learning optimization) is fairly general-purpose, and thus applicable to many settings, including more standard learning tasks. Even so, our focus on single concept-based ZI tasks affords exceptionally unambiguous ways to test and analyze whether and how models realize transferable (abstract) structure, in contrast to tasks in which transferable structure across tasks is minimal (e.g. permuted MNIST [89, 33, 34]) or multifarious and relatively ambiguous (e.g. split-CIFAR [34, 7], split-MiniImageNet [90], Continual World [91]). In this way, the tasks we investigate in this study point to a non-traditional – and possibly advantageous – basis for future work seeking to identify new neurally grounded algorithms for learning, inference, and generalization.
References
[1] Dhireesha Kudithipudi, Mario Aguilar-Simon, Jonathan Babb, Maxim Bazhenov, Douglas Blackiston, Josh Bongard, Andrew P Brna, Suraj Chakravarthi Raja, Nick Cheney, Jeff Clune, et al. Biological underpinnings for lifelong learning machines. Nature Machine Intelligence, 4(3):196–210, 2022.
[2] Brenden M Lake, Tomer D Ullman, Joshua B Tenenbaum, and Samuel J Gershman. Building machines that learn and think like people. Behavioral and brain sciences, 40:e253, 2017.
[3] Anirudh Goyal and Yoshua Bengio. Inductive biases for deep learning of higher-level cognition. Proceedings of the Royal Society A, 478(2266):20210068, 2022.
[4] German I. Parisi, Ronald Kemker, Jose L. Part, Christopher Kanan, and Stefan Wermter. Continual lifelong learning with neural networks: A review. Neural Networks, 113:54–71, May 2019.
[5] Liyuan Wang, Xingxing Zhang, Hang Su, and Jun Zhu. A comprehensive survey of continual learning: Theory, method and application, 2024.
[6] Gido M. van de Ven, Nicholas Soures, and Dhireesha Kudithipudi. Continual learning and catastrophic forgetting, page 153–168. Elsevier, 2025.
[7] David Lopez-Paz and Marc'Aurelio Ranzato. Gradient episodic memory for continual learning. Advances in neural information processing systems, 30, 2017.
[8] Wolfgang Kohler. The mentality of apes. Routledge, 2018.
[9] Edward C. Tolman. Cognitive maps in rats and men. Psychological Review, 55(4):189–208, 1948.
[10] Timothy EJ Behrens, Timothy H Muller, James CR Whittington, Shirley Mark, Alon B Baram, Kimberly L Stachenfeld, and Zeb Kurth-Nelson. What is a cognitive map? organizing knowledge for flexible behavior. Neuron, 100(2):490–509, 2018.
[11] Neal J. Cohen and Howard Eichenbaum. Memory, amnesia, and the hippocampal system. Memory, amnesia, and the hippocampal system. The MIT Press, Cambridge, MA, US, 1993.
[12] Howard Eichenbaum and Neal J. Cohen. From Conditioning to Conscious Recollection: Memory systems of the brain. Oxford University Press, 12 2004.
[13] Frederic Charles Bartlett. Remembering: A study in experimental and social psychology. Cambridge university press, 1995.
[14] David E Rumelhart. Schemata: The building blocks of cognition. In Theoretical issues in reading comprehension, pages 33–58. Routledge, 2017.
[15] David E Rumelhart, Paul Smolensky, James L McClelland, and G Hinton. Sequential thought processes in pdp models. Parallel distributed processing: explorations in the microstructures of cognition, 2:3–57, 1986.
[16] Martin Giurfa, Shaowu Zhang, Arnim Jenett, Randolf Menzel, and Mandyam V Srinivasan. The concepts of ‘sameness’ and ‘difference’ in an insect. Nature, 410(6831):930–933, 2001.
[17] Christopher D Bird and Nathan J Emery. Insightful problem solving and creative tool modification by captive nontool-using rooks. Proceedings of the National Academy of Sciences, 106(25):10370–10375, 2009.
[18] Aurore Avarguès-Weber and Martin Giurfa. Conceptual learning by miniature brains. Proceedings of the Royal Society B: Biological Sciences, 280(1772), 2013.
[19] Hiruni Samadi Galpayage Dona and Lars Chittka. Charles h. turner, pioneer in animal cognition. Science, 370(6516):530–531, 2020.
[20] Olga F. Lazareva and Edward A. Wasserman. Categories and Concepts in Animals. In John H. Byrne, editor, Learning and Memory: A Comprehensive Reference, pages 111–139. Academic Press, Oxford, 2nd edition, 2017.
[21] Chloe Weise, Christian Cely Ortiz, and Elizabeth A Tibbetts. Paper wasps form abstract concept of ‘same and different’. Proceedings of the Royal Society B: Biological Sciences, 289(1979), 2022.
[22] Tom M Mitchell. The need for biases in learning generalizations. 1980.
[23] Yoshua Bengio, Yann Lecun, and Geoffrey Hinton. Deep learning for ai. Communications of the ACM, 64(7):58–65, 2021.
[24] Peter W. Battaglia, Jessica B. Hamrick, Victor Bapst, Alvaro Sanchez-Gonzalez, Vinicius Zambaldi, Mateusz Malinowski, Andrea Tacchetti, David Raposo, Adam Santoro, Ryan Faulkner, Caglar Gulcehre, Francis Song, Andrew Ballard, Justin Gilmer, George Dahl, Ashish Vaswani, Kelsey Allen, Charles Nash, Victoria Langston, Chris Dyer, Nicolas Heess, Daan Wierstra, Pushmeet Kohli, Matt Botvinick, Oriol Vinyals, Yujia Li, and Razvan Pascanu. Relational inductive biases, deep learning, and graph networks, 2018.
[25] Andrew M Saxe, James L McClelland, and Surya Ganguli. A mathematical theory of semantic development in deep neural networks. Proceedings of the National Academy of Sciences, 116(23):11537–11546, 2019.
[26] Samuel Lippl, Kenneth Kay, Greg Jensen, Vincent P. Ferrera, and L. F. Abbott. A mathematical theory of relational generalization in transitive inference. Proceedings of the National Academy of Sciences, 121(28):e2314511121, 2024.
[27] Emmanuel Abbe, Samy Bengio, Aryo Lotfi, and Kevin Rizk. Generalization on the unseen, logic reasoning and degree curriculum. Journal of Machine Learning Research, 25(331):1–58, 2024.
[28] Jesse Geerts, Stephanie Chan, Claudia Clopath, and Kimberly Stachenfeld. Relational reasoning and inductive bias in transformers trained on a transitive inference task. arXiv preprint arXiv:2506.04289, 2025.
[29] Samuel Lippl and Kim Stachenfeld. When does compositional structure yield compositional generalization? a kernel theory. In The Thirteenth International Conference on Learning Representations, 2025.
[30] David Rolnick, Arun Ahuja, Jonathan Schwarz, Timothy P. Lillicrap, and Greg Wayne. Experience replay for continual learning, 2019.
[31] Andrei A. Rusu, Neil C. Rabinowitz, Guillaume Desjardins, Hubert Soyer, James Kirkpatrick, Koray Kavukcuoglu, Razvan Pascanu, and Raia Hadsell. Progressive neural networks, 2022.
[32] Gido M Van de Ven, Tinne Tuytelears, and Andreas S Tolias. Three types of incremental learning. Nature Machine Intelligence, 4(12):1185–1197, 2022.
[33] James Kirkpatrick, Razvan Pascanu, Neil Rabinowitz, Joel Veness, Guillaume Desjardins, Andrei A. Rusu, Kieran Milan, John Quan, Tiago Ramalho, Agnieszka Grabska-Barwinska, Demis Hassabis, Claudia Clopath, Dharshan Kumaran, and Raia Hadsell. Overcoming catastrophic forgetting in neural networks. Proceedings of the National Academy of Sciences, 114(13):3521–3526, 2017.
[34] Friedemann Zenke, Ben Poole, and Surya Ganguli. Continual learning through synaptic intelligence. In Doina Precup and Yee Whye Teh, editors, Proceedings of the 34th International Conference on Machine Learning, volume 70 of Proceedings of Machine Learning Research, pages 3987–3995. PMLR, 06–11 Aug 2017.
[35] Mehrdad Farajtabar, Navid Azizan, Alex Mott, and Ang Li. Orthogonal gradient descent for continual learning, 2019.
[36] Nicolas Frémaux and Wulfram Gerstner. Neuromodulated spike-timing-dependent plasticity, and theory of three-factor learning rules. Frontiers in neural circuits, 9:85, 2016.
[37] Wolfram Schultz. Dopamine reward prediction-error signalling: a two-component response. Nature reviews neuroscience, 17(3):183–195, 2016.
[38] MD György Buzsáki. The brain from inside out. Oxford University Press, 2019.
[39] Grzegorz Rypeść. Gradient-free continual learning, 2025.
[40] Wulfram Gerstner, Marco Lehmann, Vasiliki Liakoni, Dane Corneil, and Johanni Brea. Eligibility traces and plasticity on behavioral time scales: experimental support of neohebbian three-factor learning rules. Frontiers in neural circuits, 12:53, 2018.
[41] Jeffrey C Magee and Christine Grienberger. Synaptic plasticity forms and functions. Annual review of neuroscience, 43(1):95–117, 2020.
[42] Andrea Soltoggio, Kenneth O Stanley, and Sebastian Risi. Born to learn: the inspiration, progress, and future of evolved plastic artificial neural networks. Neural Networks, 108:48–67, 2018.
[43] Thomas Miconi, Kenneth Stanley, and Jeff Clune. Differentiable plasticity: training plastic neural networks with backpropagation. In International Conference on Machine Learning, pages 3559–3568. PMLR, 2018.
[44] Elias Najarro and Sebastian Risi. Meta-learning through hebbian plasticity in random networks. Advances in Neural Information Processing Systems, 33:20719–20731, 2020.
[45] Danil Tyulmankov, Guangyu Robert Yang, and LF Abbott. Meta-learning synaptic plasticity and memory addressing for continual familiarity detection. Neuron, 110(3):544–557, 2022.
[46] Thomas Miconi, Aditya Rawal, Jeff Clune, and Kenneth O. Stanley. Backpropamine: training self-modifying neural networks with differentiable neuromodulated plasticity. In International Conference on Learning Representations, 2019.
[47] Thomas Miconi. Learning to acquire novel cognitive tasks with evolution, plasticity and meta-meta-learning. In Andreas Krause, Emma Brunskill, Kyunghyun Cho, Barbara Engelhardt, Sivan Sabato, and Jonathan Scarlett, editors, Proceedings of the 40th International Conference on Machine Learning, volume 202 of Proceedings of Machine Learning Research, pages 24756–24774. PMLR, 23–29 Jul 2023.
[48] Thomas Miconi and Kenneth Kay. Neural mechanisms of relational learning and fast knowledge reassembly in plastic neural networks. Nature Neuroscience, 28(2):406–414, 2 2025.
[49] S. Schmidgall, R. Ziaei, J. Achterberg, L. Kirsch, S. P. Hajiseyedrazi, and J. Eshraghian. Brain-inspired learning in artificial neural networks: A review. APL Machine Learning, 2(2):021501, 2024.
[50] Jürgen Schmidhuber. Evolutionary principles in self-referential learning, or on learning how to learn: The meta-meta-... hook. PhD thesis, Technische Universität München, 1987.
[51] Chelsea Finn, Pieter Abbeel, and Sergey Levine. Model-agnostic meta-learning for fast adaptation of deep networks. In Doina Precup and Yee Whye Teh, editors, Proceedings of the 34th International Conference on Machine Learning, volume 70 of Proceedings of Machine Learning Research, pages 1126–1135. PMLR, 06–11 Aug 2017.
[52] Basile Confavreux, Friedemann Zenke, Everton Agnes, Timothy Lillicrap, and Tim Vogels. A meta-learning approach to (re)discover plasticity rules that carve a desired function into a neural network. In H. Larochelle, M. Ranzato, R. Hadsell, M.F. Balcan, and H. Lin, editors, Advances in Neural Information Processing Systems, volume 33, pages 16398–16408. Curran Associates, Inc., 2020.
[53] Timothy Hospedales, Antreas Antoniou, Paul Micaelli, and Amos Storkey. Meta-learning in neural networks: A survey, 2020.
[54] Tim Salimans, Jonathan Ho, Xi Chen, Szymon Sidor, and Ilya Sutskever. Evolution strategies as a scalable alternative to reinforcement learning, 2017.
[55] Peter E Bryant and Thomas Trabasso. Transitive inferences and memory in young children. Nature, 1971.
[56] Brendan O McGonigle and Margaret Chalmers. Are monkeys logical? Nature, 267(5613):694–696, 1977.
[57] Greg Jensen. Serial learning. In Josep Call, Gordon M. Burghardt, Irene M. Pepperberg, Charles T. Snowdon, and Thomas Zentall, editors, APA handbook of comparative psychology: Perception, learning, and cognition, pages 385–409. American Psychological Association, 2017.
[58] Greg Jensen, Herbert S Terrace, and Vincent P Ferrara. Discovering implied serial order through model-free and model-based learning. Frontiers in neuroscience, 13:878, 2019.
[59] Regina Paxton Gazes and Olga F Lazareva. Does cognition differ across species, and how do we know? lessons from research in transitive inference. Journal of Experimental Psychology: Animal Learning and Cognition, 47(3):223, 2021.
[60] Regina Paxton Gazes, Victoria L Templer, and Olga F Lazareva. Thinking about order: a review of common processing of magnitude and learned orders in animals. Animal Cognition, 26(1):299–317, 2023.
[61] Dagmar Zeithamova, Margaret L. Schlichting, and Alison R. Preston. The hippocampus and inferential reasoning: building memories to navigate future decisions. Frontiers in Human Neuroscience, Volume 6 - 2012, 2012.
[62] Micheal Bunsey and Howard Eichenbaum. Conservation of hippocampal memory function in rats and humans. Nature, 379(6562):255–257, 1996.
[63] Howard Eichenbaum, Geoffrey Schoenbaum, Brian Young, and Michael Bunsey. Functional organization of the hippocampal memory system. Proceedings of the National Academy of Sciences, 93(24):13500–13507, 1996.
[64] Daphna Shohamy and Anthony D Wagner. Integrating memories in the human brain: hippocampal-midbrain encoding of overlapping events. Neuron, 60(2):378–389, 2008.
[65] Margaret L Schlichting, Jeanette A Mumford, and Alison R Preston. Learning-related representational changes reveal dissociable integration and separation signatures in the hippocampus and prefrontal cortex. Nature communications, 6(1):8151, 2015.
[66] F Robert Treichler and Debra Van Tilburg. Concurrent conditional discrimination tests of transitive inference by macaque monkeys: list linking. Journal of Experimental Psychology: Animal Behavior Processes, 22(1):105, 1996.
[67] F Robert Treichler, Mary Ann Raghanti, and Debra N Van Tilburg. Linking of serially ordered lists by macaque monkeys (macaca mulatta): list position influences. Journal of Experimental Psychology: Animal Behavior Processes, 29(3):211, 2003.
[68] Stephanie Nelli, Lukas Braun, Tsvetomira Dumbalska, Andrew Saxe, and Christopher Summerfield. Neural knowledge assembly in humans and neural networks. Neuron, 111(9):1504–1516, 2023.
[69] Alex Nichol, Joshua Achiam, and John Schulman. On first-order meta-learning algorithms, 2018.
[70] Khurram Javed and Martha White. Meta-learning representations for continual learning. In H. Wallach, H. Larochelle, A. Beygelzimer, F. d'Alché-Buc, E. Fox, and R. Garnett, editors, Advances in Neural Information Processing Systems, volume 32. Curran Associates, Inc., 2019.
[71] Matthew Riemer, Ignacio Cases, Robert Ajemian, Miao Liu, Irina Rish, Yuhai Tu, , and Gerald Tesauro. Learning to learn without forgetting by maximizing transfer and minimizing interference. In International Conference on Learning Representations, 2019.
[72] Shawn Beaulieu, Lapo Frati, Thomas Miconi, Joel Lehman, Kenneth O. Stanley, Jeff Clune, and Nick Cheney. Learning to continually learn. In ECAI 2020: 24th European Conference on Artificial Intelligence, volume 325 of Frontiers in Artificial Intelligence and Applications, pages 992–1001. IOS Press, 2020.
[73] Jack Lindsey and Ashok Litwin-Kumar. Learning to learn with feedback and local plasticity. In H. Larochelle, M. Ranzato, R. Hadsell, M.F. Balcan, and H. Lin, editors, Advances in Neural Information Processing Systems, volume 33, pages 21213–21223. Curran Associates, Inc., 2020.
[74] Thomas Miconi, Kenneth Stanley, and Jeff Clune. Differentiable plasticity: training plastic neural networks with backpropagation. In Jennifer Dy and Andreas Krause, editors, Proceedings of the 35th International Conference on Machine Learning, volume 80 of Proceedings of Machine Learning Research, pages 3559–3568. PMLR, 10–15 Jul 2018.
[75] Pietro Buzzega, Matteo Boschini, Angelo Porrello, Davide Abati, and SIMONE CALDERARA. Dark experience for general continual learning: a strong, simple baseline. In H. Larochelle, M. Ranzato, R. Hadsell, M.F. Balcan, and H. Lin, editors, Advances in Neural Information Processing Systems, volume 33, pages 15920–15930. Curran Associates, Inc., 2020.
[76] Arslan Chaudhry, Marc'Aurelio Ranzato, Marcus Rohrbach, and Mohamed Elhoseiny. Efficient lifelong learning with a-GEM. In International Conference on Learning Representations, 2019.
[77] Surabhi Ramawat, Isabel Beatrice Marc, Francesco Ceccarelli, Lorenzo Ferrucci, Giampiero Bardella, Stefano Ferraina, Pierpaolo Pani, and Emiliano Brunamonti. The transitive inference task to study the neuronal correlates of memory-driven decision making: A monkey neurophysiology perspective. Neuroscience & Biobehavioral Reviews, 152:105258, 2023.
[78] Li Ji-An, Marcus K. Benna, and Marcelo G. Mattar. Discovering cognitive strategies with tiny recurrent neural networks. Nature, 644(8078):993–1001, Aug 2025.
[79] Murray Sidman. Equivalence relations and behavior: A research story. Authors Cooperative, Boston, MA, 1994.
[80] Thomas R Zentall, Edward A Wasserman, Olga F Lazareva, Robert KR Thompson, and Michele J Rattermann. Concept learning in animals. Comparative Cognition & Behavior Reviews, 3:13–45, 2008.
[81] Greg Jensen, Yelda Alkan, Fabian Muñoz, Vincent P Ferrera, and Herbert S Terrace. Transitive inference in humans (homo sapiens) and rhesus macaques (macaca mulatta) after massed training of the last two list items. Journal of Comparative Psychology, 131(3):231, 2017.
[82] Timothy P. Lillicrap, Daniel Cownden, Douglas B. Tweed, and Colin J. Akerman. Random synaptic feedback weights support error backpropagation for deep learning. Nature Communications, 7(1):13276, 2016.
[83] Blake A Richards, Timothy P Lillicrap, Philippe Beaudoin, Yoshua Bengio, Rafal Bogacz, Amelia Christensen, Claudia Clopath, Rui P Costa, Archy de Berker, Surya Ganguli, et al. A deep learning framework for neuroscience. Nature Neuroscience, 22(11):1761–1770, 2019.
[84] Timothy P Lillicrap, Adam P Santoro, Luke Marris, Colin J Akerman, Geoffrey Hinton, Timothy Lillicrap, Demis Hassabis, Blake Kingsbury, Rafal Bogacz, et al. Backpropagation and the brain. Nature Reviews Neuroscience, 21(6):335–346, 2020.
[85] Guangyu Robert Yang and Xiao-Jing Wang. Artificial neural networks for neuroscientists: A primer. Neuron, 109(4):739–755, 2021.
[86] Basile Confavreux, Everton J. Agnes, Friedemann Zenke, Henning Sprekeler, and Tim P. Vogels. Balancing complexity, performance and plausibility to meta learn plasticity rules in recurrent spiking networks. PLOS Computational Biology, 21(4):e1012910, apr 2025.
[87] Zhihong Shao, Peiyi Wang, Qihao Zhu, Runxin Xu, Junxiao Song, Xiao Bi, Haowei Zhang, Mingchuan Zhang, Y. K. Li, Y. Wu, and Daya Guo. Deepseekmath: Pushing the limits of mathematical reasoning in open language models, 2024.
[88] Edward J Hu, yelong shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. LoRA: Low-rank adaptation of large language models. In International Conference on Learning Representations, 2022.
[89] Ian Goodfellow, Yoshua Bengio, and Aaron Courville. Deep Learning. MIT Press, 2016. http://www.deeplearningbook.org.
[90] Oriol Vinyals, Charles Blundell, Timothy Lillicrap, koray kavukcuoglu, and Daan Wierstra. Matching networks for one shot learning. In D. Lee, M. Sugiyama, U. Luxburg, I. Guyon, and R. Garnett, editors, Advances in Neural Information Processing Systems, volume 29. Curran Associates, Inc., 2016.
[91] Maciej Wolczyk, Michał Zajac, Razvan Pascanu, Łukasz Kuciński, and Piotr Miłos. Continual world: A robotic benchmark for continual reinforcement learning, 2021.
[92] Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization, 2017.
[93] Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, Alban Desmaison, Andreas Köpf, Edward Yang, Zach DeVito, Martin Raison, Alykhan Tejani, Sasank Chilamkurthy, Benoit Steiner, Lu Fang, Junjie Bai, and Soumith Chintala. Pytorch: An imperative style, high-performance deep learning library, 2019.
A Reverse-engineering algorithms from AutoHebb networks
One of the major modeling aims potentially enabled by the AutoHebb architecture is to identify (or possibly discover) the essential algorithm implemented in performant AutoHebb networks. Further, doing so would also entail identifying the respective roles of the neural components of AutoHebb (fixed weights, plastic weights, main vs. control networks, neuromodulator, local learning rule, etc.), of which AutoHebb is fully comprised. Briefly, we consider the explicit identification of algorithms important for a number of reasons, including (a) facilitating or enabling improvement of algorithms in an applied setting, (b) anchoring scientific hypotheses about learning and generalization in the brain, as putatively realized in AutoHebb networks, to the hypotheses' algorithm-level descriptions, which would serve thus as the basis for deriving neural or behavioral predictions.
To identify algorithms in AutoHebb networks, our basic approach consisted of four steps: (1) identify the simplest AutoHebb architecture capable of adequately performing the task (which we term "minimal network"), doing so by re-training (meta-training) networks with progressively simpler architecture, (2) collect observations of a performant network's hidden activity, (3) identify components of the minimal network which can be idealized without alteration of task performance (or other behavioral patterns), (4) analyze the idealized network (under various task conditions) to obtain a explicit algorithm. These four steps are approximate; in practice, there is potential iteration between steps. We provide further details as follows.
For (1), we meta-trained cohorts of AutoHebb networks that varied these architectural hyperparameters: depth (of main and control networks), number of layers containing plastic weights, and the homo/heterogeneity of the plastic weight scales (denoted A). We did not algorithmically analyze 2-neuromodulator networks, though we did benchmark these latter networks. Additional potential hyperparameters include the unit non-linearities and layer widths; however, we did not explore these. For (2), we typically examined
-
fixed weights (and biases) as a function of item position (item 1 vs. 2)
-
neuromodulator activity over trials
-
neuromodulator activity with respect to trial output
-
neuromodulator activity with respect to trial outcome (external feedback)
-
hidden activity as a function of task variables (item identity, trial output, trial outcome)
-
hidden activity as a function of task structure (e.g. ranking, grouping)
For (3), we took findings from (2) that suggested idealization would be possible while retaining essential task behavior(s); we then either reasoned that the idealization was directly accurate or re-ran meta-training with the idealization as a hard constraint to re-assess task performance and behavior. For (4), we summarized the outcome of plastic weight updates to the network's output (e.g. beginning with initial state of the network) expressed in explicit mathematical form, then simplified and interpreted these plastic weight terms in an appropriate task- and condition-specific manner.
B Identification of learning algorithms from AutoHebb networks
Here we applied the approach described in Appendix A to identify algorithms for two of the tasks investigated in this study, namely TI and TI-L. We first provide general notation across tasks, then for each algorithm we provide a basic outline of the algorithm, followed by a specific analysis of neural components.
Notation. Our notation is as follows: let be the number of items with item dimension and the vector of ones viewed as a matrix. If (viewed as a matrix) is an item representation corresponding to item , then we let be the concatenation of two items and , which is the input format for trial type in the tasks presently studied. (We suppress the subscript when it is implicitly understood or refers to an arbitrary trial input.) Let be the plastic weight matrix following the 3-factor Hebbian update rule at time (Eq. 4). All networks we consider have at most one hidden layer, so we denote the hidden representation corresponding to at time as and similarly for and .
B.1 A learning algorithm for TI
In this section, we analyze a minimal AutoHebb network for transitive inference (TI) (described in Section 3.1). As further elaborated below, the basic algorithm performs a subtraction of the ranking of the two presented input items in each trial. Each item's ranking is represented by a single scalar value, and the network uses a subtraction mechanism to compare these values to determine which item has a higher ranking. If the network is incorrect, it updates the scalar values (corresponding to ranking) of the two presented items by an amount proportional to the difference in the scalar values.
Main network. Meta-training progressively simpler AutoHebb networks (see A) yielded a minimal network that had a simple perceptron architecture (with both fixed and plastic weights) given by
where . Note that the fixed weights implements a subtraction between item representations given different item positions (first vs. second position). This anti-correlated relationship between position-specific weights was observed in all meta-trained networks (Fig. 8). Further, since no meta-learning is needed in Eq. 5, we remove the sigmoid that would be needed to be applied to the readout (Section 2.1) in meta-training, and instead determine the choice based on the sign of using the standard Heaviside function .
Control network. In the minimal network, the neuromodulator was found to be predominantly determined by whether reward was received or not (). We idealize this behavior here by setting the neuromodulator value to 0 for correct responses and for incorrect responses, where is a fixed positive value. Note that we chose this idealization because it was sufficient to capture basic TI performance; it is also possible that the native meta-trained control network, in addition to other possible idealizations, may produce additional TI-related behavioral patterns of interest ([58]).
Plastic weight updates. As a step towards providing a mechanistic account of successful task performance on TI for the idealized network, we analyze the behavior of the plastic weights throughout training trials. Under mild conditions on the item representations and , we show the plastic weights converge in the limit for any infinite sequence of training trials. We note the idealized fixed weights are not used in this section. However, the analysis on learning TI in the subsequent section relies on the fixed weights in the idealized main network together with further constraints on item representations and .
Given the above description of the control network, the update rule for can be broken down into two cases:
Note that this model updates its plastic weights only after incorrect responses and therefore self-regulates learning in a trivial way after successfully learning a specific trial type (see Appendix C.3).
Since the pre-synaptic activity is always the input , and the scalar readout is the post-synaptic activity, we can group together terms in the plastic weights based on trial types and write a decomposition
where are coefficients obtained through the 3-factor learning rule for the trial consisting of the ordered pair of items and . If we can further expand as
where is the indicator function. The following theorem shows the absolute convergence of and, hence, the convergence of the plastic weights in the limit. The required conditions are the existence of some decision boundary (not necessarily the limit of the plastic weights) that can correctly classify training trials and a small enough value for .
Theorem B.1. Assume the network in Eq. 5 and update rule in Eq. 6. Let be items in . For a trial , let be the sign of a correct model response for trial type . Suppose there exists a weight vector such that for each trial type we have
Let be a sequence of trials with inputs . If as in Eq. 6, then converges as .
Proof. Let , and define
If the model's response is incorrect for trial , then by Eq. 6, we have
Since , we have the inequality
where we use the fact and have opposite signs. Furthermore, since there are only finitely many trial types , there exists a such that , so we have the inequality
Rearranging terms, we get
If we start from t = 0 and chain the inequalities, we obtain
After dividing both sides of the inequality by , we obtain an absolute convergence for the sum of all coefficients in Eq. 7 (expanding the using update rule Eq. 6). Thus, the plastic weights converge in the limit.
Next, we provide bounds for the probability of the existence of in Theorem B.1, starting with the lower bound by calculating the probability of linearly independent trial vectors. We remark that the existence of implies the existence of a vector such that
also satisfies the condition of Theorem B.1. If
for some a and b in , then it is straightforward to verify
gives such a .
Proposition B.2. Let be the probability of the existence of in Theorem B.1 for items in dimensions. Then
Proof. Let be item representations such that the ranking of is greater than the ranking of if and only if . Further suppose that the matrix of adjacent item differences whose th column is has full rank . Then there exists a vector in such that
i.e. for each , we have
Thus, the vector
satisfies the constrain in Theorem B.1, and we only need to compute the probability of the existence of item representations such that has full rank to obtain a lower bound.
Since the vectors for are linear combinations of the columns of , the matrix has full rank if and only if the are affinely independent. For affinely independent vectors, the dimension of the affine subspace generated by those vectors is . By Lemma G.1, this subspace contains at most possible item representations. Thus, the probability that introducing a new item vector affinely independent from the first vectors is
Taking the product over all conditional probabilities gives the result.
The lower bound in Proposition B.2 remains close to 1.0 for approximately and then decays rapidly to 0. However, simulations with the idealized network show successful task performance for approximately , beyond which networks empirically fail to learn TI. In order to provide a better assessment of the capacity of the idealized network, we provide an upper bound on .
Proposition B.3. With the notation from Proposition B.2, we have
Proof. There are unordered pairs of N items each determining a hyperplane via the equation
where is the vector of variables. As long as is away from these hyperplanes, the weight vector determines a strict ordering among all items. By Lemma G.2, there are at most
regions in determined by the hyperplanes. From our earlier remark, any weight vector from Theorem B.1, if it exists, induces a vector of type that also satisfies the condition of . Therefore, the probability exists is equivalent to the probability of a of the form given by . Any such lying away from all decision boundaries must be contained in one of these chambers, and there is at most one chamber containing weight vectors giving the correct order. Since any ordering is equally likely for any sampled set of items, the probability of a chamber containing weight vectors that correctly order the items is at most , which gives the desired bound.
For a fixed , the numerator of the upper bound in Proposition B.3 is a polynomial in of , which grows much more slowly compared to the denominator ! as . For example, if , the upper bound rapidly decays to 0 when , with already bounded from above by 0.0001.
In summary, we have shown that the plastic weights converge in the limit for under the condition that a weight vector exists. We then showed that the probability a given set of items in dimensions is bounded by
which tightly bounds close to 1 for and close to 0 for for some small . We note that a crude analysis of the upper bound shows as . Thus, we have shown that for most , the plastic weights converge for any sequence of trials with probability almost 1. However, our analysis only assumes such a exists and not that converges to . We note that there is a proof of convergence without the need for (Theorem G.3), but it leaves out the crucial case , which is required for our theoretical results on successful TI performance in the next section.
Learning. The previous section analyzed plastic weight behavior in the limit without reference to TI performance. Here, we discuss when the converged plastic weights contribute to successful TI. The analysis amounts to the consideration of two cases: 1) trial sequences with infinite model errors, and 2) trial sequences with finite errors. In case 1), the model converges to y = 0 for trial types with infinite errors, while, in case 2), the model converges to with probability 1. Furthermore, in case 2), if each trial type is shown infinitely often, then y necessarily converges to the correct response.
In case 1), the argument is straightforward: since converges in the limit for any trial type IJ and there are infinite errors, we have infinitely many t such that
which converges to 0 by the definition of a convergent limit. For case 2), we require an additional assumption that , where a weight update are a trial type IJ becomes a reflection across the decision hyperplane for trial IJ:
where is the identity matrix. This mitigates the decay of the magnitude of the error-induced weight updates since reflections preserve the distance to the decision hyperplane and forces finitely many nonzero errors under convergence. However, weight updates of one trial type can cause the response of another correlated trial type KL to land directly on the decision hyperplane, which would prevent the model from learning a correct response to KL.
Theorem B.4. Fix the number of items N and their dimension d. If , then:
-
If a sampled set of items has a as in Theorem B.1, then any infinite sequence of trials induces finitely many nonzero error updates.
-
Let , and let be a random perturbation of . The probability that the perturbation satisfies the following is 1:
- Let be the perturbed weights, where the plastic weight rule in Eq. 6 treats as part of the fixed weights. For every set of item representations having a corresponding weight vector from Theorem B.1 and any sequence of trials where each trial type is presented infinitely often, the limiting weights converge, and we have
Proof. For 1), since , the weights
converge by Theorem B.1. Suppose towards a contradiction that there are infinitely many nonzero errors in some sequence of trials. Let E be the set of all trial types that have infinitely many nonzero errors. For each trial type IJ in E, let be its decision hyperplane in weight space, and define
For trial types not in , the weights stop updating for those trial types after some finite time . Thus, for , the weight vector preserves its distance to and continues to reflect through the decision hyperplanes . However, we have already shown infinitely many nonzero error updates implies must converge to a weight vector in , and since the distance of to is constant after finite time , this constant must be 0. This contradicts the assumption of infinite nonzero errors.
To prove 2), we show the set of weight vectors in lying on the decision boundary of any trial type after any finite sequence of trials has measure zero. In the following, we consider arbitrary weight initializations , not only . Each trial type defines a weight update given by a Householder reflection (Eq. 9) through the decision boundary for the trial type, which is independent of . Thus, if is the Householder reflection corresponding to trial , the dynamics of any sequence of weight updates can be represented by a sequence of reflections (we treat as a row vector for notational convenience):
For simplicity and without loss of generality, we ignore trials where no weight update is applied. Let be a sequence of reflections, and let
For each trial type IJ, the weights lie on the decision boundary for IJ if
Since reflections are invertible, the matrix is invertible and . Thus
defines a hyperplane in the weight space for initializations . Since there are
• finitely many possible collections of items,
• finitely many trial types per collection of items.
• and countably many finite sequences of reflections ,
we have countably infinitely many hyperplanes where lies on the decision boundary of some trial type. A countably infinite set of measure zero sets has measure zero, hence, a uniformly randomly sampled does not lie on the decision boundary of any possible trial type after any finite sequence of weight updates with probability 1. Since is drawn uniformly from an -hypercube around , the same conclusion holds for .
The convergence of follows from Theorem B.1—the proof does not rely on the weight initialization. By part 1) (which also does not require any special weight initialization by the more general form of Theorem B.1), the weight updates for cease after a finite number of trials, so the limit is nonzero outside a set of measure zero for the initialization .
It follows immediately from the update rule Eq. 6 the limiting weights for in Theorem B.4 2) lie on the correct side of the decision boundary for every trial type as long as every trial trial type is presented infinitely often. Note that we have not made any claims about learning when . Although can be made arbitrarily small, the limiting case when introduces algebraic identities that complicate extending the proof of Theorem B.4 to the specialization . In our simulations, we found that was rarely contained in the decision boundary of some trial type at the end of an episode. Nonetheless, this proof illustrates the essential learning behavior of our idealized network.
A representation of rank. We now describe how the model represents rank. First, we will show that, in expectation over trial sequences, the learned rank representation is position-independent. Second, we show that when the network is presented with an item I in a particular trial, it determines its rank by recalling previous trial outcomes only involving I (in the same position as in the current trial). Further, the rank representation of I is changed only when the model responds incorrectly to a trial containing item I.
Let
be the weights at time . We can express as a concatenation of two vectors and in acting on the individual items in a trial:
Then, averaging over the distribution of trial sequences, we show by exploiting a symmetry in the distribution of sequences of trials. If we define
then is incorrect if and only if is incorrect. Furthermore, the weight updates on the incorrect responses mirror each other:
and, if , then
Let . Since , and we have a bijection between finite sequences of trials and , we have
If and , then
so the magnitude of the rank of an item is independent of its the position in expectation.
Now we consider the components of the representation. In the following, we only consider , but the arguments are symmetric for . Let be the input vector with item in the first position and the vector of zeros in the second position and vice versa for . Then, using Eq. 7, the readout for an item in the first position takes on a simple form (suppressing time notation)
where is a small quantity (in expectation) measuring interference between inputs relative to their dimension. Thus, we have, approximately,
Due to this observation and Eq. 7, we see that updates only affect items presented in the trial responsible for the update; for a trial where the model responds incorrectly, we have the plastic weight update:
so, by Eq. 10, the rank representation for I at time is
By a similar calculation, we have for .

Figure 8: Anti-correlative relationship between item 1 and item 2 weights in the first layer of an AutoHebb TI model.
An algorithm for TI. We are now able to present an algorithm based on our analyses. First, we remark that the position-dependent behavior of the network can be removed if, for example, a fixed random projection without plastic weights but with an anti-correlated structure on the item-wise weights is inserted before the readout (e.g. a row-wise concatenation Concat for some random matrix ) combined with modifying to be simply a vector of ones without any negative values. However, we remain faithful to this position-dependent behavior in Algorithm 2 as part of our aims outlined in Appendix A and initialize rank vectors and corresponding to the left and right position rank representations, respectively. These are initialized from a common randomly sampled vector (line 1), which can be viewed as the values for items , almost directly, except we allow more flexibility in the choice of sampling distribution.
The rank difference in line 3 is exactly our idealized network response. Line 4 ensures updates only occur on incorrect trials. Our analysis above shows that the network only updates it rank representation for items present in the given trial, which manifests in lines 5 and 6. The precise update in our analysis for a trial was , but the dimension in the algorithm is no longer relevant. A suitable learning rate can be found via a simple hyperparameter search. For example, if and is initialized by uniformly sampling from , then will successfully perform TI.
B.2 A neural mechanism for TI-L
A successful model for TI-linking (TI-L, Section 3.3), must be able to modify its internal ranking of items absent in a given trial. Therefore, the toy network in Appendix B.1 is insufficient, according to our algorithm. While we have not proved that any one-plastic-weight network with many hidden layers combined with a rich control network cannot perform TI-L, the mechanism outlined in Appendix B.1 is consistent with the two-hidden layer networks with only one set of plastic weights we trained but did not report here. The AutoHebb models used our experimental results in Table 2 show successful TI-L performance with an additional set of plastic weights. Through ablating model components of these successful networks, we arrived at the toy network used throughout this subsection.
Main network. Like the idealized network in Appendix B.1, we found that nonlinearities were unnecessary for successful TI-L. However, we could not obtain successful linking without at least two sets of plastic weights, which led us to a network with one hidden layer. Throughout our simulations, we observed that
Algorithm 2 TI Algorithm
Require: Positive integer Require: Require: Randomly initialize rank vector Require: Episode , where and
1: 2: for in do 3: 4: if and or and then 5: 6: 7: end if 8: end for
▷ Number of items ▷ Neuromodulator value for negative reward ▷ Innate rank representation ▷ Position-dependent ranks ▷ Relative rank ▷ Update on errors only
meta-trained AutoHebb models carry an anti-correlative structure between item-wise weights in the first set of meta-trainable weights in the main network, so the analogue of the subtraction between item representations in Appendix B.1 occurs earlier in this network. We set (denoted for simplicity), a row-wise concatenation of a random matrix , and we obtain the following idealized AutoHebb network:
where is a matrix of 1's and and are positive scalars.
Control network. The essential behavior of the control network for the meta-trained networks was observed to be similar to that in Appendix B.1. The control network for our idealized network in Eq. 11 behaves exactly as in Appendix B.1; we fix a neuromodulator value for incorrect model responses but do not update plastic weights on correct responses.
Plastic weights. As in the TI case, we will analyze the general behavior of the plastic weights throughout learning. We first discuss general convergence criteria and then analyze the interactions between the two sets of innate and plastic weights for learning and inference, which yields a four different interactions. Together, these four interactions yield a richer mechanism compared with the idealized TI network of Eq. 5. In the idealized TI-L network of Eq. 11, the first set of plastic weights store past item associations that are retrieved by inputs, as in the idealized TI network. However, the associative data stored are the hidden representations rather than the trial outcomes. These trial outcomes are now stored downstream in the second set of plastic weights, which are accessed by hidden states. With two successive plastic weights, the network produces a hidden state that can recall trial outcomes of associated items not present in the input. In other words, the network utilizes the ranks of all items associated with the input items to generate a choice, whereas the idealized TI network considers only the input items themselves.
Based on the idealized control network above, the update rules for and are as follows:
and
(12)
If we absorb the into , we can view the network as having distinct neuromodulator values for incorrect response, and . Similar to Theorem G.3, the plastic weights and converge as when and is any positive value. While there is a similar analysis one can perform for the case of separating weight vector when , we will show in our theoretical analysis for TI-L that the optimal value for is less than . Since we are not concerned with general TI behavior in this section, we omit this analysis.
Learning. We now aim to understand how the idealized network utilizes both and to learn. We show the updates for enable the network to recall past trial outcomes in for items different from the inputs. We end with a theoretical statement that guarantees successful linking when each individual list is learned.
Like Eq. 7, we can decompose each of the plastic weights:
where
and
where and is some time-evolving coefficient depending on the responses y.
Assuming orthogonality of item representations for and an incorrect response for some trial , we get the following expression for :
Thus, only the vector coefficient for is updated. The term contributes a fixed innate vector update, while
contributes a collection of item associations stored in the plastic weights in the form of , where at least one of or . Note that the themselves consist of past hidden states by Eq. 14. With sufficient training examples and by a recursive argument, the can have nontrivial dot product with for and . Through and its decomposition given in Eq. 15, this memory structure enables the network to recall past trial outcomes whose inputs consist of items distinct from both and .
Under idealized assumptions about the learned representations of each individual list, we show that the network is guaranteed to link both lists and form the correct order among all items after seeing a single linking pair.
Theorem B.5. Let be 2N items in . Assume the network
in Eq. 11 and update rule in Eq. 12. Let , and suppose for some time T the following conditions hold:
(1) (Sufficiently uncorrelated inputs.) For , we have .
(2) (Perfectly symmetric within-list TI.) If we set
then we have:
• for all ;
• for ;
• for .
(3) (Learning rates in right range to link and preserve within-list ranks.) Let and . Set
The effective learning rates and satisfy
Then, after one update on either or , we have
for every .
Proof. The proof proceeds in two steps. First, we analyze the effect of the update on the readout and show that the concatenated ranking due to only this readout update is correct. However, this part of the proof does not incorporate the update from the first layer. In the second step, we analyze the effect of the update on the first layer and ensure it does not interfere with the readout-updated ranking.
We provide some notation to start. Let and . By assumption (2), we have
and
In particular, and . Let denote the concatenated input of the presented linking pair, and assume that the linking pair is . The proof for reverse case is symmetric. The pre-update hidden activity and output are and , respectively. By assumption (2), the model response is incorrect, and the readout update is
We first examine the effect of the readout update on the original hidden representations. We will show that the readout-updated scores have the desired concatenated ordering. For the linking pair, we have
Thus the readout update reverses the linking pair precisely when . Write , so that is the resulting gap between the lists' boundary items.
Next, consider adjacent items in either list. By Cauchy–Schwarz and the definition of ,
We therefore write for the guaranteed fraction of each within-list gap retained by the readout update. Assumption (3) gives and
In particular, , so the preserve both within-list orders and separate their boundary items. Their within-list gaps are at least , and their cross-list gaps are at least . It remains to show that the first-layer update cannot change these inequalities.
Since , the exact post-update output is
(17)
Thus the first-layer update contributes an additional term that we must show cannot change the readout-updated rank inequalities. The analysis is split between 2 cases: within-list trials and non-linking cross-list trials.
• (Within-list) First consider in the same list. Then assumption (1) gives
For , one item may overlap, so we obtain a lower bound
Since for within-list items, these bounds together with Eq. 17 give
Thus every within-list comparison remains correct.
- (Cross-list) Next consider . As shown above, we have . For cross-list trial types, the overlap can include the presented linking pair itself, so we instead use the upper bound
which also holds for . This inequality together with Eq. 17 yields
The last inequalities follow from and (assumption (3)).
Thus, a fully correct concatenated rank ordering is established.
This theorem shows that given a sufficiently good within-list TI learner and the right learning rates, the model can list-link. Empirically, we have seen that on average, the rank representations of items in each list satisfy assumption (2), so assumption (3) is where meta-training or hyperparameter tuning is necessary. Note that must be greater than in order have a non-empty interval for . We leave the relaxing of the assumptions in the proof to future work.
Algorithm 3 TI-L Algorithm
Require: Number of items
Require: Randomly initialized rank vector
Require: Learning rates
Require: Episode , where and
1:
2:
3: for in do
4:
5:
6:
7: Update
8:
9: Update
10: Update ranks
11:
12:
13:
An algorithm for TI-L. Algorithm 3 abstracts the memory-recall structure described above. We can think of as encoding a position-dependent hash table (line 1), whose keys are items and whose values are "scaled" items, which are keys for accessing rank representations (line 2). The scalar determines how strongly to consider the rank of that item for its response. As in Algorithm 2, the and vectors represent the position-dependent ranks. If the difference between two ranks is incorrect (line 5), then we update the memories following our analysis in Eq. 16 (lines 6-8). Line 9 updates the readout, and lines 10-11 are simply using an abstracted version of the idealized network to store the updated the position-dependent ranks.
C Additional emergent learning-generalization abilities ("meta-test" behaviors)
In this section, we report additional results indicating that AutoHebb networks have emergent learning and generalization abilities, i.e. abilities not explicitly optimized during meta-learning. These abilities were assessed by "meta-testing" models (both AutoHebb and other models): that is, presenting models with lifetime experiences (new tasks, consisting of systematically different sequences of trials) that differ from those presented to the model during meta-learning or hyperparameter tuning. As follows we report results testing three representative models (OML, ANML, and 1-neuromodulator AutoHebb) to evaluate three such emergent abilities.
C.1 Length generalization in TI
In humans and animals, the ability to perform TI is thought to be based on an abstractable ability to perform serial ordering that extends beyond a specific number of items, notwithstanding limitations due solely to memory capacity. In our model setup, meta-learning (or hyperparameter tuning) was conducted only on episodes that presented 8 items; thus it remains an open question whether models can 'generalize' their ability to perform TI to larger numbers of items. In testing three representative models (OML, ANML, and AutoHebb), we found that AutoHebb showed an exceptional ability to generalize to larger numbers of items, despite the ability of both OML and ANML to perform TI adequately. The results in this section are reported for training phases consisting of trials (N is number of items), where the different training trial types (covering all 'adjacent' item pairs, e.g. 14 item pairs for 8-item TI) are presented in random order, followed by an additional N-1 randomly sampled training trials.

Figure 9: TI length generalization with 14 items. Plots follow the format based on Figure 4, where item pairs (on x-axis) are grouped and organized from left to right with increasing symbolic distance. Each model was meta-trained on 8 items (left) and subsequently evaluated (after meta-training) on 14 items (right). Note that ANML and OML show near-chance performance on many inferential trial types (item pairs) except for item pairs with larger symbolic distances. AutoHebb is the only method with above chance performance on all inferential trial types.

Figure 10: TI length generalization with 20 items. Plots follow the format based on Figure 4, where item pairs grouped from left to right with increasing symbolic distance. All models are meta-trained on only 8 items (see Figure 9, left) and evaluated on 20 items. Note that ANML and OML show relatively weaker performance than AutoHebb on inferential trials, though on this more difficult task AutoHebb chance performance on some inferential trials, indicating limitation in length generalization and/or memory capacity (e.g. compare to 14 items Figure 9).

Figure 11: Summary plot of length generalization in TI (8 to 20 items). Performance shown for inferential ("0-shot" inference) trials only. AutoHebb consistently outperforms OML and ANML across all numbers of items.
C.2 Length generalization in TE
As with TI, the ability to perform TE in humans and animals is thought to be based on an abstractable ability to perform grouping that extends beyond a specific number of items per group (; generally in experimental tests), and beyond a specific number of groups (), the latter of which is indeed commonly experimentally tested in TE-based experimental studies (e.g. [64, 61, 65]). In our model setup, meta-learning (or hyperparameter tuning) was conducted solely on episodes that presented TE with and ; thus it remains an open question whether models can generalize their ability to perform TE to larger values of and . In testing three representative models (OML, ANML, and AutoHebb), we found that AutoHebb showed an exceptionally strong ability to generalize to larger numbers of items than ANML (note that OML did not perform the base TE task). However, ANML showed a competitive ability to perform TE on larger numbers of groups, with AutoHebb outperforming ANML on and 4, but ANML outperforming AutoHebb on . The results in this section are reported for training phases consisting of all training trial types presented exactly once in random order.


Figure 12: Length generalization on TE with respect to numbers of items per group. Top: Heatmaps show average model choices (1 for same group, 2 for different group, see Figure 5), from 3 items per group to 6 items per group (left to right). In contrast to OML and ANML, AutoHebb generalizes to 4 items per group, though has limited ability on more than 4 items. Bottom: accuracy (calculated the same way as in Section 4.1) and F1 plots, where F1 is computed for same-group ZI trials.



Figure 13: Length generalization on TE with respect to numbers of groups. Top: Heatmaps show average model choices (1 for same group, 2 for different group, see Figure 5), from 3 groups of 3 items to 6 groups (left to right). AutoHebb shows successful ZI ability up to 6 groups. Notably, though ANML shows weaker generalization up to 5 groups, its overall accuracy outperforms the other two models after 6 groups. Generally, AutoHebb maintains its same-group ZI ability while its different-group accuracy decays, even for training trials. In contrast, ANML maintains its different group bias and loses its same group accuracy, even on training trials. These behaviors suggest different underlying inductive biases, as would be expected given the models' different architecture and learning rules. OML has similar behavioral bias as ANML, though OML cannot infer on same-group trials at any group size. Bottom: accuracy (calculated the same way as in Section 4.1) and F1 plots, where F1 is computed for same-group ZI trials.
C.3 Robustness to trial overexposure in TI
A critical aspect of natural (and successful) learning is self-regulation, or the ability to control or stabilize plastic changes that would otherwise destabilize or interfere with important prior learning [1, 4, 5]. Intriguingly, in TI tasks, experimental work has found that living subjects successfully retain the ability to report previously learned serial order when a single item pair is shown a large number of times (trial overexposure or "massed presentation", [58, 81]); notably, this behaviorally exhibited instance of stable learning is not expressed in some models of TI [58]. In this way, testing this behavioral pattern (which is not optimized during meta-training in our model setup) evaluates a non-trivial ability to self-regulate learning, moreover one grounded in empirical findings in living subjects.
Similarly to previous tests, we ran three representative meta-learned models (OML, ANML, and AutoHebb) on a modified trial sequence in TI, namely where 100 additional trials (all of which were the item pair DE) were presented after the 20 adjacent-only trials. We found that OML and ANML generally showed substantial decrease in performance on trial types involving D or E (besides DE itself), with some trial types showing decrease in performance to chance or below chance levels. In contrast, AutoHebb showed only minor changes in performance across all trial types. Examination of the neuromodulator signal in AutoHebb network revealed that the network rapidly downregulated neuromodulation (and thus plasticity) within approximately 20 trials of (repeated) exposure to DE.

Figure 14: Performance of three representative models on TI before vs. after overexposure of a single trial type (item pair DE). Plot follows the format of Figure 4, where trial types are ordered by symbolic distance. (Left) Performance after the standard 20 training trials are shown, (Middle) Performance after an additional 40 trials of DE are shown, (Right) Performance after an additional (from standard training trials) 100 trials of DE are shown. Results are averaged over 100 episodes with 2 s.e. bands. Note that for OML and AMNL, several trial types approach (or reach) chance performance, indicating lack of robustness to the overexposure manipulation; in contrast, AutoHebb trials remain well above chance.

Figure 15: Neuromodulator in AutoHebb network during overexposure to single trial type (item pair DE). The x-axis shows the trial index of the repeat presentation of item pair DE. Note that the neuromodulator is fully suppressed after approximately 20 trials. Results are averaged over 100 episodes, and show mean ± 2 s.e.
D Supplementary figures

Figure 16: AutoHebb networks benchmarked in the present study: 1- and 2-neuromodulator AutoHebb (AH-1NM and AH-2NM). For both models, the main network was chosen to be a multi-layer perceptron (MLP) with four hidden layers; the models differed by the number of neuromodulators (and corresponding control network; in the 2-neuromodulator network, the control networks were parallel, as diagrammed). AH-2N is loosely inspired by the existence of multiple neuromodulatory systems in the brain, and was included in benchmarking to evaluate the possibility that parallel neuromodulated plastic architecture would enhance task performance. Note that each set of plastic weights at a given layer in the 2-neuromodulator network were summed (Eq. 18). Top, AH-1N, Bottom, AH-2NM. Note that additional AutoHebb networks were also investigated in this study, and are indicated accordingly were applicable. Implementation details can be found in Appendix E.

Figure 17: TI and TI-L tasks: model performance by trial type. Plots follow the convention in Figure 4c, where within each plot, trial types (item pairs) are organized by symbolic distance. Plotted are model outputs for an example model instance for each indicated model. Note that on TI-L, various models such as MAML, Reptile, OML, ANML show overtly inconsistent performance across trial types, in contrast to FLP, 2F-A, 2F-ABCD, AH-1NM, and AH-2NM.

Figure 18: TI and TI-L tasks: average model outputs. Plots follow the convention in Figures 4 and 6. Plotted are model outputs for an example model instance for each indicated model.

Figure 19: TE and TE-L tasks: average model outputs. Plots follow the convention in Figures 5 and 6. Plotted are model outputs for an example model instance for each indicated model.
Table 4: Model performance on TE by trial type (See Figure 5a). Note that models generally show a bias to output "different" by default on the task, resulting in high performance on different-group trials.
| Model | Diff-group | Same-group |
|---|---|---|
| MAML [51] | ||
| Reptile [69] | ||
| MER [71] | ||
| OML [70] | ||
| FLP [73] | ||
| ANML [72] | ||
| 2F-A | ||
| 2F-ABCD | ||
| AH-1NM | ||
| AH-2NM |
Table 5: Model performance on TE-L by trial type (See Figure 6c). Results are separated into "Original" trials – ZI trials involving only the three originally -presented groups as shown in Figure 5a – and "New Item" trials – ZI trials involving the new item and items not seen during the linking phase of training as shown in Figure 6c. In contrast to Table 4, the linking trials reduce the bias towards predicting "different" on TE-L Original trials and, in some cases, improve the models' predictions. However, the majority of models have chance or below chance on one category of the TE-L New Item trials.
| Model | TE-L Original | TE-L New Item | ||
|---|---|---|---|---|
| Diff-group | Same-group | Diff-group | Same-group | |
| MAML [51] | ||||
| Reptile [69] | ||||
| MER [71] | ||||
| OML [70] | ||||
| FLP [73] | ||||
| ANML [72] | ||||
| 2F-A | ||||
| 2F-ABCD | ||||
| AH-1NM | ||||
| AH-2NM | ||||
Table 6: Model performance on multi-task ZI on TE, by task order and trial type (See Figure 5a). Note a strong different-group bias appears for all models in both task orders (TI to TE and TE to TI). *Only 3 runs are reported.
| Model | TI → TE | TE → TI | ||
|---|---|---|---|---|
| Diff-group | Same-group | Diff-group | Same-group | |
| MAML [51] | ||||
| Reptile [69] | ||||
| MER [71] | ||||
| OML [70] | ||||
| FLP [73] | ||||
| ANML [72] | ||||
| 2F-A | ||||
| 2F-ABCD | ||||
| EWC [33] | ||||
| SI [34] | ||||
| A-GEM [76] | ||||
| DER [75] | ||||
| AH-1NM* | ||||
| AH-2NM | ||||
E AutoHebb training
Given fixed parameters , an episode consisting of input and output pairs , and corresponding target outputs , we took the loss function for meta-learning to be binary cross-entropy loss (BCE):
We generally trained models up to 100,000 episodes or convergence based on meta-training loss. Since each inner loop episode consists of randomly sampled items from , the probability of two different inner loop episodes using the same sets of items is negligible. Thus, the criterion for convergence strictly used the meta-training loss.
Although we freeze plastic weights during ZI evaluations, we do not freeze plastic weights during the test phase in meta-training inner loops. Generally across all models in the paper, we empirically observed that allowing models to update parameters on the test trials in the inner loop led to better performance, AutoHebb included. Furthermore, in order to increase the speed and efficiency of learning ZI, the ZI test trials (i.e., excluding the trials seen during training) are weighted throughout meta-training as in [48]. In fact, when zeroing meta-training loss for adjacent pairs in TI, AutoHebb achieved nearly perfect performance on TI and TI-L ZI. However, we found that the same approach for TE was detrimental, likely due to the fewer number of ZI test trials relative to TI.
For all tasks reported, our networks use a hidden dimension of 200 and a tanh activation function with the exception of the network in Figure 7, which is 512-dimensional. The items are 100-dimensional, i.e. , making the trial inputs 200-dimensional after concatenation. As discussed in Section 2.1, the hidden layers for a 1-neuromodulator AutoHebb network is given by
However, for 2-neuromodulators, each hidden layer becomes
(18) where is meta-trainable. Then the updates for each set of plastic weights are . Each neuromodulator has its own control network
Details for training are as follows: we use a learning rate of 0.0001 for TE and multi-task models, and a learning rate of 0.00045 for TI. We use the default Adam optimizer ([92]) in PyTorch ([93]) with eps set to and gradient clipping within . The plastic weight decay term is fixed to 1, except in model used in Figure 7 (see Appendix F.4). Our batch size for the inner loop was 32 parallel episodes with different training trial orders and sampled test trials, but the item representations and ranking between items stayed the same. We found randomizing items across episodes between batches reduced efficiency, but such an approach may prevent overfitting. For the multi-task ZI learning, we used 2 gradient accumulation steps to achieve an effective batch size of 32, with batch splitting between both task orders. In order to prevent overfitting to task-learning regimes, we randomly sampled training task lengths between 20 to 100 training trials for TI and 63 to 120 trials for TE. We fixed those values for all episodes within the batch for both directions. The ZI testing phase always matched the order of tasks seen and used 30 test trials for each task. In TE, we used 30 test trials for each inner loop and 10 test trials for TI. We sampled 75% of trials to be nonadjacent pairs for all tasks. Compute requirements for AutoHebb were relatively light compared to other methods, only requiring 8 GPU hours on an H100 for a 3-hidden layer network with 2 neuromodulators on TI to reach 100,000 meta-training steps. The time increases to 12 GPU hours on a single H100 for TE due to its longer episodes. The multi-task models were the most compute-intensive, requiring 26 hours on a single H100. The only the multi-task ZI AutoHebb models reported in Table 3 use 2-hidden layers, while all other implementations use 3-hidden layers. We found that the added depth significantly improved task performance in fewer meta-training episodes. Using more layers for the multi-task ZI model required gradient stabilization methods, which are beyond the scope of this work. Furthermore, the multi-task models required the use of gradient accumulation in order to avoid out-of-memory issues despite the small number of parameters due to backpropagation through time (BPTT).
F Experimental details
F.1 Benchmark rationale
In the present study, we had two main goals in the choice of benchmark models. The first was to compare AutoHebb to well-established and widely competitive learning models; the second was to provide performance comparison to models that are systematically comparable to AutoHebb in model components, and in so doing provide the equivalent of ablation analysis of AutoHebb. Both goals are critical, since with respect to the first goal we contend that AutoHebb (even despite being geared for understandability and analysis) is potentially competitive on a number of tasks; with respect to the second goal, we sought to provide model comparisons that would test the contribution of each of the three main model components of AutoHebb: in particular, meta-learning, Hebbian plasticity, and neuromodulation. As follows, we present our rationale along three main (overlapping) categories of models; we lastly highlight how a subset of these models constitute an effective ablation analysis of the main model components of AutoHebb.
-
The first category of models are models that use meta-learning, a number of which are well-established in the machine learning literature. Importantly, these models also provide a critical point of contrast with AutoHebb, as these models (unlike AutoHebb) do not rely on Hebbian plasticity or neuromodulation. In this way, comparing AutoHebb to meta-learning models can help delineate any advantage or disadvantage conferred by neuromodulated Hebbian plasticity. The models we benchmarked are model-agnostic meta-learning (MAML [51]), Reptile ([69]), an online meta-learning algorithm (OML [70]), meta-experience replay (MER [71]), a neuromodulated meta-learning algorithm (ANML [72]), and feedback and local plasticity (FLP [73]).
-
The second category of models are 2-factor Hebbian models (feedforward variants of 2-factor Hebbian RNN models introduced in [74]), which also provide a critical point of contrast to AutoHebb. In particular, if AutoHebb's reliance on neuromodulation (global control of Hebbian plasticity) is critical to task performance, then models that retain Hebbian plasticity but lack neuromodulation should not perform comparably to AutoHebb. We therefore benchmarked 2-factor Hebbian models (in the same MLP architecture as AutoHebb's main network) that lacked the 3-factor (neuromodulatory) term essential to AutoHebb; in these models, to provide necessary external feedback from each trial, external feedback signals (i.e. reward and non-reward) on a given trial was concatenated to the input vector and provided on the subsequent trial. Two 2-factor Hebbian models were tested: 2-factor-A (2F-A), which has a single Hebbian pre-post term in the plastic update, and 2-factor-ABCD (2F-ABCD, e.g. [44]), which has pre-post (A), pre (B), post (C), and a constant (D) terms. In addition, FLP ([73]) also represents a 2-factor Hebbian learning model, though this model incorporates an external loss function and feedback connections. Note also that all of these 2-factor Hebbian models also make use of meta-learning to identify fixed weights and learning hyperparameters.
-
The last category of models are weight regularization methods, which constitute a classical approach to CL. These are elastic weight consolidation (EWC [33]), synaptic intelligence (SI [34]), dark-experience replay (DER [75]), and averaged gradient episodic memory (A-GEM [76]). All of these methods update weights via gradient descent with an additional regularization term that decreases plasticity for weights that are important relative to past experiences in order to mitigate catastrophic forgetting. Note that, with the exception of DER, a major limitation of these models is that task identities need to be provided to the model. Note that for AutoHebb, we do not provide task cues.
We highlight that a subset of the above models can be interpreted as ablations of one or two of the three main model components of AutoHebb. In particular, the meta-learning models that use gradient descent to learn (MAML, Reptile, OML, MER, ANML, and FLP) can be interpreted as retaining AutoHebb's reliance on meta-learning, though ablating both Hebbian plasticity and neuromodulation; the 2-factor Hebbian models (2F-A and 2F-ABCD) can be interpreted as retaining AutoHebb's reliance on Hebbian learning (and meta-learning, which still is performed on the fixed weights and fixed plasticity parameters), though ablating neuromodulation; lastly, ANML in particular can be interpreted as retaining AutoHebb's reliance on neuromodulation and meta-learning, though ablating Hebbian plasticity. Below we provide a table summarizing these relationships. Broadly, we suggest that exceptional performance of AutoHebb (as compared to these various benchmarks) argues for the importance of each of the three main model components of AutoHebb.
| Meta-learning | Hebbian | Neuromodulation | |
|---|---|---|---|
| EWC | |||
| SI | |||
| DER | |||
| A-GEM | |||
| MAML | |||
| Reptile | |||
| OML | |||
| ANML | |||
| MER | |||
| FLP | |||
| 2F-A | |||
| 2F-ABCD | |||
| AutoHebb |
Table 7: Comparison of model types.
F.2 Benchmarking measures
The reported values were computed as follows: the accuracies on critical pairs described in Section 4.1 were averaged over 100 episodes, then the mean accuracies were averaged over 6 different meta-trained models. We provide 2 standard errors over these 6 runs. The TE values are the equal-weighted mean of Same-group and Diff-group values, i.e. .
F.3 Training
With the exception of mini-batch gradient descent methods MAML and Reptile ([51, 69]), each model's online training setup was aligned to AutoHebb's as closely as possible while simultaneously leveraging their unique design elements. While meta-trainable parameter counts differ between models, all parameter counts are within the same order of magnitude, and the depths and widths are consistent throughout. Since the architectures were consistent throughout tasks, we selected the best hyperparameters based on the critical pair accuracy in TI and applied those hyperparameters throughout all tasks. Due to the heavy compute requirements for meta-training and large amounts of tunable hyperparameters in some methods such as MER ([71]) and FLP ([73]), we relied on a combination of hyperparameter grid searches and recommendations from the corresponding literature. All methods use the default Adam optimizer in PyTorch ([93]) where applicable as in AutoHebb's setup described in Appendix E. For all models, we use 4 hidden layers (except OML), and all hidden layers are 200-dimensional, use Kaiming Uniform initialization and batch sizes of 32 in the inner loop unless otherwise stated. All models were trainable on a single H100 within 48-72 hours on all tasks. Relative to the training speed of these models, AutoHebb was around the median. The slowest model was MER due to its triple nested loop in its native form, which required us to use the batching variant provided in the appendix of [71]. All non-meta-learning methods were trained for 100,000 episodes.
MAML For the individual tasks we retain full second-order meta-gradients; for the multi-task setting we use first-order MAML (FOMAML) to reduce memory and compute costs. The meta-batch size is tasks. The outer loop learning rate is 0.0003. Per-phase inner learning rates are stored in log-space and meta-learned, initialized at 0.3. Within each episode, the inner loop processes the training trials and test trials sequentially, with gradient descent (one update per batch) applied at each phase using its respective learned learning rate; the meta-loss is computed over the test-phase predictions. For single-task TI, the training phase consists of 20 adjacent trials and the test phase of 30 mixed trials; for single-task TE, 30 training and 30 test trials. At meta-test, we use 2 SGD steps per training trial. Note that the use (in MAML and in Reptile below) of batch updates, as well as adjustable number of update steps, have no obvious equivalent to the learning setting investigated in this study, namely online learning. Further, as online learning entails realistic updating given limited resources (time and processing), we evaluate MAML (and Reptile below) given a limited number of gradient update steps – evaluating on a limited number of gradient steps also conforms to what is prescribed by these methods in practice ([51]).
Reptile We use the same architecture, and meta-batch size as MAML. The outer loop learning rate is 0.00005 and inner loop learning rate is fixed at 0.1. The readout layer is frozen during the inner loop. Reptile uses first-order updates by construction, computing the outer gradient as the displacement between the initial and adapted parameters averaged across tasks. We use one SGD update for the training batch and 5 updates for the query batch (30 trials). At meta-test, we use 3 SGD steps per training batch.
MER We implement Algorithm 7 from [71], the single-batch speedup variant of Meta-Experience Replay. A reservoir-sampled replay buffer of capacity 200 is maintained across episodes. On each new trial, examples are drawn from the buffer and combined with the current trial; the current trial receives a boosted learning rate of while buffer examples use , followed by a single Reptile-style interpolation with coefficient . Per-trial cost is forward-backward passes. All trials are processed through the MER update loop and added to the buffer. At meta-test, the saved model parameters and buffer state are restored, and each training trial triggers the same MER update followed by reservoir insertion.
OML We use a representation network (RN) of 2 hidden layers and a prediction network (PN) of 3 hidden layers [70]. The RN is frozen at meta-test; the PN is re-initialized fresh each episode and adapted via SGD at a learned inner learning rate (initialized to 0.01 in log space). The outer loop learning rate is set to 0.003. For each task we use 30 inner test trials and 30 outer evaluation trials. At meta-test, the PN is re-sampled each episode and adapted with 1 SGD steps per training trial.
FLP We use a 4-hidden-layer MLP backbone with the last 2 hidden layers and the readout designated as plastic, following the direct feedback alignment architecture of [73]. Each plastic hidden layer carries meta-learned per-synapse plasticity coefficients (same shape as ), a feedback-mixing scalar applied as , a feedback weight matrix of shape projecting the scalar output signal directly to the layer, and a per-neuron feedback bias . The readout layer is always plastic (with only; no or ). Earlier hidden layers are static and serve as a meta-learned feature extractor, analogous to OML's representation network. All plasticity parameters are meta-learned via Adam, with a separate learning rate of 0.0001 for (which is highly sensitive due to amplification through the inner-loop Hebbian chain) and 0.001 for all other parameters. At each inner-loop trial, the Oja-rule update is applied: , where is the input to layer and is a learned mixture of the layer's feedforward activity and the rectified feedback signal: . We use the raw target as the feedback signal () with initialized at 0.0 (, equal mix of forward and feedback activity) and initialized at 0.0 (plasticity starts silent and is discovered by the meta-gradient). Full second-order meta-gradients are retained through the inner loop.
ANML We use the parallel neuromodulator (NM) and prediction network (PN) architecture from [72], with 4 hidden layers in each trunk and all PN layers designated as plastic. The outer loop learning rate is set to 0.0001. The inner loop runs 30 test trials and 30 evaluation trials in the outer loop. At meta-test, we use one SGD step per trial on the PN plastic parameters using the saved learned inner learning rate (initialized to 0.03 in log space). The continual learning evaluation chains TI and TE training trials through the same plastic state without resetting.
2-Factor Hebbian Both 2-factor variants share AutoHebb-1N's backbone architecture but replace the learned neuromodulator with the feedback signal appended to the input, giving dimension . Each trial involves a double forward pass: the first pass sets and generates the model choice and feedback; the second pass sets or according to the feedback, and the resulting activations drive the Hebbian weight update. The plastic update becomes purely Hebbian—the two factors are pre-synaptic and post-synaptic activity, with the feedback signal entering only through the augmented input on the second forward pass.
The outer loop learning rate is set to 0.0001. We evaluate two variants that differ only in the form of the plastic trace:
-
2FAC: The standard outer-product trace, .
-
2FAC: The generalized ABCD trace family, with per-layer meta-learned scalar coefficients:
Coefficients are initialized at , recovering the standard outer-product rule at initialization, and are meta-trained jointly with all other parameters.
Non-meta-learning baselines We use a 4-hidden-layer MLPs without meta-learning for all baselines with Adam.
-
EWC [33] We use a learning rate of 0.03. The importance penalty coefficient is . Since there are only two tasks in the multi-task ZI setting, only the second tasks are updated with the regularization term. We use 3 updates per training trial.
-
SI We set the learning rate to 0.1 and importance penalty to . Synaptic Intelligence [34] additionally tracks per-parameter path integrals during training, accumulating and normalizing by the squared displacement plus a damping constant . As with EWC, only the second tasks are updated with the regularization term. We use one update per trial.
-
A-GEM [76] We use an Adam learning rate of 0.0003 and 5 updates per trial. All trials from the first task are retained to constrain the second task optimization.
-
DER [75] We use an Adam learning rate of 0.03 and 3 updates per trial. All trials and logits from the first task are retained in the replay buffer, and we use a penalty coefficient of 10.0.
F.4 Figure 7 experimental details
The models used for Figure 7 differ from the benchmark models as we observed some improvement with further meta-training beyond 100,000 episodes. Each lifetime in meta-training randomly sampled 2-4 TI and TE tasks and was randomly assigned 54-65 training trials per task. In total, a lifetime could have 108-260 training trials. In TE, we excluded same-item trials to ensure models could not easily infer the task from the presentation of a special trial type that does not exist in TI. The meta-gradients were evaluated on 30 test trials for each of the last 2 presented tasks for a total of 60 test trials. These test trials for the second-to-last task could appear either at the end of training or right before the start of the last task. Further, the training trials for the last two tasks were part of the meta-gradient for all models. The learning rate for all models was 0.0001. AutoHebb (2 neuromodulators), ANML, and OML all used the same architecture as in Appendix F.3, with one exception for AutoHebb: we used a meta-trainable plastic weight decay term initialized to as in Eq. 4. At evaluation, we use the mean ZI accuracy of 100 random trajectories (random task sequence and item representations) that are shared across all models, where accuracy is averaged over all tasks learned up to that point. The bands report 2 standard errors. For each TI and TE task, we show 30 and 54 training trials, respectively.
G Supplementary mathematical statements
Lemma G.1. An -dimensional affine subspace of contains at most vertices of the -dimensional hypercube with vertices in .
Proof. Let be an affine subspace of with an -dimensional linear subspace of and a vector in . Let be a basis for , and let be the matrix whose th column is . Since has rank , there exists linearly independent rows in . If these rows are indexed by , then the projection
that sends coordinate to coordinate is bijective on . Thus, gives a bijection between and , which has at most vertices.
Lemma G.2. Let be the number of -dimensional hyperplanes through the origin in . The number of regions in formed by the hyperplanes is at most
Proof. Let be the th hyperplane added to the current configuration of hyperplanes. New regions are added only where intersects an existing region. Therefore, the number of new regions added is at most the number of regions in the -dimensional subspace determined by the hyperplanes, viewed as -dimensional hyperplanes when restricted to . This gives is a bound
With initial conditions
we obtain the desired bound through recursion. The base cases for and are
For the general case, we have
If we apply Pascal's identity to he sum on the right-hand side, we get
Since
we get
□
Theorem G.3. Assume the network in Eq. 5 and update rule in Eq. 6. Let be items in . For a trial , let be the sign of a correct model response for trial type IJ. Let be a sequence of trials with inputs . If as in Eq. 6, then converges as .
Proof. Let and . Then for an update at time , we have
Since , the sequence of norms is monotone decreasing and bounded below, hence the convergence of norms. Consequently, each dimension is a bounded sequence, so we can apply Bolzano-Weierstrass to each dimension to obtain a subsequence of weights that converges to some . We show is the limit of the entire sequence.
For each trial vector , define the update matrix . On an incorrect trial with input , we have . Since , for any row vector ,
Thus every update map is nonexpansive.
Let be the set of trial vectors whose corresponding update maps are applied infinitely often. If is empty, then there are only finitely many updates since there are only finitely many trial vectors, and the weights are eventually constant. Otherwise, since there are finitely many update types, there exists a time after which every applied update map belongs to .
Now, suppose, towards a contradiction, that some update map in does not fix . Define . By assumption, is nonempty. Since it is finite (a subset of possible trial vectors) and every value in the following minimum is positive, we have . For any , the reverse triangle inequality gives
where we apply the operator norm inequality
Therefore, whenever , an update associated with any satisfies and, by Eq. 20, decreases the squared norm by more than
Recall that converges, hence has some limit , and there is a subsequence that converges to . We may choose sufficiently large that and .
Let be the first subsequent time at which an update associated with some is applied. Such a time exists because these update types occur infinitely often. Every update between and fixes , since its trial vector belongs to . By nonexpansiveness, such updates cannot increase the distance to . Hence
The update at time s therefore decreases the squared norm by more than :
where we use the fact that is nonincreasing. This contradicts the fact that is nonincreasing and converges to , so every term must be at least .
Therefore is empty: every update map that occurs infinitely often fixes . For , nonexpansiveness consequently gives
on update steps, with equality on steps without an update. Thus the sequence is nonincreasing for . Since its subsequence converges to zero, the entire sequence converges to zero. Hence
Finally, since , the plastic weights also converge.