Do More Negative Samples Necessarily Hurt in Contrastive Learning?
Abstract
Recent investigations in noise contrastive estimation suggest, both empirically as well as theoretically, that while having more “negative samples” in the contrastive loss improves downstream classification performance initially, beyond a threshold, it hurts downstream performance due to a “collision-coverage” trade-off. But is such a phenomenon inherent in contrastive learning? We show in a simple theoretical setting, where positive pairs are generated by sampling from the underlying latent class (introduced by Saunshi et al. (ICML 2019)), that the downstream performance of the representation optimizing the (population) contrastive loss in fact does not degrade with the number of negative samples. Along the way, we give a structural characterization of the optimal representation in our framework, for noise contrastive estimation. We also provide empirical support for our theoretical results on CIFAR-10 and CIFAR-100 datasets.
Cite
Text
Awasthi et al. "Do More Negative Samples Necessarily Hurt in Contrastive Learning?." International Conference on Machine Learning, 2022.Markdown
[Awasthi et al. "Do More Negative Samples Necessarily Hurt in Contrastive Learning?." International Conference on Machine Learning, 2022.](https://mlanthology.org/icml/2022/awasthi2022icml-more/)BibTeX
@inproceedings{awasthi2022icml-more,
title = {{Do More Negative Samples Necessarily Hurt in Contrastive Learning?}},
author = {Awasthi, Pranjal and Dikkala, Nishanth and Kamath, Pritish},
booktitle = {International Conference on Machine Learning},
year = {2022},
pages = {1101-1116},
volume = {162},
url = {https://mlanthology.org/icml/2022/awasthi2022icml-more/}
}