ViViT: A Video Vision Transformer

Anurag Arnab, Mostafa Dehghani, Georg Heigold, Chen Sun, Mario Lučić +1 more
3/29/2021
cs.CV

Official code: google-research/scenic (3,846 stars, Apache-2.0, JAX, last commit 2026-04-24).

Abstract

We present pure-transformer based models for video classification, drawing upon the recent success of such models in image classification. Our model extracts spatio-temporal tokens from the input video, which are then encoded by a series of transformer layers. In order to handle the long sequences of tokens encountered in video, we propose several, efficient variants of our model which factorise the spatial- and temporal-dimensions of the input. Although transformer-based models are known to only be effective when large training datasets are available, we show how we can effectively regularise the model during training and leverage pretrained image models to be able to train on comparatively small datasets. We conduct thorough ablation studies, and achieve state-of-the-art results on multiple video classification benchmarks including Kinetics 400 and 600, Epic Kitchens, Something-Something v2 and Moments in Time, outperforming prior methods based on deep 3D convolutional networks. To facilitate further research, we release code at https://github.com/google-research/scenic/tree/main/scenic/projects/vivit

View on arXivView PDF

Code Implementations(1)

JAXApache-2.0

Scenic: A Jax Library for Computer Vision Research and Beyond

3,846483Python, Jupyter NotebookJul 12, 20216 months agoApache-2.0
attentioncomputer-visiondeep-learningjaxresearch+2 more

Similar Papers

Cite this paper

@article{arnab2021vivit,
  title  = {ViViT: A Video Vision Transformer},
  author = {Anurag Arnab and Mostafa Dehghani and Georg Heigold and Chen Sun and Mario Lučić and Cordelia Schmid},
  year   = {2021},
  eprint = {2103.15691},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2103.15691}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2103.15691.svg)](https://codeofpaper.com/paper/2103.15691)

Discussion