Inference via Interpolation: Contrastive Representations Provably Enable Planning and Inference

Benjamin Eysenbach, Vivek Myers, R. Salakhutdinov, Sergey Levine
2/3/2026

No official code found. Best implementation: vivekmyers/contrastive_planning (45 stars, last commit 2024-07-10).

Abstract

Given time series data, how can we answer questions like"what will happen in the future?"and"how did we get here?"These sorts of probabilistic inference questions are challenging when observations are high-dimensional. In this paper, we show how these questions can have compact, closed form solutions in terms of learned representations. The key idea is to apply a variant of contrastive learning to time series data. Prior work already shows that the representations learned by contrastive learning encode a probability ratio. By extending prior work to show that the marginal distribution over representations is Gaussian, we can then prove that joint distribution of representations is also Gaussian. Taken together, these results show that representations learned via temporal contrastive learning follow a Gauss-Markov chain, a graphical model where inference (e.g., prediction, planning) over representations corresponds to inverting a low-dimensional matrix. In one special case, inferring intermediate representations will be equivalent to interpolating between the learned representations. We validate our theory using numerical simulations on tasks up to 46-dimensions.

View on arXivView PDF

Code Implementations(1)

Code for the paper "Inference via Interpolation: Contrastive Representations Provably Enable Planning and Inference"

456Python, MakefileFeb 22, 20242 years ago

Similar Papers

Cite this paper

@article{eysenbach2026inference,
  title  = {Inference via Interpolation: Contrastive Representations Provably Enable Planning and Inference},
  author = {Benjamin Eysenbach and Vivek Myers and R. Salakhutdinov and Sergey Levine},
  year   = {2026},
  eprint = {2403.04082},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2403.04082},
  url    = {https://arxiv.org/abs/2403.04082},
  journal = {NEURIPS 2024 2024}
}

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

Discussion