arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.19113cs.CLcs.AIcs.LG
收藏

从复制到组合:语言模型如何发展上下文学习

From Copying to Composition: How Language Models Develop In-Context Learning

Scale AI;University of Arizona(亚利桑那大学)

Minglai Yang, Xinyu Guo, Renxiong Wang, Sunjie Hou, Daniel Yue Zhang, Yunzhong He

AI总结:

该研究通过受控诊断分析17个语言模型,发现ICL并非单一能力,其提示控制等特性沿不同轨迹发展,合成文档训练可提升模型组合式响应能力。

摘要:

上下文学习(ICL)使语言模型能够根据提示中的指令和演示调整其行为,但仅准确率无法揭示上下文信息如何控制它们的预测。我们通过一项受控诊断研究ICL的获取和可训练性,该诊断将复制附近演示与跨提示整合信息区分开来。在17个模型中,约三分之一偏好复制的答案,少数未确定,其余偏好与规则一致的答案,后者对应更高的准确率,且受请求值而非最接近的冲突示例控制。检查点分析显示,模型在准确率提升至机会水平以上前很久,就开始优先考虑与任务相关的提示标记而非冲突示例。在匹配训练实验中,定义结尾并随后查询的合成文档使模型在受控诊断中转向组合式响应,而基于重写真实文档构建的定义任务微调,在提示重新分配标签含义时提升了准确率。结果表明,ICL并非作为单一统一能力获得,相反,提示控制、答案偏好、无候选构造及迁移可沿不同轨迹发展。

英文摘要:

In-context learning (ICL) allows language models to adapt their behavior from instructions and demonstrations in a prompt, but accuracy alone does not reveal how contextual information controls their predictions. We study the acquisition and trainability of ICL with a controlled diagnostic that separates copying a nearby demonstration from integrating information across the prompt. Across 17 models, about a third prefer the copied answer, a few are undecided, and the rest prefer the rule-consistent answer, which goes with higher accuracy and with control by the requested value rather than the closest conflicting example. Checkpoint analyses show that models begin prioritizing task-relevant prompt tokens over conflicting examples long before their accuracy improves beyond chance level. In matched training experiments, synthetic documents that define endings and then query them shift models toward compositional responses on the controlled diagnostic, whereas fine-tuning on definition exercises built from rewritten real documents improves accuracy when prompts reassign label meanings. The results suggest that ICL is not acquired as a single, uniform capability. Instead, prompt control, answer preference, construction without candidates, and transfer can develop along distinct trajectories.

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

↑