论文73°

SVD压缩在注意力机制中的秩崩溃现象研究

Linear Algebra Foundations of Efficient Attention: A Phase Reversal in Rank Collapse Under SVD Compression

精选理由

这篇论文揭示了SVD压缩在注意力机制中与秩崩溃的复杂关系,对模型压缩和优化有重要启示。

该论文统一了十四篇关于Transformer基础模型中线性代数技术的研究,聚焦自注意力矩阵输出秩的推导与性质、压缩方法及低秩KV缓存投影。研究发现,SVD压缩对网络秩崩溃有相反效果:在初始化时强烈抑制秩崩溃,但在预训练模型上加速这一过程。研究在GPT-2 124M、GPT-2 Medium 355M和Pythia-160M模型上验证了这一发现,并解释了约76%初始化效果和83%预训练权重效果的原因。

原文 · arXiv cs.AI

Linear Algebra Foundations of Efficient Attention: A Phase Reversal in Rank Collapse Under SVD Compression

Linear algebra provides the framework of concepts (matrix rank, singular value decomposition (SVD), and eigendecomposition) that modern artificial intelligence employs to encode, compress, and propagate information through neural networks. This paper unifies fourteen separate peer-reviewed works analyzing the usage of these techniques in the context of transformer-based foundation model research, focusing on three areas of the topic: derivations and properties of self-attention matrices' output rank, compression methods that purposefully utilize this phenomenon, and the low-rank key-value (KV) cache projection and its semiseparable-matrix duality to linear attention and state-space structured models. We were motivated to conduct this work after observing an open problem in this literature: the interplay of the mentioned compression methods with natural rank collapse of the network. With this paper, we report an original finding that using SVD compression of attention projections actually has the opposite effect on the rank collapse of the network: while it strongly suppresses it at initialization, it accelerates on pretrained models (for GPT-2 124M, GPT-2 Medium 355M, and Pythia-160M) with minimal risk of object aliasing artifacts appearing (verified on all compression ratios) and is consistent across four rank estimation methods. A controlled causal decomposition of the effect in both settings showed that the reason for this behavior can be explained by the choice of the subspace SVD makes when compressing the matrix better than the reduction of the operator norm it achieves, explaining roughly 76% of the effect at initialization and 83% on the pretrained weights, providing a refinement to the calibration-aware compression viewpoint and an explanation of why it outperformed naive SVD truncation.