RaP: Redundancy-aware Video-language Pre-training for Text-Video Retrieval

Xing Wu, Chaochen Gao, Zijia Lin, Zhongyuan Wang, Jizhong Han, Songlin Hu

Abstract

Video-language pre-training (VLP) has seen significant progress, yet it remains plagued by the issue of redundancy. While temporal redundancy is often addressed through sparse sampling, this paper identifies and tackles a more nuanced problem: inter-modal redundancy. We present RaP (Redundancy-aware Pre-training), a framework that explicitly measures and penalizes video patches and text tokens that lack semantic alignment with the opposing modality. By employing a Redundancy-aware Contrastive Learning (RaCL) objective, RaP filters noise and prioritizes informative signals, leading to state-of-the-art performance on major benchmarks including MSRVTT, MSVD, and DiDeMo.

1. Introduction

In the field of Video-Language Pre-training (VLP), the goal is to learn a joint embedding space where semantically related videos and texts are positioned closely together. A primary challenge in this domain is temporal redundancy, where consecutive frames in a video often contain nearly identical information. To maintain computational efficiency, most modern VLP models employ sparse sampling, selecting only a few frames to represent a video clip.

However, the authors of RaP argue that sparse sampling introduces a secondary, often overlooked issue: inter-modal redundancy. This occurs when specific elements within one modality (e.g., background pixels in a video or specific words in a caption) do not have a corresponding representation in the sampled frames of the other modality. Standard contrastive learning objectives, like InfoNCE, treat the entire video and text as a single positive pair, inadvertently forcing the model to align this "noise" with the actual "signal." RaP addresses this by introducing a mechanism to identify and down-weight these redundant elements during training.

2. The Nature of Inter-modal Redundancy

Inter-modal redundancy manifests in two distinct forms:

  1. Visual Redundancy: Within a single video frame, many patches (such as a static background or irrelevant objects) may not be described in the associated text. For example, in a video described as "a man running," patches containing trees or buildings are visually redundant relative to the text.
  2. Textual Redundancy: Because VLP models only sample a subset of frames, the text may describe actions or objects that occur in the original video but are missing from the sampled frames. If a caption says "he hits a baseball" but the sampled frames only show the player running to a base, the word "baseball" becomes textual noise relative to those specific frames.

3. Methodology: Redundancy-aware Contrastive Learning (RaCL)

The core of the RaP framework is the Redundancy-aware Contrastive Learning (RaCL) objective. Unlike standard methods that aggregate features into a single global vector, RaCL operates at a more granular level to filter out noise.

3.1 Measuring Redundancy

The model first calculates a dis-similarity matrix between all video patches ($P_n$) and all text tokens ($T_l$). Redundancy is then quantified as follows:

  • Visual Redundancy ($vr_n$): For each video patch, the model identifies the text token with the minimum dis-similarity. If even the most similar word is highly dis-similar to the patch, that patch is assigned a high redundancy score.
  • Textual Redundancy ($tr_l$): Symmetrically, if a specific word does not closely match any of the patches in the sampled frames, it is marked as redundant.

3.2 The Weighted Loss Function

Instead of treating all patches and tokens equally, RaP uses these redundancy scores to weight the contrastive loss. The weight for any given element is defined as $Weight = (1 - redundancy)$.

Under this scheme, high-redundancy items (noise) receive low weights, allowing the model to effectively ignore them. Conversely, low-redundancy items (signal) receive high weights, incentivizing the model to focus on fine-grained, cross-modal alignment. The architecture utilizes a Vision Transformer (ViT) for video encoding and BERT for text encoding, with the RaCL logic serving as the primary innovation.

4. Experiments and Results

4.1 Pre-training and Evaluation

RaP was pre-trained on a combined dataset of WebVid2.5M and Google Conceptual Captions (CC3M), totaling 5.5 million video-text and image-text pairs. The model was then evaluated on several competitive retrieval benchmarks:

  • MSRVTT: 10,000 videos with human-labeled captions.
  • MSVD: Approximately 2,000 YouTube snippets.
  • DiDeMo: 10,000 Flickr videos, evaluated for paragraph-to-video retrieval.
  • LSMDC: A challenging dataset consisting of over 118,000 movie clips.

4.2 Performance Highlights

RaP demonstrated significant improvements over previous state-of-the-art (SOTA) models such as ALPRO and OA-Trans:

  • MSRVTT (Zero-shot): RaP achieved a Recall@1 (R1) of 28.9%, representing a 4.8% absolute improvement over ALPRO (24.1%).
  • DiDeMo (Fine-tuning): The model reached an R1 of 42.9%, outperforming the previous best by 7%.
  • MSVD: In zero-shot settings, RaP hit 35.9% R1, a massive jump compared to SupportSet's 21.4%.

4.3 The "More is Less" Paradox

A key insight from the authors' ablation studies is the relationship between frame count and redundancy. Performance was found to peak at 4 sampled frames. Surprisingly, increasing the count to 8 frames led to a performance drop. The authors attribute this to the "excessive visual redundancy" introduced by additional frames, which can overwhelm the model's ability to extract the core semantic signal if not properly managed.

5. Conclusion

RaP introduces a robust solution to the problem of inter-modal redundancy in video-language pre-training. By explicitly measuring and penalizing misaligned patches and tokens through the RaCL objective, the model learns more precise and semantically dense representations. While the current use of minimum dis-similarity is a simple constraint, it has proven highly effective. Future work may involve more sophisticated attention mechanisms to further refine redundancy detection in increasingly noisy or complex datasets.

Summary updated

BibTeX
@inproceedings{wu2022rap,
  author = {Xing Wu and Chaochen Gao and Zijia Lin and Zhongyuan Wang and Jizhong Han and Songlin Hu},
  title = {{RaP: Redundancy-aware Video-language Pre-training for Text-Video Retrieval}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2022},
  doi = {10.18653/v1/2022.findings-emnlp.221},
}
Figure