arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2204.00452cs.CV
收藏

基于时移交叉注意的视觉Transformer高效动作识别

Vision Transformer with Cross-attention by Temporal Shift for Efficient Action Recognition

Nagoya Institute of Technology(名古屋工业大学)

Ryota Hashiguchi, Toru Tamaki

摘要:

自时间移位模块(TSM)提出以来,特征移位已被证明对基于CNN的模型的动作识别是有用的。该方法基于逐帧特征提取和后期融合,并将各层特征沿时间方向移动以实现时间交互。最近基于视觉Transformer(ViT)的模型TokenShift也使用时间特征移位机制,然而,该机制没有充分利用ViT中的多头自注意(MSA)结构。在本文中,我们提出了多头自我/交叉注意(MSCA),它充分利用了注意力结构。TokenShift基于逐帧ViT,其特征随连续帧(在时间t+1和t-1)在时间上移位。相比之下,所提出的MSCA取代逐帧ViT中的MSA,并且一些MSA头关注连续帧而不是当前帧。计算成本与逐帧ViT和TokenShift相同,因为它只是改变了关注的目标。有一个关于从连续帧中提取的键,查询和值的选择,然后我们实验性地将这些变体与Kinetics 400进行比较。我们还研究了其他变体,其中建议的MSCA是沿着补丁维的ViT,而不是头部尺寸。实验结果表明,一个变种,MSCA-KV,表现出最好的性能,比TokenShift的0.1%,然后ViT的1.2%。

英文摘要:

Feature shifts have been shown to be useful for action recognition with CNN-based models since Temporal Shift Module (TSM) was proposed. It is based on frame-wise feature extraction with late fusion, and layer features are shifted along the time direction for the temporal interaction. TokenShift, a recent model based on Vision Transformer (ViT), also uses the temporal feature shift mechanism, which, however, does not fully exploit the structure of Multi-head Self-Attention (MSA) in ViT. In this paper, we propose Multi-head Self/Cross-Attention (MSCA), which fully utilizes the attention structure. TokenShift is based on a frame-wise ViT with features temporally shifted with successive frames (at time t+1 and t-1). In contrast, the proposed MSCA replaces MSA in the frame-wise ViT, and some MSA heads attend to successive frames instead of the current frame. The computation cost is the same as the frame-wise ViT and TokenShift as it simply changes the target to which the attention is taken. There is a choice about which of key, query, and value are taken from the successive frames, then we experimentally compared these variants with Kinetics400. We also investigate other variants in which the proposed MSCA is used along the patch dimension of ViT, instead of the head dimension. Experimental results show that a variant, MSCA-KV, shows the best performance and is better than TokenShift by 0.1% and then ViT by 1.2%.

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

↑