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

基于多教师在线策略蒸馏的大语言模型持续学习重放方法

Replay for LLM Continual Learning with Multi-Teacher On-Policy Distillation

Yiqiao Qiu

AI总结:

本文提出重放方法,对比多教师在线策略蒸馏等方案,在大语言模型持续学习中验证了共享预算重放的性能优势。

摘要:

多教师在线策略蒸馏(MOPD)可将领域专家的知识蒸馏至单个学生模型中,但需要同时使用所有专家。当领域依次到来且早期专家被移除时,前一阶段的学生模型可在每个阶段内重放早期领域的提示来进行教学。部分方案则存储每个阶段的快照,用于最终的多教师恢复阶段。本文在5个领域、15亿参数的学生模型及5个公开专家模型的设置下,将上述两种方案与联合MOPD进行对比。实验中调整了重放预算与重放信号,重放信号仅为token级蒸馏,或结合隐藏状态、注意力及价值关系的对齐。无重放或恢复的顺序蒸馏在14个基准的平均得分上比208步联合MOPD低6.2个点,在安全相关外的11个基准上低3.5个点。无快照时,当早期领域共享某阶段的重放预算,针对前一学生模型的重放可缩小6.2个点差距中的3.8个点;若每个早期领域和阶段固定7步重放,两次训练运行中可缩小5.8个点差距,与从所有快照恢复的5.9个点相当,且在默认长度及给予与固定重放步数相同的训练步数时均保持一致。重放步骤上的对齐项对平均得分的影响约为1个点或更小。若安全评估中拒绝与合规的权重相同,共享预算的重放在所有训练配置中排名第一,固定份额的表现不低于恢复方案;与共享预算相比,固定份额会降低最新领域的得分,恢复方案也会降低该得分,6次中有5次如此。固定份额的重放步数随阶段数呈二次增长。

英文摘要:

Multi-teacher on-policy distillation (MOPD) distills several domain experts into one student and is used in the post-training of recent large language models. It trains on all domains at once, so every expert must be available at the same time. In practice, capabilities often arrive one after another, and the experts of earlier domains may be gone when a new domain is learned. Distilling the experts in sequence then suffers from catastrophic forgetting of the earlier domains. Some recent pipelines store a snapshot after every stage and end with a multi-teacher recovery stage taught by all snapshots. The number of stored models then grows with the number of stages. Different from these pipelines, this paper formulates continual MOPD by what is kept from earlier stages and studies replay toward the previous student. Inside every stage, prompts of earlier domains are replayed with the student of the previous stage as their teacher, so neither earlier experts nor stage snapshots are kept. Two design choices of replay are explored. The replay budget of a stage is either shared among the earlier domains or fixed per earlier domain. Replay steps either distill the token distribution alone or add alignment of hidden states, region-pooled self-attention scores and value relations. A five-domain benchmark of logic, math, code, safety and instruction following is built from public experts of one 1.5B student. Experiments on its 14 benchmarks show that, without storing any snapshot, replay toward the previous student closes most of the gap between sequential distillation and joint MOPD. With a fixed replay share per earlier domain, it performs on par with recovery from all stored snapshots.

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

↑