用于持续学习的快速权重注意力

·

研究论文 · 2026/08/31

本文研究了循环快速权重记忆和选择性状态空间模型中的在线学习规则,该规则将扩展上下文压缩为固定大小的循环状态。在自回归语义下,我们推导了平方误差回归和负内积目标的归一化一阶更新,包括Falcon-1/2/3及其内积变体。这些变体在语言建模中表现竞争力,并改善了变长数字加法的长度外推。该框架分离了循环序列模型中的时间对齐、可塑性、遗忘和有界重演。

本文为循环序列模型中的快速权重记忆提供了统一的在线学习框架,提出了多种更新变体,并在语言建模和长度外推任务上验证了有效性,对持续学习领域具有理论贡献和实用价值。

Recurrent fast-weight memories and selective state-space models compress an expanding context into a fixed-size recurrent state, making the state transition an online learning rule. We study this rule under read-after-write autoregressive semantics. For the prefix-prediction objective considered here, the local fast-memory example revealed at step t is the prefix-aligned pair (x_t,y_t)=(ϕ(k_{t-1}),v_t). The common same-step association (ϕ(k_t),v_t) remains causal, but optimizes a different internal objective. We derive normalized first-order updates for squared-error regression and negative inner-product objectives. The regression family comprises Falcon-1 (a scalar NLMS update), Falcon-2 (its per-column extension), and Falcon-3 (a sliding-window mini-batch update); Falcon-1A/Falcon-2A/Falcon-3A are the corresponding inner-product variants. We provide recurrent, masked-parallel, and chunk-parallel forms, together with numerically stable positive-decay renormalization. Representative variants remain competitive in language modeling and improve length extrapolation on variable-digit addition. This framework separates temporal alignment, plasticity, forgetting, and bounded rehearsal in recurrent sequence models.

阅读原文

参与讨论