mlsanityData to 7 Oct 2026

Data-independent Module-aware Pruning for Hierarchical Vision Transformers

arXiv 2404.13648 ↗First posted 21 Apr 2024cs.CV cs.LGcited by 6

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

  1. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  2. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  3. 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,267
  4. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
  5. 2014ImageNet Large Scale Visual Recognition Challengecited by 8,441
  6. 2017mixup: Beyond Empirical Risk Minimizationcited by 5,155
  7. 2016SGDR: Stochastic Gradient Descent with Warm Restartscited by 4,993
  8. 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
  9. 2019CutMix: Regularization Strategy to Train Strong Classifiers with Localizable Featurescited by 2,875
  10. 2015Deep Compression: Compressing Deep Neural Networks with Pruning, Trained Quantization and Huffman Codingcited by 2,291
  11. 2015Learning both Weights and Connections for Efficient Neural Networkscited by 1,998
  12. 2021Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutionscited by 1,960
38 more
  1. 2017Random Erasing Data Augmentationcited by 1,235
  2. 2016Pruning Filters for Efficient ConvNetscited by 1,129
  3. 2021Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNetcited by 1,096
  4. 2021DynamicViT: Efficient Vision Transformers with Dynamic Token Sparsificationcited by 849
  5. 2021CrossViT: Cross-Attention Multi-Scale Vision Transformer for Image Classificationcited by 806
  6. 2018AutoAugment: Learning Augmentation Policies from Datacited by 728
  7. 2017Channel Pruning for Accelerating Very Deep Neural Networkscited by 697
  8. 2021Do Vision Transformers See Like Convolutional Neural Networks?cited by 671
  9. 2021MobileViT: Light-weight, General-purpose, and Mobile-friendly Vision Transformercited by 636
  10. 2021Transformer in Transformercited by 632
  11. 2021Twins: Revisiting the Design of Spatial Attention in Vision Transformerscited by 565
  12. 2021LeViT: a Vision Transformer in ConvNet's Clothing for Faster Inferencecited by 475
  13. 2017ThiNet: A Filter Level Pruning Method for Deep Neural Network Compressioncited by 438
  14. 2021Conditional Positional Encodings for Vision Transformerscited by 402
  15. 2018AMC: AutoML for Model Compression and Acceleration on Mobile Devicescited by 375
  16. 2021Bottleneck Transformers for Visual Recognitioncited by 364
  17. 2021Rethinking Spatial Dimensions of Vision Transformerscited by 361
  18. 2021AdaViT: Adaptive Tokens for Efficient Vision Transformercited by 360
  19. 2022Not All Patches are What You Need: Expediting Vision Transformers via Token Reorganizationscited by 359
  20. 2018Soft Filter Pruning for Accelerating Deep Convolutional Neural Networkscited by 313
  21. 2022How Do Vision Transformers Work?cited by 305
  22. 2015Norm-Based Capacity Control in Neural Networkscited by 299
  23. 2016Dynamic Network Surgery for Efficient DNNscited by 233
  24. 2021AdaViT: Adaptive Vision Transformers for Efficient Image Recognitioncited by 228
  25. 2021Co-Scale Conv-Attentional Image Transformerscited by 224
  26. 2021AutoFormer: Searching Transformers for Visual Recognitioncited by 186
  27. 2022UniFormer: Unified Transformer for Efficient Spatiotemporal Representation Learningcited by 182
  28. 2021Chasing Sparsity in Vision Transformers: An End-to-End Explorationcited by 181
  29. 2023FLatten Transformer: Vision Transformer using Focused Linear Attentioncited by 170
  30. 2022Separable Self-attention for Mobile Vision Transformerscited by 163
  31. 2021All Tokens Matter: Token Labeling for Training Better Vision Transformerscited by 144
  32. 2021Patch Slimming for Efficient Vision Transformerscited by 131
  33. 2022QuadTree Attention for Vision Transformerscited by 129
  34. 2020Layer-adaptive sparsity for the Magnitude-based Pruningcited by 122
  35. 2023Structured Pruning for Deep Convolutional Neural Networks: A surveycited by 122
  36. 2022MiniViT: Compressing Vision Transformers with Weight Multiplexingcited by 88
  37. 2021Scalable Vision Transformers with Hierarchical Poolingcited by 84
  38. 2015Fast ConvNets Using Group-wise Brain Damagecited by 81

50 most cited of 70 All 70 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 2; 2025: 3; 2026: 1.

6 papers.