Discovering Global False Negatives On the Fly for Self-supervised Contrastive Learning

Vicente Balmaseda, Bokun Wang, Ching-Long Lin, Tianbao Yang
2/14/2026

No official code found. Best implementation: vibalcam/GloFND (2 stars, last commit 2025-06-04).

Abstract

In self-supervised contrastive learning, negative pairs are typically constructed using an anchor image and a sample drawn from the entire dataset, excluding the anchor. However, this approach can result in the creation of negative pairs with similar semantics, referred to as"false negatives", leading to their embeddings being falsely pushed apart. To address this issue, we introduce GloFND, an optimization-based approach that automatically learns on the fly the threshold for each anchor data to identify its false negatives during training. In contrast to previous methods for false negative discovery, our approach globally detects false negatives across the entire dataset rather than locally within the mini-batch. Moreover, its per-iteration computation cost remains independent of the dataset size. Experimental results on image and image-text data demonstrate the effectiveness of the proposed method. Our implementation is available at https://github.com/vibalcam/GloFND.

View on arXivView PDF

Code Implementations(1)

vibalcam/GloFNDCommunity63%

Official implementation of "Discovering Global False Negatives On the Fly for Self-supervised Contrastive Learning"

21Shell, PythonMar 11, 20241 years ago
contrastive-learningfalse-negativesicml-2025machine-learningself-supervised-learning

Similar Papers

Cite this paper

@article{balmaseda2026discovering,
  title  = {Discovering Global False Negatives On the Fly for Self-supervised Contrastive Learning},
  author = {Vicente Balmaseda and Bokun Wang and Ching-Long Lin and Tianbao Yang},
  year   = {2026},
  eprint = {2502.20612},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2502.20612},
  journal = {ICML 2025 2025}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.20612.svg)](https://codeofpaper.com/paper/2502.20612)

Discussion