Abstract
Video-text retrieval is a critical task for modern search and social media platforms. This paper presents CLIP4Clip, an empirical study on transferring the visual-linguistic knowledge of the CLIP model from static images to dynamic video. By fine-tuning CLIP end-to-end and exploring various temporal modeling strategies, we demonstrate significant performance gains. Our approach achieves new state-of-the-art results across five major benchmarks, including MSR-VTT, MSVD, LSMDC, ActivityNet, and DiDeMo. We specifically investigate similarity calculation methods and the impact of 3D patch projections, finding that simpler temporal aggregation often outperforms complex modeling on smaller datasets, while post-pretraining on large-scale video data is crucial for performance.
Introduction
Video-text retrieval—the task of finding a specific video clip based on a natural language query—is a cornerstone of modern digital interaction. Historically, research in this field has been divided into two paradigms: feature-level (offline) extraction and pixel-level (end-to-end) training. While offline methods are computationally efficient, they often fail to capture video-specific visual nuances. Conversely, end-to-end methods are more powerful but require massive datasets and significant computational resources to learn broad visual concepts from scratch.
CLIP4Clip bridges this gap by leveraging CLIP, a model pre-trained on 400 million image-text pairs. The primary challenge addressed is adapting a model designed for static images to handle the temporal dimension of video without degrading its existing "common sense" visual knowledge.
Methodology
CLIP4Clip utilizes the CLIP (specifically the ViT-B/32 version) as its backbone. The core of the architecture is the Similarity Calculator, which aggregates information across video frames. The authors propose three distinct types of calculators:
- Parameter-free (Mean Pooling): A simple average of all frame features, adding no new parameters and relying entirely on CLIP’s pre-trained knowledge.
- Sequential (LSTM/Transformer): A sequence model that captures temporal changes, requiring new parameters to be learned during fine-tuning.
- Tight (Transformer Interaction): A complex approach where text tokens and video tokens are concatenated and processed jointly, allowing for deep interaction between words and visual patches.
Additionally, the study explores 3D Linear Projection, which attempts to process patches across the temporal dimension simultaneously rather than treating frames as independent entities.
Experimental Setup
The model was evaluated on five diverse benchmarks: MSR-VTT, MSVD, LSMDC, ActivityNet, and DiDeMo. To enhance performance, the authors also utilized a "post-pretraining" phase on a 380,000-video subset of the HowTo100M dataset before task-specific fine-tuning.
Results and Discussion
CLIP4Clip achieved state-of-the-art results across all tested benchmarks. On MSR-VTT, it reached a Recall@1 (R@1) of 44.5%, a significant improvement over previous benchmarks. On MSVD, it achieved an R@1 of 46.2%.
Several key insights emerged from the empirical study:
- Temporal Modeling vs. Scale: On smaller datasets, the parameter-free Mean Pooling often outperformed more complex sequential models. Adding parameters to a pre-trained model with insufficient data can lead to overfitting or "breaking" the original features. However, on larger datasets like LSMDC, sequential Transformers proved superior.
- The 3D Projection Challenge: Surprisingly, 3D linear projection (illustrated below) performed worse than standard 2D frame processing. This is likely due to the "discrepant initialization" problem; since CLIP was pre-trained in 2D, forcing it into a 3D structure creates a gap that is difficult to bridge during fine-tuning.
- Zero-Shot Capability: The model demonstrated strong zero-shot performance, finding relevant videos for unseen text by leveraging its foundational image-text knowledge.
Conclusion
CLIP4Clip demonstrates that end-to-end fine-tuning of large-scale pre-trained image-text models is a highly effective strategy for video retrieval. While temporal modeling is beneficial at scale, the choice of similarity calculator must be balanced against the size of the target dataset. Future work may focus on better initialization techniques for 3D networks and expanding post-pretraining to more diverse video categories to mitigate current computational and categorical biases.
Summary updated