TensorX
返回文献探索

Paper · arXiv 2305.09137

Pre-Training to Learn in Context

Yuxian Gu, Li Dong, Furu Wei, Minlie Huang

2 upvotesMay 16, 2023arXiv 预印本
AI 摘要

PICL enhances language models' in-context learning by pre-training on intrinsic tasks, improving performance and generalization across various text classification and task generation benchmarks.

in-context learningpre-trainingintrinsic taskslanguage modelingtask generalizationtext classificationSuper-NaturalInstructionsparameter-efficient

Abstract

In-context learning, where pre-trained language models learn to perform tasks from task examples and instructions in their contexts, has attracted much attention in the NLP community. However, the ability of in-context learning is not fully exploited because language models are not explicitly trained to learn in context. To this end, we propose PICL (Pre-training for In-Context Learning), a framework to enhance the language models' in-context learning ability by pre-training the model on a large collection of "intrinsic tasks" in the general plain-text corpus using the simple language modeling objective. PICL encourages the model to infer and perform tasks by conditioning on the contexts while maintaining task generalization of pre-trained models. We evaluate the in-context learning performance of the model trained with PICL on seven widely-used text classification datasets and the Super-NaturalInstrctions benchmark, which contains 100+ NLP tasks formulated to text generation. Our experiments show that PICL is more effective and task-generalizable than a range of baselines, outperforming larger language models with nearly 4x parameters. The code is publicly available at https://github.com/thu-coai/PICL.

北京市昌平区探索星信息技术及软件开发工作室

京ICP备2026059466号
Pre-Training to Learn in Context | TensorX