SVD-Attention: Efficiently Analyzing Attention Blocks in Transformers
Not on the map. Why?
Abstract (arXiv)
Pretrained transformers spend a large share of their inference compute inside self-attention, yet the per-head query-key interaction is structurally low-rank by construction. We ask a diagnostic question: across layers and architectures, which heads actually use the full rank budget on real data, and which do not? We propose SVD-Attention, a post-hoc method that decomposes the per-head interaction matrix Mh and scores every singular mode by both its spectral magnitude and its activation variance across tokens on a small calibration set. The score keeps the modes the head can amplify and that real data actually activates, and discards the rest; the resulting factorization is exact for the retained modes and needs no finetuning. Across seven pretrained models and five task types, the diagnostic finds a task-dependent pattern: redundancy sits in the early to middle layers for sentiment and image classification and for generation, and in the late layers for dense prediction and extractive question answering. It is also predictive: truncating the layers it flags costs at most 1.75 F1, while truncating the same number of layers elsewhere in the same model costs up to 50 F1. SVD-Attention is an analysis tool rather than a compression method: acting on it reduces inference FLOPs by 0.8-1.5% on its own and by 8-11% when composed with weight pruning, with 0-4% change in task quality.
Key facts. No citing papers in the map yet (data through 26 Nov 2026). Builds on 22 of its 31 references that are in the map. Submitted 26 Oct 2026.
Builds on
22 of 31 references.
References · 22
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 31,279
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,802
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,366
- 2020Measuring Massive Multitask Language Understandingcited by 8,473
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 5,133
- 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,481
- 2020Longformer: The Long-Document Transformercited by 3,606
- 2016Pointer Sentinel Mixture Modelscited by 3,345
- 2021TruthfulQA: Measuring How Models Mimic Human Falsehoodscited by 3,132
- 2021Vision Transformers for Dense Predictioncited by 1,883
- 2018Know What You Don't Know: Unanswerable Questions for SQuADcited by 1,622
- 2020MiniLM: Deep Self-Attention Distillation for Task-Agnostic Compression of Pre-Trained Transformerscited by 1,560
10 more
- 2020Linformer: Self-Attention with Linear Complexitycited by 1,555
- 2022Token Merging: Your ViT But Fastercited by 1,142
- 2019Analyzing Multi-Head Self-Attention: Specialized Heads Do the Heavy Lifting, the Rest Can Be Prunedcited by 899
- 2019Are Sixteen Heads Really Better than One?cited by 856
- 2016NewsQA: A Machine Comprehension Datasetcited by 336
- 2024SVD-LLM: Truncation-aware Singular Value Decomposition for Large Language Model Compressioncited by 270
- 2022Language model compression with weighted low-rank factorizationcited by 209
- 2020Low-Rank Bottleneck in Multi-head Attention Modelscited by 99
- 2025PolaFormer: Polarity-aware Linear Attention for Vision Transformerscited by 34
- 2026KLAS: Using Similarity to Stitch Neural Networks for Improved Accuracy-Efficiency Tradeoffscited by 3
Built on by
Not cited yet.