SPOT: Sparsification with Attention Dynamics via Token Relevance in Vision Transformers

Oded Schlesinger, Amirhossein Farzam, J. Matias Di Martino, Guillermo Sapiro
11/13/2025
cs.CVeess.IV

Official code: odedsc/SPOT (4 stars, last commit 2025-10-31).

Abstract

While Vision Transformers (ViT) have demonstrated remarkable performance across diverse tasks, their computational demands are substantial, scaling quadratically with the number of processed tokens. Compact attention representations, reflecting token interaction distributions, can guide early detection and reduction of less salient tokens prior to attention computation. Motivated by this, we present SParsification with attentiOn dynamics via Token relevance (SPOT), a framework for early detection of redundant tokens within ViTs that leverages token embeddings, interactions, and attention dynamics across layers to infer token importance, resulting in a more context-aware and interpretable relevance detection process. SPOT informs token sparsification and facilitates the elimination of such tokens, improving computational efficiency without sacrificing performance. SPOT employs computationally lightweight predictors that can be plugged into various ViT architectures and learn to derive effective input-specific token prioritization across layers. Its versatile design supports a range of performance levels adaptable to varying resource constraints. Empirical evaluations demonstrate significant efficiency gains of up to 40% compared to standard ViTs, while maintaining or even improving accuracy. Code and models are available at https://github.com/odedsc/SPOT .

View on arXivView PDF

Code Implementations(1)

odedsc/SPOTOfficial100%

SPOT: Sparsification with Attention Dynamics via Token Relevance in Vision Transformers

41PythonOct 21, 202511 months ago

Similar Papers

Cite this paper

@article{schlesinger2025spot,
  title  = {SPOT: Sparsification with Attention Dynamics via Token Relevance in Vision Transformers},
  author = {Oded Schlesinger and Amirhossein Farzam and J. Matias Di Martino and Guillermo Sapiro},
  year   = {2025},
  eprint = {2511.10488},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2511.10488v1}
}

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/2511.10488.svg)](https://codeofpaper.com/paper/2511.10488)

Discussion