Abstract
Self-supervised video-language model (VLM) pretraining often relies on masking and reconstruction. However, standard masking strategies frequently fail to capture the dynamic nature of video, leading to a "masking mismatch" where models prioritize static features over temporal ones. We present Spatio-Temporal Masking (STM), a novel pretraining strategy that identifies and masks regions of high spatial importance and temporal dynamics. By incorporating a text-guided decoder to aid reconstruction, STM achieves state-of-the-art performance on video retrieval and QA tasks with significantly higher data efficiency than existing methods.
Introduction
The efficacy of Masked Visual Modeling (MVM) in video-language pretraining is well-documented. Yet, a persistent challenge remains: standard masking techniques (e.g., random or block-wise) often result in models learning to interpolate static pixels rather than understanding motion. Previous research has even suggested that reconstructing image-level features can outperform video-level ones, highlighting a fundamental mismatch between masking strategies and the spatio-temporal nature of video. This paper introduces the STM framework to bridge this gap by aligning masking targets with video dynamics.
The Spatio-Temporal Masking Framework
The STM framework introduces two primary innovations: a Spatio-Temporal Masking Strategy and a Text-Guided Spatio-Temporal Decoder.
The masking strategy prioritizes patches based on a "contribution score" derived from spatial and temporal cues. Spatial importance is determined via attention maps from a teacher model, while temporal importance is calculated by a lightweight Predictor network that identifies regions of significant change between adjacent frames. High-scoring patches are masked, forcing the encoder to infer complex dynamics from sparse information.
To facilitate the reconstruction of these complex features, the authors employ a text-guided decoder. By leveraging linguistic descriptions (e.g., "a girl cooks"), the decoder uses semantic context as a "hint" to synthesize missing visual tokens, effectively bridging the gap between visual and linguistic modalities during the reconstruction process.
Results and Visual Analysis
The STM approach was evaluated across multiple benchmarks, including MSRVTT, DiDeMo, and TGIF. Despite being trained on a relatively modest dataset of 5.5 million pairs (WebVid-2M and CC3M), STM outperformed much larger models. For instance, in zero-shot retrieval on MSRVTT, STM achieved a 29.8% Recall@1, surpassing models like VIOLETv2 despite their larger training scales.
Ablation studies confirmed that both the temporal component of masking and the text-guidance in the decoder are critical for success. As shown in the visualization, STM progressively focuses on the most dynamic and semantically relevant parts of the video frames as training proceeds, ensuring the model learns robust spatio-temporal representations rather than trivial spatial cues.
Conclusion
The Spatio-Temporal Masking framework demonstrates that intelligent, motion-aware masking is superior to random strategies for video-language pretraining. By ensuring consistency between masking targets and video dynamics, and by leveraging linguistic cues for visual reconstruction, STM provides a highly efficient and effective path toward robust video understanding, matching or exceeding the performance of models trained on significantly larger datasets.
Summary updated