Lune

NeurIPS2021Top-tier venue

Space-time Mixing Attention for Video Transformer

Adrian Bulat, Juan-Manuel Pérez-Rúa, Swathikiran Sudhakaran, Brais Martínez, Georgios Tzimiropoulos

Abstract

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:

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

36 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • ViViT: A Video Vision Transformer cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • ViViT: A Video Vision Transformer cites Is Space-Time Attention All You Need for Video Understanding?
  • ViViT: A Video Vision Transformer cites Training data-efficient image transformers & distillation through attention
  • ViViT: A Video Vision Transformer cites SlowFast Networks for Video Recognition
  • Open-VCLIP: Transforming CLIP to an Open-vocabulary Video Model via Interpolated Weight Optimization cites ViViT: A Video Vision Transformer
  • Open-VCLIP: Transforming CLIP to an Open-vocabulary Video Model via Interpolated Weight Optimization cites Is Space-Time Attention All You Need for Video Understanding?
  • Cross-Modal Learning with 3D Deformable Attention for Action Recognition cites ViViT: A Video Vision Transformer
  • Cross-Modal Learning with 3D Deformable Attention for Action Recognition cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Cross-Modal Learning with 3D Deformable Attention for Action Recognition cites Training data-efficient image transformers & distillation through attention
  • Cross-Modal Learning with 3D Deformable Attention for Action Recognition cites SlowFast Networks for Video Recognition
  • UniFormerV2: Unlocking the Potential of Image ViTs for Video Understanding cites ViViT: A Video Vision Transformer
  • UniFormerV2: Unlocking the Potential of Image ViTs for Video Understanding cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • UniFormerV2: Unlocking the Potential of Image ViTs for Video Understanding cites Is Space-Time Attention All You Need for Video Understanding?
  • UniFormerV2: Unlocking the Potential of Image ViTs for Video Understanding cites SlowFast Networks for Video Recognition
  • Is Space-Time Attention All You Need for Video Understanding? cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Is Space-Time Attention All You Need for Video Understanding? cites SlowFast Networks for Video Recognition
  • Training data-efficient image transformers & distillation through attention cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • PhysFormer: Facial Video-based Physiological Measurement with Temporal Difference Transformer cites ViViT: A Video Vision Transformer
  • PhysFormer: Facial Video-based Physiological Measurement with Temporal Difference Transformer cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • PhysFormer: Facial Video-based Physiological Measurement with Temporal Difference Transformer cites Is Space-Time Attention All You Need for Video Understanding?
  • PhysFormer: Facial Video-based Physiological Measurement with Temporal Difference Transformer cites Training data-efficient image transformers & distillation through attention
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers36

  1. PhysFormer: Facial Video-based Physiological Measurement with Temporal Difference TransformerZitong Yu, Yuming Shen, Jingang Shi, Hengshuang Zhao et al.CVPR 2022 · 255 citations
  2. UniFormerV2: Unlocking the Potential of Image ViTs for Video UnderstandingKunchang Li, Yali Wang, Yinan He, Yizhuo Li et al.ICCV 2023 · 85 citations
  3. MASTER: Market-Guided Stock Transformer for Stock Price ForecastingTong Li, Zhaoyang Liu, Yanyan Shen, Xue Wang et al.AAAI 2024 · 80 citations
  4. Open-VCLIP: Transforming CLIP to an Open-vocabulary Video Model via Interpolated Weight OptimizationZejia Weng, Xitong Yang, Ang Li, Zuxuan Wu et al.ICML 2023 · 67 citations
  5. Cross-Modal Learning with 3D Deformable Attention for Action RecognitionSangwon Kim, Dasom Ahn, ByoungChul KoICCV 2023 · 49 citations

Builds on15

  1. An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
  2. Training data-efficient image transformers & distillation through attentionHugo Touvron, Matthieu Cord, Matthijs Douze, Francisco Massa et al.ICML 2021 · 8,974 citations
  3. SlowFast Networks for Video RecognitionChristoph Feichtenhofer, Haoqi Fan, Jitendra Malik, Kaiming HeICCV 2019 · 4,104 citations
  4. ViViT: A Video Vision TransformerAnurag Arnab, Mostafa Dehghani, Georg Heigold, Chen Sun et al.ICCV 2021 · 2,947 citations
  5. Is Space-Time Attention All You Need for Video Understanding?Gedas Bertasius, Heng Wang, Lorenzo TorresaniICML 2021 · 2,927 citations

Related papers

  1. Video Frame Interpolation TransformerZhihao Shi, Xiangyu Xu, Xiaohong Liu, Jun Chen et al.CVPR 2022 · 117 citations
  2. Long-term Leap Attention, Short-term Periodic Shift for Video ClassificationHao Zhang, Lechao Cheng, Yanbin Hao, Chong-Wah NgoACM MM 2022 · 12 citations
  3. Video-FocalNets: Spatio-Temporal Focal Modulation for Video Action RecognitionSyed Talal Wasim, Muhammad Uzair Khattak, Muzammal Naseer, Salman Khan et al.ICCV 2023 · 39 citations
  4. Video Swin TransformerZe Liu, Jia Ning, Yue Cao, Yixuan Wei et al.CVPR 2022 · 1,847 citations
  5. AIM: Adapting Image Models for Efficient Video Action RecognitionTaojiannan Yang, Yi Zhu, Yusheng Xie, Aston Zhang et al.ICLR 2023 · 62 citations
Dusk over the sea between two cliffs drawn in fine vertical lines