Skip to main navigation Skip to search Skip to main content

A Multiplier-Free Similarity Metric for Token Merging in Vision Transformers

  • Yupeng Gui
  • , Ruiqi Tang
  • , Shichen Peng
  • , Han He
  • , Sheng Zhou
  • , Leilei Huang
  • , Xiao Yan*
  • , Yibo Fan
  • *Corresponding author for this work
  • Fudan University
  • Xi'an Institute of Posts and Telecommunications

Research output: Chapter in Book/Report/Conference proceeding › Conference contribution › peer-review

Abstract

Token Merging (TM) has become an effective and widely adopted strategy for accelerating Vision Transformers (ViTs), reducing computational cost by merging similar tokens without requiring model retraining. However, the metric used to compute this pairwise similarity suffers from an accuracy-cost dilemma. Cosine similarity, despite being the de facto standard, is computationally expensive for hardware implementations, while existing lightweight metrics yield only moderate performance. To resolve this, we introduce the Transform-Domain L1 Distance (TDL), a multiplier-free similarity metric with competitive model accuracy. This paper first proposes an automated search strategy using Simulated Annealing (SA) to discover optimal transform kernels. With these SA-found kernels, TDL allows the host model to sustain or surpass task accuracy compared with cosine similarity. Then, through comprehensive comparison, we identify the Hadamard kernel as a highly effective universal transform kernel. By exploiting the Fast Hadamard Transform (FHT), TDL with Hadamard kernel delivers exceptional hardware efficiency while maintaining almost the same accuracy with (and often exceeding) cosine similarity, establishing a new Pareto-optimal solution for hardware-efficient TM design.

Original languageEnglish
Title of host publicationISCAS 2026 - 2026 IEEE International Symposium on Circuits and Systems
PublisherInstitute of Electrical and Electronics Engineers Inc.
Pages1839-1843
Number of pages5
ISBN (Electronic)9798331577698
DOIs
StatePublished - 2026
Event2026 IEEE International Symposium on Circuits and Systems, ISCAS 2026 - Shanghai, China
Duration: 24 May 2026 → 27 May 2026

Publication series

NameProceedings - IEEE International Symposium on Circuits and Systems
ISSN (Print)0271-4310

Conference

Conference2026 IEEE International Symposium on Circuits and Systems, ISCAS 2026
Country/TerritoryChina
CityShanghai
Period24/05/26 → 27/05/26

Keywords

  • Hardware Accelerator
  • Similarity Metric
  • Token Merging
  • Vision Transformer

Fingerprint

Dive into the research topics of 'A Multiplier-Free Similarity Metric for Token Merging in Vision Transformers'. Together they form a unique fingerprint.

Cite this