Exploiting Biases in Attention for Transformers
Not on the map. Why?
Abstract (arXiv)
Attention is known to be sparse in vision transformers. In particular, we analyze the unequal relevance of attention-matrix columns to the final computation and show that this phenomenon becomes increasingly pronounced with network depth. This can be interpreted as saying that tokens have an absolute importance for the attention process, independently of queries. Inspired by this, we propose a reformulation of the attention formula that makes this phenomenon explicit by adding an input-dependent bias to the query-key dot product. We show that this new term gives each token a scalar value indicating its anticipated influence on other tokens during the attention process, and can thus serve as a proxy for pruning attention maps. Across multiple transformer model sizes, this allows us to substantially reduce the computational cost of attention, in terms of both FLOPs and inference latency, while retaining most of the original classification accuracy. We publicly released the code and models at https://github.com/EIDOSLAB/AttentionWithBias.
Key facts. No citing papers in the map yet (data through 26 Nov 2026). Builds on 27 of its 29 references that are in the map. Submitted 3 Nov 2026.
Builds on
27 of 29 references.
References · 27
- 2017Attention Is All You Needcited by 62,125
- 2015Deep Residual Learning for Image Recognitioncited by 53,116
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 31,279
- 2014Microsoft COCO: Common Objects in Contextcited by 18,045
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,366
- 2023Visual Instruction Tuningcited by 8,191
- 2021Masked Autoencoders Are Scalable Vision Learnerscited by 7,673
- 2017Mask R-CNNcited by 7,361
- 2022Scalable Diffusion Models with Transformerscited by 6,524
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,688
- 2020Deformable DETR: Deformable Transformers for End-to-End Object Detectioncited by 3,528
- 2021SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformerscited by 3,023
15 more
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,444
- 2017Decoupled Weight Decay Regularizationcited by 2,166
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,130
- 2015Learning both Weights and Connections for Efficient Neural Networkscited by 2,080
- 2023Vision Transformers Need Registerscited by 969
- 2021DynamicViT: Efficient Vision Transformers with Dynamic Token Sparsificationcited by 915
- 2022Exploring Plain Vision Transformer Backbones for Object Detectioncited by 740
- 2024When Attention Sink Emerges in Language Models: An Empirical Viewcited by 236
- 2025DivPrune: Diversity-based Visual Token Pruning for Large Multimodal Modelscited by 223
- 2023DepGraph: Towards Any Structural Pruningcited by 219
- 2023Structured Pruning for Deep Convolutional Neural Networks: A surveycited by 127
- 2023DiffRate : Differentiable Compression Rate for Efficient Vision Transformerscited by 84
- 2025Vision Transformers Don't Need Trained Registerscited by 52
- 2020LOss-Based SensiTivity rEgulaRization: towards deep sparse neural networkscited by 20
- 2025Efficient Token Compression for Vision Transformer with Spatial Information Preservedcited by 6
Built on by
Not cited yet.