mlsanityData to 7 Oct 2026

Efficient Token Compression for Vision Transformer with Spatial Information Preserved

arXiv 2503.23455 ↗First posted 30 Mar 2025cs.CV cs.MMcited by 2

On the map: Efficient LLM inference and serving → Token pruning and merging for ViTs

Abstract (arXiv)

Token compression is essential for reducing the computational and memory requirements of transformer models, enabling their deployment in resource-constrained environments. In this work, we propose an efficient and hardware-compatible token compression method called Prune and Merge. Our approach integrates token pruning and merging operations within transformer models to achieve layer-wise token compression. By introducing trainable merge and reconstruct matrices and utilizing shortcut connections, we efficiently merge tokens while preserving important information and enabling the restoration of pruned tokens. Additionally, we introduce a novel gradient-weighted attention scoring mechanism that computes token importance scores during the training phase, eliminating the need for separate computations during inference and enhancing compression efficiency. We also leverage gradient information to capture the global impact of tokens and automatically identify optimal compression structures. Extensive experiments on the ImageNet-1k and ADE20K datasets validate the effectiveness of our approach, achieving significant speed-ups with minimal accuracy degradation compared to state-of-the-art methods. For instance, on DeiT-Small, we achieve a 1.64× speed-up with only a 0.2% drop in accuracy on ImageNet-1k. Moreover, by compressing segmenter models and comparing with existing methods, we demonstrate the superior performance of our approach in terms of efficiency and effectiveness. Code and models have been made available at https://github.com/NUST-Machine-Intelligence-Laboratory/pruneandmerge.

Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Placed in Token pruning and merging for ViTs, one of 12 directions in Efficient LLM inference and serving. Builds on 58 of its 78 references that are in the map. First posted on arXiv 30 Mar 2025.

Builds on

58 of 78 references.

Closest ancestors · 6

Same direction, newest first

  1. 2023Token Fusion: Bridging the Gap between Token Pruning and Token Merging2 Dec
  2. 2023Which Tokens to Use? Investigating Token Reduction in Vision Transformers9 Aug
  3. 2023Zero-TPrune: Zero-Shot Token Pruning through Leveraging of the Attention Graph in Pre-Trained Transformers27 May
  4. 2023Joint Token Pruning and Squeezing Towards More Aggressive Compression of Vision Transformers21 Apr
  5. 2022Token Merging: Your ViT But Faster17 Oct
  6. 2021Evo-ViT: Slow-Fast Token Evolution for Dynamic Vision Transformer3 Aug

Other references · 52

  1. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  2. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
  3. 2020End-to-End Object Detection with Transformerscited by 7,384
  4. 2021Masked Autoencoders Are Scalable Vision Learnerscited by 7,339
  5. 2016Grad-CAM: Visual Explanations from Deep Networks via Gradient-based Localizationcited by 6,690
  6. 2019EfficientNet: Rethinking Model Scaling for Convolutional Neural Networkscited by 6,415
  7. 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
  8. 2021Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutionscited by 1,960
  9. 2016On Large-Batch Training for Deep Learning: Generalization Gap and Sharp Minimacited by 1,337
  10. 2021Swin Transformer V2: Scaling Up Capacity and Resolutioncited by 1,215
  11. 2021Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNetcited by 1,096
  12. 2016Semantic Understanding of Scenes through the ADE20K Datasetcited by 1,063
38 more
  1. 2021Multiscale Vision Transformerscited by 896
  2. 2021DynamicViT: Efficient Vision Transformers with Dynamic Token Sparsificationcited by 849
  3. 2019Are Sixteen Heads Really Better than One?cited by 803
  4. 2021How to train your ViT? Data, Augmentation, and Regularization in Vision Transformerscited by 562
  5. 2019Importance Estimation for Neural Network Pruningcited by 531
  6. 2021CSWin Transformer: A General Vision Transformer Backbone with Cross-Shaped Windowscited by 526
  7. 2021MViTv2: Improved Multiscale Vision Transformers for Classification and Detectioncited by 516
  8. 2021LeViT: a Vision Transformer in ConvNet's Clothing for Faster Inferencecited by 475
  9. 2019Reducing Transformer Depth on Demand with Structured Dropoutcited by 434
  10. 2022Unified-IO: A Unified Model for Vision, Language, and Multi-Modal Taskscited by 420
  11. 2020The Lottery Ticket Hypothesis for Pre-trained BERT Networkscited by 275
  12. 2021Chasing Sparsity in Vision Transformers: An End-to-End Explorationcited by 181
  13. 2022A Unified Sequence Interface for Vision Taskscited by 152
  14. 2021Patch Slimming for Efficient Vision Transformerscited by 131
  15. 2021IA-RED2: Interpretability-Aware Redundancy Reduction for Vision Transformerscited by 127
  16. 2020End-to-End Object Detection with Adaptive Clustering Transformercited by 109
  17. 2020Compressing Large-Scale Transformer-Based Models: A Case Study on BERTcited by 95
  18. 2021Non-Salient Region Object Mining for Weakly Supervised Semantic Segmentationcited by 95
  19. 2021Jo-SRC: A Contrastive Approach for Combating Noisy Labelscited by 80
  20. 2022Unified Visual Transformer Compressioncited by 79
  21. 2020SoftSort: A Continuous Relaxation for the argsort Operatorcited by 66
  22. 2019The Generalization-Stability Tradeoff In Neural Network Pruningcited by 54
  23. 2023PuMer: Pruning and Merging Tokens for Efficient Vision Language Modelscited by 53
  24. 2024Poly Kernel Inception Network for Remote Sensing Detectioncited by 52
  25. 2022A Unified Transformer Framework for Group-based Segmentation: Co-Segmentation, Co-Saliency Detection and Video Salient Object Detectioncited by 51
  26. 2021Differentiable Subset Pruning of Transformer Headscited by 46
  27. 2021A Unified Pruning Framework for Vision Transformerscited by 40
  28. 2022Hierarchical Feature Alignment Network for Unsupervised Video Object Segmentationcited by 37
  29. 2022Expediting Large-Scale Vision Transformer for Dense Prediction without Fine-tuningcited by 33
  30. 2021Webly Supervised Fine-Grained Recognition: Benchmark Datasets and An Approachcited by 32
  31. 2019Reweighted Proximal Pruning for Large-Scale Language Representationcited by 29
  32. 2023Making Vision Transformers Efficient from A Token Sparsification Viewcited by 28
  33. 2021Self-slimmed Vision Transformercited by 27
  34. 2021Pruning Self-attentions into Convolutional Layers in Single Pathcited by 24
  35. 2023FECANet: Boosting Few-Shot Semantic Segmentation with Feature-Enhanced Context-Aware Networkcited by 22
  36. 2023Adaptive Integration of Partial Label Learning and Negative Learning for Enhanced Noisy Label Learningcited by 22
  37. 2024VideoMAC: Video Masked Autoencoders Meet ConvNetscited by 20
  38. 2024Spatial Structure Constraints for Weakly Supervised Semantic Segmentationcited by 17

50 most cited of 52 All 52 (JSON)

Built on by

Cited by year

Citing papers per year: 2025: 2.

2 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Token Transforming: A Unified and Training-Free Token Compression Framework for Vision Transformer Acceleration
  2. 2025Token Compression Meets Compact Vision Transformers: A Survey and Comparative Evaluation for Edge AI
  3. 2023Learned Thresholds Token Merging and Pruning for Vision Transformers
  4. 2022Adaptive Sparse ViT: Towards Learnable Adaptive Token Pruning by Fully Exploiting Self-Attention
  5. 2025Lossless Token Merging Even Without Fine-Tuning in Vision Transformers
  6. 2025Similarity-Aware Token Pruning: Your VLM but Faster
  7. 2026RAPID: Layer-Wise Redundancy-Aware Pruning and Importance-Driven Token Merging for Efficient ViT
  8. 2023PPT: Token Pruning and Pooling for Efficient Vision Transformers