Which Tokens to Use? Investigating Token Reduction in Vision Transformers

Joakim Bruslund Haurum, Sergio Escalera, Graham W. Taylor, Thomas B. Moeslund
8/9/2023
90 citations
cs.CV
transformer-attention

No official code found. Best implementation: JoakimHaurum/TokenReduction (35 stars, Python, MIT, last commit 2023-08-10).

Abstract

Since the introduction of the Vision Transformer (ViT), researchers have sought to make ViTs more efficient by removing redundant information in the processed tokens. While different methods have been explored to achieve this goal, we still lack understanding of the resulting reduction patterns and how those patterns differ across token reduction methods and datasets.

Show full abstract

To close this gap, we set out to understand the reduction patterns of 10 different token reduction methods using four image classification datasets. By systematically comparing these methods on the different classification tasks, we find that the Top-K pruning method is a surprisingly strong baseline. Through in-depth analysis of the different methods, we determine that: the reduction patterns are generally not consistent when varying the capacity of the backbone model, the reduction patterns of pruning-based methods significantly differ from fixed radial patterns, and the reduction patterns of pruning-based methods are correlated across classification datasets. Finally we report that the similarity of reduction patterns is a moderate-to-strong proxy for model performance. Project page at https://vap.aau.dk/tokens.

View on arXivView PDF

Code Implementations(1)

MIT

Official PyTorch implementation of Which Tokens to Use? Investigating Token Reduction in Vision Transformers presented at ICCV 2023 NIVT workshop

355PythonAug 8, 20233 years agoMIT

Similar Papers

Cite this paper

@article{haurum2023which,
  title  = {Which Tokens to Use? Investigating Token Reduction in Vision Transformers},
  author = {Joakim Bruslund Haurum and Sergio Escalera and Graham W. Taylor and Thomas B. Moeslund},
  year   = {2023},
  eprint = {2308.04657},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2308.04657v1}
}

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

Discussion