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

深度交错的斐波那契间距用于稀疏注意力:静态调度胜过学习膨胀并在密集注意力失败处外推

Depth-Staggered Fibonacci Spacing for Sparse Attention: Static Schedules Beat Learned Dilation and Extrapolate Where Dense Attention Fails

Independent Researcher(独立研究者)

Chad A. Capps

AI总结:

研究稀疏自注意力中每层静态交错的斐波那契间距调度,在21个60M参数语言模型上证明其困惑度优于学习膨胀和固定间距,且能外推至4倍训练长度,而密集基线崩溃。

摘要:

我们研究稀疏自注意力,其中每个查询关注一个密集的局部窗口加上一组斐波那契间距的偏移,每层有一个标量alpha压缩或扩展间距。在21个语言模型(60M参数,512隐藏维度,16层,426M token)上,我们比较了四种跨深度设置alpha的方式:固定、每层学习、静态线性交错以及该交错的互质(抗网格)重分配,同时还有一个可达匹配的2的幂次控制。三个结果突出。首先,静态每层交错在困惑度上优于固定和学习alpha,且增益与基数无关:将相同的交错应用于2的幂次基数使其提升至固定斐波那契之上,并与学习斐波那契注意力持平。其次,每层学习是无效的:它没有超过静态调度,且推理延迟大约增加五倍。第三,最重要的是,所有稀疏变体外推至四倍训练长度时几乎没有退化,而匹配的密集基线崩溃(4倍长度时困惑度上升201%);我们将其归因于固定偏移注意力只查询训练中见过的相对位置。我们还报告了两个诚实的负面结果:在训练长度上,最佳稀疏模型的困惑度比密集基线高约26%,且交错增益在上下文位置上均匀分布,而非集中在长距离。

英文摘要:

We study sparse self-attention in which each query attends to a dense local window plus a set of Fibonacci-spaced offsets, with a per-layer scalar alpha that compresses or expands the spacing. Across 21 language models trained under one matched recipe (60M parameters, 512 hidden, 16 layers, 426M tokens), we compare four ways of setting alpha across depth: fixed, per-layer learned, a static linear stagger, and a coprime (anti-gridding) reassignment of that stagger, together with a reach-matched power-of-2 control. Three results stand out. First, a static per-layer stagger improves perplexity over both fixed and learned alpha, and the gain is base-agnostic: applying the same stagger to a power-of-2 base lifts it above fixed Fibonacci and to parity with learned Fibonacci attention. Second, learning per layer is inert: it does not beat the static schedule and costs roughly five times the inference latency. Third, and most consequential, all sparse variants extrapolate to four times their training length with little or no degradation, whereas a recipe-matched dense baseline collapses (perplexity rises by 201% at 4x length); we attribute this to fixed-offset attention only ever querying relative positions seen during training. We also report two honest negatives: at training length the best sparse model has about 26% higher perplexity than the dense baseline, and the staggering gain is uniform across context positions rather than concentrated at long range.

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

↑