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

具有时空标记选择的高效视频Transformers

Efficient Video Transformers with Spatial-Temporal Token Selection

Fudan University(复旦大学);University of Maryland(马里兰大学);BirenTech Research(壁仞科技研究院)

Junke Wang, Xitong Yang, Hengduo Li, Li Liu, Zuxuan Wu, Yu-Gang Jiang

摘要:

视频Transformers在主要的视频识别基准测试中取得了令人印象深刻的结果,但计算成本很高。在本文中,我们提出了STTS,令牌选择框架,动态地选择一些信息令牌在时间和空间维度的条件下输入视频样本。具体来说,我们将令牌选择制定为排名问题,通过轻量级评分器网络估计每个令牌的重要性,只有那些得分最高的令牌将用于下游评估。在时间维度上,我们保留了与动作类别最相关的帧,而在空间维度上,我们识别了特征图中最具区分力的区域,而不会影响大多数视频Transformers中以分层方式使用的空间上下文。由于令牌选择的决策是不可微的,我们采用基于扰动最大值的可微Top-K算子进行端到端训练。我们主要在Kinetics-400上进行广泛的实验,并使用最近推出的视频Transformer主干MViT。我们的框架实现了类似的结果,同时需要减少20%的计算量。我们还证明了我们的方法是通用的不同的Transformer架构和视频数据集。代码可在https://github.com/wangjk666/STTS上获得。

英文摘要:

Video transformers have achieved impressive results on major video recognition benchmarks, which however suffer from high computational cost. In this paper, we present STTS, a token selection framework that dynamically selects a few informative tokens in both temporal and spatial dimensions conditioned on input video samples. Specifically, we formulate token selection as a ranking problem, which estimates the importance of each token through a lightweight scorer network and only those with top scores will be used for downstream evaluation. In the temporal dimension, we keep the frames that are most relevant to the action categories, while in the spatial dimension, we identify the most discriminative region in feature maps without affecting the spatial context used in a hierarchical way in most video transformers. Since the decision of token selection is non-differentiable, we employ a perturbed-maximum based differentiable Top-K operator for end-to-end training. We mainly conduct extensive experiments on Kinetics-400 with a recently introduced video transformer backbone, MViT. Our framework achieves similar results while requiring 20% less computation. We also demonstrate our approach is generic for different transformer architectures and video datasets. Code is available at https://github.com/wangjk666/STTS.

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

↑