PCL: Peer-Contrastive Learning with Diverse Augmentations for Unsupervised Sentence Embeddings

Qiyu Wu, Chongyang Tao, Tao Shen, Can Xu, Xiubo Geng +1 more
1/28/2022
cs.CL
contrastive-ssl

Official code: qiyuw/PeerCL (10 stars, Python, last commit 2023-07-31).

Abstract

Learning sentence embeddings in an unsupervised manner is fundamental in natural language processing. Recent common practice is to couple pre-trained language models with unsupervised contrastive learning, whose success relies on augmenting a sentence with a semantically-close positive instance to construct contrastive pairs.

Show full abstract

Nonetheless, existing approaches usually depend on a mono-augmenting strategy, which causes learning shortcuts towards the augmenting biases and thus corrupts the quality of sentence embeddings. A straightforward solution is resorting to more diverse positives from a multi-augmenting strategy, while an open question remains about how to unsupervisedly learn from the diverse positives but with uneven augmenting qualities in the text field. As one answer, we propose a novel Peer-Contrastive Learning (PCL) with diverse augmentations. PCL constructs diverse contrastive positives and negatives at the group level for unsupervised sentence embeddings. PCL performs peer-positive contrast as well as peer-network cooperation, which offers an inherent anti-bias ability and an effective way to learn from diverse augmentations. Experiments on STS benchmarks verify the effectiveness of PCL against its competitors in unsupervised sentence embeddings.

View on arXivView PDF

Code Implementations(1)

qiyuw/PeerCLOfficial100%

EMNLP 2022 "PCL: Peer-Contrastive Learning with Diverse Augmentations for Unsupervised Sentence Embeddings"

100Python, ShellSep 21, 20223 years ago
data-augmentationemnlp2022nlpsentence-embeddingssentence-similarity

Similar Papers

Cite this paper

@article{wu2022pcl,
  title  = {PCL: Peer-Contrastive Learning with Diverse Augmentations for Unsupervised Sentence Embeddings},
  author = {Qiyu Wu and Chongyang Tao and Tao Shen and Can Xu and Xiubo Geng and Daxin Jiang},
  year   = {2022},
  eprint = {2201.12093},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2201.12093}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2201.12093.svg)](https://codeofpaper.com/paper/2201.12093)

Discussion