[Paper Review] $f$-MICL: Understanding and Generalizing InfoNCE-based Contrastive Learning
This paper generalizes InfoNCE to f-mutual information (f-MICL) using f-divergences, introduces f-Gaussian similarity, and shows empirical gains across vision and language benchmarks with various architectures.
In self-supervised contrastive learning, a widely-adopted objective function is InfoNCE, which uses the heuristic cosine similarity for the representation comparison, and is closely related to maximizing the Kullback-Leibler (KL)-based mutual information. In this paper, we aim at answering two intriguing questions: (1) Can we go beyond the KL-based objective? (2) Besides the popular cosine similarity, can we design a better similarity function? We provide answers to both questions by generalizing the KL-based mutual information to the $f$-Mutual Information in Contrastive Learning ($f$-MICL) using the $f$-divergences. To answer the first question, we provide a wide range of $f$-MICL objectives which share the nice properties of InfoNCE (e.g., alignment and uniformity), and meanwhile result in similar or even superior performance. For the second question, assuming that the joint feature distribution is proportional to the Gaussian kernel, we derive an $f$-Gaussian similarity with better interpretability and empirical performance. Finally, we identify close relationships between the $f$-MICL objective and several popular InfoNCE-based objectives. Using benchmark tasks from both vision and natural language, we empirically evaluate $f$-MICL with different $f$-divergences on various architectures (SimCLR, MoCo, and MoCo v3) and datasets. We observe that $f$-MICL generally outperforms the benchmarks and the best-performing $f$-divergence is task and dataset dependent.
Motivation & Objective
- Extend contrastive learning beyond KL-based mutual information (InfoNCE) to the broader f-mutual information (f-MICL).
- Investigate whether alternatives to cosine similarity can yield better performance in contrastive objectives.
- Develop a practical f-Gaussian similarity under an assumption about joint feature distributions.
- Demonstrate empirical benefits of f-MICL across datasets, architectures, and modalities.
- Relate f-MICL to existing InfoNCE-based objectives and provide theoretical properties like alignment and uniformity.
Proposed method
- Generalize MI to the f-MI framework and derive a variational lower bound for optimization in contrastive learning.
- Propose the f-MICL objective: max_{s in F} E_{(x,y)~p+} s(g(x),g(y)) - E_{(x,y)~p×} f*∘s(g(x),g(y)).
- Introduce the f-Gaussian similarity s_f(x^g,y^g) = f'∘G_σ(||x^g - y^g||^2) as a practical similarity measure.
- Assume joint feature density is proportional to a Gaussian kernel on the unit hypersphere, yielding a practical s_f based on f and Gaussian priors.
- Provide empirical estimation for a batch: (1/N)∑ s_f(x_i^g,y_i^g) - (α/(N(N-1)))∑_{i≠j} f*∘s_f(x_i^g,x_j^g).
- Show connections to existing objectives (InfoNCE, AU, Spectral Contrastive Loss) and discuss alignment/uniformity properties.

Experimental results
Research questions
- RQ1Can we extend InfoNCE’s KL-based objective to a wider family of f-divergences (f-MICL) without sacrificing performance?
- RQ2Is cosine similarity the best choice for measuring similarity in contrastive learning, or can f-Gaussian or other similarity functions improve results?
- RQ3What theoretical and empirical properties (like alignment and uniformity) extend from InfoNCE to the f-MICL framework?
- RQ4如何在 vision 和 language 任务中评估不同 f-divergences 对下游表示的影响?
Key findings
- f-MICL provides a spectrum of objectives via different f-divergences, often yielding similar or superior performance to InfoNCE.
- The proposed f-Gaussian similarity consistently outperforms cosine similarity across tested f-divergences.
- InfoNCE is an upper bound of the f-MICL objective, linking the new framework to existing methods.
- AU is shown as a special case within the f-MICL framework, illustrating alignment and uniformity properties extend to f-MICL.
- Different datasets/tasks prefer different f-divergences; no single f-divergence dominates all settings.
- f-Gaussian similarity improves performance across datasets such as CIFAR-10, STL-10, TinyImageNet, and ImageNet when using MoCo v3 with ViT-S.

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.