DiffCSE: Difference-based Contrastive Learning for Sentence Embeddings
Yung-Sung Chuang, Rumen Dangovski, Hongyin Luo, Yang Zhang, Shiyu, Chang, Marin Solja\v{c}i\'c, Shang-Wen Li, Wen-tau Yih, Yoon Kim, James Glass

TL;DR
DiffCSE introduces a novel unsupervised contrastive learning method that emphasizes differences between original and edited sentences to produce more sensitive and effective sentence embeddings, achieving state-of-the-art results.
Contribution
It presents DiffCSE, a new equivariant contrastive learning framework that enhances sentence embeddings by focusing on meaningful differences caused by sentence edits.
Findings
Outperforms unsupervised SimCSE by 2.3 points on semantic textual similarity.
Achieves state-of-the-art results among unsupervised sentence embedding methods.
Demonstrates effectiveness of difference-based contrastive learning.
Abstract
We propose DiffCSE, an unsupervised contrastive learning framework for learning sentence embeddings. DiffCSE learns sentence embeddings that are sensitive to the difference between the original sentence and an edited sentence, where the edited sentence is obtained by stochastically masking out the original sentence and then sampling from a masked language model. We show that DiffSCE is an instance of equivariant contrastive learning (Dangovski et al., 2021), which generalizes contrastive learning and learns representations that are insensitive to certain types of augmentations and sensitive to other "harmful" types of augmentations. Our experiments show that DiffCSE achieves state-of-the-art results among unsupervised sentence representation learning methods, outperforming unsupervised SimCSE by 2.3 absolute points on semantic textual similarity tasks.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
- 🤗voidism/diffcse-bert-base-uncased-stsmodel· 87 dl· ♡ 187 dl♡ 1
- 🤗voidism/diffcse-bert-base-uncased-transmodel· 2 dl· ♡ 12 dl♡ 1
- 🤗voidism/diffcse-roberta-base-stsmodel· 30 dl· ♡ 130 dl♡ 1
- 🤗voidism/diffcse-roberta-base-transmodel· 5 dl· ♡ 15 dl♡ 1
- 🤗BM-K/KoDiffCSE-RoBERTamodel· 197 dl· ♡ 4197 dl♡ 4
- 🤗BM-K/KoSimCSE-Unsup-BERTmodel· 20 dl20 dl
- 🤗BM-K/KoSimCSE-Unsup-RoBERTamodel· 7 dl· ♡ 17 dl♡ 1
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsTopic Modeling · Natural Language Processing Techniques · Text Readability and Simplification
MethodsSimCSE · Contrastive Learning
