arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.11965cs.LGcs.AImath.OCstat.ML
收藏

并非所有语义生而平等:具有自动温度个性化的对比自监督学习

Not All Semantics are Created Equal: Contrastive Self-supervised Learning with Automatic Temperature Individualization

Nanjing University(南京大学);Texas A&M University(德克萨斯农工大学);the University of Iowa(爱荷华大学);Google Research(谷歌研究院)

Zi-Hao Qiu, Quanqi Hu, Zhuoning Yuan, Denny Zhou, Lijun Zhang, Tianbao Yang

AI总结:

针对对比学习中全局温度忽略语义差异的问题,提出基于分布鲁棒优化的鲁棒对比损失及高效随机算法,自动为不同样本学习个性化温度,在不平衡数据上显著提升特征可分性与模型性能。

摘要:

在本文中,我们旨在以有原则和系统的方式优化具有个性化温度的对比损失,用于自监督学习。使用全局温度参数 $τ$ 的常见做法忽略了“并非所有语义生而平等”的事实,这意味着不同的锚点数据可能具有不同数量的相似语义样本,特别是当数据呈现长尾时。首先,我们受分布鲁棒优化(DRO)启发提出了一种新的鲁棒对比损失,为我们提供了关于 $τ$ 效应的直觉和自动温度个性化的机制。然后,我们提出了一种高效的随机算法来优化鲁棒对比损失,在无需使用大批量大小的情况下具有可证明的收敛保证。理论和实验结果表明,我们的算法自动为每个样本学习合适的 $τ$。具体而言,具有频繁语义的样本使用大温度以保持局部语义结构,而具有罕见语义的样本使用小温度以诱导更具可分性的特征。我们的方法不仅在单模态和双模态数据集上优于先前的强基线(例如 SimCLR、CLIP),在不平衡数据上提升更大,而且对超参数不那么敏感。据我们所知,这是优化具有个性化温度的对比损失的首个系统性方法。

英文摘要:

In this paper, we aim to optimize a contrastive loss with individualized temperatures in a principled and systematic manner for self-supervised learning. The common practice of using a global temperature parameter $τ$ ignores the fact that ``not all semantics are created equal", meaning that different anchor data may have different numbers of samples with similar semantics, especially when data exhibits long-tails. First, we propose a new robust contrastive loss inspired by distributionally robust optimization (DRO), providing us an intuition about the effect of $τ$ and a mechanism for automatic temperature individualization. Then, we propose an efficient stochastic algorithm for optimizing the robust contrastive loss with a provable convergence guarantee without using large mini-batch sizes. Theoretical and experimental results show that our algorithm automatically learns a suitable $τ$ for each sample. Specifically, samples with frequent semantics use large temperatures to keep local semantic structures, while samples with rare semantics use small temperatures to induce more separable features. Our method not only outperforms prior strong baselines (e.g., SimCLR, CLIP) on unimodal and bimodal datasets with larger improvements on imbalanced data but also is less sensitive to hyper-parameters. To our best knowledge, this is the first methodical approach to optimizing a contrastive loss with individualized temperatures.

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

↑