arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2401.04975cs.CV
收藏

HaltingVT:用于高效视频识别的自适应Token停止Transformer

HaltingVT: Adaptive Token Halting Transformer for Efficient Video Recognition

NetEase Yidun AI Lab(网易易盾人工智能实验室)

Qian Wu, Ruoxuan Cui, Yuke Li, Haoqi Zhu

AI总结:

提出HaltingVT,通过Glimpser模块和运动损失在每层自适应移除冗余token,实现高效视频识别,在Mini-Kinetics上以低计算量保持高准确率。

摘要:

视频中的动作识别因其高昂的计算成本而面临挑战,尤其是对于联合时空视频Transformer(Joint VT)。尽管它们很有效,但此类架构中过多的token数量极大地限制了其效率。在本文中,我们提出了HaltingVT,一种高效的视频Transformer,能够自适应地移除冗余的视频patch token,它主要由一个Joint VT和一个Glimpser模块组成。具体而言,HaltingVT在每一层应用数据自适应的token缩减,从而显著降低了整体计算成本。此外,Glimpser模块在浅层Transformer层快速移除冗余token,根据我们的观察,这些token甚至可能对视频识别任务产生误导。为了进一步鼓励HaltingVT关注视频中的关键运动相关信息,我们在训练期间设计了一种有效的运动损失(Motion Loss)。HaltingVT在统一的训练过程中同时获得视频分析能力和token停止压缩策略,无需额外的训练程序或子网络。在Mini-Kinetics数据集上,我们以24.2 GFLOPs的计算量达到了75.0%的top-1准确率(ACC),并以极低的9.9 GFLOPs计算量达到了67.2%的top-1 ACC。代码可在https://github.com/dun-research/HaltingVT获取。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑