Exploiting Cloze Questions for Few Shot Text Classification and Natural Language Inference

Timo Schick, Hinrich Schütze
1/21/2020
cs.CL

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

Abstract

Some NLP tasks can be solved in a fully unsupervised fashion by providing a pretrained language model with "task descriptions" in natural language (e.g., Radford et al., 2019). While this approach underperforms its supervised counterpart, we show in this work that the two ideas can be combined: We introduce Pattern-Exploiting Training (PET), a semi-supervised training procedure that reformulates input examples as cloze-style phrases to help language models understand a given task. These phrases are then used to assign soft labels to a large set of unlabeled examples. Finally, standard supervised training is performed on the resulting training set. For several tasks and languages, PET outperforms supervised training and strong semi-supervised approaches in low-resource settings by a large margin.

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,622281PythonApr 7, 20203 years agoApache-2.0
machine-learningnlppython

Similar Papers

Cite this paper

@article{schick2020exploiting,
  title  = {Exploiting Cloze Questions for Few Shot Text Classification and Natural Language Inference},
  author = {Timo Schick and Hinrich Schütze},
  year   = {2020},
  eprint = {2001.07676},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2001.07676}
}

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

Discussion