ConSERT: A Contrastive Framework for Self-Supervised Sentence Representation Transfer

Yuanmeng Yan, Rumei Li, Sirui Wang, Fuzheng Zhang, Wei Wu +1 more
5/25/2021
cs.CLcs.AI
contrastive-ssl

Official code: yym6472/ConSERT (540 stars, Python, last commit 2021-12-10).

Abstract

Learning high-quality sentence representations benefits a wide range of natural language processing tasks. Though BERT-based pre-trained language models achieve high performance on many downstream tasks, the native derived sentence representations are proved to be collapsed and thus produce a poor performance on the semantic textual similarity (STS) tasks.

Show full abstract

In this paper, we present ConSERT, a Contrastive Framework for Self-Supervised Sentence Representation Transfer, that adopts contrastive learning to fine-tune BERT in an unsupervised and effective way. By making use of unlabeled texts, ConSERT solves the collapse issue of BERT-derived sentence representations and make them more applicable for downstream tasks. Experiments on STS datasets demonstrate that ConSERT achieves an 8\% relative improvement over the previous state-of-the-art, even comparable to the supervised SBERT-NLI. And when further incorporating NLI supervision, we achieve new state-of-the-art performance on STS tasks. Moreover, ConSERT obtains comparable results with only 1000 samples available, showing its robustness in data scarcity scenarios.

View on arXivView PDF

Code Implementations(1)

yym6472/ConSERTOfficial100%

Code for our ACL 2021 paper - ConSERT: A Contrastive Framework for Self-Supervised Sentence Representation Transfer

54079Python, ShellMay 31, 20214 years ago

Similar Papers

Cite this paper

@article{yan2021consert,
  title  = {ConSERT: A Contrastive Framework for Self-Supervised Sentence Representation Transfer},
  author = {Yuanmeng Yan and Rumei Li and Sirui Wang and Fuzheng Zhang and Wei Wu and Weiran Xu},
  year   = {2021},
  eprint = {2105.11741},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2105.11741}
}

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

Discussion