arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2310.05615cs.CVcs.AIcs.LG
收藏

自适应多头对比学习

Adaptive Multi-head Contrastive Learning

Australian National University(澳大利亚国立大学);Data61/CSIRO;Curtin University(科廷大学)

Lei Wang, Piotr Koniusz, Tom Gedeon, Liang Zheng

AI总结:

针对对比学习中单一投影头难以处理复杂样本相似度的问题,提出自适应多头对比学习(AMCL),通过多个投影头生成特征并结合自适应温度的损失函数,有效增强了 SimCLR、MoCo 和 Barlow Twins 等方法的性能。

摘要:

在对比学习中,由不同数据增强生成的同一原始图像的两个视图被视为正样本对,要求它们具有较高的相似度。类似地,不同图像的两个视图构成负样本对,鼓励其相似度较低。通常,由单个投影头提供的单一相似度度量来评估正负样本对。然而,由于多样的增强策略和变化的样本内相似度,来自同一图像的视图可能并不总是相似。此外,由于样本间相似度,来自不同图像的视图可能比来自同一图像的视图更相似。因此,强制正样本对具有高相似度且负样本对具有低相似度可能是无法实现的,在某些情况下,这种强制甚至可能对性能产生不利影响。为了应对这一挑战,我们提出使用多个投影头,每个投影头产生一组不同的特征。我们的预训练损失函数源自在给定观测下正样本的逐头后验分布的最大似然估计的解。该损失结合了正负样本对的相似度度量,每对都由单独的自适应温度重新加权,并进行正则化以防止不良解。我们的方法,即自适应多头对比学习(AMCL),可以应用于并实验性地增强几种流行的对比学习方法,如 SimCLR、MoCo 和 Barlow Twins。这种改进在各种骨干网络和线性探测轮次中保持一致,并且在采用多种增强方法时变得更加显著。

英文摘要:

In contrastive learning, two views of an original image, generated by different augmentations, are considered a positive pair, and their similarity is required to be high. Similarly, two views of distinct images form a negative pair, with encouraged low similarity. Typically, a single similarity measure, provided by a lone projection head, evaluates positive and negative sample pairs. However, due to diverse augmentation strategies and varying intra-sample similarity, views from the same image may not always be similar. Additionally, owing to inter-sample similarity, views from different images may be more akin than those from the same image. Consequently, enforcing high similarity for positive pairs and low similarity for negative pairs may be unattainable, and in some cases, such enforcement could detrimentally impact performance. To address this challenge, we propose using multiple projection heads, each producing a distinct set of features. Our pre-training loss function emerges from a solution to the maximum likelihood estimation over head-wise posterior distributions of positive samples given observations. This loss incorporates the similarity measure over positive and negative pairs, each re-weighted by an individual adaptive temperature, regulated to prevent ill solutions. Our approach, Adaptive Multi-Head Contrastive Learning (AMCL), can be applied to and experimentally enhances several popular contrastive learning methods such as SimCLR, MoCo, and Barlow Twins. The improvement remains consistent across various backbones and linear probing epochs, and becomes more significant when employing multiple augmentation methods.

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

↑