Probabilistic Contrastive Learning Recovers the Correct Aleatoric Uncertainty of Ambiguous Inputs

Michael Kirchhof, Enkelejda Kasneci, Seong Joon Oh
2/6/2023
cs.LGcs.AIstat.ML

Official code: mkirchhof/Probabilistic_Contrastive_Learning (44 stars, last commit 2023-04-25).

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

View on arXivView PDF

Code Implementations(1)

This repository contains the code for our paper "Probabilistic Contrastive Learning Recovers the Correct Aleatoric Uncertainty of Ambiguous Inputs".

440R, ShellFeb 6, 20233 years ago

Similar Papers

Cite this paper

@article{kirchhof2023probabilistic,
  title  = {Probabilistic Contrastive Learning Recovers the Correct Aleatoric Uncertainty of Ambiguous Inputs},
  author = {Michael Kirchhof and Enkelejda Kasneci and Seong Joon Oh},
  year   = {2023},
  eprint = {2302.02865},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2302.02865v3},
  journal = {ICML 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2302.02865.svg)](https://codeofpaper.com/paper/2302.02865)

Discussion