语言模型中的自我保存
研究论文 · 2026/10/12
持续学习旨在适应预训练模型的同时保留其先前能力,但用于保留的任务仅覆盖模型所知的一部分,遗忘可能超出这些任务。近期研究表明,语言模型可以在不访问原始训练数据的情况下生成有用的回放数据,从而补充有限的证据。这引发了一个关于自我保存的问题:模型能否帮助选择保护目标,以更广泛地保护自身能力?为了研究这个问题,我们将任务描述及其示例组织成任务库,其条目可以被选择并组合,以指导冻结模型生成回放。使用不同规模的Qwen模型进行持续指令调优,得出了三个发现。第一,新任务和学习率决定了哪些先前能力会退化,而跟踪先前正确的答案揭示了平均准确率可能掩盖的损失。第二,生成的回放减少了对任务库之外任务的遗忘。组合部分任务库增强了这种保护,在测试的规模上,提高了先前正确答案的平均保留率,优于单独使用任一任务库。第三,模型还可以帮助选择回放目标:在新任务指导下进行选择,在4B模型上提高了平均留出保留率,优于随机选择,同时新任务增益相似,尽管较小模型没有相应的优势。然而,在固定的示例预算下,用回放替换新任务示例可以提高保留率,但代价是新任务增益较小。总之,这些发现表明,模型可以通过生成回放数据来支持更广泛的自我保存,并在某些设置下选择要回放的任务。
本文探讨了语言模型通过生成回放数据和选择回放任务来实现自我保存的能力,为持续学习中的灾难性遗忘问题提供了新视角,并展示了模型在保护自身知识方面的潜力。
Continual learning (CL) seeks to adapt pretrained models while preserving prior capabilities. Yet the tasks supplied for preservation cover only part of what a model knows, while forgetting can extend beyond them. Recent work shows that language models can supplement this limited evidence by generating useful replay without access to their original training data. This raises a question about self-preservation: can a model help choose preservation targets that protect its own capabilities more broadly? To study this question, we organize task descriptions and their examples into Task Banks, whose entries can be selected and combined to guide replay generation by a frozen model. Continual instruction tuning with Qwen models of varying sizes yields three findings. First, the new task and learning rate shape which prior capabilities degrade, while tracking previously correct answers reveals losses that average accuracy can conceal. Second, generated replay reduces forgetting on tasks outside the bank. Combining partial banks strengthens this protection, improving mean retention of previously correct answers over either bank alone across the tested sizes. Third, the model can also help choose replay targets: selection informed by the new task improves mean held-out retention over random selection at 4B, with similar new-task gains, although smaller models show no corresponding advantage. Under a fixed example budget, however, replacing new-task examples with replay improves preservation at the cost of smaller new-task gains. Together, these findings show that models can support broader self-preservation by generating replay data and, in some settings, choosing which tasks to replay.