arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2602.12275cs.CL
收藏

在线策略上下文蒸馏用于语言模型

On-Policy Context Distillation for Language Models

Microsoft Research(微软研究院)

Tianzhu Ye, Li Dong, Xun Wu, Shaohan Huang, Furu Wei

AI总结:

本文提出在线策略上下文蒸馏框架,通过训练学生模型在生成轨迹的同时最小化逆Kullback-Leibler散度,提升模型在数学推理、文本游戏等任务中的表现。

摘要:

上下文蒸馏使语言模型能够将上下文知识内化于参数中。在本工作中,我们提出在线策略上下文蒸馏(OPCD),通过在生成轨迹上训练学生模型并最小化逆Kullback-Leibler散度,将在线策略蒸馏与上下文蒸馏相结合。我们展示了OPCD在两个重要应用中的有效性:经验知识蒸馏,其中模型从历史解决方案轨迹中提取和巩固可转移的知识;系统提示蒸馏,其中模型内化编码在优化提示中的有益行为。在数学推理、基于文本的游戏和领域特定任务中,OPCD一致优于基线方法,实现更高的任务准确率同时更好地保留非分布能力。我们进一步证明OPCD能够实现有效的跨规模蒸馏,其中较小的学生模型可以从较大的教师模型中内化经验知识。

英文摘要:

Context distillation enables language models to internalize in-context knowledge into their parameters. In our work, we propose On-Policy Context Distillation (OPCD), a framework that bridges on-policy distillation with context distillation by training a student model on its own generated trajectories while minimizing reverse Kullback-Leibler divergence against a context-conditioned teacher. We demonstrate the effectiveness of OPCD on two important applications: experiential knowledge distillation, where models extract and consolidate transferable knowledge from their historical solution traces, and system prompt distillation, where models internalize beneficial behaviors encoded in optimized prompts. Across mathematical reasoning, text-based games, and domain-specific tasks, OPCD consistently outperforms baseline methods, achieving higher task accuracy while better preserving out-of-distribution capabilities. We further show that OPCD enables effective cross-size distillation, where smaller student models can internalize experiential knowledge from larger teachers.

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

↑