transformers into CNNs [75, 7], as well as some attempts to
replace convolutions completely [49, 3, 53]. However, it is
*Equal contribution
†Equal advisingonly very recently with the Vision Transformer (ViT) [18],
that a pure-transformer based architecture has outperformed
its convolutional counterparts in image classiﬁcation. Dosovitskiy et al. [18] closely followed the original transformer
architecture of [68], and noticed that its main beneﬁts
were observed at large scale – as transformers lack some
of the inductive biases of convolutions (such as translational equivariance), they seem to require more data [18]
or stronger regularisation [64].
Inspired by ViT, and the fact that attention-based architectures are an intuitive choice for modelling longrange contextual relationships in video, we develop several transformer-based models for video classiﬁcation. Currently, the most performant models are based on deep 3D
convolutional architectures [8, 20, 21] which were a natural extension of image classiﬁcation CNNs [27, 60]. Recently, these models were augmented by incorporating selfattention into their later layers to better capture long-range
dependencies [75, 23, 79, 1].
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