[Paper Review] VideoCLIP: Contrastive Pre-training for Zero-shot Video-Text Understanding
VideoCLIP proposes a contrastive pre-training method for zero-shot video-text understanding by leveraging temporally overlapping video-text clips and retrieval-augmented negative sampling. It achieves state-of-the-art zero-shot performance on multiple video-text tasks, outperforming both prior zero-shot methods and some fully supervised approaches without using any downstream labels.
We present VideoCLIP, a contrastive approach to pre-train a unified model for zero-shot video and text understanding, without using any labels on downstream tasks. VideoCLIP trains a transformer for video and text by contrasting temporally overlapping positive video-text pairs with hard negatives from nearest neighbor retrieval. Our experiments on a diverse series of downstream tasks, including sequence-level text-video retrieval, VideoQA, token-level action localization, and action segmentation reveal state-of-the-art performance, surpassing prior work, and in some cases even outperforming supervised approaches. Code is made available at https://github.com/pytorch/fairseq/tree/main/examples/MMPT.
Motivation & Objective
- To enable zero-shot transfer to diverse video-text understanding tasks without fine-tuning on downstream labels.
- To improve fine-grained video-text alignment by using loosely temporally overlapping video and text clips instead of strict temporal alignment.
- To enhance negative sampling in contrastive learning by retrieving semantically similar video clusters for harder negatives.
- To evaluate whether a unified video-text model pre-trained on HowTo100M can generalize effectively across sequence-level and token-level tasks.
- To investigate whether contrastive pre-training with improved positive and negative sampling can surpass supervised methods in zero-shot settings.
Proposed method
- Pre-trains a unified Transformer model using a contrastive objective that compares video and text clips with overlapping temporal spans, rather than requiring exact start/end timestamp alignment.
- Uses a retrieval-augmented strategy to form batches with hard negatives by clustering videos based on similarity, improving the difficulty of negative pairs.
- Applies a contrastive loss (e.g., InfoNCE) that encourages positive video-text pairs (with temporal overlap) to be closer in embedding space than negative pairs.
- Employs a dual-stream Transformer encoder with shared or separate encoders for video and text, enabling joint representation learning.
- Uses nearest neighbor retrieval to sample hard negatives from videos similar to the anchor video, increasing the difficulty of the contrastive objective.
- Leverages the HowTo100M dataset for pre-training, using raw video and transcribed captions without manual annotations.
Experimental results
Research questions
- RQ1Can a contrastive pre-training approach with loosely overlapping video-text clips improve zero-shot video-text understanding compared to strict temporal alignment?
- RQ2Does retrieval-augmented negative sampling lead to better generalization in zero-shot video-text tasks than random or intra-video negative sampling?
- RQ3Can a unified video-text model pre-trained on HowTo100M achieve state-of-the-art zero-shot performance across diverse tasks like retrieval, VideoQA, and action localization?
- RQ4To what extent can zero-shot performance match or exceed that of fully supervised models fine-tuned on downstream data?
- RQ5How do design choices such as shared encoders, [CLS] token usage, or retrieval window length affect model performance?
Key findings
- VideoCLIP achieves 22.7% R@1 on text-to-video retrieval in the zero-shot setting on YouCook2, outperforming all prior zero-shot methods and even surpassing some fully supervised models.
- Removing the retrieval-augmented negative sampling drops R@1 to 18.5%, and removing both retrieval and overlapping clips reduces performance to 12.4%, showing a ~50% relative improvement from both components.
- Using MIL-NCE loss with multiple clips as positives yields only 16.1% R@1, significantly worse than VideoCLIP’s 22.7%, indicating that the proposed objective is more effective.
- The model performs competitively on action localization and segmentation tasks, demonstrating strong zero-shot generalization across different granularities of video-text alignment.
- Using a shared video and text Transformer encoder results in only a minor drop in performance (21.9% R@1 vs. 22.7%), suggesting that joint modeling is effective.
- Using the first 32 seconds of a video for retrieval leads to worse performance (20.1% R@1), indicating that full-video representations are more informative than partial ones.
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.