[Paper Review] Masked Contrastive Pre-Training for Efficient Video-Text Retrieval
This paper proposes Masked Contrastive Pre-Training (MAC), an efficient end-to-end video-language pre-training framework that reduces computational cost by masking high ratios of spatial regions in videos and text, then using contrastive learning to align multimodal representations. MAC achieves state-of-the-art performance on video-text retrieval benchmarks with 60% fewer FLOPs and 3× faster pre-training.
We present a simple yet effective end-to-end Video-language Pre-training (VidLP) framework, Masked Contrastive Video-language Pretraining (MAC), for video-text retrieval tasks. Our MAC aims to reduce video representation's spatial and temporal redundancy in the VidLP model by a mask sampling mechanism to improve pre-training efficiency. Comparing conventional temporal sparse sampling, we propose to randomly mask a high ratio of spatial regions and only feed visible regions into the encoder as sparse spatial sampling. Similarly, we adopt the mask sampling technique for text inputs for consistency. Instead of blindly applying the mask-then-prediction paradigm from MAE, we propose a masked-then-alignment paradigm for efficient video-text alignment. The motivation is that video-text retrieval tasks rely on high-level alignment rather than low-level reconstruction, and multimodal alignment with masked modeling encourages the model to learn a robust and general multimodal representation from incomplete and unstable inputs. Coupling these designs enables efficient end-to-end pre-training: reduce FLOPs (60% off), accelerate pre-training (by 3x), and improve performance. Our MAC achieves state-of-the-art results on various video-text retrieval datasets, including MSR-VTT, DiDeMo, and ActivityNet. Our approach is omnivorous to input modalities. With minimal modifications, we achieve competitive results on image-text retrieval tasks.
Motivation & Objective
- To address the high computational cost of end-to-end video-language pre-training caused by processing full-resolution video frames and text.
- To reduce spatial and temporal redundancy in video representations without sacrificing multimodal alignment performance.
- To improve pre-training efficiency by replacing traditional mask-then-predict with a mask-then-alignment paradigm tailored for retrieval.
- To enable robust, generalizable multimodal representations from incomplete and masked inputs through contrastive learning.
- To achieve strong performance on video-text retrieval with minimal architectural modifications and reduced data requirements.
Proposed method
- Introduces a masked-then-alignment paradigm, replacing the standard mask-then-predict approach used in MAE and BERT.
- Applies random spatial masking to video frames at a 60% ratio and text at a 15% ratio, feeding only visible regions into the encoder.
- Uses divided space-time self-attention to enable efficient attention computation and improved spatio-temporal modeling under masking.
- Employs contrastive learning between masked video and text views to align them in a shared embedding space, promoting high-level semantic alignment.
- Performs dual masking on both video and text modalities simultaneously to increase alignment difficulty and improve representation robustness.
- Leverages a simple, plug-and-play design that generalizes to image-text retrieval with no additional data augmentations or multi-scale fusion.
Experimental results
Research questions
- RQ1Can masking high ratios of spatial and temporal regions in videos and text improve pre-training efficiency without degrading retrieval performance?
- RQ2Does a masked-then-alignment contrastive learning approach outperform mask-then-predict in video-text retrieval tasks?
- RQ3How does dual masking of both video and text modalities affect cross-modal alignment and representation quality?
- RQ4What is the optimal masking ratio for video and text in a multimodal retrieval setting, and how does it affect performance and computation?
- RQ5Can a masked contrastive pre-training framework achieve SOTA results with reduced FLOPs and faster training while remaining effective for other multimodal tasks?
Key findings
- MAC reduces FLOPs by 60% and accelerates pre-training by 3× compared to standard end-to-end methods.
- MAC achieves 38.9% R@1 on MSR-VTT, setting a new state-of-the-art performance with less data and a lighter architecture.
- Dual masking of both video and text leads to better performance than single masking, with R@1 increasing from 35.8% to 36.4% on MSR-VTT.
- Random masking with divided space-time attention outperforms tube masking and no masking, achieving 36.4% R@1, 63.8% R@5, and 73.0% R@10 on MSR-VTT.
- The method generalizes well to image-text retrieval, achieving competitive results without strong data augmentations or multi-scale fusion.
- A higher video masking ratio (60%) and lower text masking ratio (15%) are optimal, consistent with information density principles from MAE and BERT.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.