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

全局对比学习的可证随机优化:小批量不会损害性能

Provable Stochastic Optimization for Global Contrastive Learning: Small Batch Does Not Harm Performance

the University of Iowa(爱荷华大学);Google Research(谷歌研究院);Nanjing University(南京大学)

Zhuoning Yuan, Yuexin Wu, Zi-Hao Qiu, Xianzhi Du, Lijun Zhang, Denny Zhou, Tianbao Yang

摘要:

在本文中,我们研究对比学习从优化的角度来看,旨在分析和解决现有的对比学习方法,要么依赖于一个大的批量或大字典的特征向量的一个基本问题。我们考虑了一个全局目标的对比学习,对比每个积极的对与所有负对的锚点。从优化的角度来看,我们解释了为什么现有的方法,如Simplified需要一个大的批量,以达到令人满意的结果。为了消除这种要求,我们提出了一个内存有效的随机优化算法求解的全局目标的对比学习的表示,命名为Sogliterature。我们表明,它的优化误差是可以忽略不计的一个合理的条件下,经过足够数量的迭代或减少略有不同的全球对比目标。从经验上讲,我们证明了小批量的Soglycan(例如,256)可以在大批量的情况下实现与Simplified类似的性能(例如,8192)在ImageNet-1 K上的自监督学习任务。我们还试图表明,所提出的优化技术是通用的,可以应用于解决其他对比损失,例如,双峰对比学习的双向对比损失。所提出的方法在我们的开源库LibAUC(www.libauc.org)中实现。

英文摘要:

In this paper, we study contrastive learning from an optimization perspective, aiming to analyze and address a fundamental issue of existing contrastive learning methods that either rely on a large batch size or a large dictionary of feature vectors. We consider a global objective for contrastive learning, which contrasts each positive pair with all negative pairs for an anchor point. From the optimization perspective, we explain why existing methods such as SimCLR require a large batch size in order to achieve a satisfactory result. In order to remove such requirement, we propose a memory-efficient Stochastic Optimization algorithm for solving the Global objective of Contrastive Learning of Representations, named SogCLR. We show that its optimization error is negligible under a reasonable condition after a sufficient number of iterations or is diminishing for a slightly different global contrastive objective. Empirically, we demonstrate that SogCLR with small batch size (e.g., 256) can achieve similar performance as SimCLR with large batch size (e.g., 8192) on self-supervised learning task on ImageNet-1K. We also attempt to show that the proposed optimization technique is generic and can be applied to solving other contrastive losses, e.g., two-way contrastive losses for bimodal contrastive learning. The proposed method is implemented in our open-sourced library LibAUC (www.libauc.org).

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

↑