探究语言模型在上下文学习中的最近发展区
Investigating the Zone of Proximal Development of Language Models for In-Context Learning
AI总结:
本文基于教育心理学的最近发展区(ZPD)理论提出学习分析框架,结合项目反应理论(IRT)模型分析LLMs的上下文学习行为,在推理和微调场景中实现成本与性能平衡及性能提升。
摘要:
本文引入一种学习分析框架,通过教育心理学中的成熟理论——最近发展区(ZPD)来分析大型语言模型(LLMs)的上下文学习(ICL)行为。ZPD描述了学习者在无支持时能完成的任务与即使有支持也无法完成的任务之间的空间。我们将这一概念适配到ICL中,基于模型在有无ICL情况下对单个示例的性能来测量LLMs的ZPD。此外,我们提出项目反应理论(IRT)模型来预测LLMs的区域分布。研究结果揭示了ICL一系列复杂且多面的行为,为理解和利用该技术提供了新见解。最后,我们展示该框架如何在推理和微调场景中增强LLM:(1)通过预测模型的最近发展区,选择性地对最可能从演示中受益的查询应用ICL,实现推理成本与性能的更好平衡;(2)提出类人微调课程,优先处理模型ZPD内的示例。该课程提升了性能,我们通过分析LLMs的训练动态解释了其有效性。
英文摘要:
In this paper, we introduce a learning analytics framework to analyze the in-context learning (ICL) behavior of large language models (LLMs) through the lens of the Zone of Proximal Development (ZPD), an established theory in educational psychology. ZPD delineates the space between what a learner is capable of doing unsupported and what the learner cannot do even with support. We adapt this concept to ICL, measuring the ZPD of LLMs based on model performance on individual examples with and without ICL. Furthermore, we propose an item response theory (IRT) model to predict the distribution of zones for LLMs. Our findings reveal a series of intricate and multifaceted behaviors of ICL, providing new insights into understanding and leveraging this technique. Finally, we demonstrate how our framework can enhance LLM in both inference and fine-tuning scenarios: (1) By predicting a model's zone of proximal development, we selectively apply ICL to queries that are most likely to benefit from demonstrations, achieving a better balance between inference cost and performance; (2) We propose a human-like curriculum for fine-tuning, which prioritizes examples within the model's ZPD. The curriculum results in improved performance, and we explain its effectiveness through an analysis of the training dynamics of LLMs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。