transformer-based models for video.
In this paper, we develop pure-transformer architectures
for video classiﬁcation. We propose several variants of our
model, including those that are more efﬁcient by factorising the spatial and temporal dimensions of the input video.
We also show how additional regularisation and pretrained
models can be used to combat the fact that video datasets
are not as large as their image counterparts that ViT was
originally trained on. Furthermore, we outperform the stateof-the-art across ﬁve popular datasets.
3. Video Vision Transformers
We start by summarising the recently proposed Vision
Transformer [18] in Sec. 3.1, and then discuss two approaches for extracting tokens from video in Sec. 3.2. Finally, we develop several transformer-based architectures
for video classiﬁcation in Sec. 3.3 and 3.4.
3.1. Overview of Vision Transformers (ViT)
Vision Transformer (ViT) [18] adapts the transformer
architecture of [68] to process 2D images with minimal
changes. In particular, ViT extracts Nnon-overlapping image patches, xi2Rhw, performs a linear projection and
then rasterises them into 1D tokens zi2Rd. The sequence
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
Anurag Arnab Mostafa Dehghani Georg Heigold Chen Sun Mario Lučić Cordelia Schmid