Data-independent Module-aware Pruning for Hierarchical Vision Transformers
Not on the map. Why?
Abstract (arXiv)
Hierarchical vision transformers (ViTs) have two advantages over conventional ViTs. First, hierarchical ViTs achieve linear computational complexity with respect to image size by local self-attention. Second, hierarchical ViTs create hierarchical feature maps by merging image patches in deeper layers for dense prediction. However, existing pruning methods ignore the unique properties of hierarchical ViTs and use the magnitude value as the weight importance. This approach leads to two main drawbacks. First, the "local" attention weights are compared at a "global" level, which may cause some "locally" important weights to be pruned due to their relatively small magnitude "globally". The second issue with magnitude pruning is that it fails to consider the distinct weight distributions of the network, which are essential for extracting coarse to fine-grained features at various hierarchical levels. To solve the aforementioned issues, we have developed a Data-independent Module-Aware Pruning method (DIMAP) to compress hierarchical ViTs. To ensure that "local" attention weights at different hierarchical levels are compared fairly in terms of their contribution, we treat them as a module and examine their contribution by analyzing their information distortion. Furthermore, we introduce a novel weight metric that is solely based on weights and does not require input images, thereby eliminating the dependence on the patch merging process. Our method validates its usefulness and strengths on Swin Transformers of different sizes on ImageNet-1k classification. Notably, the top-5 accuracy drop is only 0.07% when we remove 52.5% FLOPs and 52.7% parameters of Swin-B. When we reduce 33.2% FLOPs and 33.2% parameters of Swin-S, we can even achieve a 0.8% higher relative top-5 accuracy than the original model. Code is available at: https://github.com/he-y/Data-independent-Module-Aware-Pruning
Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Builds on 70 of its 83 references that are in the map. First posted on arXiv 21 Apr 2024.
Builds on
70 of 83 references.
References · 70
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,267
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
- 2014ImageNet Large Scale Visual Recognition Challengecited by 8,441
- 2017mixup: Beyond Empirical Risk Minimizationcited by 5,155
- 2016SGDR: Stochastic Gradient Descent with Warm Restartscited by 4,993
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
- 2019CutMix: Regularization Strategy to Train Strong Classifiers with Localizable Featurescited by 2,875
- 2015Deep Compression: Compressing Deep Neural Networks with Pruning, Trained Quantization and Huffman Codingcited by 2,291
- 2015Learning both Weights and Connections for Efficient Neural Networkscited by 1,998
- 2021Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutionscited by 1,960
38 more
- 2017Random Erasing Data Augmentationcited by 1,235
- 2016Pruning Filters for Efficient ConvNetscited by 1,129
- 2021Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNetcited by 1,096
- 2021DynamicViT: Efficient Vision Transformers with Dynamic Token Sparsificationcited by 849
- 2021CrossViT: Cross-Attention Multi-Scale Vision Transformer for Image Classificationcited by 806
- 2018AutoAugment: Learning Augmentation Policies from Datacited by 728
- 2017Channel Pruning for Accelerating Very Deep Neural Networkscited by 697
- 2021Do Vision Transformers See Like Convolutional Neural Networks?cited by 671
- 2021MobileViT: Light-weight, General-purpose, and Mobile-friendly Vision Transformercited by 636
- 2021Transformer in Transformercited by 632
- 2021Twins: Revisiting the Design of Spatial Attention in Vision Transformerscited by 565
- 2021LeViT: a Vision Transformer in ConvNet's Clothing for Faster Inferencecited by 475
- 2017ThiNet: A Filter Level Pruning Method for Deep Neural Network Compressioncited by 438
- 2021Conditional Positional Encodings for Vision Transformerscited by 402
- 2018AMC: AutoML for Model Compression and Acceleration on Mobile Devicescited by 375
- 2021Bottleneck Transformers for Visual Recognitioncited by 364
- 2021Rethinking Spatial Dimensions of Vision Transformerscited by 361
- 2021AdaViT: Adaptive Tokens for Efficient Vision Transformercited by 360
- 2022Not All Patches are What You Need: Expediting Vision Transformers via Token Reorganizationscited by 359
- 2018Soft Filter Pruning for Accelerating Deep Convolutional Neural Networkscited by 313
- 2022How Do Vision Transformers Work?cited by 305
- 2015Norm-Based Capacity Control in Neural Networkscited by 299
- 2016Dynamic Network Surgery for Efficient DNNscited by 233
- 2021AdaViT: Adaptive Vision Transformers for Efficient Image Recognitioncited by 228
- 2021Co-Scale Conv-Attentional Image Transformerscited by 224
- 2021AutoFormer: Searching Transformers for Visual Recognitioncited by 186
- 2022UniFormer: Unified Transformer for Efficient Spatiotemporal Representation Learningcited by 182
- 2021Chasing Sparsity in Vision Transformers: An End-to-End Explorationcited by 181
- 2023FLatten Transformer: Vision Transformer using Focused Linear Attentioncited by 170
- 2022Separable Self-attention for Mobile Vision Transformerscited by 163
- 2021All Tokens Matter: Token Labeling for Training Better Vision Transformerscited by 144
- 2021Patch Slimming for Efficient Vision Transformerscited by 131
- 2022QuadTree Attention for Vision Transformerscited by 129
- 2020Layer-adaptive sparsity for the Magnitude-based Pruningcited by 122
- 2023Structured Pruning for Deep Convolutional Neural Networks: A surveycited by 122
- 2022MiniViT: Compressing Vision Transformers with Weight Multiplexingcited by 88
- 2021Scalable Vision Transformers with Hierarchical Poolingcited by 84
- 2015Fast ConvNets Using Group-wise Brain Damagecited by 81
50 most cited of 70 All 70 (JSON)
Built on by
Citing papers per year: 2024: 2; 2025: 3; 2026: 1.
6 papers.
- 2024Preserving Deep Representations In One-Shot Pruning: A Hessian-Free Second-Order Optimization Frameworkcited by 10
- 2025RePaViT: Scalable Vision Transformer Acceleration via Structural Reparameterization on Feedforward Network Layerscited by 5
- 2024FairDD: Fair Dataset Distillationcited by 3
- 2025Diversity-Guided MLP Reduction for Efficient Large Vision Transformerscited by 3
- 2025Pruning by Block Benefit: Exploring the Properties of Vision Transformer Blocks during Domain Adaptationcited by 3
- 2026Adaptive MLP Pruning for Large Vision Transformerscited by 2
- 2026Adaptive MLP Pruning for Large Vision Transformers9 Mar 2026
- 2025Pruning by Block Benefit: Exploring the Properties of Vision Transformer Blocks during Domain Adaptation30 Jun 2025
- 2025Diversity-Guided MLP Reduction for Efficient Large Vision Transformers10 Jun 2025
- 2025RePaViT: Scalable Vision Transformer Acceleration via Structural Reparameterization on Feedforward Network Layers28 May 2025
- 2024FairDD: Fair Dataset Distillation29 Nov 2024
- 2024Preserving Deep Representations In One-Shot Pruning: A Hessian-Free Second-Order Optimization Framework27 Nov 2024