True Few-Shot Learning with Language Models

Ethan Perez, Douwe Kiela, Kyunghyun Cho
5/24/2021
cs.CLcs.LGstat.ML

Official code: ethanjperez/true_few_shot (143 stars, Python, last commit 2021-10-25).

Abstract

Pretrained language models (LMs) perform well on many tasks even when learning from a few examples, but prior work uses many held-out examples to tune various aspects of learning, such as hyperparameters, training objectives, and natural language templates ("prompts"). Here, we evaluate the few-shot ability of LMs when such held-out examples are unavailable, a setting we call true few-shot learning.

Show full abstract

We test two model selection criteria, cross-validation and minimum description length, for choosing LM prompts and hyperparameters in the true few-shot setting. On average, both marginally outperform random selection and greatly underperform selection based on held-out examples. Moreover, selection criteria often prefer models that perform significantly worse than randomly-selected ones. We find similar results even when taking into account our uncertainty in a model's true performance during selection, as well as when varying the amount of computation and number of examples used for selection. Overall, our findings suggest that prior work significantly overestimated the true few-shot ability of LMs given the difficulty of few-shot model selection.

View on arXivView PDF

Code Implementations(1)

Code for the paper "True Few-Shot Learning in Language Models" (https://arxiv.org/abs/2105.11447)

14312Python, ShellMay 21, 20215 years ago

Similar Papers

Cite this paper

@article{perez2021true,
  title  = {True Few-Shot Learning with Language Models},
  author = {Ethan Perez and Douwe Kiela and Kyunghyun Cho},
  year   = {2021},
  eprint = {2105.11447},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2105.11447}
}

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

Discussion