Papers
arxiv:2611.18469

Contrastive latent representation learning with denoising score matching

Published on Nov 13
Authors:
,
,

Abstract

ScoreCLR estimates the repulsive term in contrastive representation learning via denoising score matching of latent scores, reducing batch-size cost while preserving linear-probe accuracy and increasing projector rank.

Contrastive representation learning methods operate by pulling different views of the same data sample together while pushing them away from views of different samples. A fundamental challenge is the estimation of the repulsive force, which typically requires large batch sizes, can exhibit high variance, and is susceptible to the curse of dimensionality. We introduce ScoreCLR, a contrastive representation learning method that offers a novel way to estimate this repulsion term. We consider the framework of representation learning by maximizing the mutual information between two latent views of a sample. By deriving the gradient of the Shannon entropy with respect to the encoder parameters, we obtain an equivalent objective that involves the score of the latent representation. We then use denoising score matching techniques to estimate this score with a lightweight network that is trained jointly with the encoder. We further propose regularization techniques using different noise levels and a Gaussian prior on the latent representation. ScoreCLR replaces the batch of explicit negative samples in contrastive methods with a learned repulsion whose cost is linear in the batch size rather than quadratic. On CIFAR-10 and ImageNet-100 it does so with minimal loss of linear-probe accuracy compared to SimCLR under a shared recipe, while producing projector outputs of higher effective rank, closer to the Gaussian prior.

Community

Author here 👋 ScoreCLR replaces the negative pairs of contrastive learning with a small diffusion score network. The repulsion is the entropy term of the mutual information, and its gradient only needs the score of the latent distribution:

∇ᵩ H(Z) = ½ ∇ᵩ 𝔼‖Z − sg(Z + ∇log p(Z))‖² (sg = stop-gradient)

We learn this score with denoising score matching, jointly with the encoder. The resulting regularizer, ScoreReg, drifts each code toward low-density regions. With a Gaussian prior it targets the same isotropic Gaussian as SIGReg in LeJEPA, but uses the full score instead of random 1-D projections.

What we find most interesting is the geometry: effective rank 229/256 on CIFAR-10 (SimCLR 96, LeJEPA 58) and 244/256 on ImageNet-100 (SimCLR 143), and a Poincaré constant of 7.8, against 25.0 for SimCLR and 13.5 for LeJEPA (1 for a Gaussian).

Code: https://github.com/chris-mrn/ScoreCLR_code

Happy to answer questions, and very curious about results on other datasets or backbones.

Sign up or log in to comment

Get this paper in your agent:

hf papers read 2611.18469
Don't have the latest CLI?
curl -LsSf https://hf.co/cli/install.sh | bash

Models citing this paper 1

Datasets citing this paper 0

No dataset linking this paper

Cite arxiv.org/abs/2611.18469 in a dataset README.md to link it from this page.

Spaces citing this paper 0

No Space linking this paper

Cite arxiv.org/abs/2611.18469 in a Space README.md to link it from this page.

Collections including this paper 0

No Collection including this paper

Add this paper to a collection to link it from this page.