SMAUG: Sparse Masked Autoencoder for Efficient Video-Language Pre-training

Yuanze Lin, Chen Wei, Huiyu Wang, Alan L. Yuille, Cihang Xie · DOI

Abstract

Video-language pre-training is crucial for learning powerful multi-modal representation. However, it typically requires a massive amount of computation. In this paper, we develop SMAUG, an efficient pre-training framework for video-language models. The foundation component in SMAUG is masked autoencoders. Different from prior works which only mask textual inputs, our masking strategy considers both visual and textual modalities, providing a better cross-modal alignment and saving more pre-training costs. On top of that, we introduce a space-time token sparsification module, which leverages context information to further select only "important" spatial regions and temporal frames for pre-training. Coupling all these designs allows our method to enjoy both competitive performances on text-to-video retrieval and video question answering tasks, and much less pre-training costs by 1.9× or more. For example, our SMAUG only needs ~50 NVIDIA A6000 GPU hours for pre-training to attain competitive performances on these two video-language tasks across six popular benchmarks.

Introduction

Video-language pre-training (VLP) is essential for tasks such as text-to-video retrieval and video question answering. However, the computational cost of VLP is often prohibitive due to the inherent redundancy in video data. Videos consist of sequences of frames with high temporal and spatial overlap, much of which is irrelevant to the associated textual descriptions. Standard models often process these redundant pixels, leading to significant inefficiencies.

Overview of the SMAUG framework for video-language pre-training.

SMAUG (Sparse Masked Autoencoder for video-langUaGe pre-training) addresses this by introducing a highly efficient framework that prunes redundant information at multiple levels. By combining masked autoencoding with intelligent sparsification, SMAUG achieves state-of-the-art performance while reducing pre-training costs by approximately 1.9×.

Methodology

The SMAUG framework is built upon the Masked Autoencoder (MAE) architecture and incorporates three primary innovations to enhance efficiency and cross-modal alignment.

Detailed architecture of SMAUG, illustrating the multi-modal encoder, token sparsification, and text-guided frame selection.

Dual-Modality Masking

Unlike traditional approaches that primarily mask textual tokens, SMAUG employs a dual-modality masking strategy. It masks up to 65% of visual patches and 15% of textual tokens. The model is trained to reconstruct these missing components through Masked Video Modeling (MVM) and Masked Language Modeling (MLM). This process forces the model to learn robust representations and deeper semantic alignments between visual and textual data.

Visual Token Sparsification

To further reduce computation, SMAUG introduces a space-time token sparsification module. Within the Transformer layers, the model identifies "inattentive" tokens (e.g., background patches) based on attention weights. While "attentive" tokens are preserved, unimportant ones are fused into a single representative token. This significantly reduces the workload for subsequent layers without losing critical context.

Text-Guided Frame Selection

Recognizing that not all frames in a video are equally relevant to a given caption, SMAUG utilizes a learnable Transformer-based module for frame selection. This module uses the textual features to score and select the most informative frames. For instance, if a caption describes a specific action, the model prioritizes frames where that action is most prominent, avoiding the processing of irrelevant segments.

Experimental Setup

The researchers evaluated SMAUG using two primary pre-training corpora:

  • 5M Corpus: Comprising WebVid-2.5M and CC3M.
  • 17M Corpus: Expanding the 5M set with CC12M, SBU Captions, Visual Genome, and COCO.

Performance was benchmarked across six datasets, including MSRVTT, DiDeMo, and ActivityNet Captions for retrieval, and MSRVTT-QA/MC and ActivityNet-QA for video question answering.

Results and Discussion

SMAUG demonstrates that computational efficiency can be achieved without compromising accuracy.

  • Efficiency Gains: SMAUG achieves a 1.9× speedup in pre-training costs. It requires only ~50 NVIDIA A6000 GPU hours to reach competitive performance on the 5M dataset.
  • State-of-the-Art Performance: On the MSRVTT retrieval task, SMAUG (17M) achieved a Recall@1 (R@1) of 44.0, surpassing the "Singularity" model (41.5 R@1) despite using significantly fewer resources.
  • Robustness: The model exhibits strong zero-shot capabilities, indicating that the pre-trained representations are highly generalizable.

The "less is more" philosophy is validated: masking a large portion of the video encourages the model to reason about missing information, leading to superior feature learning.

Conclusion and Future Work

SMAUG represents a significant advancement in making video-language pre-training more accessible. Future research may explore alternative reconstruction targets, such as high-level semantic features or depth maps, to further enhance spatial understanding. Additionally, scaling these sparsification techniques to larger architectures like ViT-Huge remains a promising avenue for future exploration.

Summary updated

BibTeX
@misc{lin2022smaug,
  author = {Yuanze Lin and Chen Wei and Huiyu Wang and Alan L. Yuille and Cihang Xie},
  title = {{SMAUG: Sparse Masked Autoencoder for Efficient Video-Language Pre-training}},
  year = {2022},
  eprint = {2211.11446},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2211.11446},
}
Figure