Generating Datasets with Pretrained Language Models

Timo Schick, Hinrich Schütze
4/15/2021
286 citations
cs.CLcs.LG

Official code: timoschick/dino (188 stars, Python, Apache-2.0, last commit 2021-08-17).

Abstract

To obtain high-quality sentence embeddings from pretrained language models (PLMs), they must either be augmented with additional pretraining objectives or finetuned on a large set of labeled text pairs. While the latter approach typically outperforms the former, it requires great human effort to generate suitable datasets of sufficient size.

Show full abstract

In this paper, we show how PLMs can be leveraged to obtain high-quality sentence embeddings without the need for labeled data, finetuning or modifications to the pretraining objective: We utilize the generative abilities of large and high-performing PLMs to generate entire datasets of labeled text pairs from scratch, which we then use for finetuning much smaller and more efficient models. Our fully unsupervised approach outperforms strong baselines on several semantic textual similarity datasets.

View on arXivView PDF

Code Implementations(1)

timoschick/dinoOfficial100%
Apache-2.0

This repository contains the code for "Generating Datasets with Pretrained Language Models".

18823PythonApr 16, 20215 years agoApache-2.0

Similar Papers

Cite this paper

@article{schick2021generating,
  title  = {Generating Datasets with Pretrained Language Models},
  author = {Timo Schick and Hinrich Schütze},
  year   = {2021},
  eprint = {2104.07540},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2104.07540}
}

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

Discussion