mlsanityData to 7 Oct 2026

Optimizing ViViT Training: Time and Memory Reduction for Action Recognition

arXiv 2306.04822 ↗First posted 7 Jun 2023cs.CVcited by 4

Not on the map. Why?

Abstract (arXiv)

In this paper, we address the challenges posed by the substantial training time and memory consumption associated with video transformers, focusing on the ViViT (Video Vision Transformer) model, in particular the Factorised Encoder version, as our baseline for action recognition tasks. The factorised encoder variant follows the late-fusion approach that is adopted by many state of the art approaches. Despite standing out for its favorable speed/accuracy tradeoffs among the different variants of ViViT, its considerable training time and memory requirements still pose a significant barrier to entry. Our method is designed to lower this barrier and is based on the idea of freezing the spatial transformer during training. This leads to a low accuracy model if naively done. But we show that by (1) appropriately initializing the temporal transformer (a module responsible for processing temporal information) (2) introducing a compact adapter model connecting frozen spatial representations ((a module that selectively focuses on regions of the input image) to the temporal transformer, we can enjoy the benefits of freezing the spatial transformer without sacrificing accuracy. Through extensive experimentation over 6 benchmarks, we demonstrate that our proposed training strategy significantly reduces training costs (by ~ 50%) and memory consumption while maintaining or slightly improving performance by up to 1.79% compared to the baseline model. Our approach additionally unlocks the capability to utilize larger image transformer models as our spatial transformer and access more frames with the same memory consumption.

Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Builds on 39 of its 47 references that are in the map. First posted on arXiv 7 Jun 2023.

Builds on

39 of 47 references.

References · 39

  1. 2017Attention Is All You Needcited by 59,932
  2. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
  3. 2015Distilling the Knowledge in a Neural Networkcited by 10,076
  4. 2020End-to-End Object Detection with Transformerscited by 7,384
  5. 2015Rethinking the Inception Architecture for Computer Visioncited by 5,451
  6. 2017mixup: Beyond Empirical Risk Minimizationcited by 5,155
  7. 2017Quo Vadis, Action Recognition? A New Model and the Kinetics Datasetcited by 3,259
  8. 2019RandAugment: Practical automated data augmentation with a reduced search spacecited by 2,261
  9. 2021ViViT: A Video Vision Transformercited by 1,610
  10. 2021Is Space-Time Attention All You Need for Video Understanding?cited by 1,609
  11. 2022VideoMAE: Masked Autoencoders are Data-Efficient Learners for Self-Supervised Video Pre-Trainingcited by 1,305
  12. 2017The "something something" video database for learning and evaluating visual common sensecited by 1,092
27 more
  1. 2021Video Swin Transformercited by 1,090
  2. 2014Two-Stream Convolutional Networks for Action Recognition in Videoscited by 1,067
  3. 2016Deep Networks with Stochastic Depthcited by 973
  4. 2016Temporal Segment Networks: Towards Good Practices for Deep Action Recognitioncited by 899
  5. 2021Multiscale Vision Transformerscited by 896
  6. 2018TSM: Temporal Shift Module for Efficient Video Understandingcited by 852
  7. 2018Scaling Egocentric Vision: The EPIC-KITCHENS Datasetcited by 789
  8. 2019VideoBERT: A Joint Model for Video and Language Representation Learningcited by 702
  9. 2021ImageNet-21K Pretraining for the Massescited by 607
  10. 2022GIT: A Generative Image-to-text Transformer for Vision and Languagecited by 536
  11. 2018A Short Note about Kinetics-600cited by 331
  12. 2023Vid2Seq: Large-Scale Pretraining of a Visual Language Model for Dense Video Captioningcited by 263
  13. 2018Moments in Time Dataset: one million videos for event understandingcited by 215
  14. 2022ST-Adapter: Parameter-Efficient Image-to-Video Transfer Learningcited by 192
  15. 2022UniFormer: Unified Transformer for Efficient Spatiotemporal Representation Learningcited by 182
  16. 2022Multiview Transformers for Video Recognitioncited by 148
  17. 2019Something-Else: Compositional Action Recognition with Spatial-Temporal Interaction Networkscited by 112
  18. 2021The Efficiency Misnomercited by 98
  19. 2020SMART Frame Selection for Action Recognitioncited by 73
  20. 2021Token Shift Transformer for Video Classificationcited by 61
  21. 2021Efficient Video Transformers with Spatial-Temporal Token Selectioncited by 58
  22. 2021SCENIC: A JAX Library for Computer Vision Research and Beyondcited by 56
  23. 2022Rethinking Video ViTs: Sparse Video Tubes for Joint Image and Video Learningcited by 49
  24. 2021MM-ViT: Multi-Modal Video Transformer for Compressed Video Action Recognitioncited by 44
  25. 2022Learn2Augment: Learning to Composite Videos for Data Augmentation in Action Recognitioncited by 27
  26. 2023End-to-End Spatio-Temporal Action Localisation with Video Transformerscited by 20
  27. 2022M&M Mix: A Multimodal Multiview Transformer Ensemblecited by 19

Built on by

Cited by year

Citing papers per year: 2023: 2; 2024: 2.

4 papers.