Gravitation-Driven Semantic Alignment for Text Video Retrieval

Yi Yang, Zheng Wang, Xing Xu, Jingkuan Song, Heng Tao ShenCVPR 2026

TL;DR

GraviAlign addresses the "many-to-many" semantic ambiguity in text-video retrieval by modeling videos and text captions as Gaussian distributions rather than deterministic points. Inspired by classical physics, it evaluates matches using a closed-form, highly efficient alignment score that balances "semantic attraction" (gravitational pull between concepts) and "geometric overlap." This approach achieves new state-of-the-art performance across major benchmarks while remaining highly interpretable.

What Problem Does This Paper Address?

When you search for a video using a text query, standard text-video retrieval (TVR) models typically map both the video and the text into a shared embedding space as single, deterministic point vectors. The similarity is then calculated using a simple metric like cosine distance.

However, real-world video and text data suffer from severe "many-to-many" semantic ambiguity. As shown in Figure 1, a single video clip can be accurately described by multiple distinct captions (e.g., "cartoon show for kids" vs. "an animation film is playing on the screen"). Conversely, a generic text prompt can map to many different video clips.

Figure 1. Visualization of the “Many-to-Many” Semantic Am- biguity in the practical scenario. A single video can be described by multiple, semantically varied text captions, which can not be well-resolved by the dominant deterministic point embeddings.

Forcing these complex, multi-faceted concepts into single points means the model can only capture the "average" semantics, leading to poor performance on hard negative examples. While some recent methods use probabilistic embeddings (like Gaussians) to capture uncertainty, they often rely on rigid, artificial constraints or ignore how distance and uncertainty interact.

Methods

The authors introduce GraviAlign, a physics-inspired framework that models video and text representations as Gaussian distributions ($\text{z} \sim \mathcal{N}(\mu, \Sigma)$), where the mean ($\mu$) represents the semantic center and the diagonal covariance ($\Sigma$) captures semantic uncertainty.

Instead of computing an intractable joint integral to find the similarity between two distributions, GraviAlign decouples the alignment score into three computationally efficient, closed-form components ($O(D)$ complexity):

$$S_{\text{align}} = A + B + C$$

  1. Term A (Semantic Attraction): Inspired by Newton's law of gravitation ($U = -G \frac{m_1m_2}{r}$), this term calculates the pull between distribution centroids. The authors define "semantic mass" as the inverse of uncertainty (entropy). Highly specific concepts have high mass and exert a strong pull, while vague concepts have low mass. The distance ($r$) is measured using Mahalanobis distance.
  2. Term B (Alignment Penalty): A short-range geometric alignment mechanism using quadratic Mahalanobis distance. It acts as an "aligner" that ensures precise "docking" when two centroids are close.
  3. Term C (Uncertainty Regularizer): This term penalizes excessive joint uncertainty (large distribution volumes). It acts as a self-regularizer to reject ambiguous "fuzzy-fuzzy" false positives.
Figure 2. The GraviAlign Framework. A video–text pair is encoded into features (fv, ft) via a backbone and passed to Uncertainty Module [9, 12] to produce Gaussian parameters: mean (µ) and diagonal covariance (Σ) in a shared space. The alignment score Salign is the sum of: (A) Semantic Attraction — gravitational pull between centroids weighted by “semantic mass”; (B) Alignment Penalty — quadratic Mahalanobis distance term; (C) Uncertainty Regularizer — penalty on joint volume to suppress ambiguous matches.

During training, the model optimizes a hybrid objective: a standard discriminative InfoNCE loss to rank items, combined with the SGI (Semantic Gravitational Interaction) loss applied exclusively to positive pairs to enforce the physical-probabilistic structure.

Datasets

The framework was evaluated on three widely recognized text-video retrieval benchmarks:

  • MSR-VTT: 10k videos, each annotated with 20 captions. Evaluated on the standard 1k test split.
  • DiDeMo: Over 10k Flickr videos with 40k captions, evaluated under the paragraph-to-video retrieval setting.
  • ActivityNet Captions: 20k YouTube videos and 100k sentences, also evaluated using paragraph-to-video retrieval.

Key Insights and Ideas

  • The Gravity Analogy Fits Uncertainty Learning: Defining semantic mass as the inverse of entropy is highly intuitive. Specific, low-variance descriptions carry more "weight" than generic, high-variance phrases, meaning confident matches attract each other much more strongly than ambiguous ones.
  • Independent Veto Power: Because the final score linearly combines attraction and overlap, a poor score in either category allows the model to confidently reject a mismatch. For instance, if two distributions are close in space but one is highly specific and the other is completely diffuse, Term C will penalize the match and prevent a false positive.
  • No Sampling Required: Unlike previous probabilistic TVR methods that rely on computationally expensive Monte Carlo sampling to approximate distribution alignment, GraviAlign's decoupled components are entirely closed-form, making training fast and stable.

Key Results

GraviAlign was integrated into a strong CLIP-ViP backbone and consistently outperformed the baseline across all datasets:

  • MSR-VTT: Achieved a new state-of-the-art Text-to-Video (T2V) Recall@1 of 55.8% using the ViT-B/16 backbone (a +1.6% absolute improvement) and 52.4% on ViT-B/32 (a +2.3% improvement).
  • DiDeMo: Reached 52.3% R@1 on ViT-B/16, outperforming the baseline by 1.8%.
  • ActivityNet Captions: Achieved 56.0% R@1 on ViT-B/16, marking a substantial 2.6% absolute improvement.

The qualitative power of the decoupled terms is visualized in Figure 3, showing how the model successfully differentiates between high-overlap true matches and close-but-diffuse false positives.

Figure 3. Real examples of video–text pairs, their probabilistic embeddings and their scores derived by our three components. Blue/orange ellipses denote video/text Gaussian distributions (size = uncertainty, dot = centroid).

Limitations and Future Work

While GraviAlign demonstrates excellent performance and theoretical soundness, the authors note a few areas for expansion:

  • Diagonal Covariance Assumption: To keep the computational complexity at $O(D)$, the model assumes a diagonal covariance matrix, which ignores potential correlations between different embedding dimensions.
  • Future Directions: The authors plan to explore the impact of this gravitation-driven semantic alignment framework on larger, multimodal large language models (VLLMs) where semantic ambiguity scales up significantly.

Summary updated

BibTeX
@inproceedings{yang2026gravitation,
  author = {Yi Yang and Zheng Wang and Xing Xu and Jingkuan Song and Heng Tao Shen},
  title = {{Gravitation-Driven Semantic Alignment for Text Video Retrieval}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=NdxyPMCPZ2},
}
Figure