注意力非线性引发的逆深度缩放现象 Emergent Inverse-Depth Scaling From Nonlinearity In Attention 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-10-08
👁️ 预览文献
💡 AI 中文简介
本研究探讨大语言模型性能随参数规模变化的规律。传统理论认为,线性注意力模型的损失随深度呈幂律下降,且依赖数据谱的全局强度。本文发现,非线性注意力机制会使损失随深度呈反比衰减,因为非线性让注意力能选择性聚焦相关词元,使强、弱谱方向并行学习。研究还借助中心极限定理,解释了层间共享误差与深度增益的关系。该发现表明,深度缩放可能源于注意力非线性,使模型能局部聚焦,并降低全局协方差结构的重要性。
领域深度学习/大语言模型理论
适合谁读需要一定专业背景
核心贡献1. 揭示非线性注意力导致损失随深度呈反比衰减,颠覆了线性模型下幂律缩放的经典认知;2. 提出基于中心极限定理的层间误差聚合机制,解释深度增益来源。
关键数据在所有测试数据谱上观察到损失随深度呈反比衰减;非线性使强、弱谱方向并行学习,而非顺序学习。
推荐理由想理解大模型深度缩放背后机制?这篇工作用非线性注意力给出了反直觉的新解释,值得一读。
关键词["缩放定律", "注意力机制", "非线性", "深度缩放", "大语言模型", "中心极限定理"]

原文摘要

查看英文原文摘要

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.