线性化注意力无法在任何实用宽度下进入核范式
Linearized Attention Cannot Enter the Kernel Regime at Any Practical Width
AI总结:
本文研究了线性化注意力是否能进入核范式,发现即使在实用宽度下也无法收敛,揭示了注意力学习动态中的根本权衡。
摘要:
理解注意力机制是否收敛到核范式对于验证变换器责任性的影响函数至关重要。精确的软最大注意力NTK特性被指数非线性所阻碍;线性化注意力是可处理的代理,是本文研究的对象。本文证明即使这个代理在任何实用宽度下也无法收敛到其NTK极限,揭示了注意力学习动态中的根本权衡。建立了参数无关的线性化注意力与数据依赖的Gram诱导核之间的精确对应关系;谱放大分析显示注意力转换立方了Gram矩阵的条件数,要求宽度m=Ω(κ_d(G)^6 n log n)以实现NTK收敛,其中κ_d(G)是输入Gram矩阵秩为min(n,d)截断的有效条件数;对于自然图像数据集,此阈值在物理上不可行(MNIST需要m远大于10^24,CIFAR-10需要m远大于10^29,比已知的最大架构大12-17个数量级)。引入了影响可塑性来表征这种不收敛:线性化注意力在对抗数据扰动下比ReLU网络高2-9倍的可塑性,差距取决于数据集条件数和任务设置。双重要求被建立:理论上,相同的数据依赖核在目标与数据几何对齐时减少近似误差,但经验上会创建对训练数据对抗操纵的易受性。结构论证扩展到标准初始化下的可训练QKV注意力,对应用于部署变换器架构的影响方法有直接后果。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。