arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2506.18656stat.MLcs.LGmath.STstat.TH
收藏

非线性注意与线性回归的插值误差研究

On the Interpolation Error of Nonlinear Attention versus Linear Regression

Huazhong University of Science and Technology(华中科技大学);Huawei(华为);The University of Hong Kong(香港大学)

Zhenyu Liao, Jiaqing Liu, TianQi Hou, Difan Zou, Zenan Ling

AI总结:

本文研究了非线性注意力与线性回归在高维情况下的插值误差差异,发现非线性注意力在随机输入下误差更大,但在存在结构化信号时误差可减小甚至逆转。

摘要:

注意力已成为现代机器学习(ML)的核心构建模块,通过高效捕捉输入标记之间的长程依赖关系。其本质上并行化的结构允许在数据和模型参数迅速增加的情况下实现高效的性能扩展。尽管其核心地位,注意力在非线性设置中的理论理解进展较为缓慢。本文为非线性注意力在高维情况下提供了精确的插值误差刻画,其中输入标记数量n和嵌入维度p都较大且相近。在信号加噪声的数据模型下,对于固定注意力权重,我们推导出均方插值误差的显式(极限)表达式。利用最近的随机矩阵理论进展,我们证明非线性注意力在随机输入上通常比线性回归产生更大的插值误差。然而,当输入包含结构化信号时,这种差距消失,甚至可能逆转。我们的理论洞察通过数值实验得到支持。

英文摘要:

Attention has become the core building block of modern machine learning (ML) by efficiently capturing the long-range dependencies among input tokens. Its inherently parallelizable structure allows for efficient performance scaling with the rapidly increasing size of both data and model parameters. Despite its central role, the theoretical understanding of Attention, especially in the nonlinear setting, is progressing at a more modest pace. This paper provides a precise characterization of the interpolation error for a nonlinear Attention, in the high-dimensional regime where the number of input tokens $n$ and the embedding dimension $p$ are both large and comparable. Under a signal-plus-noise data model and for fixed Attention weights, we derive explicit (limiting) expressions for the mean-squared interpolation error. Leveraging recent advances in random matrix theory, we show that nonlinear Attention generally incurs a larger interpolation error than linear regression on random inputs. However, this gap vanishes, and can even be reversed, when the input contains a structured signal, particularly if the Attention weights align with the signal direction. Our theoretical insights are supported by numerical experiments.

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

↑