论文

InstructReplay:微调新事实时用重放机制守住通用能力

InstructReplay: Replaying Assistant Turns to Preserve General Behavior During Factual Fine-Tuning

精选理由

这篇论文回答了一个很实际的问题:给模型喂新知识时通用能力为什么会掉、怎么留住。答案长度崩塌这个发现挺有意思,InstructReplay 把 35 分的平均损失压到几乎为零,做法还便宜,微调自己模型的人建议看看实现细节。

arXiv 论文提出 InstructReplay 方法,解决指令微调模型在学习新事实时通用能力退化的问题。研究发现标准微调会让指令遵循、推理和编码类基准平均下降 35 分,且答案长度至少减半,长度漂移越大失败率越高。

正文

该方法的机制分两步:先让初始模型对一批通用指令各回答一次,然后在微调过程中约束模型在这些答案上贴近初始模型的输出。跨 3 个模型家族、2 个领域的实验显示,5 个通用基准的平均降幅从 28.1 分降到 2.4 分,同时新事实的学习效果与标准微调持平。

对照实验将增益归因于重放模型自己对通用指令的回答,而非损失函数的形式。该方法在全部 6 个设置中优于 7 种对比的适配方法,对需要在私有数据上微调又要保留通用能力的企业开发者有直接参考价值。

原文 · arXiv cs.AI

InstructReplay: Replaying Assistant Turns to Preserve General Behavior During Factual Fine-Tuning

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.

产业坐标与信源核验

本条情报归属 AITOP「论文」核心追踪栏目。在跨区域产业观察坐标中,该动态直接关联「AI 开发者工具链、Coding Agent 与工程化实践」研究主线,反映出当前技术演进与商业落地的最新风向。涉及核心实体与技术议题包括:InstructReplay、微调、开源模型、指令微调,读者可通过下方标签进入对应专题页查阅历史脉络与关联对比。

信源核验说明:本文原始线索采编自「arXiv cs.AI」(@Xiaofeng Shi, Qian Kou, Hua Zhou),经 AITOP 多维评分管线结构化提炼。