ViViT (Video Vision Transformer) is a video classification model that processes spatio-temporal tokens extracted from a video with the same Transformer as ViT. It uses no convolutions; its main operation is self-attention. It was presented at ICCV 2021 by Arnab, Dehghani, Heigold, Sun, LuΔiΔ, and Schmid of Google Research.
The problem with applying a Transformer to video is the number of tokens. A video yields dozens of times more tokens than an image, and self-attention, which compares every pair, grows quadratically with the number of tokens. In addition, a Transformer lacks the inductive biases of a CNN (looking at nearby pixels, translation equivariance, and so on), so it needs large datasets to perform well. Video datasets, however, are much smaller than image datasets.
ViViT addresses these two problems as follows.
- Number of tokens: It builds four variants (Models 1β4) that factorise spatial and temporal processing in different ways, and compares their accuracy and cost.
- Scarcity of data: It shows how to initialise from ViT weights trained on images, together with a combination of regularisation techniques that curbs overfitting on small datasets.
The main results of the paper are as follows.
- On Kinetics-400, ViViT-L/16x2 (Model 2) pretrained on ImageNet-21K reaches 81.7% top-1, outperforming SlowFast (79.8%), X3D-XXL (80.4%), and the contemporaneous TimeSformer-L (80.7%).
- ViViT-H/14x2, pretrained on the larger JFT dataset, reaches 84.9% on Kinetics-400 and 85.8% on Kinetics-600.
- It set the state of the art at the time on five datasets: Kinetics-400, Kinetics-600, Epic Kitchens-100, Something-Something v2, and Moments in Time.

