Automatically Identifying Words That Can Serve as Labels for Few-Shot Text Classification

Timo Schick, Helmut Schmid, Hinrich Schütze
10/26/2020
234 citations
cs.CLcs.AIcs.LG

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

Abstract

A recent approach for few-shot text classification is to convert textual inputs to cloze questions that contain some form of task description, process them with a pretrained language model and map the predicted words to labels. Manually defining this mapping between words and labels requires both domain expertise and an understanding of the language model's abilities.

Show full abstract

To mitigate this issue, we devise an approach that automatically finds such a mapping given small amounts of training data. For a number of tasks, the mapping found by our approach performs almost as well as hand-crafted label-to-word mappings.

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{schick2020automatically,
  title  = {Automatically Identifying Words That Can Serve as Labels for Few-Shot Text Classification},
  author = {Timo Schick and Helmut Schmid and Hinrich Schütze},
  year   = {2020},
  eprint = {2010.13641},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2010.13641}
}

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

Discussion