arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.12364cs.LG
收藏

关于次二次架构:从应用到原理

On Subquadratic Architectures: From Applications to Principles

ELLIS Unit Linz, LIT AI Lab, Institute for Machine Learning, Johannes Kepler University Linz(林茨ELLIS单元、LIT AI实验室、机器学习研究所、约翰内斯·开普勒大学林茨);NVIDIA(英伟达)

Anamaria-Roberta Hartl, Levente Zólyomi, David Stap, Pieter-Jan Hoedt, Niklas Schmidinger, Lukas Hauzenberger, Sebastian Böck, Günter Klambauer, Sepp Hochreiter

AI总结:

本文比较了xLSTM、Mamba-2和Gated DeltaNet三种次二次架构,发现xLSTM在代码预训练、蒸馏和时间序列预训练中表现最佳,其优势源于灵活稳定的门控记忆校正机制。

摘要:

Transformer主导现代序列建模,但其二次注意力机制带来了巨大的计算成本。次二次架构提供了一种可扩展的替代方案。然而,目前尚不清楚哪些设计能产生最有效的序列模型。我们比较了三种领先的方法:xLSTM、Mamba-2和Gated DeltaNet。我们在具有复杂依赖关系的任务上评估这些模型:(1)代码模型预训练,(2)从大型语言模型蒸馏代码模型,以及(3)时间序列基础模型预训练。在这些设置中,xLSTM提供了最强的整体性能。为了解释xLSTM的优势,我们提出了一个统一的公式并分析了底层架构机制,重点关注状态跟踪和记忆动态。我们的结果表明,xLSTM通过其门控方案实现了更灵活和稳定的记忆校正。我们在受控的合成长度泛化任务上证实了这些发现。总体而言,我们的发现表明,xLSTM在复杂任务上的收益源于稳健的状态跟踪和积累。

英文摘要:

Transformers dominate modern sequence modeling, but their quadratic attention incurs substantial computational cost. Subquadratic architectures offer a scalable alternative. However, it remains unclear which designs yield the most effective sequence models. We compare three leading approaches: xLSTM, Mamba-2, and Gated DeltaNet. We evaluate these models on tasks with complex dependencies: (1) code-model pre-training, (2) distillation of code models from large language models, and (3) pre-training of time-series foundation models. Across these settings, xLSTM delivers the strongest overall performance. To explain xLSTM's advantage, we present a unified formulation and analyze the underlying architectural mechanisms, focusing on state tracking and memory dynamics. Our results show that xLSTM enables more flexible and stable memory correction via its gating scheme. We corroborate these findings on controlled synthetic length-generalization tasks. Overall, our findings indicate that xLSTM's gains on complex tasks stem from robust state tracking and accumulation.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑