Skip to main content
QUICK REVIEW

[Paper Review] X-CLIP: End-to-End Multi-grained Contrastive Learning for Video-Text Retrieval

Yiwei Ma, Guohai Xu|arXiv (Cornell University)|Jul 15, 2022
Multimodal Machine Learning ApplicationsComputer Science16 citations
TL;DR

X-CLIP proposes an end-to-end multi-grained contrastive learning framework for video-text retrieval, introducing cross-grained contrast between coarse-grained and fine-grained representations to filter out irrelevant frames and words. With the Attention Over Similarity Matrix (AOSM) module for similarity aggregation, it achieves state-of-the-art performance, improving R@1 by +6.3% to +11.1% on five benchmarks including MSR-VTT and LSMDC.

ABSTRACT

Video-text retrieval has been a crucial and fundamental task in multi-modal research. The development of video-text retrieval has been considerably promoted by large-scale multi-modal contrastive pre-training, which primarily focuses on coarse-grained or fine-grained contrast. However, cross-grained contrast, which is the contrast between coarse-grained representations and fine-grained representations, has rarely been explored in prior research. Compared with fine-grained or coarse-grained contrasts, cross-grained contrast calculate the correlation between coarse-grained features and each fine-grained feature, and is able to filter out the unnecessary fine-grained features guided by the coarse-grained feature during similarity calculation, thus improving the accuracy of retrieval. To this end, this paper presents a novel multi-grained contrastive model, namely X-CLIP, for video-text retrieval. However, another challenge lies in the similarity aggregation problem, which aims to aggregate fine-grained and cross-grained similarity matrices to instance-level similarity. To address this challenge, we propose the Attention Over Similarity Matrix (AOSM) module to make the model focus on the contrast between essential frames and words, thus lowering the impact of unnecessary frames and words on retrieval results. With multi-grained contrast and the proposed AOSM module, X-CLIP achieves outstanding performance on five widely-used video-text retrieval datasets, including MSR-VTT (49.3 R@1), MSVD (50.4 R@1), LSMDC (26.1 R@1), DiDeMo (47.8 R@1) and ActivityNet (46.2 R@1). It outperforms the previous state-of-theart by +6.3%, +6.6%, +11.1%, +6.7%, +3.8% relative improvements on these benchmarks, demonstrating the superiority of multi-grained contrast and AOSM.

Motivation & Objective

  • To address the limitation of existing video-text retrieval models that focus only on coarse-grained or fine-grained contrast, and fail to effectively filter out irrelevant frames and words.
  • To explore cross-grained contrast—comparing coarse-grained video/sentence features with individual fine-grained frame/word features—to improve retrieval accuracy by suppressing irrelevant components.
  • To solve the similarity aggregation problem, where multiple similarity matrices (fine-grained, coarse-grained, cross-grained) must be combined into a single instance-level similarity score.
  • To design a learnable mechanism that emphasizes essential frame-word and sentence-video interactions while down-weighting noisy or irrelevant ones.

Proposed method

  • X-CLIP encodes videos and text into both coarse-grained (video/sentence-level) and fine-grained (frame/word-level) representations using a dual-stream transformer architecture with a temporal encoder for video modeling.
  • It performs three types of contrastive learning: fine-grained (frame-word), coarse-grained (video-sentence), and cross-grained (video-word and sentence-frame) to capture multi-level semantic alignment.
  • The Attention Over Similarity Matrix (AOSM) module learns to attend over the similarity matrices from different granularities, dynamically emphasizing relevant frame-word and sentence-video pairs.
  • A temperature-controlled Softmax in AOSM balances the influence of high and low similarity scores, preventing noise from dominating or critical signals from being ignored.
  • The model is trained end-to-end using contrastive loss on all three contrastive signals, with joint optimization of visual, textual, and cross-grained representations.
  • The temporal encoder in the video stream models sequential dependencies across frames, enhancing the model's ability to understand actions requiring multi-frame context.

Experimental results

Research questions

  • RQ1Can cross-grained contrast between coarse-grained and fine-grained representations improve video-text retrieval by filtering out irrelevant frames and words?
  • RQ2How can multiple similarity matrices from different granularities be effectively aggregated into a single, robust instance-level similarity score?
  • RQ3Does the proposed AOSM module outperform conventional aggregation strategies like Mean-Max in reducing the impact of noisy or irrelevant features?
  • RQ4To what extent does multi-grained contrastive learning improve retrieval performance across diverse video-text benchmarks?

Key findings

  • X-CLIP achieves state-of-the-art performance on five video-text retrieval benchmarks, with R@1 scores of 49.3 on MSR-VTT, 50.4 on MSVD, 26.1 on LSMDC, 47.8 on DiDeMo, and 46.2 on ActivityNet.
  • The model improves R@1 by +6.3% on MSR-VTT, +6.6% on MSVD, +11.1% on LSMDC, +6.7% on DiDeMo, and +3.8% on ActivityNet over previous SOTA methods.
  • Ablation studies show that the temporal encoder significantly improves performance, with a +1.0% to +1.2% R@1 gain on MSR-VTT when included.
  • The optimal temperature parameter τ = 0.01 in AOSM yields the best performance, with a 0.9–1.2% improvement over τ = 0.1 and τ = 1.0.
  • Qualitative results demonstrate that X-CLIP effectively distinguishes between semantically similar but distinct videos and sentences, especially in complex or ambiguous cases.
  • The AOSM module consistently outperforms baseline aggregation strategies like Mean-Max, showing its effectiveness in focusing on relevant frame-word and sentence-video pairs.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.