[Paper Review] VLM: Task-agnostic Video-Language Model Pre-training for Video Understanding
This paper proposes VLM, a task-agnostic video-language pre-training framework that uses a single BERT-style encoder to jointly process video and text inputs. By introducing masked modality modeling (MMM) and a unified masked token loss, VLM enables effective cross-modal fusion while maintaining unimodal capability, achieving state-of-the-art performance on retrieval and captioning tasks with significantly fewer parameters than prior methods.
We present a simplified, task-agnostic multi-modal pre-training approach that can accept either video or text input, or both for a variety of end tasks. Existing pre-training are task-specific by adopting either a single cross-modal encoder that requires both modalities, limiting their use for retrieval-style end tasks or more complex multitask learning with two unimodal encoders, limiting early cross-modal fusion. We instead introduce new pretraining masking schemes that better mix across modalities (e.g. by forcing masks for text to predict the closest video embeddings) while also maintaining separability (e.g. unimodal predictions are sometimes required, without using all the input). Experimental results show strong performance across a wider range of tasks than any previous methods, often outperforming task-specific pre-training. Code is made available at https://github.com/pytorch/fairseq/tree/main/examples/MMPT.
Motivation & Objective
- To develop a unified, task-agnostic pre-training framework for video-language understanding that supports diverse downstream tasks without task-specific architectures.
- To overcome limitations of existing methods that rely on either single cross-modal encoders (limiting unimodal use) or multiple unimodal encoders (requiring complex multitask training).
- To improve cross-modal fusion during pre-training by introducing new masking schemes that force inter-modal dependency while preserving separability for unimodal inputs.
- To demonstrate that a single, lightweight encoder can outperform larger, task-specific models on retrieval and captioning benchmarks.
Proposed method
- Introduces a masked modality model (MMM) that randomly masks an entire modality (text or video) in a portion of training examples, forcing the model to reconstruct the masked modality using the other.
- Employs a unified masked token loss that uses joint embeddings from both modalities to predict masked tokens, replacing separate losses for video and text.
- Uses a single BERT-based transformer encoder to process concatenated video and text tokens in a shared latent space, enabling end-to-end joint representation learning.
- Applies task-specific attention masks during fine-tuning to adapt the same pre-trained encoder to retrieval, captioning, and other tasks.
- Pre-trains on large-scale video-text pairs using joint masking strategies that alternate between MFM-MLM and MMM regimes.
- Maintains model separability by allowing unimodal predictions even when both modalities are present, ensuring compatibility with retrieval and generation tasks.
Experimental results
Research questions
- RQ1Can a single, unified video-language model be pre-trained in a task-agnostic manner to support diverse downstream tasks like retrieval and captioning?
- RQ2How can cross-modal fusion be effectively learned during pre-training without sacrificing unimodal capabilities or requiring complex multitask objectives?
- RQ3Does masking an entire modality (MMM) improve joint representation learning compared to standard masked frame and masked language modeling?
- RQ4Can a unified masked token loss outperform separate losses for video and text in learning joint representations?
- RQ5Does a smaller, unified encoder achieve better performance than larger, task-specific models on video understanding benchmarks?
Key findings
- VLM outperforms task-specific pre-training baselines by over 2% on text-based video retrieval (R@1: 27.05 on YouCook2) and by 1% on video captioning (CIDEr: 1.3869), despite using a smaller model.
- The ablation study shows that removing MMM (i.e., using only MFM-MLM) reduces R@1 to 15.12, indicating that MMM is critical for effective cross-modal learning.
- Using a unified masked token loss improves performance over separate MFM-MLM losses, with R@1 increasing from 26.93 to 27.05 when the unified loss is applied.
- The model maintains strong performance even when fine-tuned on longer clips (minimum 16 text tokens), though performance slightly degrades, suggesting pre-training on shorter clips may be more effective.
- Visualization reveals that attention heads learn meaningful cross-modal alignments, such as word-level co-reference (e.g., 'soy' linked to video frames of pouring soy sauce), indicating effective cross-modal reasoning.
- The model achieves competitive results with significantly fewer parameters than prior methods, demonstrating improved parameter efficiency and feature sharing across modalities.
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.