Efficient Token Compression for Vision Transformer with Spatial Information Preserved
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
- 2023Token Fusion: Bridging the Gap between Token Pruning and Token Merging2 Dec
- 2023Which Tokens to Use? Investigating Token Reduction in Vision Transformers9 Aug
- 2023Zero-TPrune: Zero-Shot Token Pruning through Leveraging of the Attention Graph in Pre-Trained Transformers27 May
- 2023Joint Token Pruning and Squeezing Towards More Aggressive Compression of Vision Transformers21 Apr
- 2022Token Merging: Your ViT But Faster17 Oct
- 2021Evo-ViT: Slow-Fast Token Evolution for Dynamic Vision Transformer3 Aug
Other references · 52
- 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
- 2020End-to-End Object Detection with Transformerscited by 7,384
- 2021Masked Autoencoders Are Scalable Vision Learnerscited by 7,339
- 2016Grad-CAM: Visual Explanations from Deep Networks via Gradient-based Localizationcited by 6,690
- 2019EfficientNet: Rethinking Model Scaling for Convolutional Neural Networkscited by 6,415
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
- 2021Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutionscited by 1,960
- 2016On Large-Batch Training for Deep Learning: Generalization Gap and Sharp Minimacited by 1,337
- 2021Swin Transformer V2: Scaling Up Capacity and Resolutioncited by 1,215
- 2021Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNetcited by 1,096
- 2016Semantic Understanding of Scenes through the ADE20K Datasetcited by 1,063
38 more
- 2021Multiscale Vision Transformerscited by 896
- 2021DynamicViT: Efficient Vision Transformers with Dynamic Token Sparsificationcited by 849
- 2019Are Sixteen Heads Really Better than One?cited by 803
- 2021How to train your ViT? Data, Augmentation, and Regularization in Vision Transformerscited by 562
- 2019Importance Estimation for Neural Network Pruningcited by 531
- 2021CSWin Transformer: A General Vision Transformer Backbone with Cross-Shaped Windowscited by 526
- 2021MViTv2: Improved Multiscale Vision Transformers for Classification and Detectioncited by 516
- 2021LeViT: a Vision Transformer in ConvNet's Clothing for Faster Inferencecited by 475
- 2019Reducing Transformer Depth on Demand with Structured Dropoutcited by 434
- 2022Unified-IO: A Unified Model for Vision, Language, and Multi-Modal Taskscited by 420
- 2020The Lottery Ticket Hypothesis for Pre-trained BERT Networkscited by 275
- 2021Chasing Sparsity in Vision Transformers: An End-to-End Explorationcited by 181
- 2022A Unified Sequence Interface for Vision Taskscited by 152
- 2021Patch Slimming for Efficient Vision Transformerscited by 131
- 2021IA-RED2: Interpretability-Aware Redundancy Reduction for Vision Transformerscited by 127
- 2020End-to-End Object Detection with Adaptive Clustering Transformercited by 109
- 2020Compressing Large-Scale Transformer-Based Models: A Case Study on BERTcited by 95
- 2021Non-Salient Region Object Mining for Weakly Supervised Semantic Segmentationcited by 95
- 2021Jo-SRC: A Contrastive Approach for Combating Noisy Labelscited by 80
- 2022Unified Visual Transformer Compressioncited by 79
- 2020SoftSort: A Continuous Relaxation for the argsort Operatorcited by 66
- 2019The Generalization-Stability Tradeoff In Neural Network Pruningcited by 54
- 2023PuMer: Pruning and Merging Tokens for Efficient Vision Language Modelscited by 53
- 2024Poly Kernel Inception Network for Remote Sensing Detectioncited by 52
- 2022A Unified Transformer Framework for Group-based Segmentation: Co-Segmentation, Co-Saliency Detection and Video Salient Object Detectioncited by 51
- 2021Differentiable Subset Pruning of Transformer Headscited by 46
- 2021A Unified Pruning Framework for Vision Transformerscited by 40
- 2022Hierarchical Feature Alignment Network for Unsupervised Video Object Segmentationcited by 37
- 2022Expediting Large-Scale Vision Transformer for Dense Prediction without Fine-tuningcited by 33
- 2021Webly Supervised Fine-Grained Recognition: Benchmark Datasets and An Approachcited by 32
- 2019Reweighted Proximal Pruning for Large-Scale Language Representationcited by 29
- 2023Making Vision Transformers Efficient from A Token Sparsification Viewcited by 28
- 2021Self-slimmed Vision Transformercited by 27
- 2021Pruning Self-attentions into Convolutional Layers in Single Pathcited by 24
- 2023FECANet: Boosting Few-Shot Semantic Segmentation with Feature-Enhanced Context-Aware Networkcited by 22
- 2023Adaptive Integration of Partial Label Learning and Negative Learning for Enhanced Noisy Label Learningcited by 22
- 2024VideoMAC: Video Masked Autoencoders Meet ConvNetscited by 20
- 2024Spatial Structure Constraints for Weakly Supervised Semantic Segmentationcited by 17
50 most cited of 52 All 52 (JSON)
Built on by
Citing papers per year: 2025: 2.
2 papers.
Similar, not cited
Close in wording, no citation either way
- 2025Token Transforming: A Unified and Training-Free Token Compression Framework for Vision Transformer Acceleration
- 2025Token Compression Meets Compact Vision Transformers: A Survey and Comparative Evaluation for Edge AI
- 2023Learned Thresholds Token Merging and Pruning for Vision Transformers
- 2022Adaptive Sparse ViT: Towards Learnable Adaptive Token Pruning by Fully Exploiting Self-Attention
- 2025Lossless Token Merging Even Without Fine-Tuning in Vision Transformers
- 2025Similarity-Aware Token Pruning: Your VLM but Faster
- 2026RAPID: Layer-Wise Redundancy-Aware Pruning and Importance-Driven Token Merging for Efficient ViT
- 2023PPT: Token Pruning and Pooling for Efficient Vision Transformers