The "Law" of the Unconscious Contrastive Learner: Probabilistic Alignment of Unpaired Modalities

Yongwei Che, Benjamin Eysenbach
1/20/2025
cs.LGstat.ML

No official code found. Best implementation: YongweiChe/UnconsciousContrastiveLearner (4 stars, last commit 2025-01-20).

Abstract

While internet-scale data often comes in pairs (e.g., audio/image, image/text), we often want to perform inferences over modalities unseen together in the training data (e.g., audio/text). Empirically, this can often be addressed by learning multiple contrastive embedding spaces between existing modality pairs, implicitly hoping that unseen modality pairs will end up being aligned. This theoretical paper proves that this hope is well founded, under certain assumptions. Starting with the proper Bayesian approach of integrating out intermediate modalities, we show that directly comparing the representations of data from unpaired modalities can recover the same likelihood ratio. Our analysis builds on prior work on the geometry and probabilistic interpretation of contrastive representations, showing how these representations can answer many of the same inferences as probabilistic graphical models. Our analysis suggests two new ways of using contrastive representations: in settings with pre-trained contrastive models, and for handling language ambiguity in reinforcement learning. Our numerical experiments study the importance of our assumptions and demonstrate these new applications.

View on arXivView PDF

Code Implementations(1)

Supplementary code for the paper "The Law of the Unconscious Contrastive Learner: Probabilistic Alignment of Unpaired Modalities"

41Python, Jupyter NotebookJan 6, 20251 years ago

Similar Papers

Cite this paper

@article{che2025law,
  title  = {The "Law" of the Unconscious Contrastive Learner: Probabilistic Alignment of Unpaired Modalities},
  author = {Yongwei Che and Benjamin Eysenbach},
  year   = {2025},
  eprint = {2501.11326},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2501.11326v1},
  journal = {ICLR 2025 2025}
}

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/2501.11326.svg)](https://codeofpaper.com/paper/2501.11326)

Discussion