计算机科学 > 机器学习
[提交于 2021年1月24日 (v1),最后修订于 2021年1月24日 (此版本, v2)]
标题:Contrastive Learning with Hard Negative Samples
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:How can you sample good negative examples for contrastive learning? We argue that, as with metric learning, contrastive learning of representations benefits from hard negative samples (i.e., points that are difficult to distinguish from an anchor point). The key challenge toward using hard negatives is that contrastive methods must remain unsupervised, making it infeasible to adopt existing negative sampling strategies that use true similarity information. In response, we develop a new family of unsupervised sampling methods for selecting hard negative samples where the user can control the hardness. A limiting case of this sampling results in a representation that tightly clusters each class, and pushes different classes as far apart as possible. The proposed method improves downstream performance across multiple modalities, requires only few additional lines of code to implement, and introduces no computational overhead.
提交历史
来自:Joshua Robinson[v2] 2021年1月24日 星期日 22:19:30 UTC