atlas

Research map / Label-efficient and robust learning / Recognition and long-tail

EMC$^2$: Efficient MCMC Negative Sampling for Contrastive Learning with Global Convergence

ICML 2024 · Label-efficient and robust learning › Recognition and long-tail · approach: Contrastive representation theory · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes EMC², an adaptive Metropolis-Hastings MCMC negative sampler run online during SGD for the global contrastive loss, with an O(1/sqrt(T)) stationarity guarantee independent of batch size, and shows gains with small batches on STL-10 and ImageNet-100.

Problem

Contrastive learning needs negatives drawn from a softmax distribution that changes during training, but computing its partition function is expensive; existing methods either need large batches, have high memory/compute cost, or converge only to a neighborhood of stationarity.

Approach

Track the per-positive softmax over negatives with a state-dependent Metropolis-Hastings chain (uniform proposals, acceptance ratio from exponentiated similarities, no partition function) whose state persists across SGD iterations, so burn-in is amortized and the chain adapts online to model updates; the paper proves convergence of this biased, controlled Markov-chain SGD to a stationary point of

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use EMC$^2$ instead of SimCLR, SogCLR, or Negative CacheSTL-10, ResNet-18 · STL-10linear-probe and 1-NN accuracyHelped
Use EMC$^2$ instead of SimCLRImageNet-100, ResNet-50, batch size b=256 · ImageNet-100linear-probe and 1-NN accuracyHelped
Use EMC$^2$ instead of SogCLRImageNet-100, ResNet-50, batch size b=256 · ImageNet-100linear-probe and 1-NN accuracyNo clear effect
Use EMC$^2$ instead of the other baselinesSTL-10 subset, first 500 images, two pre-computed augmentations · STL-10 subsetsquared gradient norm: 2 orders of magnitudeHelped
Use EMC$^2$ instead of SimCLR or SogCLRSTL-10, ResNet-18, batch size b=32 · STL-10training speed: around 2x fasterHelped
Use EMC$^2$ instead of Negative CacheSTL-10, ResNet-18, batch size b=32 · STL-10training speed: 3x fasterHelped
Increase the number of pre-computed image augmentations (ablation)EMC$^2$ · STL-10linear-probe and 1-NN accuracyHelped
Use infinite on-the-fly augmentations with one Markov-chain state per image (ablation)EMC$^2$ · STL-10linear-probe and 1-NN accuracyHelped
Increase the burn-in period P (ablation)EMC$^2$ · STL-10linear-probe and 1-NN accuracy: around P = bHelped

Surprising findings

Limitations

Experimental setup

Datasets: STL-10 ImageNet-100

Benchmarks: STL-10 ImageNet-100

Metrics: linear probe accuracy 1-nearest-neighbor accuracy squared gradient norm

Baselines: SimCLR Negative Cache SogCLR

Builds on: SimCLR SogCLR negative cache InfoNCE biased stochastic approximation with Markovian noise

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy