arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2601.18401cs.LG
收藏

超线性多步注意力

Superlinear Multi-Step Attention

Concavity AI

Yufeng Huang

AI总结:

本文提出超线性注意力架构,通过多步搜索实现长序列次二次复杂度,展示在大规模上下文下的高效解码性能和端到端学习能力。

摘要:

在本文中,我们提出了超线性注意力,这是一种完全可训练的多步注意力架构,能够在处理长序列时实现次二次复杂度,同时保持随机上下文访问(即结构非排斥):没有合适的token位置在结构上被排除在被选择进行注意力之外。超线性注意力将标准因果自注意力重新表述为一个具有N步的多步搜索问题,从而得到总体复杂度为O(L^{1+1/N})。为了说明该架构,我们展示了N=2的基线实现,其在算法上类似于标准跳跃搜索。在O(L^{3/2})的实例中,第一步执行O(L^{3/2})的跨度搜索以选择相关的序列跨度,第二步应用O(L^{3/2})的跨度注意力(标准注意力限制在所选跨度内)。在放大到O(L^{1.54})的配置中,我们在修改后的30B混合MoE模型上使用单个B200 GPU,在100万上下文长度时实现平均解码吞吐量为114 tokens/秒,在1000万上下文长度时为80 tokens/秒。在有限训练下,我们还在NIAH(针尖在 haystack 中)任务上实现了在256K上下文长度上的强大性能,证明了路由跨度选择是可端到端学习的。本文强调了架构设计、扩展分析和系统可行性,并提出了初步验证;在不同长上下文任务上的全面质量评估留待未来工作。

英文摘要:

In this paper, we propose \textbf{Superlinear attention}, a fully trainable multi-step attention architecture that achieves subquadratic complexity for long sequences while preserving \textbf{random context access} (a.k.a.\ structural non-exclusion): no eligible token position is structurally excluded from being selected for attention. Superlinear attention reformulates standard causal self-attention as a multi-step search problem with $N$ steps, yielding an overall complexity of $O(L^{1+\frac{1}{N}})$. To illustrate the architecture, we present a baseline $N=2$ implementation, which is algorithmically analogous to standard jump search. In this $O(L^{3/2})$ instantiation, the first step performs $O(L^{3/2})$ span-search to select relevant spans of the sequence, and the second step applies $O(L^{3/2})$ span-attention (standard attention restricted to the selected spans). In an upscaled $O(L^{1.54})$ configuration for robustness, we achieve an average decoding throughput of 114 tokens/sec at 1M context length and 80 tokens/sec at 10M context in our implementation on a modified 30B hybrid MoE model on a single B200 GPU. With limited training, we also obtain strong performance on the NIAH (Needle In A Haystack) task up to 256K context length, demonstrating that the routed span selection is learnable end-to-end. This paper emphasizes architectural formulation, scaling analysis, and systems feasibility, and presents initial validation; comprehensive quality evaluations across diverse long-context tasks are left to future work.

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

↑