Abstract
Meta-training for in-context learning (MetaICL) is a framework that conditions language models to become more effective few-shot learners. By training on a diverse array of tasks using a consistent few-shot format, MetaICL enables models to generalize to unseen tasks with high performance and reduced sensitivity to prompt engineering. Our experiments show that MetaICL allows smaller models to outperform significantly larger counterparts and narrows the gap between in-context learning and full supervised fine-tuning.
Introduction
In-context learning (ICL) allows large language models (LMs) to perform new tasks by conditioning on a few examples. Despite its promise, standard ICL often underperforms compared to fine-tuning, exhibits high sensitivity to prompt templates, and requires massive model scales to be effective. MetaICL addresses these limitations by explicitly teaching the model how to learn from context through a large-scale meta-training process.
Methods
MetaICL utilizes a meta-training objective where the model is trained to predict the label of a test input given $k$ training examples from the same task. This format aligns the training objective with the few-shot inference setting used at test time.
A key innovation is the "Channel MetaICL" variant, which reparameterizes the conditional probability $P(y|x)$ into a noisy channel model $P(x|y)P(y)$. This approach has been shown to enhance stability and performance in few-shot scenarios. Unlike other multi-task methods, MetaICL does not require manual prompt templates, relying instead on the raw data format to convey task semantics.
Experimental Setup
The authors leveraged 142 NLP datasets from the CrossFit and UnifiedQA benchmarks, covering classification, QA, NLI, and paraphrase detection. To evaluate generalization, seven distinct meta-training/target splits were used, ensuring the model was tested on task types it had not encountered during training.
Results and Analysis
MetaICL consistently outperforms standard ICL and multi-task zero-shot baselines. A significant finding is that performance scales positively with the number of meta-training tasks, highlighting the importance of task diversity.
Notably, a 770M parameter GPT-2 Large model meta-trained with MetaICL can outperform a 6B parameter GPT-J model using standard ICL. In high-resource to low-resource transfer (HR $\rightarrow$ LR), Channel MetaICL achieved a substantial improvement over standard ICL (49.1% vs. 38.2%).
Conclusion
MetaICL provides a robust framework for improving the few-shot capabilities of language models. By learning a general "meta-algorithm" for task recovery, models become more efficient and capable of handling novel domains. Future research will focus on extending this approach to larger models and more complex generation tasks.
Summary updated