InstructReplay: Replaying Assistant Turns to Preserve General Behavior During Factual Fine-Tuning
该论文提出了一种名为InstructReplay的方法,通过重放指令语言模型对一般指令的回答来保持其泛化能力,在事实微调过程中有效平衡了学习和保留。
更新于 2026-11-29。作者:Xiaofeng Shi、Qian Kou、Hua Zhou。
中文摘要
微调指令调整的语言模型以适应新事实往往会削弱其通用能力。我们发现,标准微调平均降低了指令遵循、推理和编码基准的35分,并且这些损失与答案长度的下降趋势相一致:微调后的模型至少将它们的回答减半,而且回答长度与初始模型相差越远,失败的概率就越高。我们提出了InstructReplay:初始模型对一组通用指令回答一次,在微调过程中,模型在这些问题上的表现保持接近初始模型。在三个模型家族和两个领域的研究中,InstructReplay将五个通用基准的平均下降幅度从28.1分减少到2.4分,同时保持答案长度接近初始模型,并且像标准微调一样学习新事实。它比七种适应方法在所有六个设置中都更好地平衡了学习和保留。受控比较表明,这种提升归因于模型重新播放自己对通用指令的回答,而不是归因于损失的形式。
英文摘要
Fine-tuning an instruction-tuned language model on new facts often erodes its general abilities. We find that standard fine-tuning lowers instruction-following, reasoning and coding benchmarks by 35 points on average, and that these losses track a collapse in answer length: fine-tuned models at least halve their responses, and the further a response drifts from the initial model's length, the more often it fails. We propose InstructReplay: the initial model answers a set of general instructions once, and during fine-tuning the model is kept close to the initial model on these answers. Across three model families and two domains, InstructReplay reduces the average decline on five general benchmarks from 28.1 to 2.4 points and keeps answer length close to the initial model's, while learning the new facts as well as standard fine-tuning. It balances learning and retention better than seven adaptation methods in all six settings. Controlled comparisons attribute the gain to replaying the model's own answers to general instructions rather than to the form of the loss.
解读
一句话总结
该论文提出了一种名为InstructReplay的方法,通过重放指令语言模型对一般指令的回答来保持其泛化能力,在事实微调过程中有效平衡了学习和保留。
问题1:这篇论文想要解决什么具体问题?
- 问题背景:在事实微调过程中,指令语言模型的泛化能力通常会下降,导致其回答长度缩短、准确性降低。
- 现有方案不足:现有的微调方法往往会导致模型泛化能力的下降,而现有的重放方法可能无法有效地保护模型的行为。
- 研究目标:提出一种新的方法,在事实微调过程中保持指令语言模型的泛化能力。
问题2:论文的核心创新点是什么?
- 技术创新:提出了InstructReplay方法,通过重放模型对一般指令的回答来保持其泛化能力。
- 方法改进:在微调过程中,通过匹配冻结的初始模型在保存的回答上的完整下一个标记分布,来保持模型的行为。
- 优势:与现有的微调方法相比,InstructReplay能够更好地平衡学习和保留,在所有六个设置中均优于七种适应性方法。
问题3:实验结果如何验证了方法的有效性?
- 关键实验:在三个模型家族和两个领域进行了实验,评估了InstructReplay的有效性。
- 性能提升:InstructReplay将五个通用基准的平均下降从28.1点降低到2.4点,同时保持回答长度接近初始模型。
- 对比结果:与基线方法相比,InstructReplay在所有六个设置中都表现更好。
问题4:这个研究的实际应用价值是什么?
- 应用场景:InstructReplay可以应用于需要指令语言模型的任何领域,以保持其泛化能力。
- 实施建议:在实际部署中,建议使用InstructReplay来微调指令语言模型,以保持其泛化能力。
- 局限与展望:尽管InstructReplay在实验中表现良好,但仍有改进的空间,例如探索更复杂的重放策略和更广泛的模型。
来源
机器可读索引:llms.txt