Following the Error Through a Compressed Network:An Angular Measure for FFN Weight Compression in ViT-L/16
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.
Create a lesson
Metadata
- Categories
- cs.CV, cs.AI, cs.IT, cs.LG, math.IT
- Comments
- 17 pages, 8 Figures, 13 Tables
Related papers
Your Codec, Your Generator: Idempotent Generative Compression without Retraining
Shared title terminologycs.CVRaz Haim, Assaf Shocher
TowerBridge: Bridging the Dual-Encoder Modality Gap via Weight-Space Programming
Shared title terminologycs.CVHani Alomari, Md Atabuzzaman, Chris Thomas
Optimising VLM Harnesses to Localise Errors in Generated Videos
Shared title terminologycs.CVAnkit Yadav, Nikhil Cherian Kurian, Arpit Garg et al.
Size-Matched Nulls Reveal What Block Ablation Measures in MambaVision
Shared title terminologycs.CVTahmina Kousar, Tehseen Zia
Hard or Mislabeled? Failure Screens Enrich Vision Benchmarks for Label Errors
Shared title terminologycs.CVHaolin Guo
Role-Separated Diffusion Transformers: Global Rule Isolation and Deterministic Sampling Manifold Compression
Shared title terminologycs.CVZhiguang Liu, Yi Shang