Approximation in Contrastive Representation Learning

Yuanfan Li, Zihan Zhang, Yiming Ying, Ding-Xuan ZhouNeurIPS 2026

TL;DR

Models like CLIP match images and text using a simple dot product between two vectors, yet the theoretical target they are trying to learn—Pointwise Mutual Information (PMI)—is a tangled, non-separable mathematical beast. How does a simple dot product pull this off? This paper proves that contrastive learning implicitly performs an infinite-dimensional Singular Value Decomposition (SVD), allowing compact neural networks to approximate complex multimodal relationships remarkably well whenever real-world data has underlying semantic structure.

What Problem Does This Paper Address?

Picture how multimodal models like CLIP work: you feed an image $\mathbf{x}$ into one neural network to get a vector $f(\mathbf{x})$, feed a caption $\mathbf{y}$ into another to get $g(\mathbf{y})$, and take their dot product, $f(\mathbf{x})^\top g(\mathbf{y})$, to score how well they belong together.

Recent theory showed that minimizing the standard contrastive loss forces this score to learn the Pointwise Mutual Information (PMI): $\log \frac{p(\mathbf{x},\mathbf{y})}{p_\mathcal{X}(\mathbf{x})p_\mathcal{Y}(\mathbf{y})}$, which measures how much more likely $\mathbf{x}$ and $\mathbf{y}$ are to co-occur than by pure chance.

Here is the puzzle: a dot product is strictly separable—$\mathbf{x}$ and $\mathbf{y}$ are processed completely independently until the final multiplication. Meanwhile, a general PMI function is non-separable; there is no obvious reason it should neatly factorize into separate $\mathbf{x}$ and $\mathbf{y}$ components. Prior statistical theories studied how contrastive models generalize from finite data, but left a glaring gap: approximation error. Even with infinite data, is the inner-product architecture expressive enough to capture PMI in the first place?

Methods

Because this is a pure statistical learning theory paper, the "methods" are mathematical frameworks rather than training heuristics:

  • Continuous Spectral Decomposition: In finite discrete spaces, PMI is just a giant matrix, and the best rank-$D$ dot-product approximation is a truncated SVD. The authors lift this to continuous spaces (like pixel values) by defining a continuous PMI integral operator and applying Hilbert–Schmidt spectral theory to break PMI down into infinite singular values and functions.
  • Coupled ReLU Network Construction: Standard universal approximation theorems show what one big network $h(\mathbf{x}, \mathbf{y})$ can learn. Here, the authors have to construct two separate ReLU networks whose inner product approximates Hölder-continuous PMI functions, bridging uniform function approximation to the tricky log-sum-exp contrastive loss via Hoeffding’s lemma.
  • Latent-Class Generative Model (LCGM): To escape worst-case exponential bounds, they model structured data using $K$ underlying semantic classes (e.g., "cat", "dog") where a clean anchor view (an image) deterministically belongs to a class, and the paired view (noisy text) is conditionally independent given that class.
  • Density-Ratio Tsybakov Noise Condition: Borrowing from binary classification theory, they formulate a "low-noise" margin condition based on how well-separated the true density ratios of candidate items are during downstream retrieval.

Datasets

This is primarily a theoretical paper; no real-world benchmarks are used. In the appendices, the authors validate their theory using synthetic numerical experiments on a Gaussian Mixture Model (GMM) and a synthetic Latent-Class Generative Model (LCGM) setting.

Key Insights and Ideas

  • Contrastive learning is disguised low-rank SVD: A $D$-dimensional embedding space doesn't try to memorize the whole PMI landscape. Instead, the two encoders naturally align with the top-$D$ singular functions of the PMI operator. Moderate embedding dimensions (like 512 or 1024) work in practice because smooth data distributions have rapidly decaying eigenvalues—meaning the neglected "spectral tail" is tiny.
  • Two encoders are coupled, not independent: When designing DNN encoders for two modalities of input dimensions $d_1$ and $d_2$, you cannot size them in isolation. Because they interact through a shared dot product, the required depth and width of the $\mathcal{X}$-encoder explicitly depend on $d_2$ (and vice versa), while the embedding dimension $D$ scales with $\min\{d_1, d_2\}$.
  • Asymmetric roles in clean vs. noisy modalities: Under the structured $K$-class model, the two encoders learn fundamentally different things! If $\mathbf{x}$ is a clean image and $\mathbf{y}$ is noisy text, the image encoder $f(\mathbf{x})$ acts as a classifier (outputting posterior class probabilities), while the text encoder $g(\mathbf{y})$ learns log-posterior ratios.
  • Decisive data yields faster retrieval: Standard theory says if your contrastive pretraining excess risk drops to $\epsilon$, your downstream retrieval error only drops at a sluggish $\sqrt{\epsilon}$ rate. The authors show that when candidate items rarely have "near-tie" probabilities (high Tsybakov margin $\mu$), pretraining improvements translate to retrieval accuracy much faster.

Key Results

Because this is a theoretical work, the core results are mathematical guarantees and scaling laws:

  • Spectral Tail Bound: For $D$-dimensional inner products, the best possible contrastive excess risk is upper-bounded by the sum of the discarded eigenvalues: $\sum_{i=D+1}^\infty \lambda_i$. If eigenvalues decay polynomially as $i^{-\gamma}$ ($\gamma > 1$), achieving $\epsilon$ error requires an embedding dimension of $D \approx \epsilon^{-1/(\gamma-1)}$.
  • Universal Consistency: Under a bare-minimum integrability assumption (equivalent to optimal loss being finite, $\mathcal{L}^* > -\infty$), ReLU inner-product networks can approximate any PMI target to arbitrary precision $\epsilon$, completely distribution-free.
  • Breaking the Curse of Dimensionality: To reach approximation error $\epsilon$ on general $\beta$-smooth PMI functions, embedding dimension $D$ must scale exponentially in input dimension: $\epsilon^{-\frac{\min\{d_1, d_2\}}{2\beta}}$. Under the structured $K$-latent-class model, $D$ collapses to just the constant $K$, and the clean-modality network's depth and width shrink from exponential rates down to logarithmic $\log(1/\epsilon)$ terms!
  • Fast Calibration Rate: Under the Tsybakov noise condition with exponent $\mu \ge 0$, downstream retrieval excess risk scales as $(\mathcal{L}(s) - \mathcal{L}^*)^{\frac{\mu+1}{\mu+2}}$. This beats the standard $\frac{1}{2}$ square-root exponent whenever $\mu > 0$, approaching a linear $1:1$ transfer rate as $\mu \to \infty$.

Limitations and Future Work

  • Optimization is left open: Expressivity doesn't guarantee learnability. Just because a compact ReLU network can represent the top singular functions of PMI doesn't mean SGD or Adam will find them. Studying the training dynamics of first-order optimization is a major next step.
  • Dot products vs. Cosine similarity: In practice, models like CLIP normalize embeddings onto a hypersphere (cosine similarity) rather than using raw, unbounded inner products. While the authors briefly note that $(D+2)$-dimensional cosine scores can mimic rank-$D$ spectral scores in general function spaces, analyzing the expressive power of DNN-parameterized cosine similarity remains an open, mathematically thorny challenge.
  • Clean-anchor assumption: Their cleanest structured-data bounds assume the anchor view deterministically reveals the ground-truth latent class (though they note in the appendix this can be relaxed to high-probability posteriors at the cost of heavier math).

Summary updated

Abstract

Contrastive representation learning (CRL) is a fundamental paradigm for learning transferable representations. Recent work identifies its population target as the pointwise mutual information (PMI) $ \log\frac{p(\mathbf{x},\mathbf{y})}{p_\mathcal{X}(\mathbf{x})p_\mathcal{Y}(\mathbf{y})} $ between two modalities $\mathcal{X},\mathcal{Y}$, where $p$ is the joint density function and $p_\mathcal{X},p_\mathcal{Y}$ are the marginals. However, it remains unclear why standard inner-product scores $f(\mathbf{x})^\top g(\mathbf{y})$ can effectively approximate a generally nonseparable population target PMI. In this paper, we address this question from the aspect of approximation for CRL. By linking PMI to a compact operator, we show that $D$-dimensional inner-product models perform rank-$D$ spectral approximation, with error controlled by the spectral tail. We then study neural network realizations: in general settings, we show that deep neural network scoring functions are universally consistent, and the approximation error rates depend on the smoothness of the PMI function; under structured low-rank data models we obtain improved rates attained by moderate-width encoders. Finally, we establish a fast calibration rate from contrastive excess risk to downstream retrieval error under a density-ratio Tsybakov noise condition.
BibTeX
@inproceedings{li2026approximation,
  author = {Yuanfan Li and Zihan Zhang and Yiming Ying and Ding-Xuan Zhou},
  title = {{Approximation in Contrastive Representation Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=FFSgETbjWN},
}
Figure