MetaICL: Learning to Learn In Context

Sewon Min, Mike Lewis, Luke Zettlemoyer, Hannaneh Hajishirzi
10/29/2021
671 citations
cs.CLcs.AI

Official code: facebookresearch/MetaICL (274 stars, Python, last commit 2023-04-15).

Abstract

We introduce MetaICL (Meta-training for In-Context Learning), a new meta-training framework for few-shot learning where a pretrained language model is tuned to do in-context learning on a large set of training tasks. This meta-training enables the model to more effectively learn a new task in context at test time, by simply conditioning on a few training examples with no parameter updates or task-specific templates.

Show full abstract

We experiment on a large, diverse collection of tasks consisting of 142 NLP datasets including classification, question answering, natural language inference, paraphrase detection and more, across seven different meta-training/target splits. MetaICL outperforms a range of baselines including in-context learning without meta-training and multi-task learning followed by zero-shot transfer. We find that the gains are particularly significant for target tasks that have domain shifts from the meta-training tasks, and that using a diverse set of the meta-training tasks is key to improvements. We also show that MetaICL approaches (and sometimes beats) the performance of models fully finetuned on the target task, and outperforms much bigger models with nearly 8x parameters. Finally, we show that MetaICL is complementary to human-written instructions, and the best performance can be achieved by combining both approaches.

View on arXivView PDF

Code Implementations(1)

An original implementation of "MetaICL Learning to Learn In Context" by Sewon Min, Mike Lewis, Luke Zettlemoyer and Hannaneh Hajishirzi

27437Python, ShellOct 29, 20213 years agoNOASSERTION

Similar Papers

Cite this paper

@article{min2021metaicl,
  title  = {MetaICL: Learning to Learn In Context},
  author = {Sewon Min and Mike Lewis and Luke Zettlemoyer and Hannaneh Hajishirzi},
  year   = {2021},
  eprint = {2110.15943},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2110.15943}
}

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

Discussion