Generate, Discriminate and Contrast: A Semi-Supervised Sentence Representation Learning Framework

Yiming Chen, Yan Zhang, Bin Wang, Zuozhu Liu, Haizhou Li
10/30/2022
cs.CL

Official code: MatthewCYM/GenSE (23 stars, Python, MIT, last commit 2022-11-27).

Abstract

Most sentence embedding techniques heavily rely on expensive human-annotated sentence pairs as the supervised signals. Despite the use of large-scale unlabeled data, the performance of unsupervised methods typically lags far behind that of the supervised counterparts in most downstream tasks.

Show full abstract

In this work, we propose a semi-supervised sentence embedding framework, GenSE, that effectively leverages large-scale unlabeled data. Our method include three parts: 1) Generate: A generator/discriminator model is jointly trained to synthesize sentence pairs from open-domain unlabeled corpus; 2) Discriminate: Noisy sentence pairs are filtered out by the discriminator to acquire high-quality positive and negative sentence pairs; 3) Contrast: A prompt-based contrastive approach is presented for sentence representation learning with both annotated and synthesized data. Comprehensive experiments show that GenSE achieves an average correlation score of 85.19 on the STS datasets and consistent performance improvement on four domain adaptation tasks, significantly surpassing the state-of-the-art methods and convincingly corroborating its effectiveness and generalization ability.Code, Synthetic data and Models available at https://github.com/MatthewCYM/GenSE.

View on arXivView PDF

Code Implementations(1)

MatthewCYM/GenSEOfficial100%
MIT

Official implementaion of EMNLP 2022 paper "Generate, Discriminate, and Contrast: A Semi-Supervised Sentence Representation Learning Framework"

231Python, ShellOct 10, 20224 years agoMIT
data-synthesissentence-embeddings

Similar Papers

Cite this paper

@article{chen2022generate,
  title  = {Generate, Discriminate and Contrast: A Semi-Supervised Sentence Representation Learning Framework},
  author = {Yiming Chen and Yan Zhang and Bin Wang and Zuozhu Liu and Haizhou Li},
  year   = {2022},
  eprint = {2210.16798},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.16798}
}

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/2210.16798.svg)](https://codeofpaper.com/paper/2210.16798)

Discussion