Contrastive Learning with Hard Negative Samples

By Joshua Robinson, Ching-Yao Chuang, Suvrit Sra, Stefanie Sabrina Jegelka. 2020

1,052 citations recorded by the source corpus.

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.

Subfields: Artificial Intelligence, Computer Vision and Pattern Recognition, Representation & Self-Supervised Learning, Signal Processing

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Mohit Bansal
  2. Jianfeng Gao
  3. Luke S. Zettlemoyer
  4. Percy Liang
  5. Noah A. Smith
  6. Yejin Choi
  7. Yoshua Bengio
  8. Quoc V. Le

In Computer Vision and Pattern Recognition

  1. Luc Van Gool
  2. Dacheng Tao
  3. Xiaogang Wang
  4. Yi Yang
  5. Trevor Darrell
  6. Ming-Hsuan Yang
  7. Jitendra Malik
  8. Bernt Schiele

In Representation & Self-Supervised Learning

  1. Kyunghyun Cho
  2. Xiatian Zhu
  3. Luc Van Gool
  4. Elisa Ricci
  5. Lanqing Hong
  6. Noah A. Smith
  7. Wen-tau Yih
  8. Enrico Fini

In Signal Processing

  1. Lawrence Carin
  2. Yuandong Tian
  3. Wieland Brendel
  4. Xiatian Zhu
  5. Zeynep Akata
  6. Kyunghyun Cho
  7. Matthias Bethge
  8. Pascale Fung

Citations in the corpus