线性化注意力在任何实际宽度下都无法进入核机制 Linearized Attention Cannot Enter the Kernel Regime at Any Practical Width 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-03-13
⬇️ 4 次下载
👁️ 预览文献
💡 AI 中文简介
这篇论文研究注意力机制能否收敛到神经正切核(NTK)机制,这关系到影响函数对Transformer问责的有效性。作者以线性化注意力为研究对象,发现即使这个可处理的代理模型,在任何实际宽度下也不会收敛到其NTK极限。他们建立了线性化注意力与数据相关Gram核的精确对应,发现注意力变换会把Gram矩阵的条件数立方,导致NTK收敛所需宽度高达10^24(MNIST)和10^29(CIFAR-10),远超现有架构。研究还提出“影响可塑性”概念,发现线性化注意力在对抗扰动下比ReLU网络敏感2-9倍,揭示了数据几何对齐时降低近似误差与增加对抗脆弱性之间的权衡。
领域深度学习理论、注意力机制、核方法
适合谁读需要一定专业背景(深度学习理论、NTK、影响函数基础)
核心贡献1. 证明线性化注意力在任何实际宽度下都无法收敛到NTK极限,所需宽度远超现有架构;2. 提出“影响可塑性”概念,揭示数据相关核在降低近似误差与增加对抗脆弱性之间的双重影响。
关键数据NTK收敛所需宽度:MNIST需 m ≫ 10^24,CIFAR-10需 m ≫ 10^29,比已知最大架构大12-17个数量级;线性化注意力在对抗扰动下可塑性比ReLU网络高2-9倍。
推荐理由如果你关心Transformer的可解释性和影响函数是否可靠,这篇论文用硬核理论告诉你:线性化注意力根本进不了核机制,实际宽度下影响函数的前提可能不成立。
关键词["线性化注意力", "神经正切核", "核机制", "影响函数", "条件数", "对抗脆弱性"]

原文摘要

查看英文原文摘要

Understanding whether attention mechanisms converge to the kernel regime is foundational to the validity of influence functions for transformer accountability. Exact NTK characterization of softmax attention is precluded by its exponential nonlinearity; linearized attention is the canonical tractable proxy and the object of study here. This paper establishes that even this proxy does not converge to its NTK limit at any practical width, revealing a fundamental trade-off in the learning dynamics of attention. An exact correspondence is established between parameter-free linearized attention and a data-dependent Gram-induced kernel; spectral amplification analysis shows that the attention transformation cubes the Gram matrix's condition number, requiring width $m = Ω(κ_d(\mathbf{G})^6 n\log n)$ for NTK convergence, where $κ_d(\mathbf{G})$ is the effective condition number of the rank-$\min(n,d)$ truncation of the input Gram matrix; for natural image datasets this threshold is physically infeasible ($m \gg 10^{24}$ for MNIST and $m \gg 10^{29}$ for CIFAR-10, 12--17 orders of magnitude beyond the largest known architectures). \emph{Influence malleability} is introduced to characterize this non-convergence: linearized attention exhibits 2--9$\times$ higher malleability than ReLU networks under adversarial data perturbation, with the gap depending on dataset condition number and task setting. A dual implication is established: the same data-dependent kernel is shown theoretically to reduce approximation error when targets align with the data geometry, while, empirically, creating vulnerability to adversarial manipulation of the training data. The structural argument extends to trainable QKV attention under standard initialization, with direct consequences for influence methods applied to deployed transformer architectures.