Probabilistic Contrastive Learning Recovers the Correct Aleatoric Uncertainty of Ambiguous Inputs
Michael Kirchhof, Enkelejda Kasneci, Seong Joon Oh
Abstract
Contrastively trained encoders have recently been proven to invert the data-generating process: they encode each input, e.g., an image, into the true latent vector that generated the image (Zimmermann et al., 2021). However, real-world observations often have inherent ambiguities. For instance, images may be blurred or only show a 2D view of a 3D object, so multiple latents could have generated them. This makes the true posterior for the latent vector probabilistic with heteroscedastic uncertainty. In this setup, we extend the common InfoNCE objective and encoders to predict latent distributions instead of points. We prove that these distributions recover the correct posteriors of the data-generating process, including its level of aleatoric uncertainty, up to a rotation of the latent space. In addition to providing calibrated uncertainty estimates, these posteriors allow the computation of credible intervals in image retrieval. They comprise images with the same latent as a given query, subject to its uncertainty. Code is available at https://github.com/mkirchhof/Probabilistic_Contrastive_Learning
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext a6900043-ed1a-429e-80f0-a2214a68bd84Cited by top-tier papers14
- Improved Probabilistic Image-Text RepresentationsSanghyuk ChunICLR 2024 · 48 citations
- ProbVLM: Probabilistic Adapter for Frozen Vison-Language ModelsUddeshya Upadhyay, Shyamgopal Karthik, Massimiliano Mancini, Zeynep AkataICCV 2023 · 41 citations
- ProbMED: A Probabilistic Framework for Medical Multimodal BindingYuan Gao, Sangwook Kim, Jianzhong You, Chris McIntoshICCV 2025 · 3 citations
- Fine-grained Uncertainty Decomposition in Large Language Models: A Spectral ApproachNassim Walha, Sebastian G. Gruber, Thomas Decker, Yinchong Yang et al.AAAI 2026 · 2 citations
- On the Generalization of Representation Uncertainty in Earth ObservationSpyros Kondylatos, Nikolaos-Ioannis Bountos, Dimitrios Michail, Xiao Xiang Zhu et al.ICCV 2025 · 1 citation
Builds on14
- A Simple Framework for Contrastive Learning of Visual RepresentationsTing Chen, Simon Kornblith, Mohammad Norouzi, Geoffrey E. HintonICML 2020 · 24,064 citations
- Supervised Contrastive LearningPrannay Khosla, Piotr Teterwak, Chen Wang, Aaron Sarna et al.NeurIPS 2020 · 7,049 citations
- Understanding Contrastive Representation Learning through Alignment and Uniformity on the HypersphereTongzhou Wang, Phillip IsolaICML 2020 · 2,360 citations
- Human Uncertainty Makes Classification More RobustJoshua C. Peterson, Ruairidh M. Battleday, Thomas L. Griffiths, Olga RussakovskyICCV 2019 · 362 citations
- Probabilistic Face EmbeddingsYichun Shi, Anil K. JainICCV 2019 · 362 citations
Related papers
- Towards Robust Uncertainty Calibration for Composed Image RetrievalYifan Wang, Wuliang Huang, Yufan Wen, Shunning Liu et al.NeurIPS 2025
- Semantic uncertainty intervals for disentangled latent spacesSwami Sankaranarayanan, Anastasios Angelopoulos, Stephen Bates, Yaniv Romano et al.NeurIPS 2022 · 27 citations
- The Loss Is Not Enough: Sampling Conditions and Inductive Bias in Contrastive Representation LearningJustinas Zaliaduonis, Patrick Putzky, Till Richter, Sergios GatidisICML 2026
- Conformalized Credal Set PredictorsAlireza Javanmardi, David Stutz, Eyke HüllermeierNeurIPS 2024 · 28 citations
- Bayesian Metric Learning for Uncertainty Quantification in Image RetrievalFrederik Warburg, Marco Miani, Silas Brack, Søren HaubergNeurIPS 2023 · 12 citations
