Efficient Video Transformers via Spatial-temporal Token Merging for Action Recognition

Author:

Feng Zhanzhou1ORCID,Xu Jiaming2ORCID,Ma Lei3ORCID,Zhang Shiliang1ORCID

Affiliation:

1. National Key Laboratory for Multimedia Information Processing, School of Computer Science, Peking University, China

2. School of Electronic Engineering and Computer Science, Peking University, China

3. National Biomedical Imaging Center, College of Future Technology, Peking University, National Key Laboratory for Multimedia Information Processing, School of Computer Science, Peking University, Beijing Academy of Artificial Intelligence, China

Abstract

Transformer has exhibited promising performance in various video recognition tasks but brings a huge computational cost in modeling spatial-temporal cues. This work aims to boost the efficiency of existing video transformers for action recognition through eliminating redundancies in their tokens and efficiently learning motion cues of moving objects. We propose a lightweight and plug-and-play module, namely Spatial-temporal Token Merger (STTM), to merge the tokens belonging to the same object into a more compact representation. STTM first adaptively identifies crucial object clues underlying the video as meta tokens. Similarity scores between input tokens and meta tokens are hence computed and used to guide the fusion of similar tokens in both spatial and temporal domains, respectively. To compensate for motion cues lost in the merging procedure, we compute the linear aggregation of spatial-temporal positions of tokens as motion features. STTM hence outputs a compact set of tokens fusing both appearance and motion features of moving objects. This procedure substantially decreases the number of tokens that need to be processed by each Transformer block and boosts the efficiency. As a general module, STTM can be applied to different layers of various video Transformers. Extensive experiments on the action recognition datasets Kinectics-400 and SSv2 demonstrate its promising performance. For example, it reduces the computation complexity of ViT by 38% while maintaining a similar performance on Kinectics-400. It also brings 1.7% gains of top-1 accuracy on SSv2 under the same computational cost.

Funder

The National Key Research and Development Program of China

Natural Science Foundation of China

Publisher

Association for Computing Machinery (ACM)

Subject

Computer Networks and Communications,Hardware and Architecture

Reference72 articles.

1. Quantifying attention flow in transformers;Abnar Samira;arXiv preprint arXiv:2005.00928,2020

2. ViViT: A Video Vision Transformer

3. Gedas Bertasius Heng Wang and Lorenzo Torresani. 2021. Is space-time attention all you need for video understanding? In International Conference on Machine Learning PMLR 813–824.

4. Token merging: Your vit but faster;Bolya Daniel;arXiv preprint arXiv:2210.09461,2022

5. End-to-End Object Detection with Transformers

Cited by 1 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. TPTE: Text-guided Patch Token Exploitation for Unsupervised Fine-Grained Representation Learning;ACM Transactions on Multimedia Computing, Communications, and Applications;2024-08-09

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3