Momentum Contrastive Learning with Enhanced Negative Sampling and Hard Negative Filtering

Duy Hoang, Huy Ngo, Khoi Pham, Tri Nguyen, Gia Bao +1 more
1/20/2025
cs.LGcs.AI

No confident code implementation found for this paper.

Abstract

Contrastive learning has become pivotal in unsupervised representation learning, with frameworks like Momentum Contrast (MoCo) effectively utilizing large negative sample sets to extract discriminative features. However, traditional approaches often overlook the full potential of key embeddings and are susceptible to performance degradation from noisy negative samples in the memory bank. This study addresses these challenges by proposing an enhanced contrastive learning framework that incorporates two key innovations. First, we introduce a dual-view loss function, which ensures balanced optimization of both query and key embeddings, improving representation quality. Second, we develop a selective negative sampling strategy that emphasizes the most challenging negatives based on cosine similarity, mitigating the impact of noise and enhancing feature discrimination. Extensive experiments demonstrate that our framework achieves superior performance on downstream tasks, delivering robust and well-structured representations. These results highlight the potential of optimized contrastive mechanisms to advance unsupervised learning and extend its applicability across domains such as computer vision and natural language processing

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{hoang2025momentum,
  title  = {Momentum Contrastive Learning with Enhanced Negative Sampling and Hard Negative Filtering},
  author = {Duy Hoang and Huy Ngo and Khoi Pham and Tri Nguyen and Gia Bao and Huy Phan},
  year   = {2025},
  eprint = {2501.16360},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2501.16360v1}
}

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/2501.16360.svg)](https://codeofpaper.com/paper/2501.16360)

Discussion