Oriel — AI & technology worth noticing, every day.

Following the Error Through a Compressed Network:An Angular Measure for FFN Weight Compression in ViT-L/16

Paper · https://arxiv.org/abs/2611.28067

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.

First seen by Oriel on .

AI summary

The study evaluates four 2–8-bit schemes for compressing ViT-L/16 feed-forward weights and finds that residual-stream angular error tracks how compression affects final classification.

  • At 4 bits, all four schemes stay within 0.8 top-1 accuracy points of the float32 model, with prediction agreement ranging from 94.4% to 98.4%.
  • Following angular error through network blocks ranks schemes similarly to final classification and reveals where their errors accumulate.
  • With Hadamard rotation, angular error grows roughly with the square root of block count; other schemes see stronger amplification in later blocks.
  • A new angular measure of block-output spectra resolves cases where isolated-block performance mispredicts whole-network results.
  • The evaluation covers one model, FFN weights only, and float evaluation; it claims no speed-up, though its measures and sample generation may transfer to other models and precisions.

#vision transformers #weight quantization #model compression #error analysis

Generated by gpt-5.6-sol. Check the original for details.

Aliases

SourceExternal IDURL
arXiv AI Papersoai:arXiv.org:2611.28067v1https://arxiv.org/abs/2611.28067 Read discussion