Optimizing ViViT Training: Time and Memory Reduction for Action Recognition
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
- 2017Attention Is All You Needcited by 59,932
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
- 2015Distilling the Knowledge in a Neural Networkcited by 10,076
- 2020End-to-End Object Detection with Transformerscited by 7,384
- 2015Rethinking the Inception Architecture for Computer Visioncited by 5,451
- 2017mixup: Beyond Empirical Risk Minimizationcited by 5,155
- 2017Quo Vadis, Action Recognition? A New Model and the Kinetics Datasetcited by 3,259
- 2019RandAugment: Practical automated data augmentation with a reduced search spacecited by 2,261
- 2021ViViT: A Video Vision Transformercited by 1,610
- 2021Is Space-Time Attention All You Need for Video Understanding?cited by 1,609
- 2022VideoMAE: Masked Autoencoders are Data-Efficient Learners for Self-Supervised Video Pre-Trainingcited by 1,305
- 2017The "something something" video database for learning and evaluating visual common sensecited by 1,092
27 more
- 2021Video Swin Transformercited by 1,090
- 2014Two-Stream Convolutional Networks for Action Recognition in Videoscited by 1,067
- 2016Deep Networks with Stochastic Depthcited by 973
- 2016Temporal Segment Networks: Towards Good Practices for Deep Action Recognitioncited by 899
- 2021Multiscale Vision Transformerscited by 896
- 2018TSM: Temporal Shift Module for Efficient Video Understandingcited by 852
- 2018Scaling Egocentric Vision: The EPIC-KITCHENS Datasetcited by 789
- 2019VideoBERT: A Joint Model for Video and Language Representation Learningcited by 702
- 2021ImageNet-21K Pretraining for the Massescited by 607
- 2022GIT: A Generative Image-to-text Transformer for Vision and Languagecited by 536
- 2018A Short Note about Kinetics-600cited by 331
- 2023Vid2Seq: Large-Scale Pretraining of a Visual Language Model for Dense Video Captioningcited by 263
- 2018Moments in Time Dataset: one million videos for event understandingcited by 215
- 2022ST-Adapter: Parameter-Efficient Image-to-Video Transfer Learningcited by 192
- 2022UniFormer: Unified Transformer for Efficient Spatiotemporal Representation Learningcited by 182
- 2022Multiview Transformers for Video Recognitioncited by 148
- 2019Something-Else: Compositional Action Recognition with Spatial-Temporal Interaction Networkscited by 112
- 2021The Efficiency Misnomercited by 98
- 2020SMART Frame Selection for Action Recognitioncited by 73
- 2021Token Shift Transformer for Video Classificationcited by 61
- 2021Efficient Video Transformers with Spatial-Temporal Token Selectioncited by 58
- 2021SCENIC: A JAX Library for Computer Vision Research and Beyondcited by 56
- 2022Rethinking Video ViTs: Sparse Video Tubes for Joint Image and Video Learningcited by 49
- 2021MM-ViT: Multi-Modal Video Transformer for Compressed Video Action Recognitioncited by 44
- 2022Learn2Augment: Learning to Composite Videos for Data Augmentation in Action Recognitioncited by 27
- 2023End-to-End Spatio-Temporal Action Localisation with Video Transformerscited by 20
- 2022M&M Mix: A Multimodal Multiview Transformer Ensemblecited by 19
Built on by
Citing papers per year: 2023: 2; 2024: 2.
4 papers.
- 2023Watt For What: Rethinking Deep Learning's Energy-Performance Relationshipcited by 16
- 2024CC-SAM: SAM with Cross-feature Attention and Context for Ultrasound Image Segmentationcited by 11
- 2023Telling Stories for Common Sense Zero-Shot Action Recognitioncited by 4
- 2024FE-Adapter: Adapting Image-based Emotion Classifiers to Videoscited by 4
- 2024FE-Adapter: Adapting Image-based Emotion Classifiers to Videos5 Aug 2024
- 2024CC-SAM: SAM with Cross-feature Attention and Context for Ultrasound Image Segmentation31 Jul 2024
- 2023Watt For What: Rethinking Deep Learning's Energy-Performance Relationship10 Oct 2023
- 2023Telling Stories for Common Sense Zero-Shot Action Recognition29 Sep 2023