arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2102.08817stat.MLcs.LG
收藏

剖析监督对比学习

Dissecting Supervised Contrastive Learning

University of Salzburg(萨尔茨堡大学);UNC Chapel Hill(北卡罗来纳大学教堂山分校)

Florian Graf, Christoph D. Hofer, Marc Niethammer, Roland Kwitt

摘要:

最小化由高容量编码器组成的线性映射的softmax分数上的交叉熵可以说是在监督学习任务上训练神经网络的最流行的选择。然而,最近的工作表明,人们可以直接优化编码器,通过对比目标的监督变体来获得同等(甚至更多)的区分表示。在这项工作中,我们解决的问题是否有根本的差异,在追求的代表性的几何形状在输出空间的编码器在最小的损失。具体而言,我们证明,在温和的假设下,这两个损失达到最低限度,一旦每个类的代表崩溃的顶点,一个正规的单纯形,在一个超球面。我们提供的经验证据表明,这种配置是在实践中实现的,达到接近最佳状态通常表明良好的泛化性能。然而,这两种损失表现出明显不同的优化行为。完美拟合数据所需的迭代次数与监督对比度损失的随机翻转标签的数量呈超线性关系。这与之前报道的用交叉熵训练的网络的近似线性缩放形成对比。

英文摘要:

Minimizing cross-entropy over the softmax scores of a linear map composed with a high-capacity encoder is arguably the most popular choice for training neural networks on supervised learning tasks. However, recent works show that one can directly optimize the encoder instead, to obtain equally (or even more) discriminative representations via a supervised variant of a contrastive objective. In this work, we address the question whether there are fundamental differences in the sought-for representation geometry in the output space of the encoder at minimal loss. Specifically, we prove, under mild assumptions, that both losses attain their minimum once the representations of each class collapse to the vertices of a regular simplex, inscribed in a hypersphere. We provide empirical evidence that this configuration is attained in practice and that reaching a close-to-optimal state typically indicates good generalization performance. Yet, the two losses show remarkably different optimization behavior. The number of iterations required to perfectly fit to data scales superlinearly with the amount of randomly flipped labels for the supervised contrastive loss. This is in contrast to the approximately linear scaling previously reported for networks trained with cross-entropy.

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

↑