It's Not Just Size That Matters: Small Language Models Are Also Few-Shot Learners

Timo Schick, Hinrich Schütze
9/15/2020
1,153 citations
cs.CLcs.AIcs.LG

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

Abstract

When scaled to hundreds of billions of parameters, pretrained language models such as GPT-3 (Brown et al., 2020) achieve remarkable few-shot performance. However, enormous amounts of compute are required for training and applying such big models, resulting in a large carbon footprint and making it difficult for researchers and practitioners to use them.

Show full abstract

We show that performance similar to GPT-3 can be obtained with language models that are much "greener" in that their parameter count is several orders of magnitude smaller. This is achieved by converting textual inputs into cloze questions that contain a task description, combined with gradient-based optimization; exploiting unlabeled data gives further improvements. We identify key factors required for successful natural language understanding with small language models.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
timoschick/petOfficial1,623PythonApache-2.02023-06-12
timoschick/fewglueOfficial160––2020-09-16
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
timoschick/fewglueOfficial100%

This repository contains the FewGLUE dataset for few-shot natural language understanding.

16024Sep 11, 20206 years ago

Similar Papers

Cite this paper

@article{schick2020its,
  title  = {It's Not Just Size That Matters: Small Language Models Are Also Few-Shot Learners},
  author = {Timo Schick and Hinrich Schütze},
  year   = {2020},
  eprint = {2009.07118},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2009.07118}
}

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

Discussion