baseline performs the worst, and has a larger accuracy drop
Table 4: The effect of progressively adding regularisation (each
row includes all methods above it) on Top-1 action accuracy on
Epic Kitchens. We use a Factorised encoder model with tubelet
size162.
Top-1 accuracy
Random crop, ﬂip, colour jitter 38.4
+ Kinetics 400 initialisation 39.6
+ Stochastic depth [31] 40.2
+ Random augment [12] 41.1
+ Label smoothing [61] 43.1
+ Mixup [82] 43.7
16x8 16x4 16x2
Input tubelet size787980Top-1 Accuracy
16x8 16x4 16x2
Input tubelet size0.51.01.5TFLOPs
ViViT-B ViViT-L
(a) Accuracy (b) Compute
Figure 7: The effect of the backbone architecture on (a) accuracy
and (b) computation on Kinetics 400, for the spatio-temporal attention model (Model 1).
16x8 16x4 16x2
Input tubelet size72.575.077.580.0Top-1 Accuracy
16x8 16x4 16x2
Input tubelet size0.20.4TFLOPs
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