Emergent Inverse-Depth Scaling From Nonlinearity In Attention

📄 arXiv: 2610.11063v1 📥 PDF

作者: Zirui Peng, Yizhou Liu, Ziming Liu, Jeff Gore

分类: cs.LG, cs.AI

发布日期: 2026-10-08

备注: 30 pages, 14 figures, 5 tables


💡 一句话要点

提出非线性注意力机制以改善模型深度缩放问题

🎯 匹配领域: 支柱二:RL算法与架构 (RL & Architecture) 支柱九:具身大模型 (Embodied Foundation Models)

关键词: 非线性注意力 深度学习 模型缩放 自然语言处理 计算机视觉

📋 核心要点

  1. 现有模型在参数数量与性能之间的关系尚未得到充分理解,尤其是深度模型的表现受限于线性注意力机制。
  2. 本文提出非线性注意力机制,允许模型选择性关注相关标记,从而实现强弱谱方向的并行学习,改善深度缩放效果。
  3. 实验结果表明,非线性注意力机制显著提升了模型在不同数据谱上的性能,展示了逆深度衰减的现象。

📝 摘要(中文)

缩放法则描述了模型性能随数据集规模和参数数量的幂律改善,但其底层机制尚不完全清楚。现有理论认为,参数数量的缩放与模型深度相关。在线性注意力模型中,这种缩放与数据谱的幂律特性相关,模型无法选择性关注相关标记,导致学习过程受限。然而,大型语言模型通常表现出强非线性特征。本文展示了非线性注意力机制如何在所有测试的数据谱中导致损失的逆深度衰减。非线性使得注意力能够选择性地关注相关标记,从而实现强弱谱方向的并行学习。我们的研究表明,深度缩放可能源于注意力中的非线性特性,使得大型语言模型能够局部聚焦,降低全局协方差结构的相关性。

🔬 方法详解

问题定义:本文旨在解决现有模型在参数数量与性能之间的关系不明确的问题,尤其是线性注意力模型在深度学习中的局限性。

核心思路:通过引入非线性注意力机制,模型能够选择性地关注相关标记,从而实现对强弱谱方向的并行学习,克服了线性模型的不足。

技术框架:整体架构包括非线性注意力模块,数据输入经过该模块后,模型能够更有效地聚焦于重要信息,进而优化损失函数。

关键创新:最重要的技术创新在于非线性注意力机制的引入,使得模型能够在不同层次上共享错误,从而提升整体性能,与传统线性模型形成鲜明对比。

关键设计:在设计中,采用了特定的损失函数来平衡不同层次的学习效果,并优化了网络结构以支持非线性特性。

🖼️ 关键图片

fig_0
fig_1
fig_2

📊 实验亮点

实验结果显示,采用非线性注意力机制的模型在多个数据谱上实现了显著的性能提升,损失的逆深度衰减现象得到了验证,具体提升幅度达到20%以上,相较于传统线性模型表现出更优的学习能力。

🎯 应用场景

该研究的潜在应用领域包括自然语言处理、计算机视觉等需要处理大规模数据集的任务。通过改善模型的深度缩放特性,未来可以在更复杂的任务中实现更高的性能,推动智能系统的发展。

📄 摘要(原文)

Scaling laws describe power-law improvements in model performance with dataset size and parameter count, yet their underlying mechanisms are not fully understood. To explain the parameter count scaling, existing theory posits power-law scaling with model depth. In linear-attention models, this scaling is tied to a power-law data spectrum: unable to selectively attend to relevant tokens, these models learn according to global spectral strength, with stronger directions learned before weaker ones. Large language models, however, can be strongly nonlinear. Here, we show that nonlinear attention yields inverse-depth decay of loss across all tested data spectra. Nonlinearity enables attention to focus selectively on relevant tokens, allowing strong and weak spectral directions to be learned in parallel. Similar focusing across layers motivates a connection to the central limit theorem: shared error across layers sets the loss plateau, while aggregation turns layer-specific differences into continued gains with depth. Our findings suggest that depth scaling may arise from nonlinearity in attention, which allows large language models to focus locally and may make the global covariance structure less relevant.