ProTA: Probabilistic Token Aggregation for Text-Video Retrieval

Han Fang, Xianghao Zang, Chao Ban, Zerun Feng, Lanxiang Zhou, Zhongjiang He, Yongxiang Li, Hao Sun

TL;DR

ProTA (Probabilistic Token Aggregation) is a new framework for text-video retrieval that replaces traditional fixed-point embeddings with probabilistic distributions. By modeling tokens as Gaussian distributions and using a dual-aggregation strategy, it effectively handles the "content asymmetry" where a short caption only describes a fraction of a complex video.

What Problem Does This Paper Address?

Text-video retrieval—finding the right video for a text query—is notoriously difficult because of two types of data uncertainty:

  1. Intra-pair Uncertainty (Content Asymmetry): A video contains a vast amount of visual information, but a caption usually only describes a small slice of it. Standard models try to align the entire video to the entire text, which leads to "noise" from irrelevant video frames.
  2. Inter-pair Uncertainty (Semantic Ambiguity): Language is often vague. A word like "teens" could refer to boys, girls, or a mixed group. Representing these concepts as a single fixed point in space (a vector) fails to capture this inherent diversity. One video can be described by many different captions, and one caption can match many similar-looking videos.

Methods

The authors propose ProTA, which introduces three main innovations to move beyond "point-based" representations:

  • Dual Partial-related Aggregation (DPA): To solve content asymmetry, ProTA uses two levels of aggregation. In low-dimensional space, it uses weighted attention to find relevant tokens. In high-dimensional space, it employs a Gram matrix with multiple Gaussian (RBF) kernels. This allows the model to "disentangle" redundant video information and re-aggregate only the features that are semantically relevant to the text.
  • Token-based Probabilistic Alignment (TPA): Instead of representing a word or a video frame as a single vector, ProTA represents each token as a Gaussian distribution ($\mu, \sigma$). The mean ($\mu$) represents the core concept, while the variance ($\sigma$) captures the uncertainty or diversity of that concept. To compare these distributions, the model uses the negative 2-Wasserstein distance, a mathematically robust way to measure the distance between probability distributions.
  • Adaptive Contrastive Loss: Standard contrastive losses use a fixed "margin" to separate positive and negative pairs. ProTA uses an adaptive margin based on the Kullback-Leibler (KL) divergence between distributions. If a text-video pair is very similar in distribution, the model automatically increases the "penalty," forcing itself to learn finer distinctions.

Datasets

The model was evaluated on three standard benchmarks for text-video retrieval:

  • MSR-VTT: 10,000 videos with 20 captions each.
  • LSMDC: A large dataset of movie clips and descriptions (~118k videos).
  • DiDeMo: A dataset focused on localized video segments (~10k videos).

Key Insights and Ideas

  • Embracing Uncertainty: The shift from "points" to "distributions" is the most significant takeaway. By allowing a token to occupy a "region" of embedding space rather than a single coordinate, the model can represent the "fuzziness" of human language and complex visual scenes.
  • Disentanglement via Kernels: Using multiple RBF kernels in the Gram matrix acts like a semantic filter. It helps the model ignore the "background noise" of a video (like a crowd in a stadium) and focus on the specific action mentioned in the text (like a player kicking a ball).
  • Dynamic Difficulty: The adaptive margin in the loss function effectively creates a "curriculum" for the model. It spends more effort trying to distinguish between "hard negatives"—videos that look semantically similar to the query but aren't the correct match.

Key Results

ProTA achieved state-of-the-art (SOTA) results across all tested datasets:

  • MSR-VTT: Reached 50.9% Recall@1 (using a ViT-B/16 backbone), a significant jump over previous methods like TS2Net (49.4%).
  • LSMDC: Achieved 25.8% R@1, outperforming X-Pool and other competitive baselines.
  • DiDeMo: Achieved 47.2% R@1, showing strong performance in paragraph-to-video retrieval.
  • Qualitative Success: Visualization using t-SNE showed that ProTA successfully pushes "negative" (incorrect) videos further away in the embedding space while pulling "positive" (correct) videos closer, even when the visual content is highly similar.

Limitations and Future Work

  • Polysemy Challenges: The authors noted that the model still struggles with highly polysemous queries (words with many meanings) where the visual context is ambiguous. For example, distinguishing between "a woman laughing" and "people laughing and dancing" remains a challenge if the visual cues are subtle.
  • Computational Complexity: While not explicitly detailed as a failure, calculating Gram matrices and Wasserstein distances for every token pair is computationally more expensive than simple dot-product similarity. Scaling this to extremely long videos or massive real-time retrieval systems may require further optimization.
  • Future Directions: The authors suggest that exploring more complex temporal modeling within this probabilistic framework could further improve results for long-form video content.

Summary updated

BibTeX
@inproceedings{fang2024prota,
  author = {Han Fang and Xianghao Zang and Chao Ban and Zerun Feng and Lanxiang Zhou and Zhongjiang He and Yongxiang Li and Hao Sun},
  title = {{ProTA: Probabilistic Token Aggregation for Text-Video Retrieval}},
  booktitle = {ICME},
  year = {2024},
  url = {https://openreview.net/forum?id=VWoNpVVx6N},
}

Loading related content...

Figure