mlsanityData to 7 Oct 2026

Sparsifiner: Learning Sparse Instance-Dependent Attention for Efficient Vision Transformers

arXiv 2303.13755 ↗First posted 24 Mar 2023cs.CV cs.AI cs.LGcited by 16

Not on the map. Why?

Abstract (arXiv)

Vision Transformers (ViT) have shown their competitive advantages performance-wise compared to convolutional neural networks (CNNs) though they often come with high computational costs. To this end, previous methods explore different attention patterns by limiting a fixed number of spatially nearby tokens to accelerate the ViT's multi-head self-attention (MHSA) operations. However, such structured attention patterns limit the token-to-token connections to their spatial relevance, which disregards learned semantic connections from a full attention mask. In this work, we propose a novel approach to learn instance-dependent attention patterns, by devising a lightweight connectivity predictor module to estimate the connectivity score of each pair of tokens. Intuitively, two tokens have high connectivity scores if the features are considered relevant either spatially or semantically. As each token only attends to a small number of other tokens, the binarized connectivity masks are often very sparse by nature and therefore provide the opportunity to accelerate the network via sparse computations. Equipped with the learned unstructured attention pattern, sparse attention ViT (Sparsifiner) produces a superior Pareto-optimal trade-off between FLOPs and top-1 accuracy on ImageNet compared to token sparsity. Our method reduces 48% to 69% FLOPs of MHSA while the accuracy drop is within 0.4%. We also show that combining attention and token sparsity reduces ViT FLOPs by over 60%.

Key facts. Cited by 16 papers in the map (data through 7 Oct 2026). Builds on 41 of its 49 references that are in the map. First posted on arXiv 24 Mar 2023.

Builds on

41 of 49 references.

References · 41

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  3. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
  4. 2020End-to-End Object Detection with Transformerscited by 7,384
  5. 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
  6. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
  7. 2020Deformable DETR: Deformable Transformers for End-to-End Object Detectioncited by 3,410
  8. 2020Longformer: The Long-Document Transformercited by 3,362
  9. 2021Masked-attention Mask Transformer for Universal Image Segmentationcited by 2,338
  10. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
  11. 2021Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutionscited by 1,960
  12. 2020Big Bird: Transformers for Longer Sequencescited by 1,673
29 more
  1. 2020Reformer: The Efficient Transformercited by 1,658
  2. 2021Is Space-Time Attention All You Need for Video Understanding?cited by 1,609
  3. 2020Rethinking Attention with Performerscited by 1,584
  4. 2019Generating Long Sequences with Sparse Transformerscited by 1,523
  5. 2020Linformer: Self-Attention with Linear Complexitycited by 1,462
  6. 2021Swin Transformer V2: Scaling Up Capacity and Resolutioncited by 1,215
  7. 2021Per-Pixel Classification is Not All You Need for Semantic Segmentationcited by 1,148
  8. 2021Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNetcited by 1,096
  9. 2021DynamicViT: Efficient Vision Transformers with Dynamic Token Sparsificationcited by 849
  10. 2019Analyzing Multi-Head Self-Attention: Specialized Heads Do the Heavy Lifting, the Rest Can Be Prunedcited by 844
  11. 2018Image Transformercited by 770
  12. 2019Compressive Transformers for Long-Range Sequence Modellingcited by 699
  13. 2021Twins: Revisiting the Design of Spatial Attention in Vision Transformerscited by 565
  14. 2020Efficient Content-Based Sparse Attention with Routing Transformerscited by 469
  15. 2019Axial Attention in Multidimensional Transformerscited by 350
  16. 2021Random Feature Attentioncited by 350
  17. 2020Sparse Sinkhorn Attentioncited by 250
  18. 2018End-to-End Dense Video Captioning with Masked Transformercited by 214
  19. 2021Multi-Scale Vision Longformer: A New Vision Transformer for High-Resolution Image Encodingcited by 207
  20. 2020Learning Joint Spatial-Temporal Transformations for Video Inpaintingcited by 162
  21. 2019Blockwise Self-Attention for Long Document Understandingcited by 158
  22. 2021All Tokens Matter: Token Labeling for Training Better Vision Transformerscited by 144
  23. 2021Patch Slimming for Efficient Vision Transformerscited by 131
  24. 2020End-to-End Object Detection with Adaptive Clustering Transformercited by 109
  25. 2021SSTVOS: Sparse Spatiotemporal Transformers for Video Object Segmentationcited by 106
  26. 2022Monarch: Expressive Structured Matrices for Efficient and Accurate Trainingcited by 100
  27. 2022Not All Tokens Are Equal: Human-centric Visual Analysis via Token Clustering Transformercited by 99
  28. 2022Learning to Merge Tokens in Vision Transformerscited by 64
  29. 2022EViT: Privacy-Preserving Image Retrieval via Encrypted Vision Transformer in Cloud Computingcited by 5

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 1; 2024: 7; 2025: 5; 2026: 3.

16 papers.

Sort:

By area: