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 learn-ing 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. 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 training data, and outperforms much bigger models with nearly 8x parameters.
翻译:我们引入了MetaICL(Meta-training for Intextlearning)(Meta-training for the Intextlearning),这是一个用于微小学习的新的元培训框架,在经过预先训练的语文模式中,在大量培训任务中,在经过大量培训任务时,通过这种元培训使该模式能够在测试时更有效地学习新的任务,只需以几个培训范例为条件,而没有参数更新或没有具体任务模板即可。我们实验了由142个NLP数据集组成的庞大而多样的任务汇编,其中包括分类、问答、自然语言推论、语音探测和七个不同的元培训/目标分割。MetaICL超越了一系列基线,包括不经过元培训和多任务学习,然后是零点转移。我们发现,这些成果对于目标任务来说特别重要,因为目标任务与元培训任务有不同,使用一套不同的元培训任务是改进的关键。我们还表明,MetICL(有时击打)对目标任务培训数据进行完全调整的模型的性能达到8个大的参数,并用大得多的模型。