注入、对齐、恢复:无检索文档知识内化的分阶段后训练
其他资讯 · 2026/08/21
大型语言模型在推理时若未检索源文档,往往无法回答关于有限文档集合的问题。本文将这一场景研究为文档知识内化:将固定语料库转化为可用的参数化知识,以实现无检索问答。我们提出IAR(注入、对齐、恢复)三阶段后训练框架,将结构化文档知识注入、问答行为对齐和通用能力恢复分离。与传统的持续预训练不同,注入阶段将源文档转换为续写、改写和指令条件重建目标;对齐阶段使用仅答案的问答监督调整注入模型;恢复阶段将领域适应模型与基础指令模型合并,以恢复通用能力。在Common Corpus(CC)和CCI上,以及Llama、Phi、Qwen和SmolLM模型家族中,IAR改善了无检索文档内化的领域主-领域通用前沿。在主要比较中,IAR在8个数据集-模型设置中的7个上,在所有四个报告指标上优于Vanilla SFT,领域问答准确率平均提高3.6个百分点,通用性能(IFEval、MMLU和MSBench)平均提高12.1个百分点。扩展的CC基线显示LoRA和FAPM可以在个别通用指标上获胜,但在达到领先或接近领先领域内化的方法中,IAR保持了最强的通用性能之一。
该论文提出了一种新颖的三阶段后训练方法,有效解决了无检索文档知识内化问题,并在多个模型和数据集上取得了显著改进,对提升大语言模型在特定领域问答能力具有重要价值。
Large language models often fail to answer questions about a bounded document collection when the source documents are not retrieved at inference time. We study this setting as document knowledge internalization: converting a fixed corpus into usable parametric knowledge for retrieval-free question answering. We propose IAR (Inject, Align, and Recover), a three-stage post-training framework that separates structured document knowledge injection, QA behavior alignment, and general ability recovery. Unlike conventional continued pretraining, Inject converts source documents into continuation, rewrite, and instruction-conditioned reconstruction objectives. Align then adapts the injected model with answer-only QA supervision, while Recover merges the domain-adapted model with the base instruction model to recover general capabilities. Across Common Corpus (CC) and CCI, and across Llama, Phi, Qwen, and SmolLM model families, IAR improves the domain-primary domain-general frontier for retrieval-free document internalization. In the main comparison, IAR improves over Vanilla SFT on all four reported metrics in 7 of 8 dataset-model settings, with average gains of 3.6 percentage points in domain QA accuracy and 12.1 percentage points in mean general performance across IFEval, MMLU, and MSBench. Extended CC baselines show that LoRA and FAPM can win individual general metrics, but among methods that also reach leading or near-leading domain internalization, IAR retains one of the strongest general profiles.