Abstract
Adapting pre-trained image-text models like CLIP for Text-Video Retrieval (TVR) typically requires full fine-tuning, which is computationally intensive and risks overfitting. This paper introduces RAP (Sparse-and-Correlated Adapter), a parameter-efficient fine-tuning (PEFT) approach designed specifically for the unique characteristics of video data: temporal redundancy and cross-frame correlation. By training less than 1% of the total model parameters, RAP achieves state-of-the-art performance, outperforming full fine-tuning on major benchmarks.
Introduction
Text-Video Retrieval (TVR) is the task of identifying relevant video clips based on natural language queries. While models like CLIP provide a strong foundation for visual-linguistic understanding, they are inherently static. Extending them to video requires modeling temporal dynamics. Traditional methods involve updating all parameters (full fine-tuning), which is inefficient and slow. Existing PEFT methods like LoRA, while effective for images, often ignore the inherent temporal sparsity and correlation present in video sequences.
Methodology: The RAP Framework
RAP introduces lightweight adapter layers into a frozen CLIP backbone, focusing on two key temporal aspects of video data.
Low-Rank Modulation (LoRM) for Temporal Sparsity
Video sequences are often highly redundant, with many frames containing similar information. LoRM addresses this temporal sparsity by applying a low-rank matrix decomposition to frame features. This mathematical filter encourages the model to ignore redundant data and focus on the most informative frames.
Asynchronous Self-Attention (ASA) for Temporal Correlation
To capture how objects and actions evolve over time (temporal correlation), RAP utilizes Asynchronous Self-Attention (ASA). Unlike standard attention mechanisms that process all patches equally, ASA uses the text query as a guide to select the "top-K" most relevant visual patches. These patches are then "warped" across time using learnable spatial and temporal offsets, allowing the model to track relevant entities efficiently without the overhead of 3D convolutions.
Experimental Results
The effectiveness of RAP was evaluated on four benchmark datasets: MSR-VTT, MSVD, ActivityNet Captions, and DiDeMo.
Performance and Efficiency
On the MSR-VTT dataset, RAP achieved a Recall@1 (R@1) of 44.8%, surpassing the fully fine-tuned CLIP4Clip (42.6%). Remarkably, RAP achieved this while training only 1.06M parameters, compared to the 151.3M parameters required for full fine-tuning—a 150x reduction in trainable parameters. A "RAP_light" version, which only modifies the last four layers, also outperformed full fine-tuning while significantly reducing the GPU memory footprint.
Comparison with PEFT Baselines
RAP consistently outperformed other parameter-efficient methods, including LoRA, SSF, and ST-Adapter, across all tested benchmarks. This demonstrates that specialized temporal modeling is superior to general-purpose adaptation techniques for video tasks.
Discussion and Limitations
RAP's success highlights that temporal redundancy is not just a challenge but an opportunity for regularization. By enforcing sparsity, the model becomes more robust and less prone to overfitting on small video datasets.
However, the method has limitations. The text-guided patch selection relies on the quality of the initial cross-modal alignment; abstract queries may lead the model to filter out the wrong patches. Furthermore, while tested on ViT-B backbones, future work is needed to validate RAP's scalability to larger architectures like ViT-L or ViT-H.
Conclusion
RAP provides a highly efficient and effective framework for adapting image-text models to video retrieval. By explicitly modeling temporal sparsity and correlation through LoRM and ASA, it achieves superior performance with a fraction of the computational cost of traditional fine-tuning.
Summary updated