Cap4Video: What Can Auxiliary Captions Do for Text-Video Retrieval?

Most existing text-video retrieval methods focus on cross-modal matching between the visual content of videos and textual query sentences. However, in real-world scenarios, online videos are often accompanied by relevant text information such as titles, tags, and even subtitles, which can be utilized to match textual queries. This insight has motivated us to propose a novel approach to text-video retrieval, where we directly generate associated captions from videos using zero-shot video captioning with knowledge from web-scale pre-trained models (e.g., CLIP and GPT-2). Given the generated captions, a natural question arises: what benefits do they bring to text-video retrieval? To answer this, we introduce Cap4Video, a new framework that leverages captions in three ways: i) Input data: video-caption pairs can augment the training data. ii) Intermediate feature interaction: we perform cross-modal feature interaction between the video and caption to produce enhanced video representations. iii) Output score: the Query-Caption matching branch can complement the original Query-Video matching branch for text-video retrieval. We conduct comprehensive ablation studies to demonstrate the effectiveness of our approach. Without any post-processing, Cap4Video achieves state-of-the-art performance on four standard text-video retrieval benchmarks: MSR-VTT (51.4%), VATEX (66.6%), MSVD (51.8%), and DiDeMo (52.0%). The code is available at https://github.com/whwu95/Cap4Video .

PDF Abstract CVPR 2023 PDF CVPR 2023 Abstract

Results from the Paper


Task Dataset Model Metric Name Metric Value Global Rank Result Benchmark
Video Retrieval DiDeMo Cap4Video text-to-video R@1 52.0 # 22
text-to-video R@5 79.4 # 13
text-to-video R@10 87.5 # 11
text-to-video Median Rank 1 # 1
text-to-video Mean Rank 10.5 # 1
video-to-text R@1 51.2 # 7
video-to-text R@10 87.4 # 3
video-to-text Median Rank 1 # 1
video-to-text Mean Rank 7.3 # 2
video-to-text R@5 78.5 # 4
Video Retrieval MSR-VTT-1kA Cap4Video text-to-video Mean Rank 12.4 # 11
text-to-video R@1 51.4 # 15
text-to-video R@5 75.7 # 15
text-to-video R@10 83.9 # 19
text-to-video Median Rank 1 # 1
video-to-text R@1 49.0 # 10
video-to-text R@5 75.2 # 9
video-to-text R@10 85.0 # 8
video-to-text Median Rank 2 # 7
video-to-text Mean Rank 8.0 # 8
Video Retrieval MSVD Cap4Video text-to-video R@1 51.8 # 9
text-to-video R@5 80.8 # 8
text-to-video R@10 88.3 # 8
text-to-video Median Rank 1 # 1
text-to-video Mean Rank 8.3 # 3
video-to-text R@1 70.0 # 5
video-to-text R@5 93.2 # 3
video-to-text R@10 96.2 # 4
video-to-text Median Rank 1 # 1
video-to-text Mean Rank 2.4 # 1
Video Retrieval VATEX Cap4Video text-to-video R@1 66.6 # 7
text-to-video R@10 97.0 # 4
video-to-text R@1 80.9 # 4
video-to-text R@10 99.6 # 1
text-to-video R@5 93.1 # 1
text-to-video MedianR 1 # 1
text-to-video MeanR 2.7 # 1

Methods