Space-time Mixing Attention for Video Transformer
Adrian Bulat, Juan-Manuel Pérez-Rúa, Swathikiran Sudhakaran, Brais Martínez, Georgios Tzimiropoulos
摘要
This paper is on video recognition using Transformers. Very recent attempts in this area have demonstrated promising results in terms of recognition accuracy, yet they have been also shown to induce, in many cases, significant computational overheads due to the additional modelling of the temporal information. In this work, we propose a Video Transformer model the complexity of which scales linearly with the number of frames in the video sequence and hence induces no overhead compared to an image-based Transformer model. To achieve this, our model makes two approximations to the full space-time attention used in Video Transformers: (a) It restricts time attention to a local temporal window and capitalizes on the Transformer's depth to obtain full temporal coverage of the video sequence. (b) It uses efficient space-time mixing to attend jointly spatial and temporal locations without inducing any additional cost on top of a spatial-only attention model. We also show how to integrate 2 very lightweight mechanisms for global temporal-only attention which provide additional accuracy improvements at minimal computational cost. We demonstrate that our model produces very high recognition accuracy on the most popular video recognition datasets while at the same time being significantly more efficient than other Video Transformer models. Code will be made available. Recent work by [3, 1] has focused on reducing the cost O(T 2 S 2 ) of the full space-time attention of Eq. 4. Bertasius et al. [3] proposed the factorised attention:
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 36 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- ViViT: A Video Vision Transformer 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- ViViT: A Video Vision Transformer 引用了 Is Space-Time Attention All You Need for Video Understanding?
- ViViT: A Video Vision Transformer 引用了 Training data-efficient image transformers & distillation through attention
- ViViT: A Video Vision Transformer 引用了 SlowFast Networks for Video Recognition
- Open-VCLIP: Transforming CLIP to an Open-vocabulary Video Model via Interpolated Weight Optimization 引用了 ViViT: A Video Vision Transformer
- Open-VCLIP: Transforming CLIP to an Open-vocabulary Video Model via Interpolated Weight Optimization 引用了 Is Space-Time Attention All You Need for Video Understanding?
- Cross-Modal Learning with 3D Deformable Attention for Action Recognition 引用了 ViViT: A Video Vision Transformer
- Cross-Modal Learning with 3D Deformable Attention for Action Recognition 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Cross-Modal Learning with 3D Deformable Attention for Action Recognition 引用了 Training data-efficient image transformers & distillation through attention
- Cross-Modal Learning with 3D Deformable Attention for Action Recognition 引用了 SlowFast Networks for Video Recognition
- UniFormerV2: Unlocking the Potential of Image ViTs for Video Understanding 引用了 ViViT: A Video Vision Transformer
- UniFormerV2: Unlocking the Potential of Image ViTs for Video Understanding 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- UniFormerV2: Unlocking the Potential of Image ViTs for Video Understanding 引用了 Is Space-Time Attention All You Need for Video Understanding?
- UniFormerV2: Unlocking the Potential of Image ViTs for Video Understanding 引用了 SlowFast Networks for Video Recognition
- Is Space-Time Attention All You Need for Video Understanding? 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Is Space-Time Attention All You Need for Video Understanding? 引用了 SlowFast Networks for Video Recognition
- Training data-efficient image transformers & distillation through attention 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- PhysFormer: Facial Video-based Physiological Measurement with Temporal Difference Transformer 引用了 ViViT: A Video Vision Transformer
- PhysFormer: Facial Video-based Physiological Measurement with Temporal Difference Transformer 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- PhysFormer: Facial Video-based Physiological Measurement with Temporal Difference Transformer 引用了 Is Space-Time Attention All You Need for Video Understanding?
- PhysFormer: Facial Video-based Physiological Measurement with Temporal Difference Transformer 引用了 Training data-efficient image transformers & distillation through attention
引用它的顶会 Paper36
- PhysFormer: Facial Video-based Physiological Measurement with Temporal Difference TransformerZitong Yu, Yuming Shen, Jingang Shi, Hengshuang Zhao 等CVPR 2022 · 255 次引用
- UniFormerV2: Unlocking the Potential of Image ViTs for Video UnderstandingKunchang Li, Yali Wang, Yinan He, Yizhuo Li 等ICCV 2023 · 85 次引用
- MASTER: Market-Guided Stock Transformer for Stock Price ForecastingTong Li, Zhaoyang Liu, Yanyan Shen, Xue Wang 等AAAI 2024 · 80 次引用
- Open-VCLIP: Transforming CLIP to an Open-vocabulary Video Model via Interpolated Weight OptimizationZejia Weng, Xitong Yang, Ang Li, Zuxuan Wu 等ICML 2023 · 67 次引用
- Cross-Modal Learning with 3D Deformable Attention for Action RecognitionSangwon Kim, Dasom Ahn, ByoungChul KoICCV 2023 · 49 次引用
它引用的 Paper15
- An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn 等ICLR 2021 · 21,477 次引用
- Training data-efficient image transformers & distillation through attentionHugo Touvron, Matthieu Cord, Matthijs Douze, Francisco Massa 等ICML 2021 · 8,974 次引用
- SlowFast Networks for Video RecognitionChristoph Feichtenhofer, Haoqi Fan, Jitendra Malik, Kaiming HeICCV 2019 · 4,104 次引用
- ViViT: A Video Vision TransformerAnurag Arnab, Mostafa Dehghani, Georg Heigold, Chen Sun 等ICCV 2021 · 2,947 次引用
- Is Space-Time Attention All You Need for Video Understanding?Gedas Bertasius, Heng Wang, Lorenzo TorresaniICML 2021 · 2,927 次引用
相关 Paper
- Video Frame Interpolation TransformerZhihao Shi, Xiangyu Xu, Xiaohong Liu, Jun Chen 等CVPR 2022 · 117 次引用
- Long-term Leap Attention, Short-term Periodic Shift for Video ClassificationHao Zhang, Lechao Cheng, Yanbin Hao, Chong-Wah NgoACM MM 2022 · 12 次引用
- Video-FocalNets: Spatio-Temporal Focal Modulation for Video Action RecognitionSyed Talal Wasim, Muhammad Uzair Khattak, Muzammal Naseer, Salman Khan 等ICCV 2023 · 39 次引用
- Video Swin TransformerZe Liu, Jia Ning, Yue Cao, Yixuan Wei 等CVPR 2022 · 1,847 次引用
- AIM: Adapting Image Models for Efficient Video Action RecognitionTaojiannan Yang, Yi Zhu, Yusheng Xie, Aston Zhang 等ICLR 2023 · 62 次引用
