Efficient Attention-free Video Shift Transformers

Adrian Bulat, Brais Martínez, Georgios TzimiropoulosarXiv 2022 · DOI

Abstract

Video recognition models typically suffer from high computational complexity due to the addition of a temporal dimension. While Transformers using Multi-Head Self-Attention (MHSA) are effective, they are resource-intensive. This paper introduces VAST, the first purely attention-free, shift-based video transformer. By replacing MHSA with a novel Affine-Shift block, VAST achieves state-of-the-art accuracy while requiring 3–4× fewer FLOPs than standard video transformers.

Introduction

The computational burden of video recognition is a significant hurdle for real-world applications. Standard approaches often extend image models by adding temporal processing, which increases complexity by a factor proportional to the number of frames. While attention-free models using MLPs or shift operators have shown promise in the image domain, their adaptation to video has been limited. VAST addresses this gap by demonstrating that high-performing video transformers can be built without any attention layers, focusing on efficiency in the low-complexity regime.

Methodology: The Affine-Shift Block

The core innovation of VAST is the Affine-Shift block, designed to approximate the representational power of a standard Transformer layer without the quadratic cost of self-attention.

The Affine-Shift block replaces Multi-Head Self-Attention with a combination of channel shifting, dynamic rescaling, and bias correction.

The block consists of three primary components:

  1. The Shift Operator: A fraction of channels are shifted in spatial (Up, Down, Left, Right) and temporal (Forward, Backward) directions. This enables zero-parameter, zero-FLOP token mixing between adjacent features.
  2. Channel-wise Rescaling: To mimic the dynamic weighting of attention, a small MLP-based module scales features based on the input context.
  3. Bias Correction: A depthwise convolution (DWConv) is utilized to provide a learned spatial and temporal bias, further refining the feature representation.

The VAST architecture follows a hierarchical, pyramidal structure, stacking these blocks to process video data across multiple scales.

Experimental Results

VAST was evaluated on several benchmarks, including Kinetics-400, Kinetics-600, Something-Something-v2 (SSv2), and Epic Kitchens-100.

Accuracy vs. GFLOPs on Something-Something-v2. VAST achieves superior performance with significantly lower computational cost compared to state-of-the-art video transformers.

Efficiency and Performance

The primary advantage of VAST is its efficiency. On the SSv2 dataset, the VAST-Ti variant achieved 67.8% top-1 accuracy, outperforming the lightest MViT models by 2% while utilizing only half the GFLOPs. As shown in the accuracy-vs-complexity trade-off, VAST consistently maintains a higher performance ceiling at lower computational budgets compared to heavyweights like Swin-B and TimeSformer.

Ablation Studies

Ablation experiments highlighted the importance of the "Affine" components. Simply shifting channels (without scaling or bias) resulted in significantly lower performance. Adding dynamic scaling and bias provided a critical ~2.4% accuracy boost, bridging the gap between simple shift models and state-of-the-art Transformers.

Conclusion

VAST proves that Multi-Head Self-Attention is not strictly necessary for high-performance video recognition. By leveraging simple shifts augmented with dynamic rescaling and bias, VAST provides a highly efficient alternative for resource-constrained environments. Future work may explore scaling these attention-free architectures to even larger parameter regimes and extending them to tasks like video object detection and segmentation.

Summary updated

BibTeX
@misc{bulat2022efficient,
  author = {Adrian Bulat and Brais Martínez and Georgios Tzimiropoulos},
  title = {{Efficient Attention-free Video Shift Transformers}},
  year = {2022},
  eprint = {2208.11108},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2208.11108},
}
Figure