预条件DeltaNet:用于线性递归的曲率感知序列建模
Preconditioned DeltaNet: Curvature-aware Sequence Modeling for Linear Recurrences
AI总结:
本文提出预条件DeltaNet,通过引入预条件技术改进线性递归模型,提升序列建模性能,在合成回忆基准和大规模语言模型中表现优异。
摘要:
为了解决softmax注意力在长上下文计算中的限制,已开发出多种亚二次递归运算符。本文提出预条件DeltaNet,通过在线最小二乘更新框架,将递归视为学习从键到值的线性映射。现有delta规则递归可视为该目标的一阶近似,但忽略了最小二乘损失的曲率。本文通过引入预条件技术,推导了线性注意力与delta规则在精确预条件情况下的等价性,并提出对角近似方法,实现了DeltaNet、GDN和KDA的预条件变体及高效的分块并行算法。实验表明,预条件delta规则递归在合成回忆基准和340M及1B规模的语言模型中均表现出一致的性能提升。
英文摘要:
To address the increasing long-context compute limitations of softmax attention, several subquadratic recurrent operators have been developed. This work includes models such as Mamba-2, DeltaNet, Gated DeltaNet (GDN), and Kimi Delta Attention (KDA). As the space of recurrences grows, a parallel line of work has arisen to taxonomize them. One compelling view is the test-time regression (TTR) framework, which interprets recurrences as performing online least squares updates that learn a linear map from the keys to values. Existing delta-rule recurrences can be seen as first-order approximations to this objective, but notably ignore the curvature of the least-squares loss during optimization. In this work, we address this by introducing preconditioning to these recurrences. Starting from the theory of online least squares, we derive equivalences between linear attention and the delta rule in the exactly preconditioned case. Next, we realize this theory in practice by proposing a diagonal approximation: this enables us to introduce preconditioned variants of DeltaNet, GDN, and KDA alongside efficient chunkwise parallel algorithms for computing them. Empirically, we find that our preconditioned delta-rule recurrences yield consistent performance improvements across synthetic recall benchmarks and language modeling at the 340M and 1B scale.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。