Exploring the Impact of Negative Samples of Contrastive Learning: A Case Study of Sentence Embedding
Not on the map. Why?
Abstract (arXiv)
Contrastive learning is emerging as a powerful technique for extracting knowledge from unlabeled data. This technique requires a balanced mixture of two ingredients: positive (similar) and negative (dissimilar) samples. This is typically achieved by maintaining a queue of negative samples during training. Prior works in the area typically uses a fixed-length negative sample queue, but how the negative sample size affects the model performance remains unclear. The opaque impact of the number of negative samples on performance when employing contrastive learning aroused our in-depth exploration. This paper presents a momentum contrastive learning model with negative sample queue for sentence embedding, namely MoCoSE. We add the prediction layer to the online branch to make the model asymmetric and together with EMA update mechanism of the target branch to prevent the model from collapsing. We define a maximum traceable distance metric, through which we learn to what extent the text contrastive learning benefits from the historical information of negative samples. Our experiments find that the best results are obtained when the maximum traceable distance is at a certain range, demonstrating that there is an optimal range of historical information for a negative sample queue. We evaluate the proposed unsupervised MoCoSE on the semantic text similarity (STS) task and obtain an average Spearman's correlation of 77.27%. Source code is available at https://github.com/xbdxwyh/mocose.
Key facts. Cited by 25 papers in the map (data through 7 Oct 2026). Builds on 24 of its 39 references that are in the map. First posted on arXiv 26 Feb 2022.
Builds on
24 of 39 references.
References · 24
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 11,979
- 2018Representation Learning with Contrastive Predictive Codingcited by 7,662
- 2019Momentum Contrast for Unsupervised Visual Representation Learningcited by 7,482
- 2014Explaining and Harnessing Adversarial Examplescited by 7,287
- 2020Bootstrap your own latent: A new approach to self-supervised Learningcited by 4,712
- 2020Exploring Simple Siamese Representation Learningcited by 2,853
- 2021SimCSE: Simple Contrastive Learning of Sentence Embeddingscited by 2,168
- 2021Barlow Twins: Self-Supervised Learning via Redundancy Reductioncited by 1,818
- 2020Understanding Contrastive Representation Learning through Alignment and Uniformity on the Hyperspherecited by 1,393
- 2017SemEval-2017 Task 1: Semantic Textual Similarity - Multilingual and Cross-lingual Focused Evaluationcited by 998
- 2020Prototypical Contrastive Learning of Unsupervised Representationscited by 636
12 more
- 2020Whitening for Self-Supervised Representation Learningcited by 278
- 2019Representation Degeneration Problem in Training Natural Language Generation Modelscited by 250
- 2020DeCLUTR: Deep Contrastive Learning for Unsupervised Textual Representationscited by 249
- 2021ConSERT: A Contrastive Framework for Self-Supervised Sentence Representation Transfercited by 231
- 2021Whitening Sentence Representations for Better Semantics and Faster Retrievalcited by 198
- 2020CLEAR: Contrastive Learning for Sentence Representationcited by 186
- 2020CERT: Contrastive Self-supervised Learning for Language Understandingcited by 169
- 2020An Unsupervised Sentence Embedding Method by Mutual Information Maximizationcited by 91
- 2020Contrastive Learning with Adversarial Examplescited by 91
- 2021CLINE: Contrastive Learning with Semantic Negative Examples for Natural Language Understandingcited by 50
- 2021Jigsaw Clustering for Unsupervised Visual Representation Learningcited by 30
- 2021SICKNL: A Dataset for Dutch Natural Language Inferencecited by 20
Built on by
Citing papers per year: 2022: 4; 2023: 11; 2024: 6; 2025: 3; 2026: 1.
25 papers.
Sort:
By area:
- 2024GISTEmbed: Guided In-sample Selection of Training Negatives for Text Embedding Fine-tuningcited by 40
- 2023Facilitating Contrastive Learning of Discourse Relational Senses by Exploiting the Hierarchy of Sense Relationscited by 22
- 2023Composition-contrastive Learning for Sentence Embeddingscited by 14
- 2024Does Negative Sampling Matter? A Review with Insights into its Theory and Applicationscited by 14
- 2023A Comprehensive Survey of Sentence Representations: From the BERT Epoch to the ChatGPT Era and Beyondcited by 11
- 2022Hyperbolic Hierarchical Contrastive Hashingcited by 9
- 2022miCSE: Mutual Information Contrastive Learning for Low-shot Sentence Embeddingscited by 7
- 2023Improving Speech Translation by Cross-Modal Multi-Grained Contrastive Learningcited by 7
- 2024Extracting Sentence Embeddings from Pretrained Transformer Modelscited by 7
- 2023Efficient Domain Adaptation of Sentence Embeddings Using Adapterscited by 6
- 2025Wrong Answers Can Also Be Useful: PlausibleQA -- A Large-Scale QA Dataset with Answer Plausibility Scorescited by 5
- 2024Label-aware Hard Negative Sampling Strategies with Momentum Contrastive Learning for Implicit Hate Speech Detectioncited by 4
13 more
- 2023Modeling Sequential Sentence Relation to Improve Cross-lingual Dense Retrievalcited by 3
- 2025On The Role of Pretrained Language Models in General-Purpose Text Embeddings: A Surveycited by 3
- 2022A Benchmark Study of Contrastive Learning for Arabic Social Meaningcited by 2
- 2023Identical and Fraternal Twins: Fine-Grained Semantic Contrastive Learning of Sentence Representationscited by 2
- 2022Contrastive Learning of Sociopragmatic Meaning in Social Mediacited by 1
- 2023RepCL: Exploring Effective Representation for Continual Text Classificationcited by 1
- 2023An Efficient Self-Supervised Cross-View Training For Sentence Embeddingcited by 1
- 2023Leveraging Generative Language Models for Weakly Supervised Sentence Component Analysis in Video-Language Joint Learningcited by 1
- 2023SCRAPS: Speech Contrastive Representations of Acoustic and Phonetic Spacescited by 0
- 2024reCSE: Portable Reshaping Features for Sentence Embedding in Self-supervised Contrastive Learningcited by 0
- 2024ManiNeg: Manifestation-guided Multimodal Pretraining for Mammography Classificationcited by 0
- 2025Text2Token: Unsupervised Text Representation Learning with Token Target Predictioncited by 0
- 2026Task-Conditional Flow Matching for Balanced Multilingual Text Embedding Adaptationcited by 0
- 2026Task-Conditional Flow Matching for Balanced Multilingual Text Embedding Adaptation6 Aug 2026
- 2025Text2Token: Unsupervised Text Representation Learning with Token Target Prediction11 Oct 2025
- 2025On The Role of Pretrained Language Models in General-Purpose Text Embeddings: A Survey28 Jul 2025
- 2025Wrong Answers Can Also Be Useful: PlausibleQA -- A Large-Scale QA Dataset with Answer Plausibility Scores22 Feb 2025
- 2024ManiNeg: Manifestation-guided Multimodal Pretraining for Mammography Classification24 Sep 2024
- 2024Extracting Sentence Embeddings from Pretrained Transformer Models15 Aug 2024
- 2024reCSE: Portable Reshaping Features for Sentence Embedding in Self-supervised Contrastive Learning9 Aug 2024
- 2024Label-aware Hard Negative Sampling Strategies with Momentum Contrastive Learning for Implicit Hate Speech Detection12 Jun 2024
- 2024Does Negative Sampling Matter? A Review with Insights into its Theory and Applications27 Feb 2024
- 2024GISTEmbed: Guided In-sample Selection of Training Negatives for Text Embedding Fine-tuning26 Feb 2024
- 2023Leveraging Generative Language Models for Weakly Supervised Sentence Component Analysis in Video-Language Joint Learning10 Dec 2023
- 2023An Efficient Self-Supervised Cross-View Training For Sentence Embedding6 Nov 2023
13 more
- 2023SCRAPS: Speech Contrastive Representations of Acoustic and Phonetic Spaces23 Jul 2023
- 2023Identical and Fraternal Twins: Fine-Grained Semantic Contrastive Learning of Sentence Representations20 Jul 2023
- 2023Composition-contrastive Learning for Sentence Embeddings14 Jul 2023
- 2023Efficient Domain Adaptation of Sentence Embeddings Using Adapters6 Jul 2023
- 2023A Comprehensive Survey of Sentence Representations: From the BERT Epoch to the ChatGPT Era and Beyond22 May 2023
- 2023RepCL: Exploring Effective Representation for Continual Text Classification12 May 2023
- 2023Improving Speech Translation by Cross-Modal Multi-Grained Contrastive Learning20 Apr 2023
- 2023Modeling Sequential Sentence Relation to Improve Cross-lingual Dense Retrieval3 Feb 2023
- 2023Facilitating Contrastive Learning of Discourse Relational Senses by Exploiting the Hierarchy of Sense Relations6 Jan 2023
- 2022Hyperbolic Hierarchical Contrastive Hashing17 Dec 2022
- 2022miCSE: Mutual Information Contrastive Learning for Low-shot Sentence Embeddings9 Nov 2022
- 2022A Benchmark Study of Contrastive Learning for Arabic Social Meaning22 Oct 2022
- 2022Contrastive Learning of Sociopragmatic Meaning in Social Media15 Mar 2022
- 2023Facilitating Contrastive Learning of Discourse Relational Senses by Exploiting the Hierarchy of Sense Relationscited by 22
- 2023Composition-contrastive Learning for Sentence Embeddingscited by 14
- 2024Does Negative Sampling Matter? A Review with Insights into its Theory and Applicationscited by 14
- 2023A Comprehensive Survey of Sentence Representations: From the BERT Epoch to the ChatGPT Era and Beyondcited by 11
- 2022Hyperbolic Hierarchical Contrastive Hashingcited by 9
- 2022miCSE: Mutual Information Contrastive Learning for Low-shot Sentence Embeddingscited by 7
- 2023Improving Speech Translation by Cross-Modal Multi-Grained Contrastive Learningcited by 7
- 2024Extracting Sentence Embeddings from Pretrained Transformer Modelscited by 7
- 2023Efficient Domain Adaptation of Sentence Embeddings Using Adapterscited by 6
- 2025Wrong Answers Can Also Be Useful: PlausibleQA -- A Large-Scale QA Dataset with Answer Plausibility Scorescited by 5
- 2024Label-aware Hard Negative Sampling Strategies with Momentum Contrastive Learning for Implicit Hate Speech Detectioncited by 4
- 2023Modeling Sequential Sentence Relation to Improve Cross-lingual Dense Retrievalcited by 3
12 most cited of 23 All 23 (JSON)
- 2025Text2Token: Unsupervised Text Representation Learning with Token Target Prediction11 Oct 2025
- 2025On The Role of Pretrained Language Models in General-Purpose Text Embeddings: A Survey28 Jul 2025
- 2025Wrong Answers Can Also Be Useful: PlausibleQA -- A Large-Scale QA Dataset with Answer Plausibility Scores22 Feb 2025
- 2024ManiNeg: Manifestation-guided Multimodal Pretraining for Mammography Classification24 Sep 2024
- 2024Extracting Sentence Embeddings from Pretrained Transformer Models15 Aug 2024
- 2024reCSE: Portable Reshaping Features for Sentence Embedding in Self-supervised Contrastive Learning9 Aug 2024
- 2024Label-aware Hard Negative Sampling Strategies with Momentum Contrastive Learning for Implicit Hate Speech Detection12 Jun 2024
- 2024Does Negative Sampling Matter? A Review with Insights into its Theory and Applications27 Feb 2024
- 2023Leveraging Generative Language Models for Weakly Supervised Sentence Component Analysis in Video-Language Joint Learning10 Dec 2023
- 2023An Efficient Self-Supervised Cross-View Training For Sentence Embedding6 Nov 2023
- 2023SCRAPS: Speech Contrastive Representations of Acoustic and Phonetic Spaces23 Jul 2023
- 2023Identical and Fraternal Twins: Fine-Grained Semantic Contrastive Learning of Sentence Representations20 Jul 2023
12 newest of 23 All 23 (JSON)