[Paper Review] Understanding Contrastive Learning via Distributionally Robust Optimization
The paper analyzes contrastive learning through distributionally robust optimization (DRO), showing CL behaves like DRO over negative sampling distributions and introduces ADNCE to mitigate conservatism and outlier sensitivity across image, sentence, and graph domains.
This study reveals the inherent tolerance of contrastive learning (CL) towards sampling bias, wherein negative samples may encompass similar semantics (\eg labels). However, existing theories fall short in providing explanations for this phenomenon. We bridge this research gap by analyzing CL through the lens of distributionally robust optimization (DRO), yielding several key insights: (1) CL essentially conducts DRO over the negative sampling distribution, thus enabling robust performance across a variety of potential distributions and demonstrating robustness to sampling bias; (2) The design of the temperature $τ$ is not merely heuristic but acts as a Lagrange Coefficient, regulating the size of the potential distribution set; (3) A theoretical connection is established between DRO and mutual information, thus presenting fresh evidence for ``InfoNCE as an estimate of MI'' and a new estimation approach for $ϕ$-divergence-based generalized mutual information. We also identify CL's potential shortcomings, including over-conservatism and sensitivity to outliers, and introduce a novel Adjusted InfoNCE loss (ADNCE) to mitigate these issues. It refines potential distribution, improving performance and accelerating convergence. Extensive experiments on various domains (image, sentence, and graphs) validate the effectiveness of the proposal. The code is available at \url{https://github.com/junkangwu/ADNCE}.
Motivation & Objective
- Motivate why CL is robust to sampling bias and understand the role of the temperature parameter τ.
- Show that CL implements a DRO over negative sampling distributions constrained by φ-divergence (KL and beyond).
- Establish theoretical connections between DRO, mutual information, and InfoNCE as MI estimation.
- Identify limitations of CL under DRO (over-conservatism, outliers) and propose a corrective method.
Proposed method
- Formulate CL-DRO as a DRO objective over negative samples with a φ-divergence constraint.
- Relate the KL-based CL-DRO objective to the InfoNCE loss and identify τ as a temperature that acts as a Lagrange multiplier.
- Derive a mean-variance interpretation of CL-DRO showing variance control as a byproduct of DRO.
- Generalize to ϕ-divergence to connect CL-DRO with ϕ-divergence-based mutual information (Iϕ).
- Propose ADNCE by reweighting negatives with Gaussian-like weights to reduce conservatism and sensitivity to outliers.
- Provide empirical validation across image, sentence, and graph modalities.
Experimental results
Research questions
- RQ1Why is contrastive learning tolerant to sampling bias in negative samples?
- RQ2What exactly is the role of the temperature τ in CL from a DRO perspective?
- RQ3How are DRO and mutual information connected in the context of CL?
- RQ4Can CL be improved when negative distributions are adjusted to mitigate over-conservatism and outliers?
Key findings
- CL optimizes a DRO over negative sampling distributions, improving robustness to sampling bias.
- τ acts as a Lagrange coefficient controlling the size of the potential distribution set (robust radius).
- InfoNCE is connected to a tight variational form for ϕ-divergence-based mutual information, generalizing MI estimation.
- Mean-variance interpretation shows CL introduces variance regularization on negative samples, aiding stability.
- ADNCE reshapes the worst-case distribution with Gaussian-like weights to reduce over-conservatism and outliers, improving convergence and performance across domains.
- Empirical results demonstrate ADNCE’s effectiveness on image, sentence, and graph benchmarks.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.