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

Timo Schick, Hinrich Schütze

2021 · 75 citations · 23 references

DOIFull text

Open access

Concepts

TL;DR

Large pretrained language models such as GPT‑3 achieve remarkable few‑shot performance but require enormous compute, creating a large carbon footprint and limiting accessibility. The study aims to demonstrate that small language models can match GPT‑3’s few‑shot performance while identifying key factors that enable this efficiency. The authors convert textual inputs into cloze questions with task descriptions, apply gradient‑based optimization, and leverage unlabeled data to train these compact models. They find that these small models achieve performance comparable to GPT‑3, confirming that model size is not the sole determinant of few‑shot learning.

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. 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.

References

23