Unsupervised Sentence Representation via Contrastive Learning with Mixing Negatives
Yanzhao Zhang, Richong Zhang, Samuel Mensah, Xudong Liu, Yongyi Mao
Abstract
Unsupervised sentence representation learning is a fundamental problem in natural language processing. Recently, contrastive learning has made great success on this task. Existing constrastive learning based models usually apply random sampling to select negative examples for training. Previous work in computer vision has shown that hard negative examples help contrastive learning to achieve faster convergency and better optimization for representation learning. However, the importance of hard negatives in contrastive learning for sentence representation is yet to be explored. In this study, we prove that hard negatives are essential for maintaining strong gradient signals in the training process while random sampling negative examples is ineffective for sentence representation. Accordingly, we present a contrastive model, MixCSE, that extends the current state-of-the-art Sim-CSE by continually constructing hard negatives via mixing both positive and negative features. The superior performance of the proposed approach is demonstrated via empirical studies on Semantic Textual Similarity datasets and Transfer task datasets.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
12 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Understanding Contrastive Representation Learning through Alignment and Uniformity on the Hypersphere cites A Simple Framework for Contrastive Learning of Visual Representations
- Hard Negative Mixing for Contrastive Learning cites Understanding Contrastive Representation Learning through Alignment and Uniformity on the Hypersphere
- Hard Negative Mixing for Contrastive Learning cites A Simple Framework for Contrastive Learning of Visual Representations
- Contrastive Learning with Hard Negative Samples cites Understanding Contrastive Representation Learning through Alignment and Uniformity on the Hypersphere
- Contrastive Learning with Hard Negative Samples cites Hard Negative Mixing for Contrastive Learning
- Contrastive Learning with Hard Negative Samples cites A Simple Framework for Contrastive Learning of Visual Representations
- A Shapelet-based Framework for Unsupervised Multivariate Time Series Representation Learning cites A Simple Framework for Contrastive Learning of Visual Representations
- DualCL: Principled Supervised Contrastive Learning as Mutual Information Maximization for Text Classification cites A Simple Framework for Contrastive Learning of Visual Representations
- Modeling Adaptive Inter-Task Feature Interactions via Sentiment-Aware Contrastive Learning for Joint Aspect-Sentiment Prediction cites Understanding Contrastive Representation Learning through Alignment and Uniformity on the Hypersphere
- DeTeCtive: Detecting AI-generated Text via Multi-Level Contrastive Learning cites A Simple Framework for Contrastive Learning of Visual Representations
Cited by top-tier papers12
- DeTeCtive: Detecting AI-generated Text via Multi-Level Contrastive LearningXun Guo, Yongxin He, Shan Zhang, Ting Zhang et al.NeurIPS 2024 · 100 citations
- A Shapelet-based Framework for Unsupervised Multivariate Time Series Representation LearningZhiyu Liang, Jianfeng Zhang, Chen Liang, Hongzhi Wang et al.VLDB 2024 · 19 citations
- Modeling Adaptive Inter-Task Feature Interactions via Sentiment-Aware Contrastive Learning for Joint Aspect-Sentiment PredictionWei Chen, Yuxuan Liu, Zhao Zhang, Fuzhen Zhuang et al.AAAI 2024 · 9 citations
- EMMA-X: An EM-like Multilingual Pre-training Algorithm for Cross-lingual Representation LearningPing Guo, Xiangpeng Wei, Yue Hu, Baosong Yang et al.NeurIPS 2023 · 8 citations
- DualCL: Principled Supervised Contrastive Learning as Mutual Information Maximization for Text ClassificationJunfan Chen, Richong Zhang, Yaowei Zheng, Qianben Chen et al.WWW 2024 · 4 citations
Builds on9
- A Simple Framework for Contrastive Learning of Visual RepresentationsTing Chen, Simon Kornblith, Mohammad Norouzi, Geoffrey E. HintonICML 2020 · 24,064 citations
- Understanding Contrastive Representation Learning through Alignment and Uniformity on the HypersphereTongzhou Wang, Phillip IsolaICML 2020 · 2,360 citations
- Contrastive Learning with Hard Negative SamplesJoshua David Robinson, Ching-Yao Chuang, Suvrit Sra, Stefanie JegelkaICLR 2021 · 999 citations
- Hard Negative Mixing for Contrastive LearningYannis Kalantidis, Mert Bülent Sariyildiz, Noé Pion, Philippe Weinzaepfel et al.NeurIPS 2020 · 805 citations
- On the Sentence Embeddings from Pre-trained Language ModelsBohan Li, Hao Zhou, Junxian He, Mingxuan Wang et al.EMNLP 2020 · 538 citations
Related papers
- Improving Contrastive Learning of Sentence Embeddings with Focal InfoNCEPengyue Hou, Xingyu LiEMNLP Findings 2023 · 7 citations
- Clustering-Aware Negative Sampling for Unsupervised Sentence RepresentationJinghao Deng, Fanqi Wan, Tao Yang, Xiaojun Quan et al.ACL Findings 2023 · 10 citations
- InfoCSE: Information-aggregated Contrastive Learning of Sentence EmbeddingsXing Wu, Chaochen Gao, Zijia Lin, Jizhong Han et al.EMNLP Findings 2022 · 24 citations
- Alleviating Over-smoothing for Unsupervised Sentence RepresentationNuo Chen, Linjun Shou, Jian Pei, Ming Gong et al.ACL 2023 · 10 citations
- RankCSE: Unsupervised Sentence Representations Learning via Learning to RankJiduan Liu, Jiahao Liu, Qifan Wang, Jingang Wang et al.ACL 2023 · 30 citations
