NAACL 2021long55 citations

Understanding Hard Negatives in Noise Contrastive Estimation

Wenzheng Zhang, Karl Stratos

Abstract

The choice of negative examples is important in noise contrastive estimation. Recent works find that hard negatives—highest-scoring incorrect examples under the model—are effective in practice, but they are used without a formal justification. We develop analytical tools to understand the role of hard negatives. Specifically, we view the contrastive loss as a biased estimator of the gradient of the cross-entropy loss, and show both theoretically and empirically that setting the negative distribution to be the model distribution results in bias reduction. We also derive a general form of the score function that unifies various architectures used in text retrieval. By combining hard negatives with appropriate score functions, we obtain strong results on the challenging task of zero-shot entity linking.

BibTeX
@inproceedings{zhang-stratos-2021-understanding,
    title = "Understanding Hard Negatives in Noise Contrastive Estimation",
    author = "Zhang, Wenzheng  and
      Stratos, Karl",
    editor = "Toutanova, Kristina  and
      Rumshisky, Anna  and
      Zettlemoyer, Luke  and
      Hakkani-Tur, Dilek  and
      Beltagy, Iz  and
      Bethard, Steven  and
      Cotterell, Ryan  and
      Chakraborty, Tanmoy  and
      Zhou, Yichao",
    booktitle = "Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies",
    month = jun,
    year = "2021",
    address = "Online",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2021.naacl-main.86/",
    doi = "10.18653/v1/2021.naacl-main.86",
    pages = "1090--1101"
}
Understanding Hard Negatives in Noise Contrastive Estimation · NAACL 2021