Skip to content

Menu

WorksComputer Science

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

Download PDFView on arXiv

Ask your agent about this work

Your agent reads this work through Valency, with its citations and similar works. Paste this at the start of a chat.

Use the Valency MCP. Work: W_tuc3bacf. Fetch it with get_paper_by_id, then find its nearest works with find_similar_papers and tell me what it adds.

Works with any MCP client. Not connected yet? Connect your agent

Abstract

Humans and animals have a unique capacity to generalize and learn in novel circumstances, including "0-shot" inference (ZI) and continual learning (CL) – two powerful cognitive abilities. Despite this importance, efforts to model 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 can be less tractable to analysis if model components are overly complex (lacking simplicity), or too task-restricted if model components are overly bespoke (lacking expressivity). Here we introduce autonomous Hebbian networks ("AutoHebb"), a class of online learning feedforward neural networks that realize strong inductive biases and autonomously controlled learning, and are both simple and expressive. Unlike standard models that learn via externally controlled optimization (e.g. gradient descent), AutoHebb networks combine external feedback with internally generated activity to produce a global learning signal ('neuromodulator') fed back to the network. The neuromodulator in turn gates a biologically grounded local learning rule (3-factor Hebbian rule) that updates networks' plastic weights. Using meta-learning to search for fixed (non-plastic) weights, we find that AutoHebb networks (1) succeed on ZI tasks, (2) show emergent (untrained) ZI/CL abilities, (3) admit reverse-engineering into explicit algorithms, and (4) outperform modern learning models on ZI/CL tasks. Lastly, performance comparisons to related models implied an essential role for three model components: meta-learning, Hebbian plasticity, and autonomous control of learning. These findings indicate that AutoHebb may be useful in hypothesis generation, analysis, and discovery of biologically grounded forms of learning and generalization.

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 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.

AutoHebb

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

hi=g((Wi+Ai⊙Pi(t))hi−1+bi),(1)\mathbf{h}_i = g\left((\mathbf{W}_i + \mathbf{A}_i \odot\mathbf{P}_i(t))\mathbf{h}_{i-1} + \mathbf{b}_i\right), \tag*{(1)}

where gg is an activation function (tanh unless stated otherwise), Wi\mathbf{W}_i and bi\mathbf{b}_i are fixed weights and biases, and Ai⊙Pi(t)\mathbf{A}_i \odot\mathbf{P}_i(t) is the Hadamard product of the plastic weights Pi(t)\mathbf{P}_i(t) with fixed plasticity parameters Ai\mathbf{A}_i, which govern the sign and magnitude of plastic weight changes. In this work, we consider binary response tasks with targets in {0,1}\{0,1\}; we generate responses from a network with LL layers by applying a fixed linear readout to the last hidden state (hL\mathbf{h}_L), consisting of weights Wout\mathbf{W}_{\mathrm{out}} and a bias boutb_{\mathrm{out}}, and then a sigmoid σ(x)=(1+e−x)−1\sigma(x) = (1 + e^{-x})^{-1}:

y=σ(WouthL+bout).(2)y = \sigma\left(\mathbf{W}_{\mathrm{out}}\mathbf{h}_L + b_{\mathrm{out}}\right). \tag*{(2)}

The control network is a feedforward network consisting of fixed weights (though plastic weights are possible), whose inputs are hL\mathbf{h}_L and an external feedback signal ϕ\phi and output is a scalar neuromodulator signal

m=C(hL,ϕ).(3)m = C(\mathbf{h}_L,\phi). \tag*{(3)}

For all tasks in this study, ϕ\phi is 1 for correct responses and 0 for incorrect responses.

Note that tt corresponds to inputs presented on successive trials of a task; we refer to tt 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 ϕ\phi (Figure 1) to the learner; in AutoHebb, this external feedback signal is an input to the control network, which then generates the scalar neuromodulator mm. 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]:

AutoHebb architecture

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

Pi(t+1)=λPi(t)+ηmhihi−1T.(4)P_i(t+1) = \lambda P_i(t) + \eta m h_i h_{i-1}^{\mathsf{T}}. \tag*{(4)}

where η\eta is a fixed learning rate parameter and λ≤1\lambda\le1 is a decay rate. The rule is "3-factor" as the weight update combines pre-synaptic activity (hi−1h_{i-1}), post-synaptic activity (hih_i), and the global neuromodulatory signal (mm); 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.

Meta-learning

In AutoHebb networks, all fixed (non-plastic) weights across both main and control subnetworks (Wi\mathbf{W}_i, bi\mathbf{b}_i, Ai\mathbf{A}_i, Wout\mathbf{W}_{\mathrm{out}}, bout\mathbf{b}_{\mathrm{out}}, and the fixed weights of control network CC), in addition to the learning rate parameter η\eta and decay term λ\lambda, 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 correspond 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.

Schematic of learning and meta-learning in AutoHebb, showing trials with input, output, control, and update steps within an episode and meta-learning across episodes

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. In Auto-

Tasks

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].

Algorithm 1 Meta-learning in AutoHebb

Require: Main network ff, control network C\mathcal{C}, and fixed parameters θ\theta, i.e. fixed network weights, fixed plasticity parameters, learning rate η\eta, and decay λ∈(0,1]\lambda\in(0, 1]

Require: Outer loop learning rate α\alpha

Require: KK meta-learning episodes

  1. for kk in KK do

  2. P←0P \leftarrow0

  3. Sample sequence of trials {(xt,yt)}t=1T\{(x_t, y_t)\}_{t=1}^{T}

  4. for tt in TT do

  5. y^t,hL←fθ(xt)\hat{y}_t, h_L \leftarrow f_\theta(x_t)

  6. ϕ←Feedback⁡(y^t)\phi\leftarrow\operatorname{Feedback}(\hat{y}_t)

  7. m←Cθ(hL,ϕ)m \leftarrow\mathcal{C}_\theta(h_L, \phi)

  8. P←3FactorUpdate⁡(P,m,η,λ)P \leftarrow\operatorname{3FactorUpdate}(P, m, \eta, \lambda)

  9. end for

  10. θ←θ−αT∑t∇θL(yt,y^t)\theta\leftarrow\theta- \frac{\alpha}{T}\sum_t \nabla_\theta\mathcal{L}(y_t,\hat{y}_t)

  11. end for

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).

Transitive inference (TI) task and performance of representative models

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 Figure 17 and Figure 18. Model performance across all models reported in Table 1.

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 NN items, where there exists an underlying ranking across items (A, B, C, etc.), and each item II is presented to the network as an input vector xI\mathbf{x}_I of dimension dd sampled uniformly from {−1,+1}d\{-1,+1\}^{d}. We set N=8N = 8 and d=100d = 100 across experiments unless stated otherwise.

For each trial (schematic in Figure 3), a pair items xI\mathbf{x}_I and xJ\mathbf{x}_J is randomly sampled. The correct answer (“ground-truth” label) is determined by the items’ relative rankings: if item II has higher ranking than item JJ, the label yy 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 xIJ=[xIT xJT]\mathbf{x}_{IJ} = [\mathbf{x}_I^{\mathsf{T}}\ \mathbf{x}_J^{\mathsf{T}}].

Task items and trial structure

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.

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 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.

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 (§ 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, MM items are randomly generated for each of QQ groups. We assign indexing i=1,…,Mi = 1, \ldots, M to refer to items within each class. In the training phase, trials consist of item pairs xix_i and xjx_j where items are sampled from any of the QQ groups, and the item pairs are subject to the condition that ∣i−j∣<2\lvert i - j \rvert< 2 (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 ∣i−j∣≥2\lvert i - j \rvert\ge2. Unless stated otherwise, we set Q=3Q = 3 and M=3M = 3; we investigate the ability of models to perform larger problems further below.

Transitive equivalence task and performance of representative models

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.

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

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>CA > B > C and D>E>FD > E > F, then upon learning C>DC > D, infer A>B>C>D>E>FA > 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>DC > D"). The trial sequence for TI-L differs from TI (in § 3.1) only the order of training trials: adjacent item pairs for items ranked 1 to N/2N/2 (‘list 1’) are shown first, then adjacent pairs for items ranked (N/2)+1(N/2) + 1 to NN (‘list 2’), and lastly a ‘linking pair’ between items N/2N/2 and (N/2)+1(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=CA = B = C and X=Y=ZX = Y = Z, then upon learning D=CD = C, infer that A=B=C=DA = B = C = D and D≠X=Y=ZD \ne 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=CD = C"). The TE-L training phase is exactly the same as in TE (§ 3.2) but introduces a single novel item (x′x^{\prime}) at the end of TE training, namely doing so by presenting two linking-pair trials (x,x′x, x^{\prime}) and (x′,xx^{\prime}, x), where xx is a familiar item. In the testing phase, the model must 0-shot infer that x′x^{\prime} inherits xx’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.

Results

We tested AutoHebb on the ZI and CL tasks described on § 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. Figure 4, Figure 5, Figure 6), average accuracy over 100 episodes for a single meta-trained model is reported, and is indicated accordingly.

Two continual learning tasks and performance of representative models

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 Figure 17 and Figure 18 for example outputs across all models. Model performance across all models reported in Table 2.

AutoHebb network diagrams

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 § 10.

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 § 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 Figure 4b and Figure 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 Figure 17 and Figure 18.

ModelTITE
MAML [51]0.697±0.0250.697 \pm0.0250.502±0.0100.502 \pm0.010
Reptile [69]0.744±0.0120.744 \pm0.0120.509±0.0100.509 \pm0.010
MER [71]0.500±0.0090.500 \pm0.0090.495±0.0020.495 \pm0.002
OML [70]0.603±0.0150.603 \pm0.0150.503±0.0030.503 \pm0.003
FLP [73]0.845±0.0110.845 \pm0.0110.504±0.0020.504 \pm0.002
ANML [72]0.702±0.0110.702 \pm0.0110.831±0.0050.831 \pm0.005
2F-A0.765±0.0400.765 \pm0.0400.717±0.0500.717 \pm0.050
2F-ABCD0.878±0.0220.878 \pm0.0220.844±0.0150.844 \pm0.015
AH-1NM0.904±0.0530.904 \pm0.0530.945±0.0420.945 \pm0.042
AH-2NM0.986±0.0060.986 \pm0.0060.933±0.0140.933 \pm0.014

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.

TI and TI-L model performance by trial type

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.

TI and TI-L tasks: average model outputs

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

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.

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\pm2 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 § 11. 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-Figure 5c; see also example outputs in Figure 19), with AutoHebb networks moreover outperforming all models.

TE and TE-L tasks: average model outputs

Figure 19. TE and TE-L tasks: average model outputs. Plots follow the convention in Figure 5 and Figure 6. Plotted are model outputs for an example model instance for each indicated model.

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 (Figure 9, Figure 10, Figure 11, Figure 12 Figure 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 § 8 for further results); further, two representative models (OML and ANML) showed relatively weaker or no length generalization.

TI length generalization with 14 items, showing 8-item TI and 14-item TI panels for OML, ANML, and AutoHebb

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.

TI length generalization with 20 items for OML, ANML, and AutoHebb

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).

Summary plot of length generalization in TI

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.

Length generalization on TE with respect to numbers of items per group

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 § 4.1) and F1 plots, where F1 is computed for same-group ZI trials.

Heatmaps and accuracy and F1 plots showing length generalization on TE with respect to numbers of groups

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 § 4.1) and F1 plots, where F1 is computed for same-group ZI trials.

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 caption: 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.

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.

ModelTE-L Original: Diff-groupTE-L Original: Same-groupTE-L New Item: Diff-groupTE-L New Item: Same-group
MAML [51]0.273±0.0150.273 \pm0.0150.724±0.0200.724 \pm0.0200.066±0.0050.066 \pm0.0050.935±0.0110.935 \pm0.011
Reptile [69]0.273±0.0590.273 \pm0.0590.748±0.0570.748 \pm0.0570.109±0.0370.109 \pm0.0370.890±0.0390.890 \pm0.039
MER [71]0.505±0.1590.505 \pm0.1590.493±0.1560.493 \pm0.1560.478±0.1530.478 \pm0.1530.508±0.1670.508 \pm0.167
OML [70]0.763±0.0140.763 \pm0.0140.240±0.0240.240 \pm0.0240.636±0.0200.636 \pm0.0200.381±0.0350.381 \pm0.035
FLP [73]0.753±0.0390.753 \pm0.0390.247±0.0370.247 \pm0.0370.693±0.0360.693 \pm0.0360.302±0.0390.302 \pm0.039
ANML [72]0.847±0.0160.847 \pm0.0160.785±0.0180.785 \pm0.0180.729±0.0200.729 \pm0.0200.744±0.0260.744 \pm0.026
2F-A0.887±0.0200.887 \pm0.0200.511±0.0730.511 \pm0.0730.822±0.0140.822 \pm0.0140.263±0.0250.263 \pm0.025
2F-ABCD0.938±0.0070.938 \pm0.0070.658±0.0210.658 \pm0.0210.820±0.0170.820 \pm0.0170.322±0.0250.322 \pm0.025
AH-1NM0.904±0.0450.904 \pm0.0450.940±0.0390.940 \pm0.0390.831±0.0700.831 \pm0.0700.892±0.0540.892 \pm0.054
AH-2NM0.931±0.0300.931 \pm0.0300.883±0.0300.883 \pm0.0300.874±0.0430.874 \pm0.0430.799±0.0470.799 \pm0.047

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.

ModelDiff-groupSame-group
MAML [51]0.731±0.0100.731 \pm0.0100.273±0.0240.273 \pm0.024
Reptile [69]0.822±0.0420.822 \pm0.0420.196±0.0430.196 \pm0.043
MER [71]0.948±0.0080.948 \pm0.0080.042±0.0110.042 \pm0.011
OML [70]0.929±0.0070.929 \pm0.0070.077±0.0080.077 \pm0.008
FLP [73]0.820±0.0150.820 \pm0.0150.187±0.0180.187 \pm0.018
ANML [72]0.959±0.0060.959 \pm0.0060.703±0.0080.703 \pm0.008
2F-A0.901±0.0140.901 \pm0.0140.533±0.0990.533 \pm0.099
2F-ABCD0.947±0.0090.947 \pm0.0090.741±0.0270.741 \pm0.027
AH-1NM0.964±0.0320.964 \pm0.0320.926±0.0550.926 \pm0.055
AH-2NM0.953±0.0210.953 \pm0.0210.913±0.0260.913 \pm0.026

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).

Performance of three representative models on TI before versus after overexposure of a single trial type

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 ANML, several trial types approach (or reach) chance performance, indicating lack of robustness to the overexposure manipulation; in contrast, AutoHebb trials remain well above chance.

Neuromodulator in AutoHebb network during overexposure to single trial type

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 ±\pm 2 s.e.

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.

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 § 3.3); further, as with the ZI tasks (§ 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 § 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 Figure 17 and Figure 18); interestingly, the exceptions were models incorporating Hebbian plasticity, namely FLP, 2F-A, and 2F-ABCD, which showed viable performance both on average (Table 2) and across all trial types (Figure 17 and Figure 18). AutoHebb outperformed all models, with two neuromodulators (AH-2NM) providing marginal improvement over one (AH-1NM) (Table 2).

ModelTI-LTE-L OriginalTE-L New ItemTE-L Total
MAML [51]0.621 ± 0.0350.498 ± 0.0060.501 ± 0.0050.500 ± 0.005
Reptile [69]0.726 ± 0.0080.510 ± 0.0090.500 ± 0.0030.505 ± 0.005
MER [71]0.504 ± 0.0110.499 ± 0.0080.493 ± 0.0140.496 ± 0.004
OML [70]0.663 ± 0.0150.501 ± 0.0170.509 ± 0.0120.505 ± 0.012
FLP [73]0.761 ± 0.0200.500 ± 0.0090.497 ± 0.0140.499 ± 0.004
ANML [72]0.601 ± 0.0170.816 ± 0.0120.736 ± 0.0130.776 ± 0.011
2F-A0.787 ± 0.0720.699 ± 0.0410.542 ± 0.0100.621 ± 0.025
2F-ABCD0.838 ± 0.0410.798 ± 0.0100.571 ± 0.0080.684 ± 0.006
AH-1NM0.918 ± 0.0290.922 ± 0.0370.862 ± 0.0420.892 ± 0.040
AH-2NM0.976 ± 0.0090.907 ± 0.0170.837 ± 0.0110.872 ± 0.013

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 § 7.§ 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 Table 2 and Table 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).

Multi-task 0-shot continual learning: model setup, tasks, and performance

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 ±\pm 2 s.e., n=100n=100 task sequences). Full details are in Appendix F.4.

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 § 11.§ 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.

ModelTI →\to TETE →\to TI
TITETITE
MAML [51]0.545 ±\pm 0.0100.518 ±\pm 0.0030.552 ±\pm 0.0080.517 ±\pm 0.009
Reptile [69]0.585 ±\pm 0.0300.517 ±\pm 0.0060.614 ±\pm 0.0340.525 ±\pm 0.008
MER [71]0.500 ±\pm 0.0060.495 ±\pm 0.0050.502 ±\pm 0.0050.503 ±\pm 0.010
OML [70]0.502 ±\pm 0.0070.502 ±\pm 0.0050.513 ±\pm 0.0100.505 ±\pm 0.007
FLP [73]0.498 ±\pm 0.0060.502 ±\pm 0.0040.490 ±\pm 0.0090.502 ±\pm 0.008
ANML [72]0.630 ±\pm 0.0100.700 ±\pm 0.0120.617 ±\pm 0.0170.693 ±\pm 0.012
2F-A0.711 ±\pm 0.0160.526 ±\pm 0.0050.600 ±\pm 0.0290.543 ±\pm 0.014
2F-ABCD0.716 ±\pm 0.0260.519 ±\pm 0.0040.663 ±\pm 0.0350.537 ±\pm 0.018
EWC [33]0.507 ±\pm 0.0050.499 ±\pm 0.0050.494 ±\pm 0.0100.501 ±\pm 0.008
SI [34]0.489 ±\pm 0.0070.498 ±\pm 0.0080.495 ±\pm 0.0090.505 ±\pm 0.005
A-GEM [76]0.874 ±\pm 0.0080.505 ±\pm 0.0010.469 ±\pm 0.0070.512 ±\pm 0.006
DER [75]0.489 ±\pm 0.0090.502 ±\pm 0.0050.506 ±\pm 0.0060.492 ±\pm 0.004
AH-1NM*0.700 ±\pm 0.2070.567 ±\pm 0.0610.637 ±\pm 0.1620.548 ±\pm 0.042
AH-2NM0.877 ±\pm 0.0090.772 ±\pm 0.0140.888 ±\pm 0.0090.777 ±\pm 0.014

Table 3. Model performance on multi-task ZI: TI→\toTE and TE→\toTI. 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→\toTE direction. Of the non-meta-learning methods, A-GEM shows strong performance on TI in the TI→\toTE 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.

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.

ModelTI →\to TE: Diff-groupTI →\to TE: Same-groupTE →\to TI: Diff-groupTE →\to TI: Same-group
MAML [51]0.765 ±\pm 0.0140.271 ±\pm 0.0160.735 ±\pm 0.0120.299 ±\pm 0.016
Reptile [69]0.856 ±\pm 0.0060.177 ±\pm 0.0150.809 ±\pm 0.0080.241 ±\pm 0.022
MER [71]0.845 ±\pm 0.0130.145 ±\pm 0.0120.623 ±\pm 0.0230.382 ±\pm 0.036
OML [70]0.954 ±\pm 0.0090.050 ±\pm 0.0050.899 ±\pm 0.0040.111 ±\pm 0.012
FLP [73]0.953 ±\pm 0.0110.050 ±\pm 0.0100.745 ±\pm 0.0320.259 ±\pm 0.031
ANML [72]0.929 ±\pm 0.0150.471 ±\pm 0.0130.898 ±\pm 0.0140.489 ±\pm 0.018
2F-A0.929 ±\pm 0.0190.123 ±\pm 0.0240.814 ±\pm 0.0420.273 ±\pm 0.064
2F-ABCD0.917 ±\pm 0.0110.122 ±\pm 0.0170.768 ±\pm 0.0370.306 ±\pm 0.071
EWC [33]0.508 ±\pm 0.0150.490 ±\pm 0.0210.513 ±\pm 0.0070.488 ±\pm 0.014
SI [34]0.502 ±\pm 0.0120.494 ±\pm 0.0220.504 ±\pm 0.0170.507 ±\pm 0.019
A-GEM [76]0.945 ±\pm 0.0070.065 ±\pm 0.0080.866 ±\pm 0.0130.158 ±\pm 0.004
DER [75]0.543 ±\pm 0.0220.461 ±\pm 0.0210.541 ±\pm 0.0130.442 ±\pm 0.012
AH-1NM*0.661 ±\pm 0.5040.473 ±\pm 0.3880.644 ±\pm 0.4130.451 ±\pm 0.330
AH-2NM0.930 ±\pm 0.0280.614 ±\pm 0.0320.911 ±\pm 0.0260.643 ±\pm 0.047

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.

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 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.

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 AA). 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.

Identification of learning algorithms from AutoHebb networks

Here we applied the approach described in Appendix § 6 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 NN be the number of items with item dimension dd and 1d=[1 ⋯ 1]∈R1×d\mathbf{1}_d = [1 \ \cdots\ 1] \in\mathbb{R}^{1 \times d} the vector of ones viewed as a 1×d1 \times d matrix. If xA∈{−1,+1}d\mathbf{x}_A \in\{-1,+1\}^d (viewed as a d×1d \times1 matrix) is an item representation corresponding to item AA, then we let xAB=Concat⁡(xA,xB)∈{−1,+1}2d\mathbf{x}_{AB} = \operatorname{Concat}(\mathbf{x}_A,\mathbf{x}_B) \in\{-1,+1\}^{2d} be the concatenation of two items AA and BB, which is the input format for trial type ABAB in the tasks presently studied. (We suppress the subscript ABAB when it is implicitly understood or refer to an arbitrary trial input.) Let P(t)\mathbf{P}(t) be the plastic weight matrix following the 3-factor Hebbian update rule at time tt (Eq. (4)). All networks we consider have at most one hidden layer, so we denote the hidden representation corresponding to x\mathbf{x} at time tt as h(t)\mathbf{h}(t) and similarly for hAB(t)\mathbf{h}_{AB}(t) and hA(t)\mathbf{h}_A(t).

A learning algorithm for TI

In this section, we analyze a minimal AutoHebb network for transitive inference (TI) (described in § 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

y=(1ˉ+P(t))x,(5)y = (\bar{\mathbf{1}} + \mathbf{P}(t))\mathbf{x}, \tag*{(5)}

where 1ˉd=Concat⁡(1d,−1d)∈R1×2d\bar{\mathbf{1}}_{d} = \operatorname{Concat}(\mathbf{1}_{d},-\mathbf{1}_{d}) \in\mathbb{R}^{1 \times2d}. Note that the fixed weights 1ˉd\bar{\mathbf{1}}_{d} 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 (Figure 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 yy (§ 2.1) in meta-training, and instead determine the choice based on the sign of yy using the standard Heaviside function H(y)H(y).

Anti-correlative relationship between item 1 and item 2 weights

Figure 8. Anti-correlative relationship between item 1 and item 2 weights in the first layer of an AutoHebb TI model.

Control network. In the minimal network, the neuromodulator was found to be predominantly determined by whether reward was received or not (r=±1r = \pm1). We idealize this behavior here by setting the neuromodulator value to 00 for correct responses and −η-\eta for incorrect responses, where η\eta 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 η\eta, 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 η\eta.

Given the above description of the control network, the update rule for P(t)\mathbf{P}(t) can be broken down into two cases:

P(t+1)={P(t),correct responseP(t)−ηyxT,incorrect response.(6)\mathbf{P}(t+1) = \begin{cases} \mathbf{P}(t), & \text{correct response}\\ \mathbf{P}(t)-\eta y\mathbf{x}^{\mathsf{T}}, & \text{incorrect response.} \end{cases} \tag*{(6)}

Note that this model updates its plastic weights P(t)\mathbf{P}(t) only after incorrect responses and therefore self-regulates learning in a trivial way after successfully learning a specific trial type (see Appendix § 8.§ 3).

Since the pre-synaptic activity is always the input x\mathbf{x}, and the scalar readout is the post-synaptic activity, we can group together terms in the plastic weights P(t)\mathbf{P}(t) based on trial types and write a decomposition

P(t)=∑XYρXY(t)xXYT,(7)\mathbf{P}(t) = \sum_{XY} \rho_{XY}(t)\mathbf{x}_{XY}^{\mathsf{T}}, \tag*{(7)}

where ρXY(t)\rho_{XY}(t) are coefficients obtained through the 3-factor learning rule for the trial consisting of the ordered pair of items XX and YY. If yXY(t)=(1ˉ+P(t))xXYy_{XY}(t) = (\bar{\mathbf{1}}+\mathbf{P}(t))\mathbf{x}_{XY} we can further expand ρXY(t)\rho_{XY}(t) as

ρXY(t)=−η∑i=0t−1yXY(i)1{XY shown at time i and model incorrect},(8)\rho_{XY}(t) = -\eta\sum_{i=0}^{t-1} y_{XY}(i)\mathbf{1}_{\{\mathrm{XY\ shown\ at\ time\ }i\mathrm{\ and\ model\ incorrect}\}}, \tag*{(8)}

where 1{⋅}\mathbf{1}_{\{\cdot\}} is the indicator function. The following theorem shows the absolute convergence of lim⁡t→∞ρXY(t)\lim_{t\to\infty}\rho_{XY}(t) and, hence, the convergence of the plastic weights P(t)\mathbf{P}(t) 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 η\eta.

Theorem B.1. Assume the network in Eq. (5) and update rule in Eq. (6). Let x1,x2,…,xN\mathbf{x}_1, \mathbf{x}_2, \ldots, \mathbf{x}_N be NN items in {−1,+1}d\{-1,+1\}^{d}. For a trial xIJx_{IJ}, let s(xIJ)s(x_{IJ}) be the sign of a correct model response for trial type IJIJ. Suppose there exists a weight vector w∗∈R1×2d\mathbf{w}^{*} \in\mathbb{R}^{1 \times2d} such that for each trial type IJIJ we have

w∗s(xIJ)xIJ>0.\mathbf{w}^{*}s(x_{IJ})\mathbf{x}_{IJ} > 0.

Let Q={qt}t=0∞\mathbf{Q} = \{q_t\}_{t=0}^{\infty} be a sequence of trials with inputs qt\mathbf{q}_t. If η≤1d\eta\le\frac{1}{d} as in Eq. (6), then P(t)\mathbf{P}(t) converges as t→∞t \to\infty.

Proof. Let w(t)=1‾+P(t)\mathbf{w}(t) = \overline{\mathbf{1}}+\mathbf{P}(t), and define

V(t)=∥w(t)−w∗∥2.V(t)=\left\|\mathbf{w}(t)-\mathbf{w}^{*}\right\|^{2}.

If the model’s response yqty_{q_t} is incorrect for trial qt\mathbf{q}_t, then by Eq. (6), we have

V(t+1)=∥w(t+1)−w∗∥2=∥w(t)−ηyqtqtT−w∗∥2=V(t)−2ηyqt(w(t)−w∗)qt+2η2yqt2d=V(t)−2ηs(qt)yqt(w(t)−w∗)s(qt)qt+2η2yqt2d=V(t)−2ηs(qt)yqtw(t)s(qt)qt+2ηs(qt)yqtw∗s(qt)qt+2η2yqt2d=V(t)−2ηyqt2+2ηs(qt)yqtw∗s(qt)qt+2η2yqt2d=V(t)−2ηyqt2(1−ηd)+2ηs(qt)yqtw∗s(qt)qt.\begin{aligned} V(t+1) &= \left\|\mathbf{w}(t+1)-\mathbf{w}^{*}\right\|^{2}\\ &= \left\|\mathbf{w}(t)-\eta y_{q_t}\mathbf{q}_t^{\mathsf{T}}-\mathbf{w}^{*}\right\|^{2}\\ &= V(t)-2\eta y_{q_t}(\mathbf{w}(t)-\mathbf{w}^{*})\mathbf{q}_t+2\eta^{2}y_{q_t}^{2}d\\ &= V(t)-2\eta s(q_t)y_{q_t}(\mathbf{w}(t)-\mathbf{w}^{*})s(q_t)\mathbf{q}_t+2\eta^{2}y_{q_t}^{2}d\\ &= V(t)-2\eta s(q_t)y_{q_t}\mathbf{w}(t)s(q_t)\mathbf{q}_t+2\eta s(q_t)y_{q_t}\mathbf{w}^{*}s(q_t)\mathbf{q}_t+2\eta^{2}y_{q_t}^{2}d\\ &= V(t)-2\eta y_{q_t}^{2}+2\eta s(q_t)y_{q_t}\mathbf{w}^{*}s(q_t)\mathbf{q}_t+2\eta^{2}y_{q_t}^{2}d\\ &= V(t)-2\eta y_{q_t}^{2}(1-\eta d)+2\eta s(q_t)y_{q_t}\mathbf{w}^{*}s(q_t)\mathbf{q}_t. \end{aligned}

Since η≤1d\eta\le\frac{1}{d}, we have the inequality

V(t+1)≤V(t)+2ηs(qt)yqtw∗s(qt)qt≤V(t)−2η∣yqt∣w∗s(qt)qt,\begin{aligned} V(t+1) &\le V(t)+2\eta s(q_t)y_{q_t}\mathbf{w}^{*}s(q_t)\mathbf{q}_t\\ &\le V(t)-2\eta\lvert y_{q_t}\rvert\mathbf{w}^{*}s(q_t)\mathbf{q}_t, \end{aligned}

where we use the fact yqty_{q_t} and s(qt)s(q_t) have opposite signs. Furthermore, since there are only finitely many trial types IJIJ, there exists a γ\gamma such that w∗s(xIJ)xIJ≥γ>0\mathbf{w}^{*}s(x_{IJ})\mathbf{x}_{IJ}\ge\gamma>0, so we have the inequality

V(t+1)≤V(t)−2η∣yqt∣γ.V(t+1)\le V(t)-2\eta\lvert y_{q_t}\rvert\gamma.

Rearranging terms, we get

V(t+1)+2η∣yqt∣γ≤V(t).V(t+1)+2\eta\lvert y_{q_t}\rvert\gamma\le V(t).

If we start from t=0t=0 and chain the inequalities, we obtain

2ηγ∑t=1∞∣yqt∣1{incorrect response for qt}≤V(0).2\eta\gamma\sum_{t=1}^{\infty}\lvert y_{q_t}\rvert\mathbb{1}_{\{\text{incorrect response for }q_t\}}\le V(0).

After dividing both sides of the inequality by 2γ2\gamma, we obtain an absolute convergence for the sum of all coefficients in Eq. (7) (expanding the ρXY(t)\rho_{XY}(t) using update rule Eq. (6)). Thus, the plastic weights converge in the limit.

Next, we provide bounds for the probability of the existence of w∗\mathbf{w}^{*} in Theorem B.1, starting with the lower bound by calculating the probability of linearly independent trial vectors. We remark that the existence of w∗\mathbf{w}^{*} implies the existence of a vector u∈R1×d\mathbf{u}\in\mathbb{R}^{1\times d} such that

v∗=[u−u]\mathbf{v}^{*}= \begin{bmatrix} \mathbf{u}\\ -\mathbf{u} \end{bmatrix}

also satisfies the condition of Theorem B.1. If

w∗=[aTbT]\mathbf{w}^{*}= \begin{bmatrix} \mathbf{a}^{\mathsf{T}}\\ \mathbf{b}^{\mathsf{T}} \end{bmatrix}

for some a\mathbf{a} and b\mathbf{b} in R1×d\mathbb{R}^{1 \times d}, then it is straightforward to verify

u=a−b\mathbf{u} = \mathbf{a} - \mathbf{b}

gives such a v∗\mathbf{v}^{*}.

Proposition B.2. Let P(N,d)P(N,d) be the probability of the existence of w∗\mathbf{w}^{*} in Theorem B.1 for NN items in dd dimensions. Then

P(N,d)≥∏i=2N(1−2i−2−d).P(N,d) \ge\prod_{i=2}^{N}\left(1 - 2^{i-2-d}\right).

Proof. Let x1,x2,…,xN\mathbf{x}_{1}, \mathbf{x}_{2}, \ldots, \mathbf{x}_{N} be NN item representations such that the ranking of xi\mathbf{x}_{i} is greater than the ranking of xj\mathbf{x}_{j} if and only if i<ji < j. Further suppose that the d×(N−1)d \times(N-1) matrix of adjacent item differences D\mathbf{D} whose iith column is xi−xi+1\mathbf{x}_{i} - \mathbf{x}_{i+1} has full rank N−1N-1. Then there exists a vector u\mathbf{u} in Rd\mathbb{R}^{d} such that

DTu=1N−1,\mathbf{D}^{\mathsf{T}}\mathbf{u} = \mathbf{1}_{N-1},

i.e. for each i<Ni < N, we have

uT(xi−xi+1)=1.\mathbf{u}^{\mathsf{T}}(\mathbf{x}_{i} - \mathbf{x}_{i+1}) = 1.

Thus, the vector

w∗=[uT−uT]\mathbf{w}^{*} = \begin{bmatrix} \mathbf{u}^{\mathsf{T}} \\ -\mathbf{u}^{\mathsf{T}} \end{bmatrix}

satisfies the constrain in Theorem B.1, and we only need to compute the probability of the existence of item representations such that D\mathbf{D} has full rank to obtain a lower bound.

Since the vectors xi−x1\mathbf{x}_{i} - \mathbf{x}_{1} for i>1i > 1 are linear combinations of the columns of D\mathbf{D}, the matrix D\mathbf{D} has full rank N−1N-1 if and only if the xi\mathbf{x}_{i} are affinely independent. For k−1k-1 affinely independent vectors, the dimension of the affine subspace generated by those vectors is k−2k-2. By Lemma G.1, this subspace contains at most 2k−22^{k-2} possible item representations. Thus, the probability that introducing a new item vector xk\mathbf{x}_{k} affinely independent from the first k−1k-1 vectors is

P(xk affinely independent∣x1,x2,…,xk−1)≥1−2k−22d=1−2k−2−d.P(\mathbf{x}_{k}\text{ affinely independent} \mid\mathbf{x}_{1}, \mathbf{x}_{2}, \ldots, \mathbf{x}_{k-1}) \ge1 - \frac{2^{k-2}}{2^{d}} = 1 - 2^{k-2-d}.

Taking the product over all conditional probabilities gives the result. □\square

The lower bound in Proposition B.2 remains close to 1.0 for approximately N<d−10N < d - 10 and then decays rapidly to 0. However, simulations with the idealized network show successful task performance for approximately N<54dN < \frac{5}{4}d, 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 P(N,d)P(N,d).

Proposition B.3. With the notation from Proposition B.2, we have

P(N,d)≤min⁡{1,2∑i=0d−1((N2)−1i)N!}.P(N,d) \le\min\left\{1,\frac{2\sum_{i=0}^{d-1}\binom{\binom{N}{2}-1}{i}}{N!}\right\}.

Proof. There are (N2)\binom{N}{2} unordered pairs of NN items each determining a hyperplane via the equation

uT(xi−xj)=0,\mathbf{u}^{\mathsf{T}}(\mathbf{x}_{i}-\mathbf{x}_{j}) = 0,

where u\mathbf{u} is the vector of variables. As long as u\mathbf{u} is away from these (N2)\binom{N}{2} hyperplanes, the weight vector

w=[uT−uT]\mathbf{w} = \begin{bmatrix} \mathbf{u}^{\mathsf{T}} \\ -\mathbf{u}^{\mathsf{T}} \end{bmatrix}

determines a strict ordering among all items. By Lemma G.2, there are at most

2∑i=0d−1((N2)−1i)2\sum_{i=0}^{d-1}\binom{\binom{N}{2}-1}{i}

regions in Rd\mathbb{R}^{d} determined by the hyperplanes. From our earlier remark, any weight vector w∗\mathbf{w}^{*} from Theorem B.1, if it exists, induces a vector of type w\mathbf{w} that also satisfies the condition of w∗\mathbf{w}^{*}. Therefore, the probability w∗\mathbf{w}^{*} exists is equivalent to the probability of a w∗\mathbf{w}^{*} of the form given by w\mathbf{w}. Any such w\mathbf{w} 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 1/N!1/N!, which gives the desired bound.

For a fixed dd, the numerator of the upper bound in Proposition B.3 is a polynomial in NN of O(N2d−2)O(N^{2d-2}), which grows much more slowly compared to the denominator N!N! as N→∞N \to\infty. For example, if d=200d = 200, the upper bound rapidly decays to 0 when N>266N > 266, with P(270,200)P(270, 200) already bounded from above by 0.0001.

In summary, we have shown that the plastic weights converge in the limit for η≤1/d\eta\le1/d under the condition that a weight vector w∗\mathbf{w}^{*} exists. We then showed that the probability a given set of NN items in dd dimensions is bounded by

∏i=2N(1−2i−2−d)≤P(N,d)≤min⁡{1,2∑i=0d−1((N2)−1)iN!}.\prod_{i=2}^{N}(1-2^{i-2-d}) \le P(N,d) \le\min\left\{1,\frac{2\sum_{i=0}^{d-1}\left(\binom{N}{2}-1\right)_{i}}{N!}\right\}.

which tightly bounds P(N,d)P(N,d) close to 1 for N<d−10N < d - 10 and close to 0 for N>(1+ϵ)dN > (1+\epsilon)d for some small ϵ\epsilon. We note that a crude analysis of the upper bound shows ϵ→0\epsilon\to0 as d→∞d \to\infty. Thus, we have shown that for most N<dN < d, the plastic weights converge for any sequence of trials with probability almost 1. However, our analysis only assumes such a w∗\mathbf{w}^{*} exists and not that P(t)P(t) converges to w∗\mathbf{w}^{*}. We note that there is a proof of convergence without the need for w∗\mathbf{w}^{*} (Theorem G.3), but it leaves out the crucial case η=1/d\eta= 1/d, 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=0y = 0 for trial types with infinite errors, while, in case 2), the model converges to y≠0y \ne0 with probability 1. Furthermore, in case 2), if each trial type is shown infinitely often, then yy necessarily converges to the correct response.

In case 1), the argument is straightforward: since yIJy_{IJ} converges in the limit for any trial type IJIJ and there are infinite errors, we have infinitely many tt such that

∣yIJ(t+1)−yIJ(t)∣=2ηd∣yIJ(t)∣,\lvert y_{IJ}(t+1)-y_{IJ}(t)\rvert=2\eta d\lvert y_{IJ}(t)\rvert,

which converges to 0 by the definition of a convergent limit. For case 2), we require an additional assumption that η=1/d\eta= 1/d, where a weight update are a trial type IJIJ becomes a reflection across the decision hyperplane for trial IJIJ:

1ˉ+P(t+1)=1ˉ+P(t)−ηyIJxIJxIJT=(1ˉ+P(t))−η(1ˉ+P(t))xIJxIJT=(1ˉ+P(t))(I2d−ηxIJxIJT)=(1ˉ+P(t))(I2d−22dxIJxIJT)=(1ˉ+P(t))(I2d−2xIJxIJT∥xIJ∥2),(9)\begin{aligned} \bar{\mathbf{1}}+\mathbf{P}(t+1)&=\bar{\mathbf{1}}+\mathbf{P}(t)-\eta y_{IJ}\mathbf{x}_{IJ}\mathbf{x}_{IJ}^{\mathsf{T}}\\ &=(\bar{\mathbf{1}}+\mathbf{P}(t))-\eta(\bar{\mathbf{1}}+\mathbf{P}(t))\mathbf{x}_{IJ}\mathbf{x}_{IJ}^{\mathsf{T}}\\ &=(\bar{\mathbf{1}}+\mathbf{P}(t))(\mathbf{I}_{2d}-\eta\mathbf{x}_{IJ}\mathbf{x}_{IJ}^{\mathsf{T}})\\ &=(\bar{\mathbf{1}}+\mathbf{P}(t))\left(\mathbf{I}_{2d}-\frac{2}{2d}\mathbf{x}_{IJ}\mathbf{x}_{IJ}^{\mathsf{T}}\right)\\ &=(\bar{\mathbf{1}}+\mathbf{P}(t))\left(\mathbf{I}_{2d}-2\frac{\mathbf{x}_{IJ}\mathbf{x}_{IJ}^{\mathsf{T}}}{\lVert\mathbf{x}_{IJ}\rVert^{2}}\right), \tag*{(9)} \end{aligned}

where I2d\mathbf{I}_{2d} is the 2d×2d2d \times2d 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 (y≠0y \ne0) errors under convergence. However, weight updates of one trial type IJIJ can cause the response of another correlated trial type KLKL to land directly on the decision hyperplane, which would prevent the model from learning a correct response to KLKL.

Theorem B.4. Fix the number of items NN and their dimension dd. If η=1/d\eta= 1/d, then:

  1. If a sampled set of items has a w∗\mathbf{w}^{*} as in Theorem B.1, then any infinite sequence of trials induces finitely many nonzero error updates.

  1. Let ϵ>0\epsilon> 0, and let ξ∼Unif⁡([−ϵ,ϵ]2d)\boldsymbol{\xi} \sim\operatorname{Unif}([-\epsilon,\epsilon]^{2d}) be a random perturbation of 1ˉ\mathbf{\bar{1}}. The probability that the perturbation ξ\boldsymbol{\xi} satisfies the following is 1:

  • Let wξ(t)=1ˉ+ξ+P(t)\mathbf{w}_{\boldsymbol{\xi}}(t) = \mathbf{\bar{1}} + \boldsymbol{\xi} + \mathbf{P}(t) be the perturbed weights, where the plastic weight rule in Eq. (6) treats ξ\boldsymbol{\xi} as part of the fixed weights. For every set of item representations having a corresponding weight vector w∗\mathbf{w}^{*} from Theorem B.1 and any sequence of trials Q={qt}t=0∞\mathbf{Q} = \{\mathbf{q}_{t}\}_{t=0}^{\infty} where each trial type IJIJ is presented infinitely often, the limiting weights lim⁡t→∞wξ(t)\lim_{t \to\infty} \mathbf{w}_{\boldsymbol{\xi}}(t) converge, and we have

lim⁡t→∞∣wξ(t)xIJ∣>0.\lim_{t \to\infty} \left|\mathbf{w}_{\boldsymbol{\xi}}(t)\mathbf{x}_{IJ}\right| > 0 .

Proof. For 1), since η≤1/d\eta\le1/d, the weights

w(t)=1ˉ+P(t)\mathbf{w}(t) = \mathbf{\bar{1}} + \mathbf{P}(t)

converge by Theorem B.1. Suppose towards a contradiction that there are infinitely many nonzero errors in some sequence of trials. Let EE be the set of all trial types that have infinitely many nonzero errors. For each trial type IJIJ in EE, let HIJH_{IJ} be its decision hyperplane in weight space, and define

L:=⋂IJHIJ.L := \bigcap_{IJ} H_{IJ}.

For trial types not in EE, the weights w(t)\mathbf{w}(t) stop updating for those trial types after some finite time TT. Thus, for t>Tt > T, the weight vector w(t)\mathbf{w}(t) preserves its distance to LL and continues to reflect through the decision hyperplanes HIJH_{IJ}. However, we have already shown infinitely many nonzero error updates implies w(t)\mathbf{w}(t) must converge to a weight vector in LL, and since the distance of w(t)\mathbf{w}(t) to LL is constant after finite time TT, this constant must be 0. This contradicts the assumption of infinite nonzero errors.

To prove 2), we show the set of weight vectors w\mathbf{w} in R2d\mathbb{R}^{2d} 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 w0=w(0)\mathbf{w}_{0} = \mathbf{w}(0), not only wξ(0)\mathbf{w}_{\boldsymbol{\xi}}(0). 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 w(t)\mathbf{w}(t). Thus, if RτR_{\tau} is the Householder reflection corresponding to trial τ\tau, the dynamics of any sequence of weight updates can be represented by a sequence of reflections (we treat w(t)\mathbf{w}(t) as a row vector for notational convenience):

w(t)=w0Rτ1Rτ2⋯Rτt.\mathbf{w}(t) = \mathbf{w}_{0}R_{\tau_{1}}R_{\tau_{2}}\cdots R_{\tau_{t}}.

For simplicity and without loss of generality, we ignore trials where no weight update is applied. Let σ=(τ1,τ2,…,τt)\sigma= (\tau_{1},\tau_{2},\ldots,\tau_{t}) be a sequence of reflections, and let

Qσ=Rτt⋯Rτ2Rτ1.\mathbf{Q}_{\sigma} = R_{\tau_{t}}\cdots R_{\tau_{2}}R_{\tau_{1}}.

For each trial type IJIJ, the weights w(t)\mathbf{w}(t) lie on the decision boundary for IJIJ if

⟨w(t),xIJ⟩=⟨w0QσT,xIJ⟩=⟨w0,QσTxIJ⟩=0\begin{aligned} \langle\mathbf{w}(t), \mathbf{x}_{IJ}\rangle= \langle\mathbf{w}_{0}\mathbf{Q}_{\sigma}^{\mathsf{T}}, \mathbf{x}_{IJ}\rangle\\ &= \langle\mathbf{w}_{0}, \mathbf{Q}_{\sigma}^{\mathsf{T}}\mathbf{x}_{IJ}\rangle\\ &= 0 \end{aligned}

Since reflections are invertible, the matrix QσT\mathbf{Q}_{\sigma}^{\mathsf{T}} is invertible and QσTxIJ≠0\mathbf{Q}_{\sigma}^{\mathsf{T}}\mathbf{x}_{IJ} \ne0. Thus

⟨w0,QσTxIJ⟩=0\langle\mathbf{w}_{0}, \mathbf{Q}_{\sigma}^{\mathsf{T}}\mathbf{x}_{IJ}\rangle= 0

defines a hyperplane in the weight space R2d\mathbb{R}^{2d} for initializations w0\mathbf{w}_{0}. Since there are

  • finitely many possible collections of items,

  • finitely many trial types per collection of items,

  • and countably many finite sequences of reflections σ\sigma,

we have countably infinitely many hyperplanes where w(0)\mathbf{w}(0) 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 w0\mathbf{w}_0 does not lie on the decision boundary of any possible trial type after any finite sequence of weight updates with probability 1. Since ξ\boldsymbol{\xi} is drawn uniformly from an ϵ\epsilon-hypercube around 1ˉ\bar{\mathbf{1}}, the same conclusion holds for wξ(0)\mathbf{w}_{\boldsymbol{\xi}}(0).

The convergence of wξ(t)\mathbf{w}_{\boldsymbol{\xi}}(t) 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 wξ(t)\mathbf{w}_{\boldsymbol{\xi}}(t) cease after a finite number of trials, so the limit is nonzero outside a set of measure zero for the initialization wξ,0\mathbf{w}_{\boldsymbol{\xi},0}.

It follows immediately from the update rule Eq. (6) the limiting weights for wξ\mathbf{w}_{\boldsymbol{\xi}} 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 ξ=0\boldsymbol{\xi}=0. Although ϵ\epsilon can be made arbitrarily small, the limiting case when ξ=0\boldsymbol{\xi}=0 introduces algebraic identities that complicate extending the proof of Theorem B.4 to the specialization w0=1ˉ\mathbf{w}_0=\bar{\mathbf{1}}. In our simulations, we found that w(t)=1ˉ+P(t)\mathbf{w}(t)=\bar{\mathbf{1}}+\mathbf{P}(t) 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 II in a particular trial, it determines its rank by recalling previous trial outcomes only involving II (in the same position as in the current trial). Further, the rank representation of II is changed only when the model responds incorrectly to a trial containing item II.

Let

w(t)=1ˉ+P(t)\mathbf{w}(t)=\bar{\mathbf{1}}+\mathbf{P}(t)

be the weights at time tt. We can express w(t)\mathbf{w}(t) as a concatenation of two vectors a(t)\mathbf{a}(t) and b(t)\mathbf{b}(t) in Rd×1\mathbb{R}^{d\times1} acting on the individual items in a trial:

w(t)=[a(t)Tb(t)T].\mathbf{w}(t)=\left[\mathbf{a}(t)^{\mathsf{T}}\quad\mathbf{b}(t)^{\mathsf{T}}\right].

Then, averaging over the distribution of trial sequences, we show E[a(t)]=−E[b(t)]\mathbb{E}[\mathbf{a}(t)]=-\mathbb{E}[\mathbf{b}(t)] by exploiting a symmetry in the distribution of sequences of trials. If we define

w(t)†=[−b(t)T−a(t)T],\mathbf{w}(t)^{\dagger}=\left[-\mathbf{b}(t)^{\mathsf{T}}\quad-\mathbf{a}(t)^{\mathsf{T}}\right],

then w(t)xIJ\mathbf{w}(t)\mathbf{x}_{IJ} is incorrect if and only if w(t)†xJI\mathbf{w}(t)^{\dagger}\mathbf{x}_{JI} is incorrect. Furthermore, the weight updates on the incorrect responses mirror each other:

w(t+1)=w(t)−ηyJI(t)xJIT=[a(t)Tb(t)T]−η(a(t)TxI+b(t)TxJ)xIJT,\begin{aligned} \mathbf{w}(t+1)&=\mathbf{w}(t)-\eta y_{JI}(t)\mathbf{x}_{JI}^{\mathsf{T}}\\ &=\left[\mathbf{a}(t)^{\mathsf{T}}\quad\mathbf{b}(t)^{\mathsf{T}}\right]-\eta\left(\mathbf{a}(t)^{\mathsf{T}}\mathbf{x}_{I}+\mathbf{b}(t)^{\mathsf{T}}\mathbf{x}_{J}\right)\mathbf{x}_{IJ}^{\mathsf{T}}, \end{aligned}

and, if yJI(t)†=w(t)†xJIy_{JI}(t)^{\dagger}=\mathbf{w}(t)^{\dagger}\mathbf{x}_{JI}, then

w(t)†−ηyJI(t)†xJIT=[−b(t)T−a(t)T]−η(−a(t)TxI−b(t)TxJ)xJIT=w(t+1)†.\begin{aligned} \mathbf{w}(t)^{\dagger}-\eta y_{JI}(t)^{\dagger}\mathbf{x}_{JI}^{\mathsf{T}} &=\left[-\mathbf{b}(t)^{\mathsf{T}}\quad-\mathbf{a}(t)^{\mathsf{T}}\right]-\eta\left(-\mathbf{a}(t)^{\mathsf{T}}\mathbf{x}_{I}-\mathbf{b}(t)^{\mathsf{T}}\mathbf{x}_{J}\right)\mathbf{x}_{JI}^{\mathsf{T}}\\ &=\mathbf{w}(t+1)^{\dagger}. \end{aligned}

Let xIJ†=xJI\mathbf{x}_{IJ}^{\dagger}=\mathbf{x}_{JI}. Since 1ˉ=1ˉ†\bar{\mathbf{1}}=\bar{\mathbf{1}}^{\dagger}, and we have a bijection between finite sequences of trials Q={qt}t=0T\mathbf{Q}=\{\mathbf{q}_t\}_{t=0}^{T} and Q†={qt†}t=0T\mathbf{Q}^{\dagger}=\{\mathbf{q}_t^{\dagger}\}_{t=0}^{T}, we have

E[a(t)]=−E[b(t)].\mathbb{E}[\mathbf{a}(t)]=-\mathbb{E}[\mathbf{b}(t)].

If rIL(t)=a(t)⊤xIr_{IL}(t)=\mathbf{a}(t)^{\top}\mathbf{x}_{I} and rIR(t)=b(t)⊤xIr_{IR}(t)=\mathbf{b}(t)^{\top}\mathbf{x}_{I}, then

E[rIL(t)]=E[a(t)]⊤xI=−E[b(t)]⊤xI=−E[rIR(t)].\mathbb{E}[r_{IL}(t)] = \mathbb{E}[\mathbf{a}(t)]^{\top}\mathbf{x}_{I} = -\mathbb{E}[\mathbf{b}(t)]^{\top}\mathbf{x}_{I} = -\mathbb{E}[r_{IR}(t)].

so the magnitude of the rank of an item is independent of its position in expectation.

Now we consider the components of the representation. In the following, we only consider rILr_{IL}, but the arguments are symmetric for rIRr_{IR}. Let xI0\mathbf{x}_{I0} be the input vector with item II in the first position and the vector of zeros in the second position and vice versa for x0J\mathbf{x}_{0J}. Then, using Eq. (7), the readout for an item II in the first position takes on a simple form (suppressing time tt notation)

1ˉxI0+PxI0=cI+∑XYρXYxXY⊤xI0=cI+∑YρIYxIY⊤xI0+ϵ=cI+d∑YρIY+ϵ,\begin{aligned} \bar{\mathbf{1}}\mathbf{x}_{I0}+\mathbf{P}\mathbf{x}_{I0} &= c_I+\sum_{XY}\rho_{XY}\mathbf{x}_{XY}^{\top}\mathbf{x}_{I0}\\ &= c_I+\sum_Y\rho_{IY}\mathbf{x}_{IY}^{\top}\mathbf{x}_{I0}+\epsilon\\ &= c_I+d\sum_Y\rho_{IY}+\epsilon, \end{aligned}

where ϵ\epsilon is a small quantity (in expectation) measuring interference between inputs relative to their dimension. Thus, we have, approximately,

rIL(t)≈cI+d∑YρIY(t).(10)r_{IL}(t)\approx c_I+d\sum_Y\rho_{IY}(t). \tag*{(10)}

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 IJIJ where the model responds incorrectly, we have the plastic weight update:

P(t+1)=P(t)−ηyIJ(t)xIJ⊤=(∑XYρXY(t)xXY⊤)−ηyIJ(t)xIJ⊤=(∑XY≠IJρXY(t)xXY⊤)+(ρIJ(t)−ηyIJ(t))xIJ⊤,\begin{aligned} \mathbf{P}(t+1) &=\mathbf{P}(t)-\eta y_{IJ}(t)\mathbf{x}_{IJ}^{\top}\\ &=\left(\sum_{XY}\rho_{XY}(t)\mathbf{x}_{XY}^{\top}\right)-\eta y_{IJ}(t)\mathbf{x}_{IJ}^{\top}\\ &=\left(\sum_{XY\ne IJ}\rho_{XY}(t)\mathbf{x}_{XY}^{\top}\right)+\left(\rho_{IJ}(t)-\eta y_{IJ}(t)\right)\mathbf{x}_{IJ}^{\top}, \end{aligned}

so, by Eq. (10), the rank representation for II at time t+1t+1 is

rIL(t+1)≈cI+d∑YρIY(t+1)=cI+(d∑Y≠JρIY(t))+dρIJ(t+1)=cI+(d∑Y≠JρIY(t))+d(ρIJ(t)−ηyIJ(t))=cI+(d∑YρIY(t))−ηdyIJ(t)≈rIL−ηdyIJ(t).\begin{aligned} r_{IL}(t+1) &\approx c_I+d\sum_Y\rho_{IY}(t+1)\\ &=c_I+\left(d\sum_{Y\ne J}\rho_{IY}(t)\right)+d\rho_{IJ}(t+1)\\ &=c_I+\left(d\sum_{Y\ne J}\rho_{IY}(t)\right)+d\left(\rho_{IJ}(t)-\eta y_{IJ}(t)\right)\\ &=c_I+\left(d\sum_Y\rho_{IY}(t)\right)-\eta d y_{IJ}(t)\\ &\approx r_{IL}-\eta d y_{IJ}(t). \end{aligned}

By a similar calculation, we have rKL(t+1)≈rKL(t)r_{KL}(t+1)\approx r_{KL}(t) for K≠IK\ne I.

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(U, −U) for some random matrix U∈R2d×dU \in\mathbb{R}^{2d \times d}) combined with modifying 1ˉ\bar{1} 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 § 6 and initialize rank vectors RL\mathbf{R}_L and RR\mathbf{R}_R corresponding to the left and right position rank representations, respectively. These are initialized from a common randomly sampled vector R\mathbf{R} (line 1), which can be viewed as the values cXic_{X_i} for items XiX_i, almost directly, except we allow more flexibility in the choice of sampling distribution.

The rank difference ρ\rho 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 IJIJ was ±ηdyIJ(t)\pm\eta d y_{IJ}(t), but the dimension dd in the algorithm is no longer relevant. A suitable learning rate η\eta can be found via a simple hyperparameter search. For example, if M=8M = 8 and R\mathbf{R} is initialized by uniformly sampling from [−0.1,0.1][-0.1, 0.1], then η=0.7\eta= 0.7 will successfully perform TI.

A neural mechanism for TI-L

A successful model for TI-linking (TI-L, § 3.3), must be able to modify its internal ranking of items absent in a given trial. Therefore, the toy network in Appendix § 7.§ 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 § 7.§ 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 § 7.§ 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 MM ▷ Number of items Require: η>0\eta> 0 ▷ Neuromodulator value for negative reward Require: Randomly initialize rank vector R∈RM\mathbf{R} \in\mathbb{R}^{M} ▷ Innate rank representation Require: Episode E={(i1,j1),(i2,j2),…,(iT,jT)}\mathcal{E} = \{(i_1,j_1),(i_2,j_2),\ldots,(i_T,j_T)\}, where ∣ik−jk∣=1|i_k-j_k|=1 and 1≤is,jt≤M1 \leq i_s,j_t \leq M

  1. RL=RR=R\mathbf{R}_{L}=\mathbf{R}_{R}=\mathbf{R} ▷ Position-dependent ranks

  2. for i,ji,j in E\mathcal{E} do

  3. ρ←RL[i]−RR[j]\rho\leftarrow R_L[i]-R_R[j] ▷ Relative rank

  4. if (ρ≤0(\rho\leq0 and i>j)i>j) or (ρ>0(\rho>0 and i<j)i<j) then ▷ Update on errors only

  5. RL[i]←RL[i]−ηρ\mathbf{R}_{L}[i]\leftarrow\mathbf{R}_{L}[i]-\eta\rho

  6. RR[j]←RR[j]+ηρ\mathbf{R}_{R}[j]\leftarrow\mathbf{R}_{R}[j]+\eta\rho

  7. end if

  8. end for

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 W=Concat⁡(U,−U)\mathbf{W}=\operatorname{Concat}(\mathbf{U},-\mathbf{U}) (denoted [U    −U]\left[\mathbf{U}\;\;-\mathbf{U}\right] for simplicity), a row-wise concatenation of a random matrix U∈R2d×d\mathbf{U}\in\mathbb{R}^{2d\times d}, and we obtain the following idealized AutoHebb network:

y=(1+α2P2(t))(W+α1P1(t))x,(11)\mathbf{y}=(\mathbf{1}+\alpha_2\mathbf{P}_2(t))(\mathbf{W}+\alpha_1\mathbf{P}_1(t))\mathbf{x}, \tag*{(11)}

where 1\mathbf{1} is a 1×2d1\times2d matrix of 1’s and α1\alpha_1 and α2\alpha_2 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 −η<0-\eta<0 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 P1(t)\mathbf{P}_1(t) and P2(t)\mathbf{P}_2(t) are as follows:

P1(t+1)={P1(t),correct responseP1(t)−ηhxT,incorrect responseandP2(t+1)={P2(t),correct responseP2(t)−ηyhT,incorrect response.(12)\begin{aligned} \mathbf{P}_1(t+1)&= \begin{cases} \mathbf{P}_1(t), & \text{correct response}\\ \mathbf{P}_1(t)-\eta\mathbf{h}\mathbf{x}^{\mathsf{T}}, & \text{incorrect response} \end{cases} \\ &\text{and}\\ \mathbf{P}_2(t+1)&= \begin{cases} \mathbf{P}_2(t), & \text{correct response}\\ \mathbf{P}_2(t)-\eta\mathbf{y}\mathbf{h}^{\mathsf{T}}, & \text{incorrect response.} \end{cases} \tag*{(12)} \end{aligned}

If we absorb the αi\alpha_i into η\eta, we can view the network as having distinct neuromodulator values for incorrect response, λ1=α1η\lambda_1 = \alpha_1\eta and λ2=α2η\lambda_2 = \alpha_2\eta. Similar to Theorem G.3, the plastic weights P1P_1 and P2P_2 converge as t→∞t \to\infty when λ1<1/d\lambda_1 < 1/d and λ2\lambda_2 is any positive value. While there is a similar analysis one can perform for the case of separating weight vector w∗\mathbf{w}^{*} when λ1=1/d\lambda_1 = 1/d, we will show in our theoretical analysis for TI-L that the optimal value for λ1\lambda_1 is less than 1/d1/d. 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 P1P_1 and P2P_2 to learn. We show the updates for P1(t)P_1(t) enable the network to recall past trial outcomes in P2(t)P_2(t) 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:

P1(t)=∑IJh~IJ(t)xIJT,(13)P_1(t) = \sum_{IJ} \widetilde{h}_{IJ}(t)\mathbf{x}_{IJ}^{\mathsf{T}}, \tag*{(13)}

where

h~IJ(t)=−η∑i=0t−1hIJ(i)1{IJ shown at time i and model incorrect},(14)\widetilde{h}_{IJ}(t) = -\eta\sum_{i=0}^{t-1} h_{IJ}(i)\mathbf{1}_{\{IJ\ \text{shown at time }i\ \text{and model incorrect}\}}, \tag*{(14)}

and

P2(t)=∑IJβKL(t)wKLT,(15)P_2(t) = \sum_{IJ} \beta_{KL}(t)\mathbf{w}_{KL}^{\mathsf{T}}, \tag*{(15)}

where wKL=WxKL\mathbf{w}_{KL} = \mathbf{W}\mathbf{x}_{KL} and βIJ(t)\beta_{IJ}(t) is some time-evolving coefficient depending on the responses yy.

Assuming orthogonality of item representations (xI⋅xJ=0\mathbf{x}_I \cdot\mathbf{x}_J = 0 for I≠JI \ne J) and an incorrect response for some trial KLKL, we get the following expression for P1(t+1)P_1(t+1):

P1(t+1)=P1(t)−ηhKL(t)xKLT=∑IJh~IJ(t)xIJT−ηhKL(t)xKLT=∑IJh~IJ(t)xIJT−η(WxKL+α1P1(t)xKL)xKLT=∑IJh~IJ(t)xIJT−ηWxKLxKLT−λ1d(∑Jh~KJ(t)+∑Ih~IL(t))xKLT=∑IJ≠KLh~IJ(t)xIJT+(h~KL(t)−ηWxKL−λ1d(∑Jh~KJ(t)+∑Ih~IL(t)))xKLT.(16)\begin{aligned} P_1(t+1) &= P_1(t) - \eta h_{KL}(t)\mathbf{x}_{KL}^{\mathsf{T}} \\ &= \sum_{IJ}\widetilde{h}_{IJ}(t)\mathbf{x}_{IJ}^{\mathsf{T}} - \eta h_{KL}(t)\mathbf{x}_{KL}^{\mathsf{T}} \\ &= \sum_{IJ}\widetilde{h}_{IJ}(t)\mathbf{x}_{IJ}^{\mathsf{T}} - \eta\left(\mathbf{W}\mathbf{x}_{KL}+\alpha_1P_1(t)\mathbf{x}_{KL}\right)\mathbf{x}_{KL}^{\mathsf{T}} \\ &= \sum_{IJ}\widetilde{h}_{IJ}(t)\mathbf{x}_{IJ}^{\mathsf{T}}-\eta\mathbf{W}\mathbf{x}_{KL}\mathbf{x}_{KL}^{\mathsf{T}}-\lambda_1d\left(\sum_J\widetilde{h}_{KJ}(t)+\sum_I\widetilde{h}_{IL}(t)\right)\mathbf{x}_{KL}^{\mathsf{T}} \\ &= \sum_{IJ\ne KL}\widetilde{h}_{IJ}(t)\mathbf{x}_{IJ}^{\mathsf{T}}+ \left(\widetilde{h}_{KL}(t)-\eta\mathbf{W}\mathbf{x}_{KL}-\lambda_1d\left(\sum_J\widetilde{h}_{KJ}(t)+\sum_I\widetilde{h}_{IL}(t)\right)\right)\mathbf{x}_{KL}^{\mathsf{T}}. \tag*{(16)} \end{aligned}

Thus, only the vector coefficient for xKLT\mathbf{x}_{KL}^{\mathsf{T}} is updated. The term −ηWxKL-\eta\mathbf{W}\mathbf{x}_{KL} contributes a fixed innate vector update, while

−λ1d(∑Jh~KJ(t)+∑Ih~IL(t))-\lambda_1d\left(\sum_J\widetilde{h}_{KJ}(t)+\sum_I\widetilde{h}_{IL}(t)\right)

contributes a collection of item associations stored in the plastic weights in the form of h~IJ(t)\widetilde{h}_{IJ}(t), where at least one of I=KI=K or J=LJ=L. Note that the h~IJ(t)\widetilde{h}_{IJ}(t) themselves consist of past hidden states hIJ(i)h_{IJ}(i) by Eq. (14). With sufficient training examples and by a recursive argument, the hKL(t)h_{KL}(t) can have nontrivial dot product with wIJ\mathbf{w}_{IJ} for I≠KI \ne K and J≠LJ \ne L. Through P2(t)P_2(t) 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 KK and LL.

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 x1,…,x2N\mathbf{x}_1,\ldots,\mathbf{x}_{2N} be 2N2N items in {−1,+1}d\{-1,+1\}^d. Assume the network

ft(xI,xJ)=(1+α2P2(t))(W+α1P1(t))xIJf_t(\mathbf{x}_I,\mathbf{x}_J)=(1+\alpha_2P_2(t))(\mathbf{W}+\alpha_1P_1(t))\mathbf{x}_{IJ}

in Eq. (11) and update rule in Eq. (12). Let δ∈[0,1]\delta\in[0,1], and suppose for some time TT the following conditions hold:

  1. (Sufficiently uncorrelated inputs.) For I≠JI\ne J, we have ∣xITxJ∣≤dδ\lvert\mathbf{x}_I^\mathsf{T}\mathbf{x}_J\rvert\le d\delta.

  2. (Perfectly symmetric within-list TI.) If we set

AT:=W+α1P1(T)=[AL AR],hi:=ALxi,ri:=fT(xi,0),\mathbf{A}_T:=\mathbf{W}+\alpha_1\mathbf{P}_1(T)=[\mathbf{A}_L\ \mathbf{A}_R],\quad\mathbf{h}_i:=\mathbf{A}_L\mathbf{x}_i,\quad r_i:=f_T(\mathbf{x}_i,0),

then we have:

  • ARxi=−hi\mathbf{A}_R\mathbf{x}_i=-\mathbf{h}_i for all ii;

  • ri=ri+Nr_i=r_{i+N} for i≤Ni\le N;

  • ri<ri+1r_i<r_{i+1} for i<Ni<N.

  1. (Learning rates in right range to link and preserve within-list ranks.) Let Δ=rN−r1\Delta=r_N-r_1 and g=min⁡i<N(ri+1−ri)g=\min_{i<N}(r_{i+1}-r_i). Set

D=∥hN−hN+1∥,Kh=max⁡i<Nmax⁡{∥hi+1−hi∥,∥hi+N+1−hi+N∥}ri+1−ri.D=\lVert\mathbf{h}_N-\mathbf{h}_{N+1}\rVert,\quad K_h=\max_{i<N}\frac{\max\{\lVert\mathbf{h}_{i+1}-\mathbf{h}_i\rVert,\lVert\mathbf{h}_{i+N+1}-\mathbf{h}_{i+N}\rVert\}}{r_{i+1}-r_i}.

The effective learning rates λ1=α1η\lambda_1=\alpha_1\eta and λ2=α2η\lambda_2=\alpha_2\eta satisfy

0≤λ1<(2d)−1,1D2<λ2<g+2dλ1ΔδgΔDKh+2dλ1ΔδD2.0\le\lambda_1<(2d)^{-1},\qquad\frac{1}{D^2}<\lambda_2<\frac{g+2d\lambda_1\Delta\delta}{g\Delta D K_h+2d\lambda_1\Delta\delta D^2}.

Then, after one update on either (xN,xN+1)(\mathbf{x}_N,\mathbf{x}_{N+1}) or (xN+1,xN)(\mathbf{x}_{N+1},\mathbf{x}_N), we have

fT+1(xi,xj)<0<fT+1(xj,xi)f_{T+1}(\mathbf{x}_i,\mathbf{x}_j)<0<f_{T+1}(\mathbf{x}_j,\mathbf{x}_i)

for every 1≤i<j≤2N1\le i<j\le2N.

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 bT=1+α2P2(T)\mathbf{b}_T=1+\alpha_2\mathbf{P}_2(T) and z=hN−hN+1\mathbf{z}=\mathbf{h}_N-\mathbf{h}_{N+1}. By assumption (2), we have

ATxIJ=hI−hJ,\mathbf{A}_T\mathbf{x}_{IJ}=\mathbf{h}_I-\mathbf{h}_J,

and

bThI=rI.\mathbf{b}_T\mathbf{h}_I=r_I.

In particular, ∥z∥=D\lVert\mathbf{z}\rVert=D and bTz=Δ\mathbf{b}_T\mathbf{z}=\Delta. Let q\mathbf{q} denote the concatenated input of the presented linking pair, and assume that the linking pair is (xN,xN+1)(\mathbf{x}_N,\mathbf{x}_{N+1}). The proof for reverse case is symmetric. The pre-update hidden activity and output are z\mathbf{z} and Δ\Delta, respectively. By assumption (2), the model response is incorrect, and the readout update is

bT+1=bT−λ2ΔzT.\mathbf{b}_{T+1}=\mathbf{b}_T-\lambda_2\Delta\mathbf{z}^{\mathsf{T}}.

We first examine the effect of the readout update on the original hidden representations. We will show that the readout-updated scores r~I=bT+1hI\widetilde{r}_I=\mathbf{b}_{T+1}\mathbf{h}_I have the desired concatenated ordering. For the linking pair, we have

r~N+1−r~N=−bT+1z=−Δ+λ2ΔD2=Δ(λ2D2−1).\begin{aligned} \widetilde{r}_{N+1}-\widetilde{r}_N&=-\mathbf{b}_{T+1}\mathbf{z}\\ &=-\Delta+\lambda_2\Delta D^2\\ &=\Delta(\lambda_2D^2-1). \end{aligned}

Thus the readout update reverses the linking pair precisely when λ2D2>1\lambda_2D^2 > 1. Write H:=λ2D2−1H := \lambda_2D^2 - 1, so that ΔH\Delta H is the resulting gap between the lists’ boundary items.

Next, consider adjacent items I<JI < J in either list. By Cauchy–Schwarz and the definition of KhK_h,

r~J−r~I=(rJ−rI)−λ2ΔzT(hJ−hI)≥(rJ−rI)−λ2ΔD∥hJ−hI∥≥(1−λ2ΔDKh)(rJ−rI).\widetilde{r}_J - \widetilde{r}_I = (r_J - r_I) - \lambda_2\Delta z^{\mathsf{T}}(h_J - h_I) \ge(r_J - r_I) - \lambda_2\Delta D\lVert h_J - h_I \rVert \ge(1 - \lambda_2\Delta D K_h)(r_J - r_I).

We therefore write c:=1−λ2ΔDKhc := 1 - \lambda_2\Delta D K_h for the guaranteed fraction of each within-list gap retained by the readout update. Assumption (3) gives H>0H > 0 and

gc>2dλ1ΔδH≥0.gc > 2d\lambda_1\Delta\delta H \ge0.

In particular, c>0c > 0, so the r~I\widetilde{r}_I preserve both within-list orders and separate their boundary items. Their within-list gaps are at least gcgc, and their cross-list gaps are at least ΔH\Delta H. It remains to show that the first-layer update cannot change these inequalities.

Since bT+1Tz=−ΔH\mathbf{b}_{T+1}^{\mathsf{T}}\mathbf{z} = -\Delta H, the exact post-update output is

fT+1(xI,xJ)=bT+1(AT−λ1zqT)xIJ=r~I−r~J+λ1ΔHqTxIJ.(17)f_{T+1}(\mathbf{x}_I,\mathbf{x}_J) = \mathbf{b}_{T+1}(A_T - \lambda_1\mathbf{z}\mathbf{q}^{\mathsf{T}})\mathbf{x}_{IJ} = \widetilde{r}_I - \widetilde{r}_J + \lambda_1\Delta H\mathbf{q}^{\mathsf{T}}\mathbf{x}_{IJ}. \tag*{(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 I<JI < J in the same list. Then assumption (1) gives

∣qTxIJ∣=∣xNTxI+xN+1TxJ∣≤2dδ.\lvert\mathbf{q}^{\mathsf{T}}\mathbf{x}_{IJ}\rvert= \lvert\mathbf{x}_N^{\mathsf{T}}\mathbf{x}_I + \mathbf{x}_{N+1}^{\mathsf{T}}\mathbf{x}_J\rvert \le2d\delta.

For xJI\mathbf{x}_{JI}, one item may overlap, so we obtain a lower bound

qTxJI=xNTxJ+xN+1TxI≥−2dδ.\mathbf{q}^{\mathsf{T}}\mathbf{x}_{JI} = \mathbf{x}_N^{\mathsf{T}}\mathbf{x}_J + \mathbf{x}_{N+1}^{\mathsf{T}}\mathbf{x}_I \ge-2d\delta.

Since ∣r~I−r~J∣≥gc\lvert\widetilde{r}_I - \widetilde{r}_J\rvert\ge gc for within-list items, these bounds together with Eq. (17) give

fT+1(xI,xJ)≤−gc+2dλ1ΔδH<0,f_{T+1}(\mathbf{x}_I,\mathbf{x}_J) \le-gc + 2d\lambda_1\Delta\delta H < 0,
fT+1(xJ,xI)≥gc−2dλ1ΔδH>0.f_{T+1}(\mathbf{x}_J,\mathbf{x}_I) \ge gc - 2d\lambda_1\Delta\delta H > 0.

Thus every within-list comparison remains correct.

  • (Cross-list) Next consider I≤N<JI \le N < J. As shown above, we have ∣r~I−r~J∣≥ΔH\lvert\widetilde{r}_I - \widetilde{r}_J\rvert\ge\Delta H. For cross-list trial types, the overlap can include the presented linking pair itself, so we instead use the upper bound

∣qTxIJ∣≤∥q∥∥xIJ∥=2d,\lvert\mathbf{q}^{\mathsf{T}}\mathbf{x}_{IJ}\rvert\le\lVert\mathbf{q}\rVert\lVert\mathbf{x}_{IJ}\rVert= 2d,

which also holds for xIJ\mathbf{x}_{IJ}. This inequality together with Eq. (17) yields

fT+1(xI,xJ)≤−ΔH+2dλ1ΔH=−ΔH(1−2dλ1)<0,f_{T+1}(\mathbf{x}_I,\mathbf{x}_J) \le-\Delta H + 2d\lambda_1\Delta H = -\Delta H(1 - 2d\lambda_1) < 0,
fT+1(xJ,xI)≥ΔH−2dλ1ΔH=ΔH(1−2dλ1)>0.f_{T+1}(\mathbf{x}_J,\mathbf{x}_I) \ge\Delta H - 2d\lambda_1\Delta H = \Delta H(1 - 2d\lambda_1) > 0.

The last inequalities follow from H>0H > 0 and λ1<(2d)−1\lambda_1 < (2d)^{-1} (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 DD must be greater than ΔKh\Delta K_h in order have a non-empty interval for λ2\lambda_2. We leave the relaxing of the assumptions in the proof to future work.

Algorithm 3  TI-L Algorithm

Require: Number of items $N$
Require: Randomly initialized rank vector $\mathbf{R} \in \mathbb{R}^{N}$
Require: Learning rates $\lambda_{1}, \lambda_{2} > 0$
Require: Episode $\mathcal{E} = \{(i_{1},j_{1}), (i_{2},j_{2}), \ldots, (i_{T},j_{T})\}$,
         where $\lvert i_{k} - j_{k} \rvert = 1$ and $1 \leq i_{s},j_{t} \leq N$

1: $\mathbf{M}_{L} = \mathbf{M}_{R} = \mathbf{0}$
2: $\mathbf{R}_{L} = \mathbf{R}_{R} = \mathbf{R}$
3: for $(i,j)$ in $\mathcal{E}$ do
4:     $\rho \leftarrow \mathbf{R}_{L}[i] - \mathbf{R}_{R}[j]$
5:     if $(\rho \leq 0$ and $i > j)$ or $(\rho > 0$ and $i < j)$ then
6:         $\mathbf{a} \leftarrow \mathbf{e}_{i} - \mathbf{e}_{j} + \mathbf{M}_{L}[i,:]^{\mathsf{T}} + \mathbf{M}_{R}[j,:]^{\mathsf{T}}$
7:         $\mathbf{M}_{L}[i,:] \leftarrow \mathbf{M}_{L}[i,:] - \lambda_{1}\mathbf{a}^{\mathsf{T}}$ ▷ Update $\mathbf{P}_{1}$
8:         $\mathbf{M}_{R}[j,:] \leftarrow \mathbf{M}_{R}[j,:] - \lambda_{1}\mathbf{a}^{\mathsf{T}}$
9:         $\mathbf{R} \leftarrow \mathbf{R} - \lambda_{2}\rho\mathbf{a}$ ▷ Update $\mathbf{P}_{2}$
10:        $\mathbf{R}_{L} \leftarrow (I + \mathbf{M}_{L})\mathbf{R}$ ▷ Update ranks
11:        $\mathbf{R}_{R} \leftarrow (I - \mathbf{M}_{R})\mathbf{R}$
12:    end if
13: end for

An algorithm for TI-L. Algorithm 3 abstracts the memory-recall structure described above. We can think of P1(t)\mathbf{P}_{1}(t) 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 RL\mathbf{R}_{L} and RR\mathbf{R}_{R} 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.

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.

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 3(N−1)3(N - 1) trials (NN is number of items), where the 2(N−1)2(N - 1) 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−1N - 1 randomly sampled training trials.

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 (MM; generally M=3M = 3 in experimental tests), and beyond a specific number of groups (QQ), 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 M=3M = 3 and Q=3Q = 3; thus it remains an open question whether models can generalize their ability to perform TE to larger values of MM and QQ. 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 Q=3Q = 3 and 4, but ANML outperforming AutoHebb on Q>5Q > 5. The results in this section are reported for training phases consisting of all training trial types presented exactly once in random order.

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.

Supplementary figures

AutoHebb training

Given fixed parameters θ\theta, an episode consisting of input and output pairs E={(x1,y1),(x2,y2),…,(xT,yT)}\mathcal{E} = \{(x_1, y_1), (x_2, y_2), \ldots, (x_T, y_T)\}, and corresponding target outputs {y^1,y^2,…,y^T}\{\hat{y}_1, \hat{y}_2, \ldots, \hat{y}_T\}, we took the loss function for meta-learning to be binary cross-entropy loss (BCE):

L(θ,E)=−1T∑i=1T(1−yi)log⁡(1−y^i)+yilog⁡(y^i).\mathcal{L}(\theta, \mathcal{E}) = -\frac{1}{T}\sum_{i=1}^{T}(1-y_i)\log(1-\hat{y}_i) + y_i\log(\hat{y}_i).

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 {−1,+1}d\{-1, +1\}^d, 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 3×3\times 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. d=100d = 100, making the trial inputs 200-dimensional after concatenation. As discussed in § 2.1, the hidden layers for a 1-neuromodulator AutoHebb network is given by

hi=g((Wi+(Ai⊙Pi))hi−1+bi).\mathbf{h}_i = g((\mathbf{W}_i + (\mathbf{A}_i \odot\mathbf{P}_i))\mathbf{h}_{i-1} + \mathbf{b}_i).

However, for 2-neuromodulators, each hidden layer becomes

hi=g((Wi+(Ai⊙Pi,1)+(Bi⊙Pi,2))hi−1+bi),(18)\mathbf{h}_i = g((\mathbf{W}_i + (\mathbf{A}_i \odot\mathbf{P}_{i,1}) + (\mathbf{B}_i \odot\mathbf{P}_{i,2}))\mathbf{h}_{i-1} + \mathbf{b}_i), \tag*{(18)}

where Bi\mathbf{B}_i is meta-trainable. Then the updates for each set of plastic weights are ΔPi,j=ηjmjhihi−1T\Delta\mathbf{P}_{i,j} = \eta_j m_j \mathbf{h}_i\mathbf{h}_{i-1}^{\mathsf{T}}. Each neuromodulator mjm_j has its own control network

mj=tanh⁡(Wmod,jtanh⁡(Whmod,jh+wr,jr+bmod,j)+bmodout,j).m_j = \tanh(\mathbf{W}_{\mathrm{mod},j} \tanh(\mathbf{W}_{\mathrm{hmod},j}\mathbf{h} + \mathbf{w}_{r,j}r + \mathbf{b}_{\mathrm{mod},j}) + \mathbf{b}_{\mathrm{modout},j}).

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 1e−61\mathrm{e}-6 and gradient clipping within [−2.0,2.0][-2.0, 2.0]. The plastic weight decay term λ\lambda is fixed to 1, except in model used in Figure 7 (see Appendix § 11.§ 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).

Experimental details

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.

  1. 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]).

  1. 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.

  1. 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-learningHebbianNeuromodulation
EWC
SI
DER
A-GEM
MAML■
Reptile■
OML■
ANML■■
MER■
FLP■■
2F-A■■
2F-ABCD■■
AutoHebb■■■

Table 7. Comparison of model types.

Benchmarking measures

The reported values were computed as follows: the accuracies on critical pairs described in § 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. (Same-group test accuracy + Diff-group test accuracy)/2.

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 § 10. 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 K=32K = 32 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, k−1=4k - 1 = 4 examples are drawn from the buffer and combined with the current trial; the current trial receives a boosted learning rate of s⋅α=5×0.1=0.5s \cdot\alpha= 5 \times0.1 = 0.5 while buffer examples use α=0.1\alpha= 0.1, followed by a single Reptile-style interpolation with coefficient γ=0.3\gamma= 0.3. Per-trial cost is k=5k = 5 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 ll carries meta-learned per-synapse plasticity coefficients αl\alpha_l (same shape as WlW_l), a feedback-mixing scalar βl\beta_l applied as σ(βl)∈(0,1)\sigma(\beta_l) \in(0,1), a feedback weight matrix BlB_l of shape (dhidden,1)(d_{\mathrm{hidden}},1) projecting the scalar output signal directly to the layer, and a per-neuron feedback bias bfb,lb_{\mathrm{fb},l}. The readout layer is always plastic (with α\alpha only; no BB or β\beta). Earlier hidden layers are static and serve as a meta-learned feature extractor, analogous to OML’s representation network. All plasticity parameters (α,β,B,bfb)(\alpha,\beta,B,b_{\mathrm{fb}}) are meta-learned via Adam, with a separate learning rate of 0.0001 for α\alpha (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:

ΔWl=αl⊙(postl⋅prel⊤−postl2⋅Wl),\Delta W_l = \alpha_l \odot\left(\mathrm{post}_l \cdot\mathrm{pre}_l^{\top} - \mathrm{post}_l^2 \cdot W_l\right),

where prel\mathrm{pre}_l is the input to layer ll and postl\mathrm{post}_l is a learned mixture of the layer’s feedforward activity and the rectified feedback signal:

postl=(1−σ(βl))⋅hl+σ(βl)⋅ReLU⁡(Bleout−bfb,l).\mathrm{post}_l = (1-\sigma(\beta_l)) \cdot h_l + \sigma(\beta_l) \cdot\operatorname{ReLU}(B_l e_{\mathrm{out}} - b_{\mathrm{fb},l}).

We use the raw target as the feedback signal (eout=ye_{\mathrm{out}}=y) with βl\beta_l initialized at 0.0 (σ(0)=0.5\sigma(0)=0.5, equal mix of forward and feedback activity) and αl\alpha_l 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 2⋅ditem+12 \cdot d_{\mathrm{item}} + 1. Each trial involves a double forward pass: the first pass sets r=0r=0 and generates the model choice and feedback; the second pass sets r=+1r=+1 or r=−1r=-1 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, ΔW∝post⋅pre⊤\Delta W \propto\mathrm{post} \cdot\mathrm{pre}^{\top}.

  • 2FACABCD_{\mathrm{ABCD}}: The generalized ABCD trace family, with per-layer meta-learned scalar coefficients:

ΔW∝A⋅post⋅pre⊤+B⋅post+C⋅pre+D.(19)\Delta W \propto A \cdot\mathrm{post} \cdot\mathrm{pre}^{\top} + B \cdot\mathrm{post} + C \cdot\mathrm{pre} + D. \tag*{(19)}

Coefficients are initialized at (A,B,C,D)=(1,0,0,0)(A,B,C,D)=(1,0,0,0), 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 λ=1000.0\lambda=1000.0. Since there are only two tasks in the multi-task ZI setting, only the second task 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 λ=1.0\lambda= 1.0. Synaptic Intelligence [34] additionally tracks per-parameter path integrals during training, accumulating ωi=∑t(−∂L/∂θi)⋅Δθi\omega_i = \sum_t(-\partial L/\partial\theta_i)\cdot\Delta\theta_i and normalizing by the squared displacement plus a damping constant ξ=0.001\xi= 0.001. 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.

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 λ\lambda initialized to σ(4.0)≈.98\sigma(4.0) \approx.98 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.

Supplementary mathematical statements

Lemma G.1. An rr-dimensional affine subspace of Rd\mathbb{R}^{d} contains at most 2r2^{r} vertices of the dd-dimensional hypercube with vertices in {−1,+1}d\{-1,+1\}^{d}.

Proof. Let A=x+UA = \mathbf{x} + U be an affine subspace of Rd\mathbb{R}^{d} with UU an rr-dimensional linear subspace of Rd\mathbb{R}^{d} and x\mathbf{x} a vector in Rd\mathbb{R}^{d}. Let u1,u2,…,ur\mathbf{u}_1,\mathbf{u}_2,\ldots,\mathbf{u}_r be a basis for UU, and let U∈Rd×rU \in\mathbb{R}^{d\times r} be the matrix whose iith column is ui\mathbf{u}_i. Since UU has rank rr, there exists rr linearly independent rows in UU. If these rows are indexed by i1,i2,…,iri_1,i_2,\ldots,i_r, then the projection

π:Rd→Rr\pi:\mathbb{R}^{d}\to\mathbb{R}^{r}

that sends coordinate iji_j to coordinate jj is bijective on A⊂RdA\subset\mathbb{R}^{d}. Thus, π\pi gives a bijection between A∩{−1,+1}dA\cap\{-1,+1\}^{d} and π(A∩{−1,+1}d)⊂{−1,+1}r\pi\left(A\cap\{-1,+1\}^{d}\right)\subset\{-1,+1\}^{r}, which has at most 2r2^{r} vertices. □\square

Lemma G.2. Let MM be the number of (d−1)(d-1)-dimensional hyperplanes through the origin in Rd\mathbb{R}^{d}. The number of regions R(M,d)R(M,d) in Rd\mathbb{R}^{d} formed by the MM hyperplanes is at most

R(M,d)≤2∑i=0d−1(M−1i).R(M,d)\le2\sum_{i=0}^{d-1}\binom{M-1}{i}.

Proof. Let HMH_M be the MMth hyperplane added to the current configuration of M−1M-1 hyperplanes. New regions are added only where HMH_M intersects an existing region. Therefore, the number of new regions added is at most the number of regions in the (d−1)(d-1)-dimensional subspace HMH_M determined by the M−1M-1 hyperplanes, viewed as (d−2)(d-2)-dimensional hyperplanes when restricted to HMH_M. This gives is a bound

R(M,d)≤R(M−1,d)+R(M−1,d−1).R(M,d)\le R(M-1,d)+R(M-1,d-1).

With initial conditions

R(1,d)=2,andR(1,d)=2,\quad\text{and}
R(M,1)=2,R(M,1)=2,

we obtain the desired bound through recursion. The base cases for M=1M=1 and d=1d=1 are

2∑i=0d−1(0i)=2(00)=2=R(1,d),and2\sum_{i=0}^{d-1}\binom{0}{i}=2\binom{0}{0}=2=R(1,d),\quad\text{and}
2∑i=00(M−1i)=2(M−10)=2=R(M,1).2\sum_{i=0}^{0}\binom{M-1}{i}=2\binom{M-1}{0}=2=R(M,1).

For the general case, we have

R(M,d)≤R(M−1,d)+R(M−1,d−1)=2∑i=0d−1(M−2i)+2∑i=0d−2(M−2i)=2∑i=0d−1(M−2i)+2∑i=1d−1(M−2i−1)=2(M−20)+2∑i=1d−1((M−2i)+(M−2i−1)).\begin{aligned} R(M,d)&\le R(M-1,d)+R(M-1,d-1)\\ &=2\sum_{i=0}^{d-1}\binom{M-2}{i}+2\sum_{i=0}^{d-2}\binom{M-2}{i}\\ &=2\sum_{i=0}^{d-1}\binom{M-2}{i}+2\sum_{i=1}^{d-1}\binom{M-2}{i-1}\\ &=2\binom{M-2}{0}+2\sum_{i=1}^{d-1}\left(\binom{M-2}{i}+\binom{M-2}{i-1}\right). \end{aligned}

If we apply Pascal’s identity to the sum on the right-hand side, we get

R(M,d)≤2(M−20)+2∑i=1d−1(M−1i).R(M,d)\le2\binom{M-2}{0}+2\sum_{i=1}^{d-1}\binom{M-1}{i}.

Since

(M−20)=(M−10)=1,\binom{M-2}{0}=\binom{M-1}{0}=1,

we get

R(M,d)≤2∑i=0d−1(M−1i).R(M,d)\le2\sum_{i=0}^{d-1}\binom{M-1}{i}.

Theorem G.3. Assume the network in Eq. (5) and update rule in Eq. (6). Let x1,x2,…,xN\mathbf{x}_1,\mathbf{x}_2,\ldots,\mathbf{x}_N be NN items in {−1,+1}d\{-1,+1\}^d. For a trial xIJx_{IJ}, let s(xIJ)s(x_{IJ}) be the sign of a correct model response for trial type IJIJ. Let Q={qt}t=0∞\mathbf{Q}=\{\mathbf{q}_t\}_{t=0}^{\infty} be a sequence of trials with inputs qt\mathbf{q}_t. If 0<η<1d0<\eta<\frac{1}{d} as in Eq. (6), then P(t)\mathbf{P}(t) converges as t→∞t\to\infty.

Proof. Let wt=1+P(t)\mathbf{w}_t=\mathbf{1}+\mathbf{P}(t) and yt=wtqty_t=\mathbf{w}_t\mathbf{q}_t. Then for an update at time tt, we have

∥wt+1∥2=∥wt−ηytqt∥2=∥wt∥2−2ηytwtqt+2η2yt2d=∥wt∥2−2ηyt2+2η2yt2d=∥wt∥2−2ηyt2(1−ηd).\begin{aligned} \lVert\mathbf{w}_{t+1}\rVert^2&=\lVert\mathbf{w}_t-\eta y_t\mathbf{q}_t\rVert^2\\ &=\lVert\mathbf{w}_t\rVert^2-2\eta y_t\mathbf{w}_t\mathbf{q}_t+2\eta^2y_t^2d\\ &=\lVert\mathbf{w}_t\rVert^2-2\eta y_t^2+2\eta^2y_t^2d\\ &=\lVert\mathbf{w}_t\rVert^2-2\eta y_t^2(1-\eta d). \end{aligned}

Since η<1/d\eta<1/d, the sequence of norms ∥wt∥2\lVert\mathbf{w}_t\rVert^2 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 {wt∗}\{\mathbf{w}_{t^*}\} that converges to some w∗\mathbf{w}_*. We show w∗\mathbf{w}_* is the limit of the entire sequence. For each trial vector q\mathbf{q}, define the update matrix Mq=I2d−ηqqT\mathbf{M}_{\mathbf{q}}=\mathbf{I}_{2d}-\eta\mathbf{q}\mathbf{q}^{\mathsf{T}}. On an incorrect trial with input q\mathbf{q}, we have wt+1=wtMq\mathbf{w}_{t+1}=\mathbf{w}_t\mathbf{M}_{\mathbf{q}}. Since ∥q∥2=2d\lVert\mathbf{q}\rVert^2=2d, for any row vector v\mathbf{v},

∥vMq∥2=∥v∥2−2η(1−ηd)∣vq∣2≤∥v∥2.(20)\lVert\mathbf{v}\mathbf{M}_{\mathbf{q}}\rVert^2=\lVert\mathbf{v}\rVert^2-2\eta(1-\eta d)|\mathbf{v}\mathbf{q}|^2\leq\lVert\mathbf{v}\rVert^2. \tag*{(20)}

Thus every update map is nonexpansive.

Let R\mathcal{R} be the set of trial vectors whose corresponding update maps are applied infinitely often. If R\mathcal{R} 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 T0T_0 after which every applied update map belongs to R\mathcal{R}.

Now, suppose, towards a contradiction, that some update map in R\mathcal{R} does not fix w∗\mathbf{w}_*. Define N={q∈R:w∗q≠0}\mathcal{N}=\{\mathbf{q}\in\mathcal{R}:\mathbf{w}_*\mathbf{q}\neq0\}. By assumption, N\mathcal{N} is nonempty. Since it is finite (a subset of possible trial vectors) and every value in the following minimum is positive, we have a=min⁡q∈N∣w∗q∣>0a=\min_{\mathbf{q}\in\mathcal{N}}|\mathbf{w}_*\mathbf{q}|>0. For any q∈N\mathbf{q}\in\mathcal{N}, the reverse triangle inequality gives

∣wq∣≥∣w∗q∣−∣(w−w∗)q∣≥a−2d∥w−w∗∥\begin{aligned} |\mathbf{w}\mathbf{q}|\geq|\mathbf{w}_*\mathbf{q}|-|(\mathbf{w}-\mathbf{w}_*)\mathbf{q}| \\ &\geq a-\sqrt{2d}\lVert\mathbf{w}-\mathbf{w}_*\rVert \end{aligned}

where we apply the L2L^2 operator norm inequality

∥Mx∥≤∥M∥op∥x∥≤∥M∥F∥x∥.\lVert\mathbf{M}\mathbf{x}\rVert\leq\lVert\mathbf{M}\rVert_{\mathrm{op}}\lVert\mathbf{x}\rVert\leq\lVert\mathbf{M}\rVert_{\mathrm{F}}\lVert\mathbf{x}\rVert.

Therefore, whenever ∥w−w∗∥<a22d\lVert\mathbf{w}-\mathbf{w}_*\rVert<\frac{a}{2\sqrt{2d}}, an update associated with any q∈N\mathbf{q}\in\mathcal{N} satisfies ∣wq∣>a/2|\mathbf{w}\mathbf{q}|>a/2 and, by (20), decreases the squared norm by more than

κ:=η(1−ηd)a22>0.\kappa:=\frac{\eta(1-\eta d)a^2}{2}>0.

Recall that ∥wt∥2\lVert\mathbf{w}_t\rVert^2 converges, hence has some limit LL, and there is a subsequence {wtk}\{\mathbf{w}_{t_k}\} that converges to w∗\mathbf{w}_*. We may choose tk≥T0t_k\geq T_0 sufficiently large that ∥wtk−w∗∥<a22d\lVert\mathbf{w}_{t_k}-\mathbf{w}_*\rVert<\frac{a}{2\sqrt{2d}} and ∥wtk∥2−L<κ\lVert\mathbf{w}_{t_k}\rVert^2-L<\kappa.

Let s≥tks\geq t_k be the first subsequent time at which an update associated with some q∈N\mathbf{q}\in\mathcal{N} is applied. Such a time exists because these update types occur infinitely often. Every update between tkt_k and ss fixes w∗\mathbf{w}_*, since its trial vector belongs to R∖N\mathcal{R}\setminus\mathcal{N}. By nonexpansiveness, such updates cannot increase the distance to w∗\mathbf{w}_*. Hence

∥ws−w∗∥≤∥wtk−w∗∥<a22d.\lVert\mathbf{w}_s-\mathbf{w}_*\rVert\leq\lVert\mathbf{w}_{t_k}-\mathbf{w}_*\rVert<\frac{a}{2\sqrt{2d}}.

The update at time ss therefore decreases the squared norm by more than κ\kappa:

∥ws+1∥2<∥ws∥2−κ≤∥wtk∥2−κ<L,\begin{aligned} \lVert\mathbf{w}_{s+1}\rVert^2&<\lVert\mathbf{w}_s\rVert^2-\kappa\\ &\leq\lVert\mathbf{w}_{t_k}\rVert^2-\kappa\\ &<L, \end{aligned}

where we use the fact that ∥wt∥\lVert\mathbf{w}_t\rVert is nonincreasing. This contradicts the fact that ∥wt∥2\lVert\mathbf{w}_t\rVert^2 is nonincreasing and converges to LL, so every term must be at least LL.

Therefore N\mathcal{N} is empty: every update map that occurs infinitely often fixes w∗\mathbf{w}_*. For t≥T0t\geq T_0, nonexpansiveness consequently gives

∥wt+1−w∗∥=∥(wt−w∗)Mqt∥≤∥wt−w∗∥\lVert\mathbf{w}_{t+1}-\mathbf{w}_*\rVert=\lVert(\mathbf{w}_t-\mathbf{w}_*)\mathbf{M}_{\mathbf{q}_t}\rVert \leq\lVert\mathbf{w}_t-\mathbf{w}_*\rVert

on update steps, with equality on steps without an update. Thus the sequence ∥wt−w∗∥\lVert\mathbf{w}_t-\mathbf{w}_*\rVert is nonincreasing for t≥T0t\geq T_0. Since its subsequence ∥wtk−w∗∥\lVert\mathbf{w}_{t_k}-\mathbf{w}_*\rVert converges to zero, the entire sequence converges to zero. Hence

lim⁡t→∞wt=w∗.\lim_{t\to\infty}\mathbf{w}_t=\mathbf{w}_*.

Finally, since P(t)=wt−1ˉ\mathbf{P}(t)=\mathbf{w}_t-\bar{\mathbf{1}}, the plastic weights also converge.

References

  1. [1]Dh reesha 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.DOI
  2. [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.arxiv.org/abs/1604.00289
  3. [3]Anirudh Goyal and Yoshua Bengio. Inductive bases for deep learning of higher-level cognition. Proceedings of the Royal Society A, 478(2266):20210068, 2022.
  4. [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.DOI
  5. [5]Liyuan Wang, Xingxing Zhang, Hang Su, and Jun Zhu. A comprehensive survey of continual learning: Theory, method and application, 2024.arxiv.org/abs/2302.00487
  6. [6]Gido M. van de Ven, Nicholas Soures, and Dhireesha Kudithipudi. Continual learning and catastrophic forgetting, page 153–168. Elsevier, 2025.DOI
  7. [7]David Lopez-Paz and Marc’Aurelio Ranzato. Gradient episodic memory for continual learning. Advances in neural information processing systems, 30, 2017.
  8. [8]Wolfgang Kohler. The mentality of apes. Routledge, 2018.
  9. [9]Edward C. Tolman. Cognitive maps in rats and men. Psychological Review, 55(4):189–208, 1948.pubmed.ncbi.nlm.nih.gov/18870876
  10. [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. [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. [12]Howard Eichenbaum and Neal J. Cohen. From Conditioning to Conscious Recollection: Memory systems of the brain. Oxford University Press, 12 2004.
  13. [13]Frederic Charles Bartlett. Remembering: A study in experimental and social psychology. Cambridge university press, 1995.
  14. [14]David E Rumelhart. Schemata: The building blocks of cognition. In Theoretical issues in reading comprehension, pages 33–58. Routledge, 2017.DOI
  15. [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. [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.pubmed.ncbi.nlm.nih.gov/11309617
  17. [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.DOI
  18. [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. [19]Hiruni Samadi Galpayage Dona and Lars Chittka. Charles h. turner, pioneer in animal cognition. Science, 370(6516):530–531, 2020.
  20. [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. [21]Chloe Weise, Christian Cely Ortiz, and Elizabeth A Tibbets. Paper wasps form abstract concept of ‘same and different’. Proceedings of the Royal Society B: Biological Sciences, 289(1979), 2022.DOI
  22. [22]Tom M Mitchell. The need for biases in learning generalizations. 1980.
  23. [23]Yoshua Bengio, Yann Lecun, and Geoffrey Hinton. Deep learning for ai. Communications of the ACM, 64(7):58–65, 2021.DOI
  24. [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.arxiv.org/abs/1806.01261
  25. [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.DOI
  26. [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.DOI
  27. [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.arxiv.org/abs/2301.13105
  28. [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. [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.arxiv.org/abs/2405.16391
  30. [30]David Rolnick, Arun Ahuja, Jonathan Schwarz, Timothy P. Lillicrap, and Greg Wayne. Experience replay for continual learning, 2019.
  31. [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. [32]Gido M Van de Ven, Tinne Tuytelaars, and Andreas S Tolias. Three types of incremental learning. Nature Machine Intelligence, 4(12):1185–1197, 2022.DOI
  33. [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.DOI
  34. [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.arxiv.org/abs/1703.04200
  35. [35]Mehrdad Farajtabar, Navid Azizan, Alex Mott, and Ang Li. Orthogonal gradient descent for continual learning, 2019.
  36. [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. [37]Wolfram Schultz. Dopamine reward prediction-error signalling: a two-component response. Nature reviews neuroscience, 17(3):183–195, 2016.DOI
  38. [38]MD György Buzsáki. The brain from inside out. Oxford University Press, 2019.
  39. [39]Grzegorz Rypeść. Gradient-free continual learning, 2025.arxiv.org/abs/2504.01219
  40. [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.DOI
  41. [41]Jeffrey C Magee and Christine Grienberger. Synaptic plasticity forms and functions. Annual review of neuroscience, 43(1):95–117, 2020.DOI
  42. [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.DOI
  43. [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.arxiv.org/abs/1804.02464
  44. [44]Elias Najarro and Sebastian Risi. Meta-learning through hebbian plasticity in random networks. Advances in Neural Information Processing Systems, 33:20719–20731, 2020.arxiv.org/abs/2007.02686
  45. [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.DOI
  46. [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.arxiv.org/abs/2002.10585
  47. [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.arxiv.org/abs/2112.08588
  48. [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.DOI
  49. [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.arxiv.org/abs/2305.11252
  50. [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. [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.arxiv.org/abs/1703.03400
  52. [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.DOI
  53. [53]Timothy Hospedales, Andreas Antoniou, Paul Micaelli, and Amos Storkey. Meta-learning in neural networks: A survey, 2020.arxiv.org/abs/2004.05439
  54. [55]Peter E Bryant and Thomas Trabasso. Transitive inferences and memory in young children. Nature, 1971.DOI
  55. [56]Brendan O McGonigle and Margaret Chalmers. Are monkeys logical? Nature, 267(5613):694–696, 1977.DOI
  56. [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.DOI
  57. [58]Greg Jensen, Herbert S. Terrace, and Vincent P. Ferrera. Discovering implied serial order through model-free and model-based learning. Frontiers in neuroscience, 13:878, 2019.DOI
  58. [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.DOI
  59. [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.DOI
  60. [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.DOI
  61. [62]Micheal Bunsey and Howard Eichenbaum. Conservation of hippocampal memory function in rats and humans. Nature, 379(6562):255–257, 1996.pubmed.ncbi.nlm.nih.gov/8538790
  62. [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.pubmed.ncbi.nlm.nih.gov/8942963
  63. [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.DOI
  64. [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.DOI
  65. [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.pubmed.ncbi.nlm.nih.gov/8568492
  66. [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.pubmed.ncbi.nlm.nih.gov/12884680
  67. [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.DOI
  68. [69]Alex Nichol, Joshua Achiam, and John Schulman. On first-order meta-learning algorithms, 2018.arxiv.org/abs/1803.02999
  69. [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.arxiv.org/abs/1905.12588
  70. [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.arxiv.org/abs/1810.11910
  71. [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.
  72. [73]Jack Lindsey and Ashok Litwin-Kumar. Learning to learn with feedback and local plasticity. In H. Larochelle, M. Ranzato, R. Hadsel, M.F. Balcan, and H. Lin, editors, Advances in Neural Information Processing Systems, volume 33, pages 21213–21223. Curran Associates, Inc., 2020.arxiv.org/abs/2006.09549
  73. [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.arxiv.org/abs/1804.02464
  74. [75]Pietro Buzzega, Matteo Boschini, Angelo Porrello, Davide Abati, and SIMONE CALDERARА. 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.arxiv.org/abs/2004.07211
  75. [76]Arslan Chaudhry, Marc’Aurelio Ranzato, Marcus Rohrbach, and Mohamed Elhoseiny. Efficient lifelong learning with a-GEM. In International Conference on Learning Representations, 2019.arxiv.org/abs/1812.00420
  76. [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.DOI
  77. [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.DOI
  78. [79]Murray Sidman. Equivalence relations and behavior: A research story. Authors Cooperative, Boston, MA, 1994.
  79. [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.DOI
  80. [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.DOI
  81. [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.DOI
  82. [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.DOI
  83. [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.DOI
  84. [85]Guangyu Robert Yang and Xiao-Jing Wang. Artificial neural networks for neuroscientists: A primer. Neuron, 109(4):739–755, 2021.
  85. [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.DOI
  86. [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.arxiv.org/abs/2402.03300
  87. [88]Edward J Hu, yelong shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzi Li, Shean Wang, Lu Wang, and Weizhu Chen. LoRA: Low-rank adaptation of large language models. In International Conference on Learning Representations, 2022.arxiv.org/abs/2106.09685
  88. [89]Ian Goodfellow, Yoshua Bengio, and Aaron Courville. Deep Learning. MIT Press, 2016. http://www.deeplearningbook.org.
  89. [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.arxiv.org/abs/1606.04080
  90. [91]Maciej Wołczyk, Michał Zając, Razvan Pascanu, Łukasz Kuciński, and Piotr Miłos. Continual world: A robotic benchmark for continual reinforcement learning, 2021.
  91. [92]Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization, 2017.
  92. [93]Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, Alban Desmaison, Andreas Kopf, Edward Yang, Zach DeVito, Martin Raison, Alykhаn Tejani, Sasank Chilamkurthy, Benoit Steiner, Lu Fang, Junjie Bai, and Soumith Chintala. Pytorch: An imperative style, high-performance deep learning library, 2019.arxiv.org/abs/1912.01703

AI tools statement

No AI-use declaration is available for this version in Valency.

The available record does not establish whether AI systems or models contributed to this work.

How AI tools are recorded

Paper details

Cite this paper

Publication

Published
Version
Latest

Data & code

No code, data or supplementary files were declared for this version.

Pick where to look, or just type