Few-Shot Text Generation with Pattern-Exploiting Training

Timo Schick, Hinrich Schütze
12/22/2020
163 citations
cs.CLcs.LG

Official code: timoschick/pet (1,623 stars, Python, Apache-2.0, last commit 2023-06-12).

Abstract

Providing pretrained language models with simple task descriptions in natural language enables them to solve some tasks in a fully unsupervised fashion. Moreover, when combined with regular learning from examples, this idea yields impressive few-shot results for a wide range of text classification tasks.

Show full abstract

It is also a promising direction to improve data efficiency in generative settings, but there are several challenges to using a combination of task descriptions and example-based learning for text generation. In particular, it is crucial to find task descriptions that are easy to understand for the pretrained model and to ensure that it actually makes good use of them; furthermore, effective measures against overfitting have to be implemented. In this paper, we show how these challenges can be tackled: We introduce GenPET, a method for text generation that is based on pattern-exploiting training, a recent approach for combining textual instructions with supervised learning that only works for classification tasks. On several summarization and headline generation datasets, GenPET gives consistent improvements over strong baselines in few-shot settings.

View on arXivView PDF

Code Implementations(1)

timoschick/petOfficial100%
Apache-2.0

This repository contains the code for "Exploiting Cloze Questions for Few-Shot Text Classification and Natural Language Inference"

1,623279PythonApr 7, 20203 years agoApache-2.0
machine-learningnlppython

Similar Papers

Cite this paper

@article{schick2020fewshot,
  title  = {Few-Shot Text Generation with Pattern-Exploiting Training},
  author = {Timo Schick and Hinrich Schütze},
  year   = {2020},
  eprint = {2012.11926},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2012.11926}
}

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

Discussion