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

双温度有助于在没有许多负样本的情况下进行对比学习:理解和简化MoCo

Dual Temperature Helps Contrastive Learning Without Many Negative Samples: Towards Understanding and Simplifying MoCo

KAIST(韩国科学技术院);Northwestern Polytechnical University(西北工业大学);University of North Texas(北德克萨斯大学)

Chaoning Zhang, Kang Zhang, Trung X. Pham, Axi Niu, Zhinan Qiao, Chang D. Yoo, In So Kweon

摘要:

众所周知,对比学习(CL)需要许多负样本,例如MoCo中的65536,对于这些负样本,无词典框架的性能通常较差,因为负样本大小(NSS)受到其小批量大小(MBS)的限制。为了将NSS与MBS解耦,大量CL框架中采用了动态字典,其中最流行的是MoCo家族。从本质上讲,MoCo采用了基于动量的队列字典,我们对其大小和一致性进行了细粒度的分析。我们指出,在MoCo中使用的InfoNCE损失隐含地吸引锚到其相应的正样本与各种强度的处罚,并确定这种锚间的硬度意识属性作为一个主要原因的必要性,一个大的字典。我们的研究结果促使我们简化MoCo V2通过删除其字典以及动量。基于InfoNCE与建议的双温度,我们的简化框架,SimMoCo和SimCo,优于MoCo v2的一个可见的利润。此外,我们的工作弥合了CL和非CL框架之间的差距,有助于更统一地理解SSL中的这两个主流框架。代码可在:https://bit.ly/3LkQbaT.

英文摘要:

Contrastive learning (CL) is widely known to require many negative samples, 65536 in MoCo for instance, for which the performance of a dictionary-free framework is often inferior because the negative sample size (NSS) is limited by its mini-batch size (MBS). To decouple the NSS from the MBS, a dynamic dictionary has been adopted in a large volume of CL frameworks, among which arguably the most popular one is MoCo family. In essence, MoCo adopts a momentum-based queue dictionary, for which we perform a fine-grained analysis of its size and consistency. We point out that InfoNCE loss used in MoCo implicitly attract anchors to their corresponding positive sample with various strength of penalties and identify such inter-anchor hardness-awareness property as a major reason for the necessity of a large dictionary. Our findings motivate us to simplify MoCo v2 via the removal of its dictionary as well as momentum. Based on an InfoNCE with the proposed dual temperature, our simplified frameworks, SimMoCo and SimCo, outperform MoCo v2 by a visible margin. Moreover, our work bridges the gap between CL and non-CL frameworks, contributing to a more unified understanding of these two mainstream frameworks in SSL. Code is available at: https://bit.ly/3LkQbaT.

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

↑