mlsanityData to 7 Oct 2026

Pruning Self-attentions into Convolutional Layers in Single Path

arXiv 2111.11802 ↗First posted 23 Nov 2021cs.CV cs.LGcited by 24

Not on the map. Why?

Abstract (arXiv)

Vision Transformers (ViTs) have achieved impressive performance over various computer vision tasks. However, modeling global correlations with multi-head self-attention (MSA) layers leads to two widely recognized issues: the massive computational resource consumption and the lack of intrinsic inductive bias for modeling local visual patterns. To solve both issues, we devise a simple yet effective method named Single-Path Vision Transformer pruning (SPViT), to efficiently and automatically compress the pre-trained ViTs into compact models with proper locality added. Specifically, we first propose a novel weight-sharing scheme between MSA and convolutional operations, delivering a single-path space to encode all candidate operations. In this way, we cast the operation search problem as finding which subset of parameters to use in each MSA layer, which significantly reduces the computational cost and optimization difficulty, and the convolution kernels can be well initialized using pre-trained MSA parameters. Relying on the single-path space, we introduce learnable binary gates to encode the operation choices in MSA layers. Similarly, we further employ learnable gates to encode the fine-grained MLP expansion ratios of FFN layers. In this way, our SPViT optimizes the learnable gates to automatically explore from a vast and unified search space and flexibly adjust the MSA-FFN pruning proportions for each individual dense model. We conduct extensive experiments on two representative ViTs showing that our SPViT achieves a new SOTA for pruning on ImageNet-1k. For example, our SPViT can trim 52.0% FLOPs for DeiT-B and get an impressive 0.6% top-1 accuracy gain simultaneously. The source code is available at https://github.com/ziplab/SPViT.

Key facts. Cited by 24 papers in the map (data through 7 Oct 2026). Builds on 64 of its 98 references that are in the map. First posted on arXiv 23 Nov 2021.

Builds on

64 of 98 references.

References · 64

  1. 2017Attention Is All You Needcited by 59,932
  2. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  3. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  4. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
  5. 2015Distilling the Knowledge in a Neural Networkcited by 10,076
  6. 2014ImageNet Large Scale Visual Recognition Challengecited by 8,441
  7. 2020End-to-End Object Detection with Transformerscited by 7,384
  8. 2015Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shiftcited by 6,979
  9. 2021Emerging Properties in Self-Supervised Vision Transformerscited by 6,893
  10. 2016Layer Normalizationcited by 5,579
  11. 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
  12. 2017MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applicationscited by 3,827
38 more
  1. 2016Gaussian Error Linear Units (GELUs)cited by 3,431
  2. 2020Deformable DETR: Deformable Transformers for End-to-End Object Detectioncited by 3,410
  3. 2018The Lottery Ticket Hypothesis: Finding Sparse, Trainable Neural Networkscited by 2,250
  4. 2013Estimating or Propagating Gradients Through Stochastic Neurons for Conditional Computationcited by 2,031
  5. 2021Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutionscited by 1,960
  6. 2018ImageNet-trained CNNs are biased towards texture; increasing shape bias improves accuracy and robustnesscited by 1,430
  7. 2020Rethinking Semantic Segmentation from a Sequence-to-Sequence Perspective with Transformerscited by 1,368
  8. 2017ShuffleNet: An Extremely Efficient Convolutional Neural Network for Mobile Devicescited by 1,194
  9. 2021Per-Pixel Classification is Not All You Need for Semantic Segmentationcited by 1,148
  10. 2020Designing Network Design Spacescited by 954
  11. 2021DynamicViT: Efficient Vision Transformers with Dynamic Token Sparsificationcited by 849
  12. 2019Are Sixteen Heads Really Better than One?cited by 803
  13. 2019Once-for-All: Train One Network and Specialize it for Efficient Deploymentcited by 778
  14. 2021Going deeper with Image Transformerscited by 759
  15. 2021Do Vision Transformers See Like Convolutional Neural Networks?cited by 671
  16. 2021MobileViT: Light-weight, General-purpose, and Mobile-friendly Vision Transformercited by 636
  17. 2019Rigging the Lottery: Making All Tickets Winnerscited by 491
  18. 2021ConViT: Improving Vision Transformers with Soft Convolutional Inductive Biasescited by 484
  19. 2021LeViT: a Vision Transformer in ConvNet's Clothing for Faster Inferencecited by 475
  20. 2021Intriguing Properties of Vision Transformerscited by 446
  21. 2019Single Path One-Shot Neural Architecture Search with Uniform Samplingcited by 411
  22. 2021Attention is Not All You Need: Pure Attention Loses Rank Doubly Exponentially with Depthcited by 411
  23. 2021Early Convolutions Help Transformers See Bettercited by 395
  24. 2018AMC: AutoML for Model Compression and Acceleration on Mobile Devicescited by 375
  25. 2020MaX-DeepLab: End-to-End Panoptic Segmentation with Mask Transformerscited by 355
  26. 2021CMT: Convolutional Neural Networks Meet Vision Transformerscited by 310
  27. 2019On the Relationship between Self-Attention and Convolutional Layerscited by 299
  28. 2021DeepViT: Towards Deeper Vision Transformercited by 288
  29. 2020The Lottery Ticket Hypothesis for Pre-trained BERT Networkscited by 275
  30. 2019Approximating CNNs with Bag-of-local-Features models works surprisingly well on ImageNetcited by 260
  31. 2021LocalViT: Analyzing Locality in Vision Transformerscited by 228
  32. 2021ViTAE: Vision Transformer Advanced by Exploring Intrinsic Inductive Biascited by 216
  33. 2019Sparse Networks from Scratch: Faster Training without Losing Performancecited by 210
  34. 2021AutoFormer: Searching Transformers for Visual Recognitioncited by 186
  35. 2021Chasing Sparsity in Vision Transformers: An End-to-End Explorationcited by 181
  36. 2021Fast Convergence of DETR with Spatially Modulated Co-Attentioncited by 176
  37. 2021IA-RED2: Interpretability-Aware Redundancy Reduction for Vision Transformerscited by 127
  38. 2019Large Memory Layers with Product Keyscited by 120

50 most cited of 64 All 64 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2021: 1; 2022: 5; 2023: 3; 2024: 5; 2025: 9; 2026: 1.

24 papers.

Sort:

By area:

  1. 2023A Survey on Deep Neural Network Pruning-Taxonomy, Comparison, Analysis, and Recommendationscited by 200
  2. 2023Towards Accurate Post-Training Quantization for Vision Transformercited by 70
  3. 2022Peripheral Vision Transformercited by 27
  4. 2024Isomorphic Pruning for Vision Modelscited by 21
  5. 2022Dynamic Focus-aware Positional Queries for Semantic Segmentationcited by 16
  6. 2022Scratching Visual Transformer's Back with Uniform Attentioncited by 16
  7. 2021Multi-Dimensional Model Compression of Vision Transformercited by 13
  8. 2023CAIT: Triple-Win Compression towards High Accuracy, Fast Inference, and Favorable Transferability For ViTscited by 9
  9. 2022FocusFormer: Focusing on What We Need via Architecture Samplercited by 5
  10. 2025MDP: Multidimensional Vision Model Pruning with Latency Constraintcited by 4
  11. 2022Adaptive Split-Fusion Transformercited by 3
  12. 2024Automatic Channel Pruning for Multi-Head Attentioncited by 3
12 more
  1. 2025Stratified Knowledge-Density Super-Network for Scalable Vision Transformerscited by 3
  2. 2025Efficient Token Compression for Vision Transformer with Spatial Information Preservedcited by 2
  3. 2025Low Power Vision Transformer Accelerator with Hardware-Aware Pruning and Optimized Dataflowcited by 2
  4. 2024Divide-Conquer Transformer Learning for Predicting Electric Vehicle Charging Events Using Smart Meter Datacited by 1
  5. 2024Learning Content-Aware Multi-Modal Joint Input Pruning via Bird's-Eye-View Representationcited by 1
  6. 2026Accelerating Vision Foundation Models with Drop-in Depthwise Convolutioncited by 1
  7. 2024Speeding Up Image Classifiers with Little Companionscited by 0
  8. 2025PGKET: A Photonic Gaussian Kernel Enhanced Transformercited by 0
  9. 2025Deeply Dual Supervised learning for melanoma recognitioncited by 0
  10. 2025Edge Detection for Organ Boundaries via Top Down Refinement and SubPixel Upsamplingcited by 0
  11. 2025DualResolution Residual Architecture with Artifact Suppression for Melanocytic Lesion Segmentationcited by 0
  12. 2025VesselRW: Weakly Supervised Subcutaneous Vessel Segmentation via Learned Random Walk Propagationcited by 0