让大模型自动学会在不干扰旧知识前提下持续吸收新信息。
Self-Consolidating Language Models: Continual Knowledge Incorporation from Context

- 模型自动生成更新指令,仅修改对新知识敏感的特定层。
- 在SQuAD和LongBench v2上优于提示、摘要等方法,知识保留率更高。
- 可扩展至更长上下文,适合持续学习场景的开发者使用。
大型语言模型越来越多地以文本流、对话和长上下文工作流的形式接收信息。尽管更长的上下文窗口能提供更多信息,但并不能保证有用内容被保留和复用。本文研究持续上下文整合:在不干扰已有知识的前提下,将当前上下文写入模型权重。提出自我整合语言模型(SCoL),一种后训练框架,给定当前上下文时,模型会生成文本更新指令,明确其自身Transformer层中哪些需要更新。由于已提交的更新会影响后续选择,因此使用元强化学习在不断演化的模型状态上进行训练。在SQuAD知识整合任务上采用监督问答奖励,在LongBench v2长上下文整合任务上采用基于似然的内在奖励。在两个设置中,SCoL均显著优于提示、摘要、批量测试时训练及顺序微调等基线方法。对学习到的选择模式分析显示,SCoL促使模型生成稀疏的更新位置,与高费雪信息量的层对齐,表明模型学会将可塑性导向对损失敏感区域,同时减少干扰。此外,SCoL在评估时能从较短的元训练流迁移至更长的LongBench v2流,说明该框架支持可扩展的流式整合。
原文摘要 · Abstract (English)
Large language models (LLMs) increasingly receive information as streams of passages, conversations, and long-context workflows. While longer context windows expose more evidence, they do not ensure that useful information is preserved and reused. We study continual context consolidation: writing current context into model weights while limiting interference with previously consolidated information. We propose \textbf{S}elf-\textbf{Co}nsolidating \textbf{L}anguage Models (SCoL), a post-training framework in which, given current context, an LLM learns to generate textual update instructions specifying which of its own Transformer layers should be updated. Because committed updates change the model that later generates future selections, we train SCoL with meta-reinforcement learning over an evolving model state. We instantiate SCoL with supervised QA rewards on SQuAD knowledge incorporation and intrinsic likelihood-based rewards for LongBench v2 long-context consolidation. Across both settings, SCoL improves acquisition and retention over prompting, summarization, batch test-time training, and sequential finetuning baselines. Analysis of learned selection patterns shows that SCoL encourages the LLM to generate sparse update locations that align with layers of high Fisher information, suggesting that the model learns to route plasticity toward loss-sensitive regions while limiting interference. Moreover, SCoL transfers from shorter meta-training streams to longer LongBench v2 streams at evaluation, suggesting that our framework supports scalable streaming consolidation.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。