Prototype-based Aleatoric Uncertainty Quantification for Cross-modal Retrieval

Hao Li, Jingkuan Song, Lianli Gao, Xiaosu Zhu, Heng Tao Shen

Abstract

Cross-modal retrieval models often struggle with "aleatoric uncertainty"—the inherent ambiguity found in low-quality or complex data like fast-paced videos and vague captions. This paper introduces PAU (Prototype-based Aleatoric Uncertainty Quantification), a framework that uses learnable semantic "prototypes" and evidential theory to quantify data uncertainty, leading to more reliable and higher-performing retrieval results.

Introduction

In cross-modal retrieval tasks, such as matching a video clip to a natural language query, most existing models operate under the assumption that every data point is a perfect, unambiguous representative of its semantic category. However, real-world data is inherently messy. A video might contain a sequence of rapid, distinct actions (semantic ambiguity), or a text caption might be too brief to capture the complexity of an accompanying image (information deficiency).

These factors contribute to aleatoric uncertainty—a type of uncertainty stemming from the data itself rather than the model's architecture. Standard retrieval models often produce "confused" similarity scores when faced with such samples, leading to unreliable rankings. The authors of this paper argue that a truly trustworthy retrieval system should not only predict potential matches but also provide a measure of confidence in those predictions.

The PAU Framework

The Prototype-based Aleatoric Uncertainty (PAU) framework moves away from traditional deterministic similarity matching toward an "evidential" approach. The methodology is built upon four primary pillars:

1. Semantic Prototypes

Instead of comparing global embeddings directly, the model learns a set of $K$ "prototypes" for each modality (vision and language). These prototypes act as anchor points that represent the broader semantic subspace. By mapping instances to these prototypes, the model can better understand where a specific piece of data sits within the overall distribution of the dataset.

2. Evidential Theory and Subjective Logic

To quantify uncertainty, PAU leverages Dempster-Shafer Theory and Subjective Logic. Rather than using a standard softmax layer—which can be misleading when all class probabilities are low—PAU treats the similarity between an instance and the prototypes as "evidence." This evidence is used to parameterize a Dirichlet distribution. This allows the model to explicitly calculate an uncertainty score ($\psi$), distinguishing between a lack of evidence and conflicting evidence.

3. Optimization via Novel Losses

To ensure the effectiveness of the prototypes and the uncertainty estimation, the framework introduces two specific loss functions:

  • Uncertainty Loss: This forces the model to associate high uncertainty scores with instances that exhibit low or conflicting evidence relative to the prototypes.
  • Diversity Loss: This ensures that the learned prototypes remain distinct from one another, preventing them from collapsing into a single point and ensuring they cover the maximum possible semantic space.

4. Uncertainty-Aware Re-ranking

During the inference phase, the model does not rely solely on the raw similarity matrix. Instead, it incorporates the calculated uncertainty scores to re-weight retrieval results. This process effectively "down-votes" matches that the model flags as unreliable, leading to a more robust final ranking.

Experimental Evaluation

The researchers evaluated PAU across four major benchmarks, covering both video-text and image-text retrieval:

  • Video-Text: MSR-VTT, MSVD, and DiDeMo.
  • Image-Text: MS-COCO (1K and 5K test sets).

Key Results

  • Performance Gains: PAU consistently outperformed state-of-the-art baselines. On the MSR-VTT dataset, it achieved an improvement in Recall@1 (R@1) of 2.9% for text-to-video and 3.1% for video-to-text retrieval.
  • Small and Noisy Datasets: The most dramatic improvement was observed on the MSVD dataset, which is relatively small and notoriously noisy. PAU achieved an 8.8% R@1 improvement in video-to-text retrieval, demonstrating its ability to handle low-quality data.
  • Noise Robustness: In controlled experiments where 50% of the training data was intentionally mismatched (noisy pairs), PAU maintained a significant performance edge over standard models, proving its resilience to data corruption.

Discussion: The "Softmax Trap"

A critical insight of this research is the limitation of Information Entropy derived from standard softmax layers. In a traditional model, a uniform probability distribution (e.g., $[0.25, 0.25, 0.25, 0.25]$) could result from either high-similarity evidence across all categories or very low-similarity evidence across all categories. Softmax cannot distinguish between these two states. PAU’s evidential approach solves this by correctly assigning higher uncertainty to the latter case, where evidence is genuinely lacking.

Furthermore, the framework is remarkably efficient. Despite the addition of uncertainty quantification, PAU requires significantly fewer parameters and floating-point operations (FLOPs) than heavy-duty competitors like VATT or MILES, making it a practical choice for real-world deployment.

Conclusion and Future Work

PAU provides a robust method for quantifying aleatoric uncertainty in cross-modal retrieval, leading to improved performance and trustworthiness. Qualitative analysis confirms that the model correctly identifies vague captions (e.g., "A person is explaining something") as high-uncertainty, while detailed descriptions receive low-uncertainty scores.

While the current work focuses on data-level uncertainty, future research could explore epistemic uncertainty (uncertainty arising from a lack of training data for specific concepts). Additionally, the authors suggest that PAU could be used to "clean" massive datasets during pre-training by filtering out high-uncertainty samples, potentially increasing the efficiency of large-scale model training.

Summary updated

BibTeX
@inproceedings{li2023prototype,
  author = {Hao Li and Jingkuan Song and Lianli Gao and Xiaosu Zhu and Heng Tao Shen},
  title = {{Prototype-based Aleatoric Uncertainty Quantification for Cross-modal Retrieval}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=ECRgBK6sk1},
}
Figure