复杂KDA:理解并增强Kimi Delta Attention的表达能力

·

研究论文 · 2026/09/22

基于delta规则的线性RNN能高效进行序列建模,但其低秩校正的线性更新限制了表达能力。先前工作表明,在单次循环更新中组合两个delta规则转移可以建模二维旋转,但这相比单次转移增加了秩和更新成本。我们证明,Kimi Delta Attention (KDA) 可以通过将单个delta规则变换与其通道门提供的第二次反射相结合来实现二维旋转。这需要扩展KDA的参数范围,结合两种现有的范围扩展:允许门控在[-1,1]和delta规则系数β在[0,2]。我们将所得模型称为Complex KDA (CKDA)。它保持了KDA的稳定性和效率,转移保持对角加秩一且非扩张,同时达到DeltaProduct_2的状态跟踪表达能力。我们刻画了CKDA的表达能力,并证明每个正交对角加秩一矩阵恰好是CKDA转移矩阵。单个CKDA层可以跟踪所有同构于SO(3)子群的有限群,并且许多状态跟踪结果中CKDA比其他对角加秩一线性RNN少用一层。实验上,在S_3、S_4和周期性音频续接任务上,结合两种扩展在测试的KDA范围设置中产生了最强的长度外推。在语言建模中,CKDA优于Transformer和其他线性RNN,与KDA基线结果相似,并显示出有前景的扩展行为。我们的代码开源于https://github.com/OpenEuroLLM/ComplexKDA,模型可在https://huggingface.co/collections/openeurollm/complexkda获取。

该论文在保持线性RNN效率的同时,通过理论创新显著提升了状态跟踪表达能力,并在多个任务上验证了其优越性,对序列建模领域有重要贡献。

Linear RNNs based on the delta-rule enable efficient sequence modeling, but their linear updates with a low-rank correction constrain their expressivity. Prior work has shown that composing two delta-rule transitions in a single recurrent update can model a 2D rotation, but this increases the rank and the cost of the updates compared to a single transition. We show that Kimi Delta Attention (KDA) can realize 2D rotations by combining a single delta-rule transformation with a second reflection supplied by its channel-wise gate. This requires extending the parameter ranges of KDA by combining two existing range extensions: allowing gates in [-1,1] and the delta-rule coefficient β in [0,2]. We call the resulting model Complex KDA (CKDA). It preserves KDA's stability and efficiency, with transitions that remain diagonal-plus-rank-one and non-expansive, while reaching the state-tracking expressivity of DeltaProduct_2. We characterize the expressivity of CKDA and prove that every orthogonal diagonal-plus-rank-one matrix is exactly a CKDA transition matrix. A single CKDA layer can track every finite group isomorphic to a subgroup of SO(3), and many state-tracking results use one fewer layer for CKDA compared to other diagonal-plus-rank-one Linear RNNs. Empirically, combining both extensions yields the strongest length extrapolation among tested KDA range settings on S_3, S_4, and periodic audio continuation. In language modeling, CKDA outperforms Transformers and other linear RNNs, obtains similar results to a KDA baseline, and shows promising scaling behavior. Our code is open source at https://github.com/OpenEuroLLM/ComplexKDA and our models are available at https://huggingface.co/collections/openeurollm/complexkda.

阅读原文

参与讨论