Pruning Self-attentions into Convolutional Layers in Single Path
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
- 2017Attention Is All You Needcited by 59,932
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
- 2015Distilling the Knowledge in a Neural Networkcited by 10,076
- 2014ImageNet Large Scale Visual Recognition Challengecited by 8,441
- 2020End-to-End Object Detection with Transformerscited by 7,384
- 2015Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shiftcited by 6,979
- 2021Emerging Properties in Self-Supervised Vision Transformerscited by 6,893
- 2016Layer Normalizationcited by 5,579
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
- 2017MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applicationscited by 3,827
38 more
- 2016Gaussian Error Linear Units (GELUs)cited by 3,431
- 2020Deformable DETR: Deformable Transformers for End-to-End Object Detectioncited by 3,410
- 2018The Lottery Ticket Hypothesis: Finding Sparse, Trainable Neural Networkscited by 2,250
- 2013Estimating or Propagating Gradients Through Stochastic Neurons for Conditional Computationcited by 2,031
- 2021Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutionscited by 1,960
- 2018ImageNet-trained CNNs are biased towards texture; increasing shape bias improves accuracy and robustnesscited by 1,430
- 2020Rethinking Semantic Segmentation from a Sequence-to-Sequence Perspective with Transformerscited by 1,368
- 2017ShuffleNet: An Extremely Efficient Convolutional Neural Network for Mobile Devicescited by 1,194
- 2021Per-Pixel Classification is Not All You Need for Semantic Segmentationcited by 1,148
- 2020Designing Network Design Spacescited by 954
- 2021DynamicViT: Efficient Vision Transformers with Dynamic Token Sparsificationcited by 849
- 2019Are Sixteen Heads Really Better than One?cited by 803
- 2019Once-for-All: Train One Network and Specialize it for Efficient Deploymentcited by 778
- 2021Going deeper with Image Transformerscited by 759
- 2021Do Vision Transformers See Like Convolutional Neural Networks?cited by 671
- 2021MobileViT: Light-weight, General-purpose, and Mobile-friendly Vision Transformercited by 636
- 2019Rigging the Lottery: Making All Tickets Winnerscited by 491
- 2021ConViT: Improving Vision Transformers with Soft Convolutional Inductive Biasescited by 484
- 2021LeViT: a Vision Transformer in ConvNet's Clothing for Faster Inferencecited by 475
- 2021Intriguing Properties of Vision Transformerscited by 446
- 2019Single Path One-Shot Neural Architecture Search with Uniform Samplingcited by 411
- 2021Attention is Not All You Need: Pure Attention Loses Rank Doubly Exponentially with Depthcited by 411
- 2021Early Convolutions Help Transformers See Bettercited by 395
- 2018AMC: AutoML for Model Compression and Acceleration on Mobile Devicescited by 375
- 2020MaX-DeepLab: End-to-End Panoptic Segmentation with Mask Transformerscited by 355
- 2021CMT: Convolutional Neural Networks Meet Vision Transformerscited by 310
- 2019On the Relationship between Self-Attention and Convolutional Layerscited by 299
- 2021DeepViT: Towards Deeper Vision Transformercited by 288
- 2020The Lottery Ticket Hypothesis for Pre-trained BERT Networkscited by 275
- 2019Approximating CNNs with Bag-of-local-Features models works surprisingly well on ImageNetcited by 260
- 2021LocalViT: Analyzing Locality in Vision Transformerscited by 228
- 2021ViTAE: Vision Transformer Advanced by Exploring Intrinsic Inductive Biascited by 216
- 2019Sparse Networks from Scratch: Faster Training without Losing Performancecited by 210
- 2021AutoFormer: Searching Transformers for Visual Recognitioncited by 186
- 2021Chasing Sparsity in Vision Transformers: An End-to-End Explorationcited by 181
- 2021Fast Convergence of DETR with Spatially Modulated Co-Attentioncited by 176
- 2021IA-RED2: Interpretability-Aware Redundancy Reduction for Vision Transformerscited by 127
- 2019Large Memory Layers with Product Keyscited by 120
50 most cited of 64 All 64 (JSON)
Built on by
Citing papers per year: 2021: 1; 2022: 5; 2023: 3; 2024: 5; 2025: 9; 2026: 1.
24 papers.
Sort:
By area:
- 2023A Survey on Deep Neural Network Pruning-Taxonomy, Comparison, Analysis, and Recommendationscited by 200
- 2023Towards Accurate Post-Training Quantization for Vision Transformercited by 70
- 2022Peripheral Vision Transformercited by 27
- 2024Isomorphic Pruning for Vision Modelscited by 21
- 2022Dynamic Focus-aware Positional Queries for Semantic Segmentationcited by 16
- 2022Scratching Visual Transformer's Back with Uniform Attentioncited by 16
- 2021Multi-Dimensional Model Compression of Vision Transformercited by 13
- 2023CAIT: Triple-Win Compression towards High Accuracy, Fast Inference, and Favorable Transferability For ViTscited by 9
- 2022FocusFormer: Focusing on What We Need via Architecture Samplercited by 5
- 2025MDP: Multidimensional Vision Model Pruning with Latency Constraintcited by 4
- 2022Adaptive Split-Fusion Transformercited by 3
- 2024Automatic Channel Pruning for Multi-Head Attentioncited by 3
12 more
- 2025Stratified Knowledge-Density Super-Network for Scalable Vision Transformerscited by 3
- 2025Efficient Token Compression for Vision Transformer with Spatial Information Preservedcited by 2
- 2025Low Power Vision Transformer Accelerator with Hardware-Aware Pruning and Optimized Dataflowcited by 2
- 2024Divide-Conquer Transformer Learning for Predicting Electric Vehicle Charging Events Using Smart Meter Datacited by 1
- 2024Learning Content-Aware Multi-Modal Joint Input Pruning via Bird's-Eye-View Representationcited by 1
- 2026Accelerating Vision Foundation Models with Drop-in Depthwise Convolutioncited by 1
- 2024Speeding Up Image Classifiers with Little Companionscited by 0
- 2025PGKET: A Photonic Gaussian Kernel Enhanced Transformercited by 0
- 2025Deeply Dual Supervised learning for melanoma recognitioncited by 0
- 2025Edge Detection for Organ Boundaries via Top Down Refinement and SubPixel Upsamplingcited by 0
- 2025DualResolution Residual Architecture with Artifact Suppression for Melanocytic Lesion Segmentationcited by 0
- 2025VesselRW: Weakly Supervised Subcutaneous Vessel Segmentation via Learned Random Walk Propagationcited by 0
- 2026Accelerating Vision Foundation Models with Drop-in Depthwise Convolution21 May 2026
- 2025Stratified Knowledge-Density Super-Network for Scalable Vision Transformers12 Nov 2025
- 2025Low Power Vision Transformer Accelerator with Hardware-Aware Pruning and Optimized Dataflow16 Oct 2025
- 2025VesselRW: Weakly Supervised Subcutaneous Vessel Segmentation via Learned Random Walk Propagation9 Aug 2025
- 2025DualResolution Residual Architecture with Artifact Suppression for Melanocytic Lesion Segmentation9 Aug 2025
- 2025Edge Detection for Organ Boundaries via Top Down Refinement and SubPixel Upsampling9 Aug 2025
- 2025Deeply Dual Supervised learning for melanoma recognition4 Aug 2025
- 2025PGKET: A Photonic Gaussian Kernel Enhanced Transformer25 Jul 2025
- 2025MDP: Multidimensional Vision Model Pruning with Latency Constraint2 Apr 2025
- 2025Efficient Token Compression for Vision Transformer with Spatial Information Preserved30 Mar 2025
- 2024Learning Content-Aware Multi-Modal Joint Input Pruning via Bird's-Eye-View Representation9 Oct 2024
- 2024Isomorphic Pruning for Vision Models5 Jul 2024
12 more
- 2024Speeding Up Image Classifiers with Little Companions24 Jun 2024
- 2024Automatic Channel Pruning for Multi-Head Attention31 May 2024
- 2024Divide-Conquer Transformer Learning for Predicting Electric Vehicle Charging Events Using Smart Meter Data20 Mar 2024
- 2023CAIT: Triple-Win Compression towards High Accuracy, Fast Inference, and Favorable Transferability For ViTs27 Sep 2023
- 2023A Survey on Deep Neural Network Pruning-Taxonomy, Comparison, Analysis, and Recommendations13 Aug 2023
- 2023Towards Accurate Post-Training Quantization for Vision Transformer25 Mar 2023
- 2022Scratching Visual Transformer's Back with Uniform Attention16 Oct 2022
- 2022FocusFormer: Focusing on What We Need via Architecture Sampler23 Aug 2022
- 2022Peripheral Vision Transformer14 Jun 2022
- 2022Adaptive Split-Fusion Transformer26 Apr 2022
- 2022Dynamic Focus-aware Positional Queries for Semantic Segmentation4 Apr 2022
- 2021Multi-Dimensional Model Compression of Vision Transformer31 Dec 2021
- 2023A Survey on Deep Neural Network Pruning-Taxonomy, Comparison, Analysis, and Recommendationscited by 200
- 2023Towards Accurate Post-Training Quantization for Vision Transformercited by 70
- 2022Peripheral Vision Transformercited by 27
- 2024Isomorphic Pruning for Vision Modelscited by 21
- 2022Dynamic Focus-aware Positional Queries for Semantic Segmentationcited by 16
- 2022Scratching Visual Transformer's Back with Uniform Attentioncited by 16
- 2021Multi-Dimensional Model Compression of Vision Transformercited by 13
- 2022FocusFormer: Focusing on What We Need via Architecture Samplercited by 5
- 2025MDP: Multidimensional Vision Model Pruning with Latency Constraintcited by 4
- 2022Adaptive Split-Fusion Transformercited by 3
- 2024Automatic Channel Pruning for Multi-Head Attentioncited by 3
- 2025Stratified Knowledge-Density Super-Network for Scalable Vision Transformerscited by 3
12 most cited of 22 All 22 (JSON)
- 2026Accelerating Vision Foundation Models with Drop-in Depthwise Convolution21 May 2026
- 2025Stratified Knowledge-Density Super-Network for Scalable Vision Transformers12 Nov 2025
- 2025Low Power Vision Transformer Accelerator with Hardware-Aware Pruning and Optimized Dataflow16 Oct 2025
- 2025VesselRW: Weakly Supervised Subcutaneous Vessel Segmentation via Learned Random Walk Propagation9 Aug 2025
- 2025DualResolution Residual Architecture with Artifact Suppression for Melanocytic Lesion Segmentation9 Aug 2025
- 2025Edge Detection for Organ Boundaries via Top Down Refinement and SubPixel Upsampling9 Aug 2025
- 2025Deeply Dual Supervised learning for melanoma recognition4 Aug 2025
- 2025PGKET: A Photonic Gaussian Kernel Enhanced Transformer25 Jul 2025
- 2025MDP: Multidimensional Vision Model Pruning with Latency Constraint2 Apr 2025
- 2024Learning Content-Aware Multi-Modal Joint Input Pruning via Bird's-Eye-View Representation9 Oct 2024
- 2024Isomorphic Pruning for Vision Models5 Jul 2024
- 2024Speeding Up Image Classifiers with Little Companions24 Jun 2024
12 newest of 22 All 22 (JSON)