[Paper Review] Probabilistic Embeddings for Cross-Modal Retrieval
This paper proposes Probabilistic Cross-Modal Embedding (PCME), a method that represents images and captions as probability distributions in a shared embedding space to model one-to-many correspondences inherent in image-text pairs. By learning uncertainty-aware embeddings, PCME improves retrieval performance over deterministic baselines and enables interpretable uncertainty estimation and set-based operations on embeddings.
Cross-modal retrieval methods build a common representation space for samples from multiple modalities, typically from the vision and the language domains. For images and their captions, the multiplicity of the correspondences makes the task particularly challenging. Given an image (respectively a caption), there are multiple captions (respectively images) that equally make sense. In this paper, we argue that deterministic functions are not sufficiently powerful to capture such one-to-many correspondences. Instead, we propose to use Probabilistic Cross-Modal Embedding (PCME), where samples from the different modalities are represented as probabilistic distributions in the common embedding space. Since common benchmarks such as COCO suffer from non-exhaustive annotations for cross-modal matches, we propose to additionally evaluate retrieval on the CUB dataset, a smaller yet clean database where all possible image-caption pairs are annotated. We extensively ablate PCME and demonstrate that it not only improves the retrieval performance over its deterministic counterpart but also provides uncertainty estimates that render the embeddings more interpretable. Code is available at https://github.com/naver-ai/pcme
Motivation & Objective
- To address the challenge of one-to-many correspondences in image-text retrieval, where multiple valid captions can describe a single image and vice versa.
- To overcome limitations of deterministic embedding functions that cannot model multiplicity in cross-modal matches.
- To propose a cleaner evaluation benchmark using the CUB dataset with exhaustive annotations, addressing non-exhaustive labeling in COCO.
- To enable interpretable embeddings through uncertainty estimation, allowing analysis of ambiguity and failure likelihood.
- To demonstrate that probabilistic embeddings support set algebraic operations that align with semantic relationships.
Proposed method
- Represent images and captions as multivariate Gaussian distributions in a shared embedding space, parameterized by mean and variance vectors.
- Train the model using a contrastive loss with hard negative mining, where the embedding loss is computed over the mean vectors and uncertainty is regularized via the KL divergence.
- Use the geometric mean of the standard deviation components as an instance-wise uncertainty score to quantify ambiguity in queries.
- Perform data augmentation via image and caption erasing to study how uncertainty correlates with missing visual or textual information.
- Visualize embeddings in 2D using t-SNE to analyze spatial clustering and distributional behavior across semantic classes.
- Apply set algebra operations (e.g., mixing, erasing) on input data and observe corresponding changes in embedding distributions to validate semantic consistency.
Experimental results
Research questions
- RQ1Can probabilistic embeddings effectively model the one-to-many relationships common in image-caption pairs?
- RQ2Does uncertainty estimation from probabilistic embeddings correlate with actual ambiguity in input data?
- RQ3How does PCME’s performance compare to deterministic and multi-representation baselines on standard and cleaner benchmarks?
- RQ4Can set operations on embeddings reflect meaningful semantic relationships, such as intersection or inclusion?
- RQ5Does the uncertainty score predict retrieval difficulty or failure likelihood?
Key findings
- PCME achieves 45.0 R@1 and 68.8 R@5 on COCO 1k, outperforming the deterministic baseline and matching or exceeding PVSE and VSRN baselines.
- The model’s performance decreases with increasing uncertainty, confirming that high uncertainty correlates with retrieval difficulty.
- Uncertainty estimates from the standard deviation components positively correlate with the ratio of erased pixels in images and words in captions, validating their sensitivity to input ambiguity.
- 2D visualizations show that generic captions like 'this bird has <unk> ...' occupy central regions, covering multiple subclasses, indicating distributional modeling of semantic generality.
- Set algebra operations—such as mixing or erasing—produce embeddings that reflect intersection and inclusion relations, demonstrating semantic consistency in the probabilistic space.
- PCME with only mean vectors (mu-only) already improves performance over deterministic models, but full probabilistic modeling further enhances robustness and interpretability.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.