Saliency-Driven Token Merging for Vision Transformers

Wei-Ying Xie, Xiao-Yu Chen, Xin Zhang, Chen-He Hao, Ji-Tao Ma +2 more
1/1/2026
transformer-attention

No official code found. Best implementation: cxy-xd/SAD-TM (0 stars, last commit 2026-03-20).

Abstract

Vision Transformers (ViTs) exhibit robust performance across diverse visual scenarios. However, their efficiency is constrained by excessive token counts.

Show full abstract

Token merging offers a viable solution for achieving efficient ViTs. Existing methods merge tokens based solely on specific characteristics within the attention mechanism, which changes significantly across layers. In this paper, we propose a novel training-free SAliency-Driven Token Merging (SAD-TM) approach by leveraging not only the semantic relevance in the attention space but also the latent visual saliency of input patches. Our SAD-TM is inspired by the discovery that saliency-based statistics can directly capture the causal relationship between model input and output, regardless of the layers. Based on the observation, we develop a method that is mathematically formulated to merge tokens with high saliency outliers. The principle behind our merging is that tokens with high saliency outliers usually imply inconsistencies with the global gradient direction, and thus can be merged safely. Besides, our systematic analysis indicates that class attention shows considerable variation across early blocks, so a deferred merging strategy is introduced to optimize the selection of merging rates. In a training-free manner, SAD-TM demonstrates superior performance across various ViT architectures. Especially, with a FLOPs compression of 23.08% on DeiT-Tiny, SAD-TM achieves a Top-1 Accuracy comparable to the pretrained baseline on ImageNet dataset. The code will be available soon.

Semantic Scholar

Code Implementations(1)

cxy-xd/SAD-TMCommunity64%

Code for paper "Saliency-Driven Token Merging for Vision Transformers ".

00Mar 20, 20268 months ago

Similar Papers

Cite this paper

@article{xie2026saliencydriven,
  title  = {Saliency-Driven Token Merging for Vision Transformers},
  author = {Wei-Ying Xie and Xiao-Yu Chen and Xin Zhang and Chen-He Hao and Ji-Tao Ma and Yun-Song Li and Le-Yuan Fang},
  year   = {2026},
  url    = {https://api.semanticscholar.org/CorpusID:6ace946f25962f3d7a3cb2f49dd99575ce9ae3b7},
  journal = {Computer Vision and Pattern Recognition}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/6ace946f25962f3d7a3cb2f49dd99575ce9ae3b7.svg)](https://codeofpaper.com/paper/6ace946f25962f3d7a3cb2f49dd99575ce9ae3b7)

Discussion