Skip to main content
QUICK REVIEW

[Paper Review] Side4Video: Spatial-Temporal Side Network for Memory-Efficient Image-to-Video Transfer Learning

Huanjin Yao, Wenhao Wu|arXiv (Cornell University)|Nov 27, 2023
Multimodal Machine Learning ApplicationsComputer Science7 citations
TL;DR

Side4Video introduces a memory-efficient spatial-temporal side network that transfers large frozen image models, such as ViT-E (4.4B parameters), to video understanding tasks without backpropagating through the backbone. By leveraging multi-level features and optimized components like memory-efficient temporal convolution and [CLS] token shift, it reduces memory usage by 75% compared to adapter-based methods and achieves state-of-the-art performance on multiple video benchmarks, including 74.6% accuracy on Something-Something V2 and 68.8% on VATEX.

ABSTRACT

Large pre-trained vision models achieve impressive success in computer vision. However, fully fine-tuning large models for downstream tasks, particularly in video understanding, can be prohibitively computationally expensive. Recent studies turn their focus towards efficient image-to-video transfer learning. Nevertheless, existing efficient fine-tuning methods lack attention to training memory usage and exploration of transferring a larger model to the video domain. In this paper, we present a novel Spatial-Temporal Side Network for memory-efficient fine-tuning large image models to video understanding, named Side4Video. Specifically, we introduce a lightweight spatial-temporal side network attached to the frozen vision model, which avoids the backpropagation through the heavy pre-trained model and utilizes multi-level spatial features from the original image model. Extremely memory-efficient architecture enables our method to reduce 75% memory usage than previous adapter-based methods. In this way, we can transfer a huge ViT-E (4.4B) for video understanding tasks which is 14x larger than ViT-L (304M). Our approach achieves remarkable performance on various video datasets across unimodal and cross-modal tasks (i.e., action recognition and text-video retrieval), especially in Something-Something V1&V2 (67.3% & 74.6%), Kinetics-400 (88.6%), MSR-VTT (52.3%), MSVD (56.1%) and VATEX (68.8%). We release our code at https://github.com/HJYao00/Side4Video.

Motivation & Objective

  • To address the high computational and memory cost of fine-tuning large pre-trained image models for video understanding tasks.
  • To enable efficient transfer of very large vision models, such as ViT-E (4.4B parameters), to video tasks where full fine-tuning is infeasible.
  • To reduce memory usage in parameter-efficient fine-tuning by eliminating backpropagation through the frozen vision transformer backbone.
  • To explore and optimize architectural components that enhance temporal reasoning while minimizing memory footprint.
  • To demonstrate state-of-the-art performance on both unimodal (action recognition) and cross-modal (text-video retrieval) video benchmarks using a large frozen image model.

Proposed method

  • A lightweight spatial-temporal side network is attached to a frozen Vision Transformer (ViT) backbone, receiving multi-level spatial features from the frozen model.
  • The side network uses a divided spatial-temporal module with temporal convolution, spatial self-attention, and feed-forward networks to learn video representations.
  • Memory efficiency is enhanced by removing the [CLS] token in the side network, using memory-efficient temporal convolution, and applying [CLS] token shift for improved temporal modeling.
  • Feature fusion is performed via an interval-based strategy, integrating features from every 2nd layer across the ViT encoder to improve representation learning.
  • The final video representation is obtained using Global Average Pooling (GAP), which achieves the best balance of performance and memory efficiency.
  • Model complexity and memory usage are controlled by adjusting the number of layers (l) and hidden dimension (d) in the side network, with higher d preferred over deeper l under memory constraints.

Experimental results

Research questions

  • RQ1Can a large frozen image model like ViT-E (4.4B parameters) be effectively and efficiently transferred to video understanding tasks without full fine-tuning?
  • RQ2How can backpropagation through the heavy pre-trained ViT backbone be avoided to reduce memory consumption in fine-tuning?
  • RQ3What architectural choices in the side network—such as feature fusion strategy, temporal module type, and representation aggregation—most effectively improve performance while minimizing memory usage?
  • RQ4Does scaling up the image backbone to ViT-E significantly improve performance on video benchmarks compared to smaller models like ViT-L?
  • RQ5Can a side network design that avoids gradient flow through the frozen model still achieve state-of-the-art results on diverse video tasks?

Key findings

  • Side4Video reduces GPU memory usage by 75% compared to adapter-based methods, enabling efficient fine-tuning of large models like ViT-E on video tasks.
  • On Something-Something V2, Side4Video achieves 74.6% top-1 accuracy, surpassing previous methods by 2.2% in accuracy while reducing memory usage by 75%.
  • For text-video retrieval on MSR-VTT, Side4Video achieves 52.3% Recall@1, improving by 1.1% over CLIP4Clip and reducing memory usage by 30%.
  • With ViT-E/14 (14.5× larger than ViT-L/14), Side4Video sets new state-of-the-art results on MSVD (56.1%) and VATEX (68.8%), outperforming prior SOTA by 4.3% and 2.2% respectively.
  • Ablation studies show that interval-based feature fusion (every 2 layers) improves accuracy by 0.7% over top-layer fusion, and GAP-based representation yields the best performance with minimal memory cost.
  • Increasing the hidden dimension (d) of the side network is more effective than increasing depth (l) under equivalent memory constraints, with 4-layer, 320-d model outperforming 12-layer, 128-d model.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.