arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2611.02778cs.LGcs.AIstat.ML
收藏

各向同性得分几何下自注意力的谱退化

Spectral Degeneration of Self-Attention under Isotropic Score Geometry

The Chinese University of Hong Kong, Shenzhen(香港中文大学(深圳))

Mengda Li, Jianfeng Yao

AI总结:

该研究通过理想化谱模型分析Transformer自注意力矩阵的谱结构,证明逐行softmax映射会使注意力矩阵谱退化,双向与因果注意力的稳定秩增长特性不同,揭示注意力保留主导方向并压缩体模式的机制。

摘要:

我们通过预softmax得分矩阵的理想化谱模型研究Transformer模型中自注意力矩阵的谱结构。受查询与键表示的旋转各向同性启发,该模型用具有对数尖峰-体分离的典型奇异值代表替代得分矩阵的随机标记空间取向。对预训练视觉与语言Transformer的经验诊断表明:标记空间奇异矩阵具有近乎均匀的特征角分布,且得分谱由少量有效方向主导。随后我们证明,逐行softmax映射将该结构转化为退化的注意力矩阵:主导模式得以保留,而体谱分布集中于零。双向注意力的稳定秩保持有界,因果注意力的稳定秩则对数增长。在典型模型内,这些结果解释了注意力如何在压缩其余体模式的同时保留少量主导方向。

英文摘要:

We study the spectral structure of the self-attention matrix in Transformer models through an idealized spectral model for the pre-softmax score matrix. Motivated by the rotational isotropy of query and key representations, our model replaces the random token-space orientation of the score matrix by its canonical singular-value representative with a logarithmic spike--bulk separation. Empirical diagnostics on pretrained vision and language transformers motivate this model: token-space singular matrices have nearly uniform eigen-angle distributions, and score spectra are dominated by a small number of effective directions. We then prove that the row-wise softmax map transforms this structure into a degenerate attention matrix: dominant modes are preserved, whereas the bulk spectral distributions concentrate at zero. Stable rank remains bounded for bidirectional attention but grows logarithmically for causal attention. Within the canonical model, these results explain how attention can preserve a small number of dominant directions while compressing the remaining bulk modes.

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

↑