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

带有难负样本的监督对比学习

Supervised Contrastive Learning with Hard Negative Samples

Dept. of ECE Tufts University(电子工程系塔夫茨大学);Dept. of CS Tufts University(计算机科学系塔夫茨大学);Dept. of ECE Boston University(电子工程系波士顿大学)

Ruijie Jiang, Thuan Nguyen, Prakash Ishwar, Shuchin Aeron

AI总结:

本文提出H-SCL,通过硬化函数调整类条件负采样分布,提升对比学习在下游分类任务中的性能,并分析H-SCL损失与H-UCL损失的关系。

摘要:

通过最小化适当的损失函数(如InfoNCE损失),对比学习(CL)通过将正样本拉近、推斥负样本来学习有用的表示函数。正样本通常通过

英文摘要:

Through minimization of an appropriate loss function such as the InfoNCE loss, contrastive learning (CL) learns a useful representation function by pulling positive samples close to each other while pushing negative samples far apart in the embedding space. The positive samples are typically created using "label-preserving" augmentations, i.e., domain-specific transformations of a given datum or anchor. In absence of class information, in unsupervised CL (UCL), the negative samples are typically chosen randomly and independently of the anchor from a preset negative sampling distribution over the entire dataset. This leads to class-collisions in UCL. Supervised CL (SCL), avoids this class collision by conditioning the negative sampling distribution to samples having labels different from that of the anchor. In hard-UCL (H-UCL), which has been shown to be an effective method to further enhance UCL, the negative sampling distribution is conditionally tilted, by means of a hardening function, towards samples that are closer to the anchor. Motivated by this, in this paper we propose hard-SCL (H-SCL) {wherein} the class conditional negative sampling distribution {is tilted} via a hardening function. Our simulation results confirm the utility of H-SCL over SCL with significant performance gains {in downstream classification tasks.} Analytically, we show that {in the} limit of infinite negative samples per anchor and a suitable assumption, the {H-SCL loss} is upper bounded by the {H-UCL loss}, thereby justifying the utility of H-UCL {for controlling} the H-SCL loss in the absence of label information. Through experiments on several datasets, we verify the assumption as well as the claimed inequality between H-UCL and H-SCL losses. We also provide a plausible scenario where H-SCL loss is lower bounded by UCL loss, indicating the limited utility of UCL in controlling the H-SCL loss.

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

↑