Prune Spatio-temporal Tokens by Semantic-aware Temporal Accumulation

Shuangrui Ding, Peisen Zhao, Xiaopeng Zhang, Rui Qian, H. Xiong +1 more
2/14/2026

No official code found. Best implementation: Mark12Ding/STA (23 stars, BSD-2-Clause, last commit 2023-12-12).

Abstract

Transformers have become the primary backbone of the computer vision community due to their impressive performance. However, the unfriendly computation cost impedes their potential in the video recognition domain. To optimize the speed-accuracy trade-off, we propose Semanticaware Temporal Accumulation score (STA) to prune spatiotemporal tokens integrally. STA score considers two critical factors: temporal redundancy and semantic importance. The former depicts a specific region based on whether it is a new occurrence or a seen entity by aggregating token-to-token similarity in consecutive frames while the latter evaluates each token based on its contribution to the overall prediction. As a result, tokens with higher scores of STA carry more temporal redundancy as well as lower semantics thus being pruned. Based on the STA score, we are able to progressively prune the tokens without introducing any additional parameters or requiring further re-training. We directly apply the STA module to off-the-shelf ViT and VideoSwin backbones, and the empirical results on Kinetics-400 and Something-Something V2 achieve over 30% computation reduction with a negligible ~ 0.2% accuracy drop. The code is released at https://github.com/Mark12Ding/STA.

View on arXivView PDF

Code Implementations(1)

Mark12Ding/STACommunity100%
BSD-2-Clause

[ICCV 2023] Code for Prune Spatio-temporal Tokens by Semantic-aware Temporal Accumulation

230PythonNov 29, 20232 years agoBSD-2-Clause

Similar Papers

Cite this paper

@article{ding2026prune,
  title  = {Prune Spatio-temporal Tokens by Semantic-aware Temporal Accumulation},
  author = {Shuangrui Ding and Peisen Zhao and Xiaopeng Zhang and Rui Qian and H. Xiong and Qi Tian},
  year   = {2026},
  eprint = {2308.04549},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2308.04549},
  journal = {ICCV 2023 2023}
}

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

Discussion