Investigating the Pre-Training Dynamics of In-Context Learning: Task Recognition vs. Task Learning

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Wang, Xiaolei, Tang, Xinyu, Zhao, Wayne Xin, Wen, Ji-Rong
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866917699617030144
author Wang, Xiaolei
Tang, Xinyu
Zhao, Wayne Xin
Wen, Ji-Rong
author_facet Wang, Xiaolei
Tang, Xinyu
Zhao, Wayne Xin
Wen, Ji-Rong
contents The emergence of in-context learning (ICL) is potentially attributed to two major abilities: task recognition (TR) for recognizing the task from demonstrations and utilizing pre-trained priors, and task learning (TL) for learning from demonstrations. However, relationships between the two abilities and how such relationships affect the emergence of ICL is unclear. In this paper, we take the first step by examining the pre-training dynamics of the emergence of ICL. With carefully designed metrics, we find that these two abilities are, in fact, competitive during pre-training. Moreover, we observe a strong negative correlation between the competition and ICL performance. Further analysis of common pre-training factors (i.e., model size, dataset size, and data curriculum) demonstrates possible ways to manage the competition. Based on these insights, we propose a simple yet effective method to better integrate these two abilities for ICL at inference time. Through adaptive ensemble learning, the performance of ICL can be significantly boosted, enabling two small models to outperform a larger one with more than twice the parameters. The code is available at https://github.com/RUCAIBox/Competitive-ICL.
format Preprint
id arxiv_https___arxiv_org_abs_2406_14022
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Investigating the Pre-Training Dynamics of In-Context Learning: Task Recognition vs. Task Learning
Wang, Xiaolei
Tang, Xinyu
Zhao, Wayne Xin
Wen, Ji-Rong
Machine Learning
Computation and Language
The emergence of in-context learning (ICL) is potentially attributed to two major abilities: task recognition (TR) for recognizing the task from demonstrations and utilizing pre-trained priors, and task learning (TL) for learning from demonstrations. However, relationships between the two abilities and how such relationships affect the emergence of ICL is unclear. In this paper, we take the first step by examining the pre-training dynamics of the emergence of ICL. With carefully designed metrics, we find that these two abilities are, in fact, competitive during pre-training. Moreover, we observe a strong negative correlation between the competition and ICL performance. Further analysis of common pre-training factors (i.e., model size, dataset size, and data curriculum) demonstrates possible ways to manage the competition. Based on these insights, we propose a simple yet effective method to better integrate these two abilities for ICL at inference time. Through adaptive ensemble learning, the performance of ICL can be significantly boosted, enabling two small models to outperform a larger one with more than twice the parameters. The code is available at https://github.com/RUCAIBox/Competitive-ICL.
title Investigating the Pre-Training Dynamics of In-Context Learning: Task Recognition vs. Task Learning
topic Machine Learning
Computation and Language
url https://arxiv.org/abs/2406.14022