Language Models are Few-Shot Learners

Brown et al., 2020, Language Models are Few-Shot Learners (Advances in Neural Information Processing Systems 33 (NeurIPS 2020))

Subscriber deck — free during early access

2 cards in “2 Approach” · whole deck

2 Approach

  1. Distinguish fine-tuning, few-shot, one-shot and zero-shot in the GPT-3 paper.
    Fine-tuning updates weights on thousands of labelled examples. Few-shot gives \(K\) demonstrations (typically 10–100, as many as fit in the 2048-token context) plus the query, with no updates. One-shot uses \(K = 1\). Zero-shot gives only a natural language task description.
    settingprompt (invented example)
    zero-shotTranslate English to French:
    bread =>
    one-shotTranslate English to French:
    cat => chat
    bread =>
    few-shotTranslate English to French:
    cat => chat
    house => maison
    …
    bread =>
  2. What are the advantages and drawbacks of few-shot learning versus fine-tuning, according to Brown et al.?
    Few-shot needs far less task-specific data and avoids overfitting to narrow training distributions or exploiting spurious features; but its results were generally well below fine-tuned state of the art, and it still needs a few examples. One- and zero-shot are the fairest comparisons with humans.

Source

  • Tom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, Sandhini Agarwal, Ariel Herbert-Voss, Gretchen Krueger, Tom Henighan, Rewon Child, Aditya Ramesh, Daniel M. Ziegler, Jeffrey Wu, Clemens Winter, Christopher Hesse, Mark Chen, Eric Sigler, Mateusz Litwin, Scott Gray, Benjamin Chess, Jack Clark, Christopher Berner, Sam McCandlish, Alec Radford, Ilya Sutskever and Dario Amodei. 2020. Language Models are Few-Shot Learners. In Advances in Neural Information Processing Systems 33 (NeurIPS 2020). https://papers.nips.cc/paper/2020/hash/1457c0d6bfcb4967418bfb8ac142f64a-Abstract.html