Lode

Stand on the shoulders of giants.

Open the curator →
Source
arXiv
Published
Runtime
0:00
Snippets
4

A conversation between

Inject, Align, Recover: Staged Post-Training for Retrieval-Free Document Knowledge Internalization

Waveform of the source interview with highlighted segments per snippet.
0:00 0:00

§02

Snippets

  1. Document knowledge internalization converts a fixed corpus into parametric knowledge for retrieval-free QA by injecting structured document objectives, aligning to QA behavior, then recovering general capabilities.

    Enables offline, retrieval-free QA over bounded document collections while preserving the model's general knowledge—useful when retrieval infrastructure is unavailable.

  2. IAR's three-stage design separates injection (document→continuation/rewrite/reconstruction), alignment (QA supervision), and recovery (merging with base instruction model) to maintain the domain-general frontier.

    Explicit recovery stage prevents the catastrophic forgetting typical of single-pass domain adaptation, yielding both stronger domain and general performance.

  3. Inject stage uses continuation, rewrite, and instruction-conditioned reconstruction objectives rather than standard next-token prediction to encode documents as parametric knowledge.

    Multiple complementary objectives appear necessary to internalize document facts in a form the model can retrieve and apply at QA inference time.

  4. IAR improves domain-primary domain-general tradeoff across Llama, Phi, Qwen, SmolLM and two benchmark corpora, with 3.6pp gains in domain QA and 12.1pp average gains on IFEval, MMLU, MSBench.

    Consistent gains across diverse model sizes and architectures suggest the three-stage design addresses a fundamental problem, not a narrow optimization.

§03

Synthesis

The Problem: Forgetting What You Learned

Large language models struggle to answer questions about documents they've memorized during training if those documents aren't provided at inference time. The challenge: how do you teach a model to internalize a fixed corpus of documents as permanent knowledge—without needing to retrieve the source text when answering questions later? Standard fine-tuning on QA pairs tends to work well on domain questions but erodes the model's general capabilities. IAR tackles this head-on by treating it as a staged post-training problem rather than a simple supervised fine-tuning task.

How IAR Works: Three Deliberate Stages

The authors separate the learning process into three phases, each solving a different subproblem.

Inject converts raw documents into training objectives designed to encode structural knowledge. Instead of just showing the model question-answer pairs, this stage creates three kinds of learning signals: continuation (predicting what comes next in a document), rewrite (paraphrasing document content), and instruction-conditioned reconstruction (answering "given this instruction, reproduce key content from the document"). This multi-faceted approach embeds document knowledge more deeply than naive continuation pretraining.

Align then fine-tunes the injected model using answer-only QA supervision—the model sees questions paired with correct answers from the corpus, but without explicit document retrieval. This grounds the internalized knowledge in the actual downstream task.

Recover is the crucial stabilization step. Rather than leaving the model in a domain-specialized state, the authors merge the domain-adapted model back toward the base instruction model. This hybrid approach retains the internalized document knowledge while restoring general capabilities that fine-tuning typically damages.

What It Achieves

IAR was tested on two corpora (Common Corpus and CCI) across four model families (Llama, Phi, Qwen, SmolLM). The results show consistent wins: in 7 of 8 dataset-model settings, IAR outperformed vanilla supervised fine-tuning on all four metrics. On average, domain QA accuracy improved by 3.6 percentage points, and general performance (measured across IFEval, MMLU, and MSBench) improved by 12.1 percentage points compared to standard fine-tuning.

Critically, while simpler methods like LoRA or FAPM can win on individual general-capability metrics, IAR maintains one of the strongest profiles when requiring both strong domain internalization and preserved general knowledge—the real bottleneck in practice.

Why It Matters

This work reframes a practical constraint—inference without retrieval—into a solvable design problem. Many deployed systems can't afford to retrieve documents at inference time due to latency or cost. The three-stage framework shows that knowledge internalization and capability retention aren't locked in zero-sum tradeoff if you architect the post-training pipeline carefully. The recovery stage is conceptually simple but empirically powerful: explicit model merging to restore forgotten abilities while keeping domain knowledge intact.

Mine your own.

Lode is a workbench, not a feed. Paste a YouTube URL. The model proposes a transcript, a set of quote-grounded snippets, a synthesis essay, and the fan-out. You decide what stays.

Open the curator