Skip to content

Attention as Conditioning: What Classical Learning Theory Predicts About Linear Transformers

Aug 2025 · 1 citation · 48 references
Computer Science Biology

TL;DR

PH-attention is introduced, a Pearce--Hall-inspired rule with an explicit feature-indexed associability state that yields cue-dependent learning rates and is absent from the token-computed gates the authors compare, and predicts a dissociation that survives training on generic in-context association.

Abstract

Attention is widely understood as an associative memory, but that description alone does not predict how the memory will behave. Predictive theories do exist, but in the literature on animal learning. We show that the state updates of the major linear-attention families are term-for-term identical with named models from a century of animal learning theory: linear attention implements Hebbian contiguity, DeltaNet implements Rescorla--Wagner error correction, and decay variants such as RetNet implement contiguity with a stimulus trace. This dictionary turns conditioning phenomena into testable statements about the in-context behavior of linear transformers, while distinguishing algebraic consequences from empirical measurements. Algebraically, it yields an exact closed form for Kamin blocking, verified in simulation to $<10^{-7}$ across five learning rates. Empirically, it predicts a dissociation that survives training on generic in-context association: error-correcting attention exhibits cue competition, whereas contiguity-based attention does not. A single state also has two capacity regimes, with measured scaling exponents of 1.22 for faithful retrieval and 1.89 for identification, consistent with linear and near-quadratic predictions. Across the full head grid, retrieval error is governed primarily by total state size rather than its partition across heads, indicating that heads provide capacity rather than redundant copies. We also prove no spontaneous recovery for the analyzed single-state recurrences under cue-orthogonal retention trials; with a never-presented-cue control and probes within the trained positional range, we likewise find no recovery in trained models. Finally, we introduce PH-attention, a Pearce--Hall-inspired rule with an explicit feature-indexed associability state that yields cue-dependent learning rates and is absent from the token-computed gates we compare.

View source

Similar papers

Open access Sep 2026

The Reuse-and-Append Memory Principle: Application to Latent Cause Inference

The latent cause theory of memory modification provides a computational account of how the brain decides whether to update existing memories or form new ones, but leaves unspecified the neural mechanisms implementing this inference. We propose Reuse-and-Append Memory (RAM), a set of mechanistic principles that achieve...

Z. Ben Houidi, S. Gershman · 0 citations
Open access Sep 2026

Learning from mistakes: Objective and subjective error magnitudes predict the testing effect

The testing effect—where retrieval practice enhances memory more than restudy—remains mechanistically debated. We advance an error-driven learning (EDL) account, proposing that testing enhances memory by generating error signals that drive learning. Across two experiments using a color-wheel paradigm, we quantified ret...

A. Shi, Xiao-Nan L. Liu · 0 citations
Review Open access Sep 2026

Learning how: A “mindless” procedure alone gives rise to contextual cueing—A weakly supervised connectionist model of statistical context learning in visual search

Because our environment is not random, it is beneficial to assimilate the statistics of sensory impressions and improve performance, such as visual search for a target object in a cluttered array of nontarget objects (contextual cueing [CC] effect). Computational models of CC have so far focused on predicting the targe...

Werner Seitz, A. Zinchenko, H. Müller et al. · 0 citations
#artificial intelligence Preprint Sep 2026

On the Importance of Gating: Memorization vs. In-Context Learning in State Space Models

It is shown that this gating mechanism causes SSMs to first learn an in-weights"memorization"solution, while delaying, or even preventing, convergence to a correct in-context learning solution, and that gating is often beneficial for improving generalization to long sequence lengths.

W. Tong, Aryo Lotfi, Emmanuel Abbé et al. · 0 citations
Preprint Aug 2026

Where Cognition Lives: Dissecting Emergent from Computed Function in a Minimal Complete Cognitive Architecture

A cognitive architecture is more than the module that reasons: it must also decide how long to think and what deserves the effort. We built a minimal but complete system - a recurrent reasoner with adaptive halting, a homeostatic control field, and a value module - and asked of each part: does this function emerge from...

F. Arrabal-Campos, Francisco G. Montoya, A. Alcayde et al. · 1 citation

Related blog posts

MIT News · Artificial Intelligence Sep 29, 2026

Who we become when we talk to machines

Professor Sherry Turkle’s new book, “Artificial Intimacy,” offers a withering critique of chatbots and the antisocial dynamics she believes they encourage.

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.