跳到正文
arXiv cs.AI· Mu Qiao·· 2 天前AI 评分44

注意力即条件反射:经典学习理论对线性 Transformer 的预测

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

AI 导读

一篇 arXiv 论文将线性注意力写入规则与经典条件反射模型建立对应:非归一化线性注意力逐项对应 Hebbian 邻近学习,DeltaNet 对应 Rescorla–Wagner 误差修正,而 Gated DeltaNet 和 Titans 仅在无遗忘或动量时归结为 Rescorla–Wagner。

正文 · 原文

View PDF HTML (experimental)

Abstract:Attention is widely described as an associative memory, yet that metaphor alone does not predict how a layer behaves under intervention. Classical conditioning supplies formal models of transient associative memory together with controlled protocols that separate competing update rules. We build a graded dictionary between linear-attention write rules and conditioning models, turning conditioning paradigms into discriminating behavioral tests for in-context memory. Unnormalized linear attention matches Hebbian contiguity and DeltaNet matches Rescorla--Wagner error correction term for term, whereas Gated DeltaNet and linear-memory Titans reduce to Rescorla--Wagner only without forgetting or momentum. Separating derived invariants (\textbf{[D]}) from measurements (\textbf{[M]}), we show that backward blocking separates one-step delta updates from exact least squares (MesaNet), and gating makes blocking decay with compound length. In models trained solely on generic in-context association, forward blocking survives training across two readouts up to key cosine $0.55$, re-pairing overwrites prior links in DeltaNet ($0.065$ persistence) while blending them in contiguity and softmax ($0.676$--$0.689$), and softmax shows strong ABA context renewal ($+38.8\%$ to $+43.8\%$) against single-state erasure. We prove and measure a power-of-$d_k$ capacity gap between reconstruction ($\Theta(d_k)$) and identification ($\Omega(d_k^2/\log d_k)$), and show that uncentered positive feature maps collapse fidelity capacity to a single item. Finally, we introduce PH-attention with a feature-indexed Pearce--Hall associability trace, confirming its volatility rate ratio ($1.75\times$), diagnosing its null at high noise ($0.35$), and demonstrating a consistent gain ($+0.0033$) at lower noise ($0.10$).
Subjects: Machine Learning (cs.LG); Artificial Intelligence (cs.AI); Neurons and Cognition (q-bio.NC)
Cite as: arXiv:2508.08289 [cs.LG]
  (or arXiv:2508.08289v4 [cs.LG] for this version)
  https://doi.org/10.48550/arXiv.2508.08289

arXiv-issued DOI via DataCite

Submission history

From: Mu Qiao [view email]
[v1] Tue, 5 Aug 2025 05:00:00 UTC (152 KB)
[v2] Tue, 5 May 2026 20:31:16 UTC (855 KB)
[v3] Fri, 28 Aug 2026 00:03:06 UTC (105 KB)
[v4] Thu, 3 Dec 2026 17:10:17 UTC (150 KB)

来源:arXiv cs.AI · arxiv.org