arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2310.11048cs.LGcs.AI
收藏

通过分布鲁棒优化理解对比学习

Understanding Contrastive Learning via Distributionally Robust Optimization

University of Science and Technology of China(中国科学技术大学);Zhejiang University(浙江大学);Institute of Dataspace, Hefei Comprehensive National Science Center(合肥综合性国家科学中心数据空间研究院)

Junkang Wu, Jiawei Chen, Jiancan Wu, Wentao Shi, Xiang Wang, Xiangnan He

AI总结:

本研究通过分布鲁棒优化揭示对比学习对采样偏差的容忍机制,提出调整InfoNCE损失(ADNCE)以缓解过度保守和异常值敏感问题,并在多领域实验中验证有效性。

摘要:

本研究揭示了对比学习(CL)对采样偏差的固有容忍性,其中负样本可能包含相似语义(例如标签)。然而,现有理论未能解释这一现象。我们通过分布鲁棒优化(DRO)的视角分析CL来弥补这一研究空白,获得了几个关键见解:(1)CL本质上是在负采样分布上进行DRO,从而在多种潜在分布上实现稳健性能,并展示了对采样偏差的鲁棒性;(2)温度τ的设计不仅仅是启发式的,而是作为拉格朗日系数,调节潜在分布集合的大小;(3)在DRO和互信息之间建立了理论联系,从而为“InfoNCE作为MI的估计”提供了新证据,并为基于φ散度的广义互信息提供了一种新的估计方法。我们还指出了CL的潜在缺陷,包括过度保守和对异常值的敏感性,并引入了一种新的调整InfoNCE损失(ADNCE)来缓解这些问题。它细化了潜在分布,提高了性能并加速了收敛。在多个领域(图像、句子和图)的大量实验验证了该提议的有效性。代码可在https://github.com/junkangwu/ADNCE获取。

英文摘要:

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}.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑