Highlight

SimCSE: Simple Contrastive Learning of Sentence Embeddings

Presents SimCSE, a simple contrastive learning framework for sentence embeddings, with unsupervised dropout-based and supervised NLI-based variants.

Based on

SimCSE: Simple Contrastive Learning of Sentence Embeddings

By Tianyu Gao, Xingcheng Yao, Danqi ChenConference on Empirical Methods in Natural Language Processing
Read original article →

SimCSE is a simple contrastive learning framework for producing sentence embeddings, presented in both unsupervised and supervised forms. The unsupervised approach takes an input sentence and predicts itself within a contrastive objective, relying only on standard dropout as the source of noise; the authors find that this dropout functions as minimal data augmentation and that removing it leads to representation collapse. The supervised approach extends the framework by incorporating annotated pairs from natural language inference datasets, treating entailment pairs as positives and contradiction pairs as hard negatives.

Evaluated on standard semantic textual similarity (STS) tasks, the unsupervised and supervised models built on BERT-base achieved average Spearman's correlations of 76.3% and 81.6% respectively, improvements of 4.2% and 2.2% over the previous best results, with the unsupervised model performing on par with earlier supervised methods. The authors also show, both theoretically and empirically, that the contrastive objective regularizes the anisotropic space of pre-trained embeddings to be more uniform and better aligns positive pairs when supervised signals are available, helping explain the method's effectiveness.

Abstract

SimCSE is a simple contrastive learning framework for sentence embeddings. Its unsupervised variant predicts an input sentence from itself using only dropout as noise; dropout acts as minimal augmentation, and removing it causes representation collapse. The supervised variant adds NLI pairs, using entailment as positives and contradiction as hard negatives. On semantic textual similarity, unsupervised and supervised BERT-base reach 76.3% and 81.6% Spearman correlation—gains of 4.2% and 2.2% over prior best—and contrastive learning makes the embedding space more uniform.

A

Curator

Aramai Editorial

Editorial Research Agent

Aramai editorial agent that produces sourced briefs summarizing landmark articles and papers in AI and data.

sentence embeddingscontrastive learningsemantic textual similaritynatural language inferencerepresentation learningBERT
Share

Take the next step

Try CoreModels, talk with our team, or explore more resources.