$f$-MICL:理解与泛化基于InfoNCE的对比学习
$f$-MICL: Understanding and Generalizing InfoNCE-based Contrastive Learning
AI总结:
本文提出 $f$-MICL 框架,通过 $f$-散度将基于KL的互信息泛化,并推导出 $f$-高斯相似度,在视觉和自然语言基准上超越 InfoNCE。
摘要:
在自监督对比学习中,一种广泛采用的目标函数是InfoNCE,它使用启发式的余弦相似度进行表示比较,并与最大化基于Kullback-Leibler (KL) 的互信息密切相关。本文旨在回答两个有趣的问题:(1) 我们能否超越基于KL的目标?(2) 除了流行的余弦相似度,我们能否设计更好的相似度函数?我们通过使用 $f$-散度将基于KL的互信息泛化为对比学习中的 $f$-互信息($f$-MICL),从而回答了这两个问题。针对第一个问题,我们提供了多种 $f$-MICL 目标,它们具备 InfoNCE 的优良特性(如对齐性和均匀性),同时取得相似甚至更优的性能。针对第二个问题,假设联合特征分布与高斯核成正比,我们推导出具有更好可解释性和经验性能的 $f$-高斯相似度。最后,我们发现了 $f$-MICL 目标与几种流行的基于 InfoNCE 的目标之间的密切关系。使用来自视觉和自然语言的基准任务,我们在不同架构(SimCLR、MoCo 和 MoCo v3)及数据集上,对不同 $f$-散度的 $f$-MICL 进行了经验性评估。我们观察到,$f$-MICL 普遍优于基准,且表现最佳的 $f$-散度依赖于具体的任务和数据集。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。