长上下文线性注意力的克罗内克δ规则

·

研究论文 · 2026/10/20

我们提出了KronLSTM,一种基于Kronecker Delta Rule的线性注意力架构,该规则是一种用于关联矩阵记忆的新型更新规则。KronLSTM扩展了xLSTM家族,引入了一种记忆修正机制,该机制能够修正目标关联,同时仅在矩阵空间的单一方向上修改记忆。与delta规则更新相比,这种最小侵入的记忆修正减少了对先前存储信息的干扰,使其特别适合长上下文语言建模。由此产生的记忆动态可以数学描述为收敛到稳态分布的马尔可夫链,而记忆矩阵的期望范数在整个输入序列中保持均匀有界。因此,KronLSTM确保了稳定的记忆动态,无需对记忆状态进行额外的归一化和稳定机制。实验表明,KronLSTM与现有线性注意力架构(包括(Gated) DeltaNet家族模型)具有竞争力,并且通常优于它们,在长上下文基准测试中表现尤为出色。这些结果确立了Kronecker Delta Rule作为循环线性注意力架构中稳定关联记忆的有效且可分析的基础。我们的代码和模型已开源。

该论文提出了一种新的线性注意力架构KronLSTM,通过Kronecker Delta Rule实现稳定且低干扰的关联记忆更新,在长上下文任务中表现优异,且具有理论保证和开源实现,对长上下文语言建模和线性注意力研究有重要价值。

We propose KronLSTM, a linear attention architecture based on the Kronecker Delta Rule, a novel update rule for associative matrix memories. KronLSTM extends the xLSTM family with a memory-revision mechanism that corrects targeted associations while modifying the memory only along a single direction in matrix space. This minimally invasive memory revision reduces interference with previously stored information compared with delta-rule updates, making it particularly well suited for long-context language modeling. The resulting memory dynamics can be mathematically described as a Markov chain that converges to a steady-state distribution, while the expected norm of the memory matrix remains uniformly bounded throughout the entire input sequence. Hence, KronLSTM ensures stable memory dynamics without requiring additional normalization and stabilization mechanisms for the memory state. Experiments show that KronLSTM is competitive with, and often outperforms, existing linear attention architectures, including models of the (Gated) DeltaNet family, with particularly strong performance on long context benchmarks. These results establish the Kronecker Delta Rule as an effective and analytically tractable foundation for stable associative memory in recurrent linear attention architectures. Our code (https://github.com/NX-AI/KronLSTM) and models (https://huggingface.co/collections/NX-AI/kronlstm) are open-source.

阅读原文

参与讨论