Abstract
Adapting Contrastive Language-Image Pre-training (CLIP) to the video domain is challenging due to the high volume of redundant information and static background noise. We present FDA-CLIP (Frame-Difference Alpha-CLIP), a lightweight framework that enhances text-video retrieval by focusing on dynamic regions. By generating binary masks from simple frame differences and feeding them into an Alpha-CLIP encoder, the model prioritizes semantically critical actions over static backgrounds. FDA-CLIP achieves state-of-the-art performance on MSVD and MSR-VTT benchmarks using simple average pooling for temporal aggregation, demonstrating that high-quality spatial encoding can outperform complex temporal modeling.
Introduction
The success of CLIP in image-text understanding has spurred numerous attempts to adapt it for video tasks. However, videos often contain significant redundancy; while the background remains static, the core semantic action is typically confined to a small, moving region. Standard adaptation methods often apply complex temporal transformers after visual feature extraction. If the initial encoding is "polluted" by irrelevant background features, subsequent fusion modules struggle to recover the signal. FDA-CLIP addresses this by guiding the model's attention to moving parts during the encoding stage itself.
Methodology
The FDA-CLIP pipeline consists of three primary components: Frame Difference Extraction, Alpha-CLIP Encoding, and Lightweight Aggregation.
Frame Difference Extraction
To identify motion, the system calculates the pixel-wise absolute difference between adjacent keyframes. This difference map is converted into a binary mask using a threshold ($\tau$). Post-processing steps, including morphological operations (closing/opening), median filtering, and connected component analysis, are applied to remove noise and ensure a clean mask representing the dynamic region.
Alpha-CLIP Encoding
Instead of standard CLIP, the framework utilizes Alpha-CLIP. This variant includes an additional "Alpha" channel that accepts the dynamic region mask as a spatial prior. This proactively forces the model's attention mechanisms to focus on regions where movement occurs, effectively filtering out static background noise at the source.
Lightweight Aggregation
A key finding of this work is that when spatial features are well-focused on dynamic regions, complex temporal modeling becomes less critical. FDA-CLIP employs simple average pooling to aggregate frame-level features into a video-level representation. This representation is then compared against text embeddings using cosine similarity.
Experiments and Results
The model was evaluated on the MSVD and MSR-VTT datasets. FDA-CLIP achieved state-of-the-art results on MSVD, reaching an R@1 of 70.2% for Video $\rightarrow$ Text retrieval (a 1.7% improvement over Prompt Switch) and 48.2% for Text $\rightarrow$ Video retrieval.
Hyperparameter Sensitivity
The performance of the model is sensitive to the threshold $\tau$ used for mask generation. The authors identified $\tau=25$ as the optimal balance; lower values include too much background noise, while higher values may exclude critical motion information.
Discussion
Motion as a Semantic Filter
Frame difference serves as a computationally efficient proxy for human-defined actions. By masking static backgrounds, FDA-CLIP prevents "feature dilution," where background signals overwhelm the action signal. This approach emphasizes that improving the quality of spatial encoding is often more impactful than increasing the complexity of temporal fusion.
Efficiency and Scalability
By avoiding heavy-duty transformers for temporal modeling, FDA-CLIP maintains high retrieval efficiency. However, the current implementation is optimized for short clips. Future work will explore extending this methodology to long-form video sequences and integrating more sophisticated temporal modeling on top of these dynamic region features.
Conclusion
FDA-CLIP demonstrates a simple yet effective strategy for video-text retrieval by leveraging motion-guided spatial priors. By focusing the powerful pre-trained weights of CLIP on dynamic regions, the model achieves superior performance with minimal computational overhead.
Summary updated