ViT-L/16 的 FFN 权重压缩:用角度误差衡量 2–8 bit 量化方案
Following the Error Through a Compressed Network:An Angular Measure for FFN Weight Compression in ViT-L/16
研究将 ViT-L/16 的 48 个 FFN 矩阵压缩至 2–8 bit,比较逐 token 网格、固定高斯 Lloyd–Max 表、按矩阵拟合表以及随机符号 Hadamard 旋转加固定表四种方案,在 50,000 张图像上评估。
arXiv:2611.28067v1 Announce Type: new Abstract: We study the compression of the 48 feed-forward network (FFN) matrices of the Vision Transformer ViT-L/16 to 2--8 bits with four schemes: a per-token grid, a fixed Gaussian Lloyd--Max table, a table fitted to the matrix, and a random-sign Hadamard rotation followed by the fixed table. We evaluate on 50,000 images. At 4 bits the top-1 accuracy of the four schemes lies within 0.8 points of the float32 model, while the agreement with its predictions ranges from 98.4\% to 94.4\%. We use the angular error between the compressed and the float32 residual stream, followed through the blocks, as a portable measure that ranks the schemes as the final classification does and shows where the ranking is built: with rotation the angle grows close to the square root of the number of blocks, the signature of independently accumulating errors, while the other schemes are amplified in the later blocks. The same measure shows that a scheme that is better on one block in isolation can be worse in the whole network. To address this inconsistency we introduce an angular measure of the spectrum of the output of a block, which in isolation orders the schemes as the whole network does where they diverge most. We support these observations with real samples and with statistically generated ones. The scope is one model, the FFN weights only, and float evaluation of compressed weights; no speed-up is claimed. The error measures and the sample generation, however, can be applied to other models and precisions.
来源:arXiv (AI + Vision + Imaging) · arxiv.org