Lune

EMNLP2021Top-tier venue

SimCSE: Simple Contrastive Learning of Sentence Embeddings

Tianyu Gao, Xingcheng Yao, Danqi Chen

Abstract

This paper presents SimCSE, a simple contrastive learning framework that greatly advances the state-of-the-art sentence embeddings. We first describe an unsupervised approach, which takes an input sentence and predicts itself in a contrastive objective, with only standard dropout used as noise. This simple method works surprisingly well, performing on par with previous supervised counterparts. We find that dropout acts as minimal data augmentation and removing it leads to a representation collapse. Then, we propose a supervised approach, which incorporates annotated pairs from natural language inference datasets into our contrastive learning framework, by using "entailment" pairs as positives and "contradiction" pairs as hard negatives. We evaluate SimCSE on standard semantic textual similarity (STS) tasks, and our unsupervised and supervised models using BERT base achieve an average of 76.3% and 81.6% Spearman's correlation respectively, a 4.2% and 2.2% improvement compared to previous best results. We also show-both theoretically and empirically-that contrastive learning objective regularizes pre-trained embeddings' anisotropic space to be more uniform, and it better aligns positive pairs when supervised signals are available. 1

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.

701 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • COCO-LM: Correcting and Contrasting Text Sequences for Language Model Pretraining cites On the Sentence Embeddings from Pre-trained Language Models
  • COCO-LM: Correcting and Contrasting Text Sequences for Language Model Pretraining cites Understanding Contrastive Representation Learning through Alignment and Uniformity on the Hypersphere
  • COCO-LM: Correcting and Contrasting Text Sequences for Language Model Pretraining cites A Simple Framework for Contrastive Learning of Visual Representations
  • Understanding Contrastive Representation Learning through Alignment and Uniformity on the Hypersphere cites A Simple Framework for Contrastive Learning of Visual Representations
  • Mind the Gap: Understanding the Modality Gap in Multi-modal Contrastive Representation Learning cites On the Sentence Embeddings from Pre-trained Language Models
  • Mind the Gap: Understanding the Modality Gap in Multi-modal Contrastive Representation Learning cites Understanding Contrastive Representation Learning through Alignment and Uniformity on the Hypersphere
  • Mind the Gap: Understanding the Modality Gap in Multi-modal Contrastive Representation Learning cites A Simple Framework for Contrastive Learning of Visual Representations
  • Are Graph Augmentations Necessary?: Simple Graph Contrastive Learning for Recommendation cites Understanding Contrastive Representation Learning through Alignment and Uniformity on the Hypersphere
  • Are Graph Augmentations Necessary?: Simple Graph Contrastive Learning for Recommendation cites A Simple Framework for Contrastive Learning of Visual Representations
  • TS2Vec: Towards Universal Representation of Time Series cites A Simple Framework for Contrastive Learning of Visual Representations
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers701

  1. TS2Vec: Towards Universal Representation of Time SeriesZhihan Yue, Yujing Wang, Juanyong Duan, Tianmeng Yang et al.AAAI 2022 · 938 citations
  2. Mind the Gap: Understanding the Modality Gap in Multi-modal Contrastive Representation LearningWeixin Liang, Yuhui Zhang, Yongchan Kwon, Serena Yeung et al.NeurIPS 2022 · 834 citations
  3. Are Graph Augmentations Necessary?: Simple Graph Contrastive Learning for RecommendationJunliang Yu, Hongzhi Yin, Xin Xia, Tong Chen et al.SIGIR 2022 · 658 citations
  4. Transformer Memory as a Differentiable Search IndexYi Tay, Vinh Tran, Mostafa Dehghani, Jianmo Ni et al.NeurIPS 2022 · 506 citations
  5. Scaling Vision Transformers to Gigapixel Images via Hierarchical Self-Supervised LearningRichard J. Chen, Chengkuan Chen, Yicong Li, Tiffany Y. Chen et al.CVPR 2022 · 490 citations

Builds on14

  1. A Simple Framework for Contrastive Learning of Visual RepresentationsTing Chen, Simon Kornblith, Mohammad Norouzi, Geoffrey E. HintonICML 2020 · 24,064 citations
  2. Understanding Contrastive Representation Learning through Alignment and Uniformity on the HypersphereTongzhou Wang, Phillip IsolaICML 2020 · 2,360 citations
  3. Adversarial NLI: A New Benchmark for Natural Language UnderstandingYixin Nie, Adina Williams, Emily Dinan, Mohit Bansal et al.ACL 2020 · 602 citations
  4. On the Sentence Embeddings from Pre-trained Language ModelsBohan Li, Hao Zhou, Junxian He, Mingxuan Wang et al.EMNLP 2020 · 538 citations
  5. COCO-LM: Correcting and Contrasting Text Sequences for Language Model PretrainingYu Meng, Chenyan Xiong, Payal Bajaj, Saurabh Tiwary et al.NeurIPS 2021 · 231 citations

Related papers

  1. InfoCSE: Information-aggregated Contrastive Learning of Sentence EmbeddingsXing Wu, Chaochen Gao, Zijia Lin, Jizhong Han et al.EMNLP Findings 2022 · 24 citations
  2. SimCSE++: Improving Contrastive Learning for Sentence Embeddings from Two PerspectivesJiahao Xu, Wei Shao, Lihui Chen, Lemao LiuEMNLP 2023 · 7 citations
  3. Contrastive Learning of Sentence Embeddings from ScratchJunlei Zhang, Zhenzhong Lan, Junxian HeEMNLP 2023 · 9 citations
  4. ConSERT: A Contrastive Framework for Self-Supervised Sentence Representation TransferYuanmeng Yan, Rumei Li, Sirui Wang, Fuzheng Zhang et al.ACL 2021
  5. A Sentence is Worth 128 Pseudo Tokens: A Semantic-Aware Contrastive Learning Framework for Sentence EmbeddingsHaochen Tan, Wei Shao, Han Wu, Ke Yang et al.ACL Findings 2022 · 16 citations
Dusk over the sea between two cliffs drawn in fine vertical lines