mlsanityData to 7 Oct 2026

MaMe & MaRe: Matrix-Based Token Merging and Restoration for Efficient Visual Perception and Synthesis

arXiv 2604.13432 ↗First posted 15 Apr 2026cs.CV cs.AIcited by 0

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

Abstract (arXiv)

Token compression is crucial for mitigating the quadratic complexity of self-attention mechanisms in Vision Transformers (ViTs), which often involve numerous input tokens. Existing methods, such as ToMe, rely on GPU-inefficient operations (e.g., sorting, scattered writes), introducing overheads that limit their effectiveness. We introduce MaMe, a training-free, differentiable token merging method based entirely on matrix operations, which is GPU-friendly to accelerate ViTs. Additionally, we present MaRe, its inverse operation, for token restoration, forming a MaMe+MaRe pipeline for image synthesis. When applied to pre-trained models, MaMe doubles ViT-B throughput with a 2% accuracy drop. Notably, fine-tuning the last layer with MaMe boosts ViT-B accuracy by 1.0% at 1.1x speed. In SigLIP2-B@512 zero-shot classification, MaMe provides 1.3x acceleration with negligible performance degradation. In video tasks, MaMe accelerates VideoMAE-L by 48.5% on Kinetics-400 with only a 0.84% accuracy loss. Furthermore, MaMe achieves simultaneous improvements in both performance and speed on some tasks. In image synthesis, the MaMe+MaRe pipeline enhances quality while reducing Stable Diffusion v2.1 generation latency by 31%. Collectively, these results demonstrate MaMe's and MaRe's effectiveness in accelerating vision models. The code is available at https://github.com/cominder/mame}{https://github.com/cominder/mame.

Key facts. No citing papers in the map yet (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 33 of its 40 references that are in the map. First posted on arXiv 15 Apr 2026.

Builds on

33 of 40 references.

Closest ancestors · 3

Same direction, newest first

  1. 2025Token Transforming: A Unified and Training-Free Token Compression Framework for Vision Transformer Acceleration6 Jun
  2. 2023DiffRate : Differentiable Compression Rate for Efficient Vision Transformers29 May
  3. 2022Token Merging: Your ViT But Faster17 Oct

Other references · 30

  1. 2017Attention Is All You Needcited by 59,932
  2. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
  3. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  4. 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,694
  5. 2014Microsoft COCO: Common Objects in Contextcited by 17,498
  6. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
  7. 2018The Unreasonable Effectiveness of Deep Features as a Perceptual Metriccited by 11,029
  8. 2021Masked Autoencoders Are Scalable Vision Learnerscited by 7,339
  9. 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
  10. 2023Sigmoid Loss for Language Image Pre-Trainingcited by 3,048
  11. 2016Improved Techniques for Training GANscited by 2,938
  12. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
18 more
  1. 2017The Kinetics Human Action Video Datasetcited by 1,894
  2. 2022VideoMAE: Masked Autoencoders are Data-Efficient Learners for Self-Supervised Video Pre-Trainingcited by 1,305
  3. 2025SigLIP 2: Multilingual Vision-Language Encoders with Improved Semantic Understanding, Localization, and Dense Featurescited by 1,127
  4. 2024An Image is Worth 1/2 Tokens After Layer 2: Plug-and-Play Inference Acceleration for Large Vision-Language Modelscited by 629
  5. 2023LLaMA-VID: An Image is Worth 2 Tokens in Large Language Modelscited by 539
  6. 2024VLMEvalKit: An Open-Source Toolkit for Evaluating Large Multi-Modality Modelscited by 443
  7. 2021Attention is Not All You Need: Pure Attention Loses Rank Doubly Exponentially with Depthcited by 411
  8. 2024LLaVA-PruMerge: Adaptive Token Reduction for Efficient Large Multimodal Modelscited by 394
  9. 2023Chat-UniVi: Unified Visual Representation Empowers Large Language Models with Image and Video Understandingcited by 368
  10. 2022Not All Patches are What You Need: Expediting Vision Transformers via Token Reorganizationscited by 359
  11. 2024VisionZip: Longer is Better but Not Necessary in Vision Language Modelscited by 298
  12. 2021AdaViT: Adaptive Vision Transformers for Efficient Image Recognitioncited by 228
  13. 2023Token Merging for Fast Stable Diffusioncited by 220
  14. 2021Adaptive Token Sampling For Efficient Vision Transformerscited by 181
  15. 2024Boosting Multimodal Large Language Models with Visual Tokens Withdrawal for Rapid Inferencecited by 137
  16. 2024TCFormer: Visual Recognition via Token Clustering Transformercited by 12
  17. 2022ClusTR: Exploring Efficient Self-attention via Clustering for Vision Transformerscited by 6
  18. 2023GEMRec: Towards Generative Model Recommendationcited by 4

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2025Training-free Token Reduction for Vision Mamba
  2. 2024Vote&Mix: Plug-and-Play Token Reduction for Efficient Vision Transformer
  3. 2023Training-Free Acceleration of ViTs with Delayed Spatial Merging
  4. 2026AdaMerge: Salience-Aware Adaptive Token Merging for Training-Free Acceleration of Vision Transformers
  5. 2025Towards Efficient Vision State Space Models via Token Merging
  6. 2023PPT: Token Pruning and Pooling for Efficient Vision Transformers
  7. 2023MSViT: Dynamic Mixed-Scale Tokenization for Vision Transformers
  8. 2025Token Compression Meets Compact Vision Transformers: A Survey and Comparative Evaluation for Edge AI