Rebalancing Contrastive Alignment with Bottlenecked Semantic Increments in Text-Video Retrieval

Jian Xiao, Zijie Song, Jialong Hu, Hao Cheng, Zhenzhen Hu, Jia Li, Richang Hong

TL;DR

Contrastive learning in text-video retrieval suffers from "optimization tension," where conflicting gradients from positive and negative pairs largely cancel each other out due to the inherent gap between text and video modalities. This paper introduces GARE (Gap-Aware Retrieval), a framework that uses learnable, pair-specific "shock absorbers" (semantic increments) to offload these conflicting gradients. By relieving this tension, GARE allows for better semantic alignment and achieves state-of-the-art results across four major benchmarks with virtually zero computational overhead.

The Problem: Modality Gap and Optimization Tension

Text-video retrieval systems—which aim to find the exact right video for a given text query—rely heavily on dual-encoder models like CLIP, trained via contrastive learning. However, these models suffer from a fundamental issue known as the modality gap. Text and video embeddings naturally cluster in completely disjoint regions of the high-dimensional representation space.

Because of this gap, a massive structural conflict occurs during training. When a text anchor is updated, the gradient from its matching (positive) video pulls it toward the video manifold. Meanwhile, the gradients from all the non-matching (negative) videos push it away. Because the text and video clusters are so far apart, these push and pull forces end up being nearly collinear but in exact opposite directions.

The authors show that while these individual forces are huge, they almost perfectly cancel each other out. The anchor embedding essentially vibrates in place—a phenomenon the authors call optimization tension. Furthermore, "false negatives" (videos that actually match the text but aren't labeled as such) add noisy repulsion forces, further distorting the anchor's learned semantics.

Optimization tension vs. GARE's offloading mechanism

The Solution: Gap-Aware Retrieval (GARE)

To fix this optimization bottleneck, the authors propose the Gap-Aware Retrieval (GARE) framework. Instead of forcing the anchor embedding (e.g., the text) to absorb all these conflicting pushes and pulls, GARE introduces a pair-specific, learnable increment called $\Delta_{ij}$.

Here is how the architecture works:

  1. The "Shock Absorber" ($\Delta_{ij}$): For a given text-video pair, a lightweight cross-attention module predicts a specific $\Delta_{ij}$ based on the semantic gap between them. This increment is added to the text embedding before calculating their similarity.
  2. Gradient Redistribution: Because $\Delta_{ij}$ is pair-specific, it absorbs the gradient from that specific negative or positive pair. This offloads the optimization tension from the main anchor, freeing the anchor to learn a better global representation without being trapped by canceling forces.
  3. Mathematical Grounding: The authors derive the update rule for $\Delta_{ij}$ using a multivariate first-order Taylor expansion of the InfoNCE loss, bounded by a "trust region" to keep updates stable.
  4. Variational Information Bottleneck (VIB): To prevent $\Delta_{ij}$ from learning useless noise, they regularize it using a relaxed VIB. This acts as a filter, forcing the increment to compress the information and retain only the most useful semantic signals. They also apply norm and directional diversity regularizers to keep the increments stable and spread out.

Key Insights

  • Gradient Cancellation is a Massive Bottleneck: The authors empirically proved that in standard contrastive learning, positive and negative gradients reach magnitudes of 40–60, but their sum (the actual update applied to the anchor) is only 2–3.
  • Expanding the Representation Space: The learned $\Delta$ actually pushes embeddings outward (increasing their norm). This gives the model more "room" on the hypersphere to separate positive and negative pairs, effectively expanding the usable geometric space for contrastive learning.
  • Modality-Dependent Correction: The framework is flexible. For datasets with short, visually similar clips (like MSR-VTT), applying the $\Delta$ correction to the text side works best to capture fine-grained distinctions. For datasets with long, complex videos (like ActivityNet), applying the correction to the video side yields better results.

Datasets and Key Results

The authors evaluated GARE on four standard text-video retrieval benchmarks: MSR-VTT, DiDeMo, ActivityNet Captions, and MSVD.

Performance of GARE across DiDeMo, ActivityNet, and MSVD benchmarks
  • State-of-the-Art Accuracy: GARE consistently outperformed existing SOTA methods across all four datasets. On MSR-VTT (Text-to-Video), Recall@1 improved from 46.6% (baseline) to 49.1%. On ActivityNet, R@1 improved from 40.2% to 42.6%.
  • High Efficiency: The cross-attention module used to predict $\Delta$ is incredibly lightweight. It adds only 1.58M parameters to the base CLIP model and increases inference FLOPs by a mere 0.3%.
  • Hard Negative Robustness: Qualitative results show GARE is much better at handling hard negatives, maintaining stable similarity scores for semantically related videos rather than wildly penalizing them.

Limitations and Future Work

The authors transparently note a few limitations of their approach:

  • The Modality Gap Persists: GARE successfully mitigates the symptoms of the modality gap (the optimization tension), but it doesn't solve the root cause. Text and video embeddings still reside in disjoint regions of the space.
  • Weak Supervision for $\Delta$: The increments are optimized solely based on the gradient of the InfoNCE loss. They lack a stronger, more generalizable supervisory signal that might help performance on unseen data.
  • Incompatibility with Direct ANN Search: Because GARE modifies the embedding based on the specific pair being evaluated, it breaks the triangle inequality required for standard Approximate Nearest Neighbor (ANN) search. For large-scale deployment, GARE must be used in a two-stage pipeline: first using standard dual-tower ANN to retrieve a top-$k$ candidate set, and then using GARE to re-rank them.

Summary updated

BibTeX
@inproceedings{xiao2025rebalancing,
  author = {Jian Xiao and Zijie Song and Jialong Hu and Hao Cheng and Zhenzhen Hu and Jia Li and Richang Hong},
  title = {{Rebalancing Contrastive Alignment with Bottlenecked Semantic Increments in Text-Video Retrieval}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=8MBEvClECb},
}
Figure