arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2610.21427cs.AI
收藏

通过局部上下文蒸馏从交互经验中学习

Learning from Interaction Experience via Localized Context Distillation

Tencent(腾讯);The Chinese University of Hong Kong(香港中文大学);Zhejiang University(浙江大学);The Hong Kong University of Science and Technology(香港科技大学)

Zhezheng Hao, Yongkang Yang, Xilin Xia, Jiarui Yu, Yi Liu, Fanjunduo Wei, Peijie Dong, Tianfu Wang, Qiang Lin, Can Wang, Hande Dong, Jiawei Chen

AI总结:

针对现有上下文蒸馏的暴露偏差或状态无信息问题,提出LoCD方法,通过定位学生轨迹关键片段并由教师仅重新生成这些片段来训练,在多任务上表现更优且训练更稳定。

摘要:

从交互经验中学习对于让大语言模型在部署过程中持续改进至关重要。上下文蒸馏提供了一条有前景的路径:从经验中提取的特权信息被提供给教师模型,随后将教师模型的行为蒸馏到无法访问该特权信息的学生模型中。然而,现有的两种上下文蒸馏形式都存在局限性:离线策略上下文蒸馏在教师生成的轨迹上训练学生,因此存在暴露偏差;而在线策略上下文蒸馏在学生自身的 rollout(展开)结果上训练,其状态通常缺乏信息,无法传达学生尚未能产生的行为。为解决这一困境,我们提出了局部上下文蒸馏(Localized Context Distillation,LoCD)。LoCD 首先定位学生轨迹中需要修正的关键片段,然后教师仅从学生自身的前缀中重新生成这些片段,学生在重新生成的片段上进行训练。LoCD 因此将学习集中在最具信息性的状态上,同时保持较低的暴露偏差。在数学推理、代码生成和智能体任务上进行的大量实验表明,LoCD 始终优于强大的基线,且参数更新更小、更稀疏,训练也更稳定。

英文摘要:

Learning from interaction experience is essential for enabling large language models to continually improve during deployment. Context distillation offers a promising path: privileged information extracted from experience is provided to a teacher, whose behavior is then distilled into a student model that has no access to it. However, both existing forms of context distillation have limitations. Off-policy context distillation trains the student on teacher-generated trajectories and thus suffers from exposure bias; whereas on-policy context distillation trains on the student's own rollouts, whose states are often uninformative and fail to convey behaviors the student cannot yet produce. To resolve this dilemma, we introduce Localized Context Distillation (LoCD). LoCD first localizes the critical spans of a student trajectory that require revision. The teacher then regenerates only these spans from the student's own prefix, and the student is trained on the regenerated segments. LoCD thereby concentrates learning on the most informative states while keeping exposure bias low. Extensive experiments across math reasoning, code generation, and agent tasks demonstrate that LoCD consistently outperforms strong baselines and achieves more stable training with smaller and sparser parameter updates.

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

↑