HaltingVT: Adaptive Token Halting Transformer for Efficient Video Recognition

Qian Wu, Ruoxuan Cui, Yuke Li, Haoqi Zhu
1/10/2024
cs.CV

Official code: dun-research/HaltingVT (9 stars, Apache-2.0, last commit 2023-09-14).

Abstract

Action recognition in videos poses a challenge due to its high computational cost, especially for Joint Space-Time video transformers (Joint VT). Despite their effectiveness, the excessive number of tokens in such architectures significantly limits their efficiency. In this paper, we propose HaltingVT, an efficient video transformer adaptively removing redundant video patch tokens, which is primarily composed of a Joint VT and a Glimpser module. Specifically, HaltingVT applies data-adaptive token reduction at each layer, resulting in a significant reduction in the overall computational cost. Besides, the Glimpser module quickly removes redundant tokens in shallow transformer layers, which may even be misleading for video recognition tasks based on our observations. To further encourage HaltingVT to focus on the key motion-related information in videos, we design an effective Motion Loss during training. HaltingVT acquires video analysis capabilities and token halting compression strategies simultaneously in a unified training process, without requiring additional training procedures or sub-networks. On the Mini-Kinetics dataset, we achieved 75.0% top-1 ACC with 24.2 GFLOPs, as well as 67.2% top-1 ACC with an extremely low 9.9 GFLOPs. The code is available at https://github.com/dun-research/HaltingVT.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

This is an official pytorch implementation of paper "HaltingVT:Adaptive Token Halting Transformer for Efficient Video Recognition".

90PythonSep 6, 20233 years agoApache-2.0

Cite this paper

@article{wu2024haltingvt,
  title  = {HaltingVT: Adaptive Token Halting Transformer for Efficient Video Recognition},
  author = {Qian Wu and Ruoxuan Cui and Yuke Li and Haoqi Zhu},
  year   = {2024},
  eprint = {2401.04975},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2401.04975v1}
}

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

Discussion