arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.14022cs.LGcs.CL
收藏

探究上下文学习的预训练动态:任务识别与任务学习

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

Gaoling School of Artificial Intelligence, Renmin University of China(中国人民大学高瓴人工智能学院);School of Information, Renmin University of China(中国人民大学信息学院)

Xiaolei Wang, Xinyu Tang, Wayne Xin Zhao, Ji-Rong Wen

AI总结:

该研究探究上下文学习中任务识别与任务学习能力在预训练中的竞争关系,提出推理阶段自适应集成方法可显著提升性能,小模型组合超越大模型表现。

摘要:

上下文学习(ICL)的涌现可能归因于两大能力:一是用于从示例中识别任务并利用预训练先验知识的任务识别(TR),二是用于从示例中学习的任务学习(TL)。然而,这两种能力之间的关系以及这类关系如何影响ICL的涌现尚不明确。本文率先研究了ICL涌现的预训练动态。通过精心设计的指标,我们发现这两种能力在预训练过程中实际上是相互竞争的。此外,我们观察到这种竞争与ICL性能之间存在强负相关。通过对常见预训练因素(即模型规模、数据集规模和数据课程)的进一步分析,我们找到了调控这种竞争的可行方法。基于这些见解,我们提出了一种简单却有效的方法,在推理阶段更好地整合这两种能力以服务于ICL。通过自适应集成学习,ICL的性能可得到显著提升,使得两个小模型的表现能超越参数量两倍以上的大模型。代码可在https://github.com/RUCAIBox/Competitive-ICL获取。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑