arXiv(opens in a new tab)Computer ScienceFeb 2021Cited by 11 papers on PaperVantage

Manuscript Offprint

arXiv:2102.05095

Is Space-Time Attention All You Need for Video Understanding?

Gedas Bertasius, Heng Wang, L. Torresani

Abstract

We present a convolution-free approach to video classification built exclusively on self-attention over space and time. Our method, named “TimeSformer,” adapts the standard Transformer architecture to video by enabling spatiotemporal feature learning directly from a sequence of frame-level patches. Our experimental study compares different self-attention schemes and suggests that “divided attention,” where temporal attention and spatial attention are separately applied within each block, leads to the best video classification accuracy among the design choices considered. Despite the radically new design, TimeSformer achieves state-of-the-art results on several action recognition benchmarks, including the best reported accuracy on Kinetics-400 and Kinetics-600. Finally, compared to 3D convolutional networks, our model is faster to train, it can achieve dramatically higher test efficiency (at a small drop in accuracy), and it can also be applied to much longer video clips (over one minute long). Code and models are available at: https://github.com/facebookresearch/TimeSformer.

Keywords:

Transformers, Action Recognition, Video Classification

References (63)

  • Quantifying attention flow in transformers, 2020
  • Layer normalization
  • Attention augmented convolutional networks
  • Classifying, segmenting, and tracking object instances in video with mask propagation
  • Language models are few-shot learners
  • End-to-end object detection with transformers
  • Quo vadis, action recognition?
  • A short note about kinetics-600
  • The best of both worlds: Combining recent advances in neural machine translation
  • Aˆ2-nets: Double attention networks
  • Drop an octave: Reducing spatial redundancy in convolutional neural networks with octave convolution
  • Generating long sequences with sparse transformers
  • On the relationship between self-attention and convolutional layers
  • Transformer-XL: Attentive language models beyond a fixed-length context
  • Imagenet: A large-scale hierarchical image database (opens the publisher in a new tab)
  • BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
  • BERT: Pre-training of deep bidirectional transformers for language understanding
  • An image is worth 16x16 words: Transformers for image recognition at scale
  • Pyslowfast
  • More is less: Learning efficient video representations by big-little network and depthwise temporal aggregation
  • X3d: Expanding architectures for efficient video recognition
  • Slowfast networks for video recognition
  • Actor-transformers for group activity recognition
  • Video action transformer network
  • Accurate, large minibatch sgd: Training imagenet in 1 hour (opens arXiv in a new tab)
  • something something
  • Axial attention in multidimensional transformers
  • Relation networks for object detection
  • Ccnet: Criss-cross attention for semantic segmentation
  • Stm: Spatiotemporal and motion encoding for action recognition
  • Motionsqueeze: Neural motion feature learning for video understanding
  • Multimodal transformer networks for end-to-end video-grounded dialogue systems
  • Hero: Hierarchical encoder for video+ language omni-representation pre-training (opens arXiv in a new tab)
  • Resound: Towards action recognition without representation bias
  • Tea: Temporal excitation and aggregation for action recognition
  • Tsm: Temporal shift module for efficient video understanding
  • HowTo100M: Learning a Text-Video Embedding by Watching Hundred Million Narrated Video Clips
  • Scaling neural machine translation
  • Image transformer
  • Learning spatio-temporal representation with local and global diffusion
  • Improving language understanding by generative pre-training
  • Language models are unsupervised multitask learners
  • Stand-alone self-attention in vision models
  • Only time can tell: Discovering temporal data for temporal modeling
  • Very deep convolutional networks for large-scale image recognition
  • D3d: Distilled 3d networks for video action recognition
  • Videobert: A joint model for video and language representation learning, 2019
  • Going deeper with convolutions
  • RAFT: recurrent all-pairs field transforms for optical flow
  • A closer look at spatiotemporal convolutions for action recognition
  • Video classification with channel-separated convolutional networks
  • Visualizing data using t-SNE
  • u., and Polosukhin, I. Attention is all you need
  • Video modeling with correlation networks
  • Axial-deeplab: Stand-alone axial-attention for panoptic segmentation
  • Non-local neural networks
  • Attentionnas: Spatiotemporal attention cell search for video classification
  • Scaling autoregressive video models
  • Pytorch image models
  • Rethinking spatiotemporal feature learning: Speed-accuracy trade-offs in video classification (opens the publisher in a new tab)
  • Bert representations for video question answering
  • Exploring self-attention for image recognition
  • End-to-end dense video captioning with masked transformer