SPoT: Subpixel Placement of Tokens in Vision Transformers

Martine Hjelkrem-Tan, Marius Aasan, Gabriel Y. Arteaga, Adín Ramírez Rivera
7/2/2025
cs.CVcs.LG

No official code found. Best implementation: dsb-ifi/SPoT (6 stars, PyTorch, last commit 2025-11-25).

Abstract

Vision Transformers naturally accommodate sparsity, yet standard tokenization methods confine features to discrete patch grids. This constraint prevents models from fully exploiting sparse regimes, forcing awkward compromises. We propose Subpixel Placement of Tokens (SPoT), a novel tokenization strategy that positions tokens continuously within images, effectively sidestepping grid-based limitations. With our proposed oracle-guided search, we uncover substantial performance gains achievable with ideal subpixel token positioning, drastically reducing the number of tokens necessary for accurate predictions during inference. SPoT provides a new direction for flexible, efficient, and interpretable ViT architectures, redefining sparsity as a strategic advantage rather than an imposed limitation.

View on arXivView PDF

Code Implementations(1)

dsb-ifi/SPoTCommunity71%
PyTorch

SPoT: Subpixel Placement of Tokens in Vision Transformers

63Python, Jupyter NotebookJun 25, 202511 months ago
iccv2025interpolationpytorchsparse-learningtransformer+1 more

Cite this paper

@article{hjelkremtan2025spot,
  title  = {SPoT: Subpixel Placement of Tokens in Vision Transformers},
  author = {Martine Hjelkrem-Tan and Marius Aasan and Gabriel Y. Arteaga and Adín Ramírez Rivera},
  year   = {2025},
  eprint = {2507.01654},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2507.01654v1}
}

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

Discussion