Inject, Align, Recover: Staged Post-Training for Retrieval-Free Document Knowledge Internalization
Analyze & explore related research in Conceptio
Connect this record directly into your research workflow or AI agent. Explore citations across open repositories, query full text, and export structured proof bundles.
Inject, Align, Recover: Staged Post-Training for Retrieval-Free Document Knowledge Internalization Qian Kou1∗† ,
arXiv:2608.20281v1 [cs.CL] 20 Aug 2026
1
Xiaofeng Shi1∗† ,
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 answeronly QA supervision, while Recover merges the domainadapted 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.
Introduction Retrieval-augmented generation is the standard engineering answer to document-grounded question answering: retrieve passages from a corpus, append them to the prompt, and ask a model to answer with that evidence (Lewis et al. 2020). This paper studies a different setting. In many deployments, retrieval may be unavailable, undesirable for latency or privacy reasons, or deliberately removed to test whether posttraining has changed the model’s parametric knowledge. We call this setting document knowledge internalization. Given a bounded document collection and document-derived questions, the model must answer held-out questions without reThese authors contributed equally. Corresponding authors: Qian Kou (kouqian@baai.ac.cn) and Xiaofeng Shi (xfshi@baai.ac.cn). ‡ Project leader. †
Hua Zhou1‡
Beijing Academy of Artificial Intelligence (BAAI)
Abstract
∗
Xiaosong Qiu1 ,
ceiving the source documents at inference time. We evaluate this problem on Common Corpus (CC) (PleIAs 2024) and CCI (BAAI 2024), and use the abbreviations CC and CCI throughout the paper. The simplest solution is supervised fine-tuning (SFT) on document-derived question-answer pairs. This approach gives the model the same input-output format that it will see at test time, but the learning signal is sparse: only the facts selected by the QA generator contribute to the loss. Continued pretraining (CPT) provides denser exposure to document text (Gururangan et al. 2020), but it does not directly teach the model how to answer questions. Both routes also face a general-capability trade-off: domain adaptation can improve target QA behavior while degrading instruction following or broad benchmark performance, a form of catastrophic forgetting (Kirkpatrick et al. 2017). Document internalization therefore requires both domain acquisition and controlled recovery. We propose IAR, a three-stage framework that separates these functions. Unlike raw CPT, IAR does not merely continue language modeling on domain text. Inject converts documents into instruction-conditioned supervised reconstruction tasks; Align maps the injected knowledge to a QA interface; and Recover performs post-hoc model merging between the domain-adapted checkpoint and the original instruction model, producing candidate checkpoints that trade domain accuracy against general capability. Figure 1 summarizes the contrast with Vanilla SFT and CPT+SFT. The central empirical claim is that IAR improves the operating-point frontier for retrieval-free document internalization. In multiple settings, IAR improves domain accuracy over Vanilla SFT while restoring general capability that is often damaged by domain adaptation. Against BudgetMatch QA-only SFT, both CCI settings are all-metric wins for IAR, with Qwen3-4B CCI showing the largest separation. More broadly, the experiments show that document exposure, answer alignment, data recipe, token budget, and recovery should be measured separately rather than collapsed into one fine-tuning comparison. This paper makes four contributions: • We study retrieval-free QA over a fixed ingested corpus as a domain-general operating-point problem, measuring both domain accessibility and general capability. • We present IAR, a three-stage post-training framework
Generated QA pairs Sparse factual coverage
A B C D
Vanilla SFT
A B C D
Answer-only QA loss
Learns selected QA facts, document coverage is sparse.
…
… Full Documents Document token stream
CPT + SFT
…
Next token prediction loss
Dense document modeling, then separate QA alignment.
QA SFT
IAR: Inject → Align → Recover 1. Inject
2.Align
3.Recover
Continue Continuation(predict)
… rewrite Skeleton / outline(given)
Full document(predict)
…
Source Documents
Mixed documentgeneration objectives
reconstruct Read instruction + document(given)
?
Q1
?
Q2
Domain-adapted base model
Merge with base model
Answer-only QA loss …
Injected document knowledge
A1
A2
QA behavior
Select frontier checkpoint
Domain QA
Prefix(given)
General ability
Base instruction model
Domain-general trade-off
Internalized document knowledge
Retrieval-free QA
Recovered general ability
+
Figure 1: The overview of IAR. Vanilla SFT learns from generated QA pairs and covers only the facts selected by those questions. CPT+SFT models full document token streams before a separate QA alignment stage. IAR injects document knowledge through continuation, rewrite, and instruction-conditioned reconstruction objectives, aligns the injected model with answer-only QA supervision, and recovers general ability via post-hoc model merging. The final model is selected by balancing retrieval-free domain QA performance and general capability retention.
that separates structured document exposure, answer-only QA alignment, and post-hoc general-capability recovery. • We evaluate across CC and CCI and multiple model families, with direct SFT, LoRA, SDFT, Replay, FAPM, conventional Base-initialized continued-pretraining baselines, and available Instruct-initialized CPT diagnostics. • We report both strong and boundary evidence: IAR improves the domain-general frontier in most settings, while boundary cases clarify when initialization strength, data recipe, or operating-point selection matters most.
Related Work Parametric knowledge and retrieval. Language models store factual associations in their parameters, but recall and updating remain unreliable (Petroni et al. 2019; Roberts, Raffel, and Shazeer 2020). Retrieval-augmented systems externalize document memory through a retriever (Karpukhin et al. 2020; Lewis et al. 2020), while knowledge editing targets localized factual changes (Mitchell et al. 2022; Meng et al. 2022; Wang et al. 2024; Cohen et al. 2024). We instead ask whether post-training makes a bounded corpus answerable without retrieval. Document knowledge acquisition. The closest work changes the interface through which models acquire document knowledge. AdaptLLM converts raw corpora into
reading-comprehension texts to couple domain content with task practice (Cheng, Huang, and Wei 2024). PIT reverses the conventional document-then-QA order by instruction-tuning on questions before continued document training (Jiang et al. 2024). SELF-TUNING augments unseen documents with self-supervised memorization, comprehension, and reflection tasks (Zhang et al. 2025), while KiDG converts multiple documents into simulated dialogues for retrieval-free domain transfer (Wang et al. 2023). Complementary studies compare unsupervised fine-tuning with retrieval (Ovadia et al. 2024) and isolate how QA versus article-style supervision changes factual learning (Zhao, Awasthi, and Haghtalab 2025). These methods differ in corpus, model, training order, and evaluation contract, so their published scores are not protocol-aligned comparisons. IAR does not claim a new family of reconstruction losses. Its increment is a controlled empirical decomposition: it separates structured document exposure from answer-only accessibility, then treats post-hoc capability recovery as an explicit third variable. We jointly evaluate the selected checkpoint on retrieval-free domain QA and general benchmarks across two corpora and multiple model families. Forgetting and recovery. Task adaptation can damage general capability through catastrophic forgetting (Kirkpatrick et al. 2017). FAPM mitigates this effect through
post-hoc pruning (Huang, Cheng, and Wang 2025), while model merging combines checkpoints or task vectors in weight space (Wortsman et al. 2022; Matena and Raffel 2022; Ilharco et al. 2023; Yadav et al. 2023; Yu et al. 2023). Recover selects among existing SLERP (Shoemake 1985), task-arithmetic, TIES, and DARE operators rather than introducing a new merge algorithm.
Methodology Task Definition Let D = {di }N i=1 be a target document collection. From D, we derive a training QA set Qtrain and a held-out test QA set Qtest . The training framework further splits Qtrain into training and validation subsets for checkpoint monitoring and Recover-candidate selection. Given an instruction-tuned model M0 , the goal is to produce a model M that answers questions in Qtest without seeing retrieved passages from D at inference time. The primary domain metric is correctnessbased QA accuracy. General capability is measured with IFEval (Zhou et al. 2023), MMLU (Hendrycks et al. 2021), and the public MSBench data derived from MSAgent-Bench (Li et al. 2023; ModelScope 2024). Supplementary Material, Section D specifies the fixed 200-example MSBench subset and our evaluation protocol. This setup differs from ordinary task SFT because the training questions expose only a subset of the document facts. It differs from CPT because the target behavior is instructionfollowing QA rather than document continuation. It differs from RAG because the model cannot defer memory to a retriever at test time.
Why Three Stages? The three stages are motivated by three testable hypotheses concerning document exposure, QA accessibility, and capability retention. First, QA-only supervision may expose too little of the corpus. Second, document-level training may not make the acquired information accessible under a question-answering interface. Third, target-domain adaptation may damage general instruction-following ability. Collapsing these hypotheses into one fine-tuning recipe makes it hard to identify which intervention explains a gain or failure. IAR is therefore designed less as a single fixed recipe than as an experimental decomposition. Inject asks whether denser document-level supervision helps before QA alignment. Align asks whether the exposed information can be made accessible through question answering. Recover asks whether the adapted model can be moved back toward the original instruction model without losing the domain behavior that was acquired. This decomposition is important for interpretation: a negative result in one stage does not invalidate the others, and a strong SFT baseline can be understood as a competing way to spend the same adaptation budget.
A Unified Objective View Let Ddoc = {di } denote the target documents and DQA = {(qi , ai )} denote document-derived QA pairs. Each Inject objective m constructs a recipe dataset Dm = {(u, y)}, where u is an instruction with an optional document prefix or
compressed representation and y is the supervised document target. Let nm be its realized row count after mixture samP pling and length filtering, and let πm = nm / k nk . The Inject objective is X Linj = πm E(u,y)∼Dm [ℓθ (u, y)], m∈M |y|
ℓθ (u, y)
=−
1 X log pθ (yt | u, y<t ). |y| t=1
(1)
Thus πm is the empirical sampling share, not a free loss coefficient. The system and user prompt tokens are masked; loss is applied only to the assistant target y. This differs operationally from raw continued pretraining: T
LCPT = −
1X log pθ (xt | x<t ). T t=1
(2)
CPT models the document stream directly and has no explicit prompt/target boundary or QA interface. In our recipe labels, 1:0:0 denotes the reconstruction-only Inject recipe with a reading prompt; it is not the raw CPT baseline. Supplementary Material, Section B defines every objective and its masking rule.
Stage 1: Inject The Inject stage uses three document-generation objectives and their mixtures. Continuation predicts a document suffix from an instruction-conditioned prefix. Rewrite reconstructs the cleaned document from a generated summary, outline, or knowledge skeleton. Instruction-formatted reconstruction predicts the cleaned document from a short generic reading instruction. These objectives provide denser supervised document targets than QA-only training without using rawstream CPT loss. Supplementary Material, Section B gives the exact inputs, targets, masks, mixture notation, and prompt schemas; Supplementary Material, Section C gives training hyperparameters and realized row counts.
Stage 2: Align The Align stage fine-tunes the injected model on domain QA pairs. For a question x and answer y, we use answer-only supervised fine-tuning: |a|
Lalign = −
1 X log pθ (at | q, a<t ). |a| t=1
(3)
Vanilla SFT optimizes this loss from the original instruction model θ0 , while IAR optimizes it from the injected checkpoint θI : θSFT = Align(θ0 ),
θIA = Align(θI ).
(4)
We use IA to denote this pre-recovery Inject+Align checkpoint. BudgetMatch keeps the same QA-only objective but uses setting-specific epoch counts matched to the token budget of the two-stage IA pipeline, following the broader observation that token count and compute allocation can change adaptation behavior (Kaplan et al. 2020; Hoffmann et al. 2022). Supplementary Material, Section C reports the calculation and realized per-setting token counts.
Stage 3: Recover The Recover stage starts from the original instruction model M0 and a domain-adapted checkpoint MIA . Its purpose is to mitigate the catastrophic-forgetting side of document adaptation: a checkpoint can internalize the target corpus while losing instruction-following or broad benchmark capability. The simplest view is task-vector interpolation, ∆ = θIA − θ0 , θR = θ0 + λ∆. (5) More generally, Recover evaluates post-hoc merge operators θR = Merge(θ0 , θIA ) from four families: SLERP, task arithmetic, TIES, and DARE. The selected checkpoint is not necessarily the highest-domain checkpoint. We use a domain-primary frontier criterion on the validation split: domain accuracy is the main objective, while IFEval, MMLU, and MSBench are guardrails for deployability. The held-out test set is used only after the merge candidate is fixed. Supplementary Material, Section E reports the selection rule and selected recovery settings, and Supplementary Material, Section G gives the full pre-recovery recipe grids. Recover selection. For a candidate c, let D(c) be validation-domain accuracy and let G(c) be the mean of validation IFEval, MMLU, and MSBench. With Vanilla SFT denoted by v and a fixed tolerance τ = 1.0 percentage point, we first retain candidates satisfying D(c) ≥ D(v) − τ . We then require G(c) ≥ G(v) and require at least two of the three general metrics to be no more than τ below their Vanilla SFT values. Among non-dominated candidates in the (D, G) plane, domain accuracy is the primary key; candidates within τ of the best remaining domain score form one domain tier, within which we choose the largest G(c). Remaining ties use the largest minimum general-metric improvement and then the smaller within-family merge hyperparameter. This fixed validation rule is applied before any held-out test evaluation. Thus the reported test frontiers diagnose the selected operating points but do not select them.
Experiments We ask four questions: RQ1, whether IAR improves retrieval-free domain-general operating points over direct SFT and conventional CPT+SFT; RQ2, whether extended QA-only training explains the gains; RQ3, whether Inject+Align improves domain internalization before Recover; and RQ4, whether the recovery pattern persists across larger Qwen3 models on CC. The CC-only SDFT, LoRA, Replay, and FAPM stress test is grouped under RQ1, while Qwen scaling remains separate from cross-family comparisons. For every recoverable IA checkpoint, the Recover experiment evaluates a fixed 12-candidate grid: SLERP with t ∈ {0.2, 0.3, 0.4}, task arithmetic with w ∈ {0.3, 0.5, 0.7}, TIES with d ∈ {0.3, 0.5, 0.7}, and DARE with dr ∈ {0.1, 0.3, 0.5}. This grid is fixed before validation-based selection; the selected operating point is then reported on the held-out test set. Supplementary Material, Section E gives the candidate-grid summary and the selected operating points.
Datasets and Models CC contains 14,258 training and 750 test QA pairs derived from Common Corpus (PleIAs 2024); CCI contains 10,926
training and 575 test pairs derived from CCI (BAAI 2024). Test inputs contain only the question. Both datasets cover Llama-3.2-3B, Phi-4-mini, Qwen3-4B, and SmolLM3-3B, while Qwen3-8B/14B/32B are reported as CC scaling ablations. Supplementary Material, Section A gives the dataset contract, and Supplementary Material, Section B gives the prompt templates. We keep the main comparison focused on rows that support the central domain-general claim. CPT+SFT diagnostics are included as dense-document baselines but are not used to define the IAR operating-point frontier.
Baselines We compare with the original instruction model, Vanilla SFT, BudgetMatch, SDFT, LoRA, Replay, Base-initialized CPT+SFT, and FAPM. These controls probe QA supervision, token budget, supervised-data recipe, parameter-efficient adaptation, anti-forgetting replay, raw-document modeling, and pruning-based recovery, respectively. Contextconditioned SFT is not a reported baseline because evaluation supplies no retrieval context. We report CPT+SFT from the corresponding released Base checkpoint as the conventional dense-document baseline. This starting point differs from the Instruct initialization used by IAR and therefore does not, by itself, isolate the effect of the Inject objective. Supplementary Material, Section G reports the available Instruct-initialized CPT+SFT diagnostics for Llama on CC and CCI and for Phi on CC. Phi-4-mini has no corresponding non-instruction Base release and is therefore unavailable in the main CPT+SFT comparison.
Evaluation Domain QA is evaluated with an adaptive LLM panel. Two judges score each answer; a third judge is queried only when the first two scores differ, and the final ordinal score is their median. Per-judge outputs are stored before aggregation. The archived panel configurations use gpt-oss-120b (OpenAI 2025), MiniMax-M2.5 (MiniMaxAI 2025), and DeepSeek-V3 variants (DeepSeek-AI 2025). Across 242,255 evaluated model-answer instances, the audit finds first-two exact agreement of .707, binary agreement of .848 after collapsing scores at ≥ .5, binary Cohen’s κ = .691, and a third-judge trigger rate of .297. LLM-as-judge evaluation is useful but imperfect, so we treat it as an auditable instrument rather than a gold label source (Zheng et al. 2023). We report domain accuracy as the fraction of correct or partially correct answers; IFEval, MMLU, and MSBench measure general ability. Per-result-file bootstrap intervals use 2,000 resamples and quantify evaluation-sample uncertainty. Supplementary Material, Section C records training runs, while Supplementary Material, Section D gives decoding settings and the full reliability protocol. Inference controls. Domain QA uses one generation pass per checkpoint with temperature .7, top_p=.95, repetition penalty 1.1, and a 2,048-token limit. The reported nonthinking IFEval, MMLU, and MSBench runs use greedy decoding with token limits of 1,024, 10, and 1,024, respectively; MSBench judge calls use temperature .1. Domain generation
and judge APIs receive no explicit sampler seed. We therefore treat fixed training and data-order seeds as insufficient to establish repeated-run robustness and preserve raw judge votes for audit.
Results RQ1: Main Domain-General Operating Points Table 1 reports the main comparison used for the central claim. The table includes the original instruction model, Vanilla SFT, conventional Base-initialized CPT+SFT when available, and IAR. BudgetMatch is reported separately because it tests token budget rather than ordinary recipe choice. Supplementary Material, Section G reports the CC-only extended-baseline stress test: LoRA has CC coverage only, and FAPM is a pruning-style recovery baseline whose intervention differs from the IAR rows. The main pattern is a domain-general frontier rather than uniform dominance. On CC, IAR exceeds Vanilla SFT on domain accuracy and all three general metrics for all four model families; on CCI, this holds for Llama, Qwen3-4B, and SmolLM3-3B. Vanilla SFT often trades broad capability for domain accuracy, whereas IAR recovers part of that capability while retaining domain gains. Qwen3-4B CC is the clearest example, reaching 50.5% versus 42.4% domain accuracy while improving all three general metrics. Llama and SmolLM show smaller domain gains, but their general recovery remains important because a retrieval-free internalization model that cannot follow ordinary instructions is not deployable. CCI exposes two boundary cases. Qwen3-4B starts from an unusually high 70.6% base domain score, leaving less headroom for adaptation; nevertheless, IAR improves over Vanilla SFT on all four reported metrics. Supplementary Material, Section F analyzes this setting and gives the sourcetext BPB diagnostic. For Phi, IAR improves IFEval and MSBench while slightly reducing domain accuracy and MMLU relative to Vanilla SFT. Keeping this row in the main table makes clear that recovery can improve part of the general profile without producing a uniformly dominant point, so deployment preference still matters. CC-only extended baseline stress test. The CC-only extended comparison stress-tests RQ1 with SDFT, LoRA, Replay, and FAPM (Huang, Cheng, and Wang 2025). Supplementary Material, Section G reports every baseline row and the Instruct-initialized CPT diagnostics, while conventional Base-initialized CPT+SFT remains in Table 1. SDFT is a strong supervised-data baseline, especially for Llama and Phi, and Replay is competitive on several Qwen34B general metrics. LoRA and FAPM are also strong generalretention baselines: they often preserve or recover stronger individual general metrics than IAR, but usually trail on domain internalization. IAR is domain-best for Phi, Qwen34B, and SmolLM3-3B and second only to SDFT for Llama. Its advantage should therefore be read as a strong domainprimary operating point, not as uniform dominance on every general metric.
RQ2: Token-Budget Matched QA-only SFT A central confound is whether IAR benefits simply from more training tokens. Table 2 compares Vanilla SFT, BudgetMatch, and IAR. BudgetMatch uses 14, 17, 21, and 11 QA-only epochs for CC Llama, CC Qwen3-4B, CCI Llama, and CCI Qwen3-4B, respectively, to match the Inject+Align token budget reported in Supplementary Material, Section C. This control is strong but corpus-dependent: it raises domain accuracy over Vanilla SFT by 4.9 and 4.4 points on CC, but leaves CCI Llama effectively unchanged and lowers CCI Qwen3-4B by 2.9 points. Relative to BudgetMatch, IAR has higher domain accuracy in three of four settings and a higher mean general score in all four. BudgetMatch sharpens the token-budget diagnosis. Repeated QA-only training is competitive on CC, where it improves both domain accuracy and mean general performance over short Vanilla SFT, but this effect does not transfer uniformly to CCI. Figure 2 shows that IAR dominates BudgetMatch in the domain–mean-general projection for CC Qwen3-4B and both CCI settings; CC Llama remains a genuine trade-off. At the metric level, IAR wins 14 of 16 comparisons, with the exceptions being CC Llama domain accuracy and CC Qwen3-4B MMLU. Thus token allocation explains part of the CC adaptation gain, but not the stronger operating points produced by staged document exposure and recovery.
RQ3: Pre-Recovery Domain Internalization Recover should not hide the domain signal contributed by the first two stages. Figure 3 shows that the best pre-recovery Inject+Align checkpoint improves domain accuracy over Vanilla SFT in all eight settings. Gains are largest for Phi and Llama and smallest for CCI Qwen3-4B, whose Vanilla baseline is already high. No Inject recipe is uniformly best: Mixed 1:1:2 is strong for Llama and Phi, Qwen3-4B CC favors Mixed 1:1:1, and Qwen3-4B CCI slightly favors reconstruction-only 1:0:0.
Figure 2: BudgetMatch-to-IAR movement. Right is higher domain accuracy; up is a higher mean over IFEval, MMLU, and MSBench. IAR moves up and right in three of four settings; for CC Llama, it trades 3.9 domain points for an 11.0-point gain in mean general performance.
Model
CC
Method
CCI
Dom.
IFEval
MMLU
MSB.
Dom.
IFEval
MMLU
MSB.
Llama-3.2-3B
Base Instruct Vanilla SFT CPT+SFT IAR
11.2 35.5 38.3 36.5
77.1 54.2 26.4 60.2
50.8 11.2 3.7 35.0
54.5 21.5 13.5 30.5
29.2 53.0 53.7 55.3
77.1 61.2 24.2 61.3
50.8 22.5 4.3 33.2
54.5 31.5 17.5 36.5
Phi-4-mini
Base Instruct Vanilla SFT CPT+SFT IAR
13.1 24.4 / 34.1
77.2 47.8 / 49.0
61.0 51.0 / 57.0
62.0 32.5 / 43.0
27.3 40.2 / 39.7
77.2 47.8 / 51.6
61.0 53.8 / 50.2
62.0 31.5 / 44.0
Qwen3-4B
Base Instruct Vanilla SFT CPT+SFT IAR
34.3 42.4 49.6 50.5
84.8 51.1 31.8 59.8
65.8 8.8 18.8 19.5
77.0 51.0 60.5 63.0
70.6 75.1 69.0 76.3
84.8 45.6 29.6 76.1
65.8 26.3 12.8 64.5
77.0 49.5 58.0 70.0
SmolLM3-3B
Base Instruct Vanilla SFT CPT+SFT IAR
15.3 32.1 37.1 37.5
77.1 35.6 26.9 40.3
47.7 10.5 4.8 25.7
63.0 25.0 26.0 29.0
34.1 52.3 48.9 53.9
77.1 41.7 24.1 57.4
47.7 16.7 4.2 46.8
63.0 31.5 19.5 47.0
Table 1: Main comparison for RQ1. Scores are reported as percentages. Within each model block and dataset block, bold denotes the best result and underlining denotes the second-best result for each metric. CPT+SFT starts from the corresponding released Base checkpoint; “/” indicates that no such release is available, as for Phi-4-mini. CC
CCI
Model
Method Dom.
IFEval
MMLU
MSB.
Dom.
IFEval
MMLU
MSB.
Llama-3.2-3B
Vanilla SFT BudgetMatch IAR
35.5 40.4 36.5
54.2 53.4 60.2
11.2 17.3 35.0
21.5 22.0 30.5
53.0 53.0 55.3
61.2 45.3 61.3
22.5 22.5 33.2
31.5 24.0 36.5
Qwen3-4B
Vanilla SFT BudgetMatch IAR
42.4 46.8 50.5
51.1 49.4 59.8
8.8 31.8 19.5
51.0 45.0 63.0
75.1 72.2 76.3
45.6 56.1 76.1
26.3 29.5 64.5
49.5 52.5 70.0
Table 2: Token-budget ablation for RQ2 (higher is better; scores are percentages). BudgetMatch uses setting-specific QA-only epochs matched to the Inject+Align budget. IAR improves both domain accuracy and mean general performance in three settings; CC Llama is the remaining domain–general trade-off. Supplementary Material, Section C gives the full accounting.
Thus document-level supervision helps, but the useful mixture remains model- and corpus-dependent. Supplementary Material, Section G reports the exact scores and full recipe grid.
Stage-level effect. The pre-recovery gains are not driven by one model family. Relative to Vanilla SFT, Best IA improves domain accuracy by 2.8, 7.7, 5.3, and 4.7 points on CC for Llama, Phi, Qwen3-4B, and SmolLM, respectively; the corresponding CCI gains are 5.6, 6.1, 0.4, and 2.3 points. The 0.4-point Qwen3-4B CCI result is the only near-tie and coincides with the unusually strong 70.6% initial checkpoint analyzed in Supplementary Material, Section F. Therefore, RQ3 supports the narrower mechanism claim needed by the framework: structured document exposure contributes a measurable domain signal before any weight-space recovery is applied. It does not support a universal best Inject recipe.
Figure 3: Pre-recovery domain gains from Inject+Align. CCI Qwen3-4B’s +0.4 pp is the high-base-prior boundary case.
RQ4: Qwen Scaling on CC Table 3 separates scale effects from cross-family comparisons. Across Qwen3-8B/14B/32B, the selected TIES d = 0.3 checkpoint stays within 1.1 points of Best IA domain ac-
Model
Method
Domain (%)
IFEval (%)
MMLU (%)
MSBench (%)
Qwen3-8B
Base Instruct Vanilla SFT Best IA IAR (TIES d = 0.3)
38.5 48.7 57.5 56.8
87.6 56.4 50.6 62.2
65.3 14.0 18.5 26.7
82.5 52.5 48.5 73.5
Qwen3-14B
Base Instruct Vanilla SFT Best IA IAR (TIES d = 0.3)
40.4 54.8 60.5 59.6
90.0 62.9 53.5 67.5
72.5 54.5 40.3 67.2
81.5 57.0 42.0 73.5
Qwen3-32B
Base Instruct Vanilla SFT Best IA IAR (TIES d = 0.3)
47.2 56.4 63.9 62.8
87.5 58.5 53.0 67.0
74.8 44.0 63.0 74.5
84.5 56.5 44.5 72.5
Table 3: Complete Qwen3 scaling ablation on CC. Bold and underline mark the best and second-best result within each model block. Across 8B/14B/32B, IAR stays within 1.1 points of Best IA domain accuracy while recovering 14.9–24.1 points in mean general performance.
curacy while raising mean general performance by 14.9–24.1 points. The claim is limited to this repeated CC pattern. Per-benchmark recovery. The mean gains reflect improvements on every general benchmark, not compensation by a single metric. Relative to Best IA, IAR raises IFEval/MMLU/MSBench by 11.6/8.2/25.0 points at 8B, 14.0/26.9/31.5 at 14B, and 14.0/11.5/28.0 at 32B. At the same time, its domain score decreases by only 0.7, 0.9, and 1.1 points, respectively. The repeated pattern is therefore stable across these three sizes: Recover trades a small amount of the maximum pre-recovery domain score for a much larger restoration of broad capability. Adaptation and recovery remain separable. Scaling does not remove the contribution of Inject+Align. Relative to Vanilla SFT, Best IA adds 8.8, 5.7, and 7.5 domain points at 8B, 14B, and 32B; after Recover, IAR still retains gains of 8.1, 4.8, and 6.4 points. Thus the larger-model result is not explained by merging an otherwise unchanged instruction checkpoint. Inject+Align first establishes a stronger domain checkpoint, and Recover then moves that checkpoint toward a more usable domain–general operating point. The magnitude of recovery varies by benchmark and size, but the two-stage empirical signature remains visible in every scaling block. What does not scale away. Recovery remains partial rather than complete. The selected checkpoints retain 15.6–19.2 points more domain accuracy than the original instruction models, but they do not uniformly return to the original models’ general scores. Moreover, all three rows use CC and the same TIES density, so RQ4 demonstrates a repeated withinfamily operating-point pattern rather than a scaling law or cross-corpus guarantee. Supplementary Material, Section C records the available scaling-run configuration provenance.
Discussion BudgetMatch, SDFT, LoRA, FAPM, and CPT+SFT intervene at different points: QA repetition, data recipe, parameter-efficient adaptation, pruning-based recovery, or
raw-document modeling. IAR should therefore be read as a decomposition of adaptation budgets, not as a recipe that dominates every baseline. These controls also show why domain acquisition and general retention must be evaluated separately rather than collapsed into one score. Recover also changes the selection object: the highestdomain IA checkpoint need not be the best deployable point because domain gains can accompany instruction-following or general-benchmark loss. We select from a small domaingeneral frontier using domain accuracy as the primary objective and IFEval, MMLU, and MSBench as guardrails; Supplementary Material, Section E gives the threshold, guardrail, and tie-break rule. Boundary cases such as Phi CCI and Llama CC show why deployment may favor domain accuracy, general retention, or both. This separation is also why we report the three general benchmarks individually. A single average can conceal whether recovery comes from instruction following, broad factual reasoning, or judged response quality. The component metrics expose those differences and make the selected operating point auditable rather than reducing recovery to one composite score.
Conclusion We presented IAR, separating document exposure, QA alignment, and post-hoc recovery for retrieval-free internalization. Before Recover, Inject+Align contributes domain gains across all eight main settings, although the best Inject mixture remains model- and corpus-dependent. Recover then moves these adapted checkpoints toward stronger general performance while retaining most of their domain gain, including the repeated Qwen3 scaling pattern. Against BudgetMatch, IAR improves domain and mean general performance in three of four settings and all four reported metrics for both CCI models. These results support staged exposure and recovery as a strong, setting-dependent operating point rather than a uniformly dominant recipe.
References BAAI. 2024. CCI4.0-M2-Base-v1. https://huggingface.co/ datasets/BAAI/CCI4.0-M2-Base-v1. Hugging Face dataset. Cheng, D.; Huang, S.; and Wei, F. 2024. Adapting Large Language Models to Domains via Reading Comprehension. In International Conference on Learning Representations. Cohen, R.; Biran, E.; Yoran, O.; Globerson, A.; and Geva, M. 2024. Evaluating the Ripple Effects of Knowledge Editing in Language Models. Transactions of the Association for Computational Linguistics, 12: 283–298. DeepSeek-AI. 2025. DeepSeek-V3.2: Pushing the Frontier of Open Large Language Models. arXiv:2512.02556. Gururangan, S.; Marasović, A.; Swayamdipta, S.; Lo, K.; Beltagy, I.; Downey, D.; and Smith, N. A. 2020. Don’t Stop Pretraining: Adapt Language Models to Domains and Tasks. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, 8342–8360. Association for Computational Linguistics. Hendrycks, D.; Burns, C.; Basart, S.; Zou, A.; Mazeika, M.; Song, D.; and Steinhardt, J. 2021. Measuring Massive Multitask Language Understanding. In International Conference on Learning Representations. Hoffmann, J.; Borgeaud, S.; Mensch, A.; Buchatskaya, E.; Cai, T.; Rutherford, E.; Casas, D. d. L.; Hendricks, L. A.; Welbl, J.; Clark, A.; et al. 2022. Training Compute-Optimal Large Language Models. In Advances in Neural Information Processing Systems, volume 35, 30016–30030. Huang, W.; Cheng, A.; and Wang, Y. 2025. Mitigating Catastrophic Forgetting in Large Language Models with Forgetting-aware Pruning. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, 21842–21856. Suzhou, China: Association for Computational Linguistics. Ilharco, G.; Ribeiro, M. T.; Wortsman, M.; Gururangan, S.; Schmidt, L.; Hajishirzi, H.; and Farhadi, A. 2023. Editing Models with Task Arithmetic. In International Conference on Learning Representations. Jiang, Z.; Sun, Z.; Shi, W.; Rodriguez, P.; Zhou, C.; Neubig, G.; Lin, X. V.; Yih, W.-t.; and Iyer, S. 2024. Instruction-tuned Language Models are Better Knowledge Learners. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), 5421– 5434. Association for Computational Linguistics. Kaplan, J.; McCandlish, S.; Henighan, T.; Brown, T. B.; Chess, B.; Child, R.; Gray, S.; Radford, A.; Wu, J.; and Amodei, D. 2020. Scaling Laws for Neural Language Models. arXiv preprint arXiv:2001.08361. Karpukhin, V.; Oguz, B.; Min, S.; Lewis, P.; Wu, L.; Edunov, S.; Chen, D.; and Yih, W.-t. 2020. Dense Passage Retrieval for Open-Domain Question Answering. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing, 6769–6781. Association for Computational Linguistics. Kirkpatrick, J.; Pascanu, R.; Rabinowitz, N.; Veness, J.; Desjardins, G.; Rusu, A. A.; Milan, K.; Quan, J.; Ramalho, T.;
Grabska-Barwinska, A.; et al. 2017. Overcoming Catastrophic Forgetting in Neural Networks. Proceedings of the National Academy of Sciences, 114(13): 3521–3526. Lewis, P.; Perez, E.; Piktus, A.; Petroni, F.; Karpukhin, V.; Goyal, N.; Küttler, H.; Lewis, M.; Yih, W.-t.; Rocktäschel, T.; Riedel, S.; and Kiela, D. 2020. Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks. In Advances in Neural Information Processing Systems, volume 33, 9459– 9474. Li, C.; Chen, H.; Yan, M.; Shen, W.; Xu, H.; Wu, Z.; Zhang, Z.; Zhou, W.; Chen, Y.; Cheng, C.; Shi, H.; Zhang, J.; Huang, F.; and Zhou, J. 2023. ModelScope-Agent: Building Your Customizable Agent System with Open-source Large Language Models. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing: System Demonstrations, 566–578. Association for Computational Linguistics. Matena, M.; and Raffel, C. 2022. Merging Models with Fisher-Weighted Averaging. In Advances in Neural Information Processing Systems, volume 35, 17703–17716. Meng, K.; Bau, D.; Andonian, A.; and Belinkov, Y. 2022. Locating and Editing Factual Associations in GPT. In Advances in Neural Information Processing Systems, volume 35, 17359–17372. MiniMaxAI. 2025. MiniMax-M2.5. https://huggingface.co/ MiniMaxAI/MiniMax-M2.5. Hugging Face model card. Mitchell, E.; Lin, C.; Bosselut, A.; Finn, C.; and Manning, C. D. 2022. Fast Model Editing at Scale. In International Conference on Learning Representations. ModelScope. 2024. MSBench: ModelScope GeneralPurpose SFT Dataset. https://modelscope.cn/datasets/iic/ ms_bench. Public dataset released under the Apache-2.0 license. OpenAI. 2025. gpt-oss-120b & gpt-oss-20b Model Card. arXiv:2508.10925. Ovadia, O.; Brief, M.; Mishaeli, M.; and Elisha, O. 2024. Fine-Tuning or Retrieval? Comparing Knowledge Injection in LLMs. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, 237–250. Association for Computational Linguistics. Petroni, F.; Rocktäschel, T.; Riedel, S.; Lewis, P.; Bakhtin, A.; Wu, Y.; and Miller, A. 2019. Language Models as Knowledge Bases? In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing, 2463–2473. Association for Computational Linguistics. PleIAs. 2024. Common Corpus. https://huggingface.co/ datasets/PleIAs/common_corpus. Hugging Face dataset. Qwen Team. 2025. Qwen3 Technical Report. arXiv:2505.09388. Roberts, A.; Raffel, C.; and Shazeer, N. 2020. How Much Knowledge Can You Pack Into the Parameters of a Language Model? In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing, 5418–5426. Association for Computational Linguistics.
Shoemake, K. 1985. Animating Rotation with Quaternion Curves. In Proceedings of the 12th Annual Conference on Computer Graphics and Interactive Techniques, 245–254. Wang, P.; Li, Z.; Zhang, N.; Xu, Z.; Yao, Y.; Jiang, Y.; Xie, P.; Huang, F.; and Chen, H. 2024. WISE: Rethinking the Knowledge Memory for Lifelong Model Editing of Large Language Models. In Advances in Neural Information Processing Systems, volume 37. Wang, R.; Bao, J.; Mi, F.; Chen, Y.; Wang, H.; Wang, Y.; Li, Y.; Shang, L.; Wong, K.-F.; and Xu, R. 2023. Retrieval-free Knowledge Injection through Multi-Document Traversal for Dialogue Models. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), 6608–6619. Association for Computational Linguistics. Wortsman, M.; Ilharco, G.; Gadre, S. Y.; Roelofs, R.; Gontijo-Lopes, R.; Morcos, A. S.; Namkoong, H.; Farhadi, A.; Carmon, Y.; Kornblith, S.; and Schmidt, L. 2022. Model Soups: Averaging Weights of Multiple Fine-Tuned Models Improves Accuracy without Increasing Inference Time. In Proceedings of the 39th International Conference on Machine Learning, volume 162 of Proceedings of Machine Learning Research, 23965–23998. PMLR. Yadav, P.; Tam, D.; Choshen, L.; Raffel, C.; and Bansal, M. 2023. TIES-Merging: Resolving Interference When Merging Models. In Advances in Neural Information Processing Systems, volume 36, 7093–7115. Yu, L.; Yu, B.; Yu, H.; Huang, F.; and Li, Y. 2023. Language Models are Super Mario: Absorbing Abilities from Homologous Models as a Free Lunch. arXiv preprint arXiv:2311.03099. Zhang, X.; Peng, B.; Tian, Y.; Zhou, J.; Zhang, Y.; Mi, H.; and Meng, H. M. 2025. Self-Tuning: Instructing LLMs to Effectively Acquire New Knowledge through Self-Teaching. In Findings of the Association for Computational Linguistics: ACL 2025, 5688–5724. Association for Computational Linguistics. Zhao, E.; Awasthi, P.; and Haghtalab, N. 2025. From Style to Facts: Mapping the Boundaries of Knowledge Injection with Finetuning. In Advances in Neural Information Processing Systems. Zheng, L.; Chiang, W.-L.; Sheng, Y.; Zhuang, S.; Wu, Z.; Zhuang, Y.; Lin, Z.; Li, Z.; Li, D.; Xing, E. P.; et al. 2023. Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena. In Advances in Neural Information Processing Systems, volume 36, 46595–46623. Zhou, J.; Lu, T.; Mishra, S.; Brahma, S.; Basu, S.; Luan, Y.; Zhou, D.; and Hou, L. 2023. Instruction-Following Evaluation for Large Language Models. arXiv preprint arXiv:2311.07911.
Supplementary Material The following sections provide the complete supplementary methods, protocols, results, and analyses referenced by the main paper.
A
Dataset and Task Examples
CC and CCI are document-derived QA evaluations. CC is derived from Common Corpus (PleIAs 2024); CCI is derived from the CCI dataset (BAAI 2024). In both cases, training examples are generated from source documents and test examples are held out. At inference time, all evaluated models receive only the question, not the source document or a retrieved passage. This makes the task deliberately stricter than RAG-style document QA. Table 4 summarizes the train/test contract used by both datasets. Example prompt shape. The actual examples vary by corpus, but every row follows the same retrieval-free evaluation contract: Source fragment used during data construction: A bounded corpus document contains a target fact. Generated training pair: Question: Which fact is stated in the document? Answer: The target fact. Evaluation input: Question only. No source passage or retrieved context is provided. Scoring: The model answer is judged for correctness and the same checkpoint is evaluated on IFEval, MMLU, and MSBench.
This box is schematic and summarizes the input contract used by all domain evaluations.
B
Prompt Templates and QA Accounting
The implementation uses Chinese instruction templates. For reproducibility, we report English prompt schemas that preserve the operative constraints, placeholders, and output contracts. The source templates are grouped into three parts: document-derived QA construction, post-training prompts, and evaluation prompts. Document-derived QA construction. CC and CCI QA pairs are generated by an anchor-aware file-to-QA pipeline. The referenced configuration uses anchor-aware question generation and single-model answer generation. It first extracts referable anchors from each document chunk, selects applicable question types, generates self-contained questions, validates them, and then generates answers grounded in the same chunk. Table 5 reports the QA-construction prompt schemas. Generation-stage accounting. The pipeline does not retain every source record or generated candidate. Table 6 reports micro-aggregated counts from the frozen generation artifacts. CC stage counts come from trusted run statistics; the CCI counts were recovered from validated timestamped per-domain logs and resume artifacts after the pipeline’s persisted statistics files were found to reflect stale skip-rerun states. The final column reports the QA rows selected by the downstream dataset-construction step for training and held-out testing, rather than an additional quality-filter rate.
Because CC and CCI use different source-sampling and prefiltering paths, their stage rates characterize data flow rather than a directly comparable dataset-quality score. The archived logs expose two implementation details that are otherwise hidden by aggregate counts. Under the question validator’s fail-open rule, 33 CC and 12 CCI candidates were retained after validation-response parsing failures; no candidate was retained after a validation-call error. Deterministic checks over the 26,509 final experiment rows found no malformed records, missing required fields, or normalized duplicate QA pairs. CC contains one repeated normalized question and one deictic-pattern match (“according to the text”); CCI contains neither. We also archive charactertrigram answer–source overlap as a descriptive mismatch diagnostic, but do not interpret lexical overlap as correctness or faithfulness because answers may paraphrase the source or differ in script. These checks are not a substitute for human validation. Source hashes, group-level rates, and diagnostics are stored in the code package under artifacts/qa_ generation_quality/reports/. Inject objectives and prompts. Before training, source documents are converted into the three supervised documentgeneration datasets defined in Table 7. The cleaning prompt asks a model to repair OCR and formatting noise while preserving terminology, numbers, formulas, symbols, style, and key details. For Rewrite, the skeleton prompt preserves entities, definitions, values, clauses, formulas, and logical chains while avoiding long direct copying; the outline prompt covers every paragraph and preserves names, places, times, data, and model names. The mixture constructor samples each recipe dataset in the stated integer ratio before shuffling; Table 10 reports realized post-filtering counts for selected runs. Align and Vanilla instead use a question-only user prompt and apply loss only to the answer span. Context-QA diagnostics wrap source context in the user prompt but are not part of retrievalfree evaluation. Evaluation prompts. All domain evaluations use retrieval-free model inference: the evaluated model receives the question only. Domain scoring then uses the correctness mode of the V2 evaluator. The judge receives the question, reference answer, and model answer; it is instructed to assess whether the model’s core conclusion is semantically equivalent to the reference answer, ignoring source attribution. The allowed scores are 1.0 for a correct core conclusion, 0.5 for a broadly correct but incomplete or partially flawed answer, and 0.0 for an incorrect or contradictory answer. The required output is a JSON object with score and a short reason. For general benchmarks, IFEval uses the original instruction prompt with a generic helpful-assistant system message and rule-based instruction-following scoring. MMLU uses a multiple-choice prompt and a system instruction requiring only the option letter as output. MSBench uses model inference with a helpful-assistant system prompt, then applies an LLM judge that receives the user question, reference answer, and model answer and returns JSON fields for correctness and quality.
Dataset CC
CCI
Split
Count
Input at train time
Input at test time
Primary use
train
14,258 QA
question only
test train
750 QA 10,926 QA
test
575 QA
question, answer, derived document fields / question, answer, derived document fields /
mixed-domain internalization held-out domain test Chinese-domain internalization held-out domain test
question only question only question only
Table 4: Dataset construction contract. The train/test split and retrieval-free input column define the experimental setting: models must answer from internalized parameters rather than from retrieved source passages. The files named eval_750.jsonl and eval_575.jsonl in the repository are treated as held-out test files in this paper. Step
Prompt schema
Output contract
Anchor extraction
Given a text chunk, extract at most K independently referable core objects. Prefer explicit concepts, methods, mechanisms, modules, devices, or technical terms appearing in the text. Do not output deictic objects such as “this method” or “the above mechanism.” Given a question-type description and the text chunk, decide whether the chunk can support a question of that type. The supported types are factual extraction, mechanism explanation, design rationale, condition/constraint, limitation/tradeoff, and comparison/relation. Given the chunk, a selected anchor, a question type, the type description, and an expected answer schema, generate one natural question. The anchor must be explicitly named; the question must be understandable without the source document; deictic expressions such as “this,” “above,” or “according to the text” are forbidden; output only one question ending with a question mark. Check whether the question is independently understandable, avoids document/deictic references, is semantically clear, and has an answer direction. Given the source chunk and generated question, answer strictly from the chunk. The answer must be faithful, accurate, professional, directly answer the question, avoid document/deictic references, and be written as a natural paragraph rather than a template with section headings.
JSON list of anchors.
Type applicability
Question generation
Question validation Answer generation
yes/no.
Plain question text.
JSON with valid and reason. JSON with answer.
Table 5: Document-derived QA construction prompts. The schemas show how chunks are converted into self-contained questions and grounded answers while preventing deictic questions that require access to the original document. Dataset Input docs CC CCI
Files filtered
Chunks kept
Valid questions
QA kept Experiment QA
4,001 1,944 (48.6%) 5,324/6,593 (80.8%) 37,397/77,224 (48.4%) 16,674/37,397 (44.6%) 7,000 310 (4.4%) 11,407/11,793 (96.7%) 100,096/140,148 (71.4%) 62,670/100,096 (62.6%)
15,008 11,501
Table 6: QA-generation stage accounting. “Files filtered” gives the count and percentage of input documents rejected at filelevel filtering; the chunk, question, and QA columns give retained/considered counts and micro rates. “Experiment QA” is the train-plus-test total after exact-question deduplication and fixed chunk-group sampling. Objective
User input u
Continuation
Continue/complete instruction Held-out suffix. plus a document prefix. Reconstruction instruction plus Full cleaned document. a generated summary, outline, or knowledge skeleton.
Rewrite
Assistant target y
InstructionShort generic reading instruc- Full cleaned document. formatted recon- tion. struction
Masked tokens
Recipe role Intended exposure
System prompt, in- single struction, and prefix. mixed System prompt, single instruction, and mixed compressed representation. System prompt and in- 1:0:0 struction. mixed
or Prefix-conditioned document exposure. or Recover document content from a compressed representation. or Dense exposure through a fulldocument target.
Table 7: Inject objective definitions. All three objectives use the instruction model’s chat template and assistant-target loss; the loss mask excludes every system/user token. Recipe ratios control the relative counts of the three objective streams, while realized shares can differ slightly after tokenizer-specific length filtering.
C
Training and BudgetMatch Details
For the completed 3B/4B gradient-training runs and the extended CC baselines, serialized training arguments and original logs recover the common configuration in Table 8. Full-parameter runs use DeepSpeed ZeRO-2 without CPU or NVMe offload; LoRA uses the same optimizer schedule while updating adapters only. All objectives mask prompt tokens and optimize the assistant target span. Table 9 records stage-specific settings and exceptions. Computing environment. The archived main training runs used Linux x86_64 nodes (glibc 2.35; kernels 5.4.0-113-generic or 5.15.0-1053-nvidia) with eight NVIDIA A100-SXM4-40GB GPUs, 128 physical CPU cores (256 logical cores), and approximately 1 TiB of host memory. The software stack used CPython 3.10.0, CUDA 12.4, PyTorch 2.6.0, Transformers 4.57.1, DeepSpeed 0.14.3, and PEFT 0.12.0. Model inference used vLLM 0.8.4, and Recover artifacts record mergekit 0.1.3. Logged inference jobs used one GPU unless otherwise specified; domain QA scoring called external LLM-judge APIs. BudgetMatch token accounting. The completed-run accounting accumulates non-padding training tokens under each model’s tokenizer. We define IA total as Inject plus Align and compare it directly with the realized BudgetMatch token volume. The integer training schedules—14, 17, 21, and 11 epochs for CC Llama, CC Qwen3-4B, CCI Llama, and CCI Qwen3-4B—are implementation settings reported in Table 9. Matching is assessed from the realized token volumes, so no separate fractional-epoch estimate is reported. Table 11 reports these volumes rounded to 0.001 million. Runs and training seeds. Every reported checkpoint is a single training run; we do not average over multiple seeds. Hugging Face TrainingArguments uses seed=42 and data_seed=42. The tokenized training data are shuffled with seed 1234, and the internal training/validation split uses seed 42. Dataloader drop_last is enabled. DeepSpeed runs save once per epoch and do not load a validation-best checkpoint; the reported final_model is the final-epoch model. Gradient checkpointing is enabled by a direct model-level call even though the serialized TrainingArguments flag is false. These fixed seeds improve run traceability but do not guarantee bitwise determinism under distributed GPU training. Scaling-run parameter provenance. The selected Qwen3-8B/14B/32B Recover configurations are retained and all use TIES density .3, but the original Inject/Align training arguments, logs, and node manifests for the scaling ablation are not present in the available run archive. We therefore do not infer their LR, batch, sequence length, precision, GPU count/model, node count, or ZeRO/offload settings from current launcher defaults. The computingenvironment paragraph and Table 8 should not be read as covering these three scaling rows.
D
Evaluation and Judge Reliability
Domain accuracy is produced by the repository’s V2 evaluator. The evaluator records model generations, per-example
judge decisions, and aggregate correctness. The general benchmark suite contains IFEval, MMLU, and MSBench. IFEval and MMLU are rule- or answer-key-based in the current pipeline; MSBench uses an LLM judge and therefore shares the audit requirements of domain QA. Table 12 defines the metric directions and evaluation types. MSBench is public: we use a fixed 200-example local evaluation subset drawn from the Apache-2.0 iic/ms_bench release, itself a public subset of MSAgent-Bench (Li et al. 2023; ModelScope 2024). The source release provides the conversational examples; the fixed 200-example selection, model prompting, and adaptive LLM-judge aggregation described below are our repository-level evaluation protocol rather than a claim of reproducing a separate canonical leaderboard. Inference and judge decoding. Each checkpoint is evaluated with one model-generation pass and one judging pass. Domain QA shuffles or truncates the test input with seed 42, then generates with temperature .7, top_p=.95, repetition penalty 1.1, and a 2,048-token limit. No sampler seed is passed to vLLM, so the domain generation remains stochastic. The reported non-thinking IFEval, MMLU, and MSBench runs use greedy decoding with token limits of 1,024, 10, and 1,024, respectively; their optional subsampling order uses seed 123. MSBench judge calls override temperature to .1. Judge APIs receive no explicit random seed. Their stored configurations use temperature/top-p pairs of .7/.8 for gpt-oss-120b, .6/.4 for local MiniMax2.5, and .7/.95 for cloud DeepSeek variants; the configured output limits are 131,072, 196,608, and 16,384 tokens, respectively. Consequently, fixed training and data-order seeds should not be read as repeated-run control over stochastic domain generation or API judging. Judge prompt contract. The domain and MSBench judges share the same evidence inputs, but use different output and aggregation rules: Input: question, reference answer, model answer, optional scoring rubric. Decision: domain QA returns a score in {0, .5, 1}; MSBench returns binary correctness and a quality score. Required rationale: short explanation identifying whether the model answer contains the required fact and whether it introduces unsupported content. Domain aggregation: two judges score every answer; if their scores differ, a third judge is called. The final score is the median of the available scores, and every raw vote is stored before aggregation.
MSBench also calls two judges first and a third on binary disagreement; final correctness uses majority vote and quality uses the mean of available quality scores. These contracts are part of the evaluation method because both metrics are judge-produced rather than answer-key labels. Judge agreement audit. The audit reads stored perexample V2 JSONL files without calling a model or judge. It covers 343 result files and 242,255 valid model-answer records; ten malformed JSON lines are skipped, and every valid record contains raw correctness votes. Because
Parameter
Value
Parameter
Value
Optimizer Adam β1 , β2 , ϵ Weight decay / max grad norm Batch per GPU
AdamW (PyTorch) .9, .999, 10−8 .01/1.0
Learning rate Scheduler / warmup Precision / max length
5 × 10−5 cosine / ratio .05 BF16 / 4096
1
8/8
Effective global batch Termination / checkpoint
64 examples/step epoch based / final epoch
Gradient accum. / GPUs DeepSpeed Gradient checkpointing
ZeRO-2, no offload model-level enabled
Table 8: Shared optimization settings recovered for the completed 3B/4B training runs and extended CC baselines. The effective global batch is per-device batch 1 × 8 accumulation steps ×8 GPUs. Method / stage Vanilla SFT BudgetMatch Inject Align SDFT LoRA Replay CPT
Epochs Data and objective
Method-specific setting
3 QA; answer-only 14/17/21/11 Same QA and loss as Vanilla 3 Three assistant-target document-generation objectives 3 QA; answer-only 3 Model-specific synthetic QA; answer-only 3 CC QA; answer-only 3 75% domain QA + 25% general instruction 16 Raw-document causal LM
CPT+SFT
3 QA; answer-only
Original Instruct initialization CC Llama/Qwen; CCI Llama/Qwen order Selected mixtures and counts in Table 10 Initializes from the Inject final epoch 14,258 CC examples per model r = 16, α = 32, dropout .05; merged for evaluation Equal-size replacement; construction seed 42 Matched Base initialization; 4,425 CC / 10,769 CCI rows Initializes from the CPT final epoch
Table 9: Stage-specific training settings. Unless stated as an exception, each row uses Table 8. BudgetMatch epoch counts are setting-specific rather than a shared 13-epoch approximation. Dataset
Model
Selected Inject recipe
Inject rows
Align QA rows
CC
Llama-3.2-3B Phi-4-mini Qwen3-4B SmolLM3-3B
Mixed 1:1:2 Mixed 1:1:2 Mixed 1:1:1 Mixed 1:1:1
19,000 19,000 18,968 18,960
14,258 14,258 14,258 14,258
CCI
Llama-3.2-3B Phi-4-mini Qwen3-4B SmolLM3-3B
Mixed 1:1:2 Mixed 1:1:2 Reconstruction 1:0:0 Mixed 1:1:2
19,000 19,000 10,000 19,000
10,926 10,926 10,926 10,926
Table 10: Selected Inject configurations for the eight main settings. Counts are realized post-tokenization training rows; tokenizerspecific length filtering explains the small differences among nominally equal mixtures. Setting
Inject recipe (samples)
Inject
Align
IA total
BudgetMatch
BM/IA
CC Llama-3.2-3B CC Qwen3-4B CCI Llama-3.2-3B CCI Qwen3-4B
Mixed 1:1:2 (19k) Mixed 1:1:1 (18,968) Mixed 1:1:2 (19k long-doc.) 1:0:0 (10k)
45.736 46.017 57.296 19.081
12.917 10.191 9.734 7.151
58.653 56.208 67.030 26.232
60.280 57.752 68.085 26.202
102.8% 102.7% 101.6% 99.9%
Table 11: Realized token accounting for BudgetMatch, in millions of non-padding model tokens. BM/IA compares the completed QA-only BudgetMatch run directly with the corresponding Inject+Align token volume.
the panel is adaptive, agreement is measured on the first two judges and the third-judge rate measures arbitration frequency.
Bootstrap uncertainty and audit artifacts. For every result file, the audit performs 2,000 example-level bootstrap resamples with seed 20260706 and reports percentile 95% intervals for domain accuracy and mean correctness. The full per-file intervals, per-judge scores, pair-
Metric
Direction
Evaluation type
Reported unit
Domain accuracy IFEval inst-strict MMLU accuracy MSBench accuracy
higher is better higher is better higher is better higher is better
V2 multi-judge correctness instruction-following evaluator multiple-choice benchmark LLM-judge benchmark
percentage percentage percentage percentage
Table 12: Evaluation metrics and their roles in operating-point selection. Domain QA is the primary retrieval-free internalization metric, while IFEval, MMLU, and MSBench serve as general-capability guardrails. Scope
Records
Exact agree
Binary agree
Binary κ
Third judge
CC test artifacts CCI test artifacts Full audit
163,347 78,308 242,255
.732 .656 .707
.854 .836 .848
.691 .670 .691
.274 .345 .297
Table 13: Domain QA judge reliability. Binary agreement collapses scores at ≥ .5. The full audit additionally contains 600 samples from a smaller CCI evaluation set. These statistics quantify judge reliability over the evaluated samples. Judge gpt-oss-120b MiniMax2.5_Local deepseek-v3.2 deepseek-v3.1
Votes
Mean score
P (s ≥ .5)
P (s = 1)
242,031 156,812 131,172 24,697
.387 .303 .296 .378
.454 .434 .465 .652
.321 .172 .127 .103
Table 14: Per-judge score distributions before aggregation. Vote counts differ because panel configurations vary across evaluations and later judges are invoked adaptively; the marginal means are therefore descriptive and should not be interpreted as a controlled judge ranking.
wise agreement, and dataset summaries are stored in the code package under artifacts/domain_eval_ reliability/. These intervals quantify evaluationsample uncertainty for each checkpoint and support the reported domain estimates; training-seed robustness remains outside their scope.
E
Recover Selection Protocol
The IAR rows use a domain-primary frontier criterion on the training-framework validation split. Recover candidates are first filtered for meaningful domain accuracy relative to Vanilla SFT, then compared on IFEval, MMLU, and MSBench as guardrails. The selected row is therefore an operating point, not necessarily the maximum-domain checkpoint. The merge candidate is fixed before running the held-out test files used in the main tables. Recover is implemented as a selection mechanism over existing post-hoc weight-space merge operators, not as a new merging algorithm. The repository uses eval in two different places. During training and Recover selection, eval denotes an internal validation split derived from the training data. The published CC and CCI files with 750 and 575 examples are held-out test sets, despite their local eval_*.jsonl filenames. We use test for those files throughout the paper to avoid implying that final reported scores were also used for Recover-candidate selection. Formal selection rule. For each dataset–model setting, let c denote a Recover candidate and let v denote the corresponding Vanilla SFT checkpoint on the validation split. We
write D(c) for retrieval-free domain QA accuracy, I(c) for IFEval, M (c) for MMLU, B(c) for MSBench, and I(c) + M (c) + B(c) 3 for mean general performance. We use a fixed tolerance of τ = 1.0 percentage point. Candidate selection proceeds as follows: 1. Domain feasibility. Keep candidates with D(c) ≥ D(v) − τ . This allows boundary trade-offs such as Phi CCI only when the domain loss relative to Vanilla SFT is within tolerance. 2. General guardrail. Among domain-feasible candidates, keep candidates with G(c) ≥ G(v) and at least two of {I, M, B} no more than τ below the corresponding Vanilla SFT value. 3. Domain-primary ranking. Select from the nondominated candidates in the (D, G) plane. Domain accuracy is the primary key; candidates within τ of the best remaining domain score are treated as the same domain tier. 4. Tie-break. Within the best domain tier, choose the candidate with the largest G(c). Remaining ties are broken by the larger minimum improvement over Vanilla SFT across {I, M, B}, then by the smaller merge hyperparameter within the same operator family. This rule makes Recover a validation-time operating-point selector rather than an unreported search over the held-out test results. G(c) =
Table 15 gives the fixed candidate grid used for each recoverable IA checkpoint. Figure 4 visualizes the candidate frontier for each dataset–model setting, and Table 16 lists the selected operating point for each main IAR row. All Recover outputs use BF16 weights and the base-model tokenizer. TIES fixes task-vector weight to 1.0. DARE-TIES converts drop rate dr to density 1 − dr , fixes task-vector weight to 1.0, and enables normalization. For the selected CC Phi Recover checkpoint, Task Arithmetic applies w = 0.7 to the full task vector; the corresponding source and outputlocal configurations are retained with matching hashes in the code supplement. For tied-embedding models, the pipeline temporarily materializes the LM head for merging and restores the original tying afterward.
F
Qwen3-4B CCI Diagnostic
Qwen3-4B on CCI is an important boundary case because the original instruction checkpoint already reaches 70.6% domain accuracy before any document-internalization training. This is much higher than the corresponding initial scores for Llama, Phi, and SmolLM on CCI, and it changes how the CCI Qwen3-4B rows should be interpreted. Here, the initial checkpoint is the instruction model used before any training in this work, not a pure pretrained Base checkpoint. The main question in this setting is not whether post-training can create a large absolute domain gain from a weak starting point, but whether it can preserve or improve an already strong domain prior while recovering general capability. We therefore avoid treating the CCI Qwen3-4B recipe result as evidence that a single Inject mixture is universally best. Vanilla SFT reaches 75.1%, the best pre-recovery Inject+Align row reaches 75.5%, and the selected IAR checkpoint reaches 76.3% while substantially improving IFEval, MMLU, and MSBench over Vanilla SFT. The small prerecovery domain gap is consistent with a high-base-prior setting: there is limited headroom for document exposure to improve domain accuracy, so the value of Recover is more visible in the domain-general trade-off than in raw domain gain. We conduct a post-hoc diagnostic on the four original instruction checkpoints to determine whether Qwen3-4B assigns higher likelihood to the evaluated CCI source-text distribution. The CCI test file contains 575 QA rows, which map to 509 unique source documents after normalization for document identity; scoring always preserves the original raw text. We score source text only, without questions, answers, special tokens, or chat templates. For each document, we select a UTF-8 prefix–target boundary near the byte midpoint, prefer a sentence or paragraph boundary within the 45–55% range, require at least 128 bytes on each side, and require that the boundary be valid under the canonical fulltext tokenization of all four models. This produces 507 shared continuations; two short documents are excluded. Because token-level perplexity is not comparable across different tokenizers, we report conditional bits per byte: P − log p(xt | x<t ) BPB = t , ln 2 · B
where B is the number of UTF-8 bytes in the shared target. All models predict exactly the same target bytes with deterministic teacher-forced scoring in BF16, using a maximum context length of 4096 and a stride of 2048; overlapping windows provide context only, and each target token is scored once. For all four models, a 20-document smoke test agreed with direct single-window forward computation to within 6.1 × 10−7 , below the 10−5 tolerance. For each peer, we compute paired document-level Qwen-minus-peer BPB differences. The primary statistic averages the mean difference within each of the seven CCI domains and then weights domains equally; 95% intervals use 10,000 paired bootstrap samples stratified by domain. Document-weighted and byte-weighted aggregates are secondary summaries. Qwen3-4B has lower equal-domain macro BPB than every peer, with all paired 95% bootstrap intervals below zero and all seven domain means in the same direction (Table 17). The difference is broad at the document level: Qwen has lower BPB than Llama on 100% of documents, Phi on 99.0%, and SmolLM3 on 86.8%. This pattern is consistent with stronger fit to the evaluated CCI text distribution as one possible contributor to Qwen’s high initial QA accuracy. It is not a sufficient explanation of QA behavior: for example, Phi has lower BPB than Llama but slightly lower CCI QA accuracy. Moreover, the diagnostic compares complete checkpoints rather than controlling model capacity, pretraining composition, or Chinese-language capability. It therefore does not identify why the likelihood difference arose, establish that text likelihood causes the QA gap, or demonstrate memorization, training-data overlap, or contamination. The public Qwen3 technical report does not report this CCI QA benchmark, but it does disclose strong base-model performance for the Qwen3 dense family across general and multilingual evaluations (Qwen Team 2025). Table 18 records the relevant family-level numbers. These official results do not establish CCI overlap, but they make a high-base-prior explanation plausible: Qwen3 starts from a strong multilingual and knowledge benchmark profile before any documentinternalization training in our experiments. Table 19 reports the available Qwen3 CCI diagnostic rows. The 1.7B and 4B rows both start from unusually high CCI base scores relative to non-Qwen models. For Qwen3-1.7B, post-training does not improve over the base score, suggesting that the CCI signal can already be strong in the base model and that additional domain fitting can disturb that prior. For Qwen3-4B, Vanilla SFT and the 1:0:0 Inject recipe improve the domain score modestly, but the small gap between Vanilla SFT and the best pre-recovery recipe explains why this setting should be read as a high-base-prior boundary case rather than as evidence for a universally best Inject mixture. The same pattern appears in the Qwen3-4B Recover sweep. Table 20 shows that several merge operators recover to the mid-70s domain range, with Task Arithmetic w = 0.7 and TIES d = 0.3 reaching 76.3%. This is consistent with the main-table interpretation: the Qwen3-4B CCI row is not primarily a large domain-gain story, because the model starts high; its value is that Recover can preserve the high CCI prior while restoring substantially stronger general capability.
Operator family
Hyperparameter grid
Candidate count
SLERP Task Arithmetic TIES DARE
t ∈ {0.2, 0.3, 0.4} w ∈ {0.3, 0.5, 0.7} d ∈ {0.3, 0.5, 0.7} dr ∈ {0.1, 0.3, 0.5}
3 3 3 3
Total
fixed grid per IA checkpoint
12
Table 15: Recover candidate grid. Every selected IAR row is chosen from this fixed set of post-hoc merge candidates rather than from an unreported per-row search space. Candidate choice is made on the validation split before held-out test reporting.
Mean general (%)
CC / Llama-3.2-3B
CC / Phi-4-mini
CC / Qwen3-4B
60
60
60 70
55 50 40
50
50
60
45
50
40 30
40
30
CC / SmolLM3-3B
40
35
20
20 20
30
40
20
CCI / Llama-3.2-3B
30
40
40
CCI / Phi-4-mini
45
50
30
CCI / Qwen3-4B
40
CCI / SmolLM3-3B
Mean general (%)
60 60
60
55
50
70 50
50
40
60
45
30
40
20
35 40
50
40 50 30 40 30
Domain QA (%)
35
40
45
70
Domain QA (%) SLERP
Task arithmetic
75
Domain QA (%) TIES
DARE
45
50
55
60
Domain QA (%)
Selected candidate
Figure 4: Recover candidate frontiers for the main dataset–model settings. Each panel plots held-out test performance of the fixed Recover candidates by retrieval-free domain QA accuracy and mean general performance across IFEval, MMLU, and MSBench. The black line marks non-dominated points in this two-dimensional projection, and the black ring highlights the candidate selected by the validation protocol for the main IAR table. The displayed test frontier is diagnostic and is not used to choose the selected candidate.
G
Extended Baselines and Recipe Analyses
Complete CC comparison. Tables 21 and 22 complement the main-paper comparison with every extended-baseline row. Initialization diagnostic for CPT+SFT. The main table treats Base-initialized CPT+SFT as the conventional densedocument baseline, not as an initialization-controlled estimate of the Inject objective. Table 23 therefore exposes the three completed Instruct-initialized CPT+SFT runs available in the archive. Their coverage is incomplete and they are diagnostic rather than a second main baseline matrix. On domain QA, Instruct-CPT+SFT is competitive with the best pre-Recovery IA checkpoint for CC Llama (38.7 versus 38.3), but is lower for CC Phi (31.2 versus 32.1) and CCI
Llama (52.9 versus 58.6). These results show that CPT is initialization-sensitive and do not support a uniform ordering between structured Inject and raw-document CPT. Interpretation. SDFT is a supervised data-recipe baseline. LoRA is a parameter-efficiency baseline that can preserve broad capability while under-internalizing the target documents. Base-initialized CPT+SFT is a conventional densedocument baseline, whereas Table 23 separately shows the available initialization-controlled diagnostics. Phi-4-mini is unavailable in the Base-initialized CPT+SFT matrix because the release used here does not provide a corresponding noninstruction checkpoint.
Dataset
CC
CCI
Model
Selected checkpoint
Domain (%)
IFEval (%)
MMLU (%)
MSBench (%)
Llama-3.2-3B
TIES d = 0.3
36.5
60.2
35.0
30.5
Phi-4-mini Qwen3-4B
Task Arithmetic w = 0.7 TIES d = 0.3
34.1 50.5
49.0 59.8
57.0 19.5
43.0 63.0
SmolLM3-3B
TIES d = 0.3
37.5
40.3
25.7
29.0
Llama-3.2-3B
TIES d = 0.3
55.3
61.3
33.2
36.5
Phi-4-mini Qwen3-4B
TIES d = 0.3 Task Arithmetic w = 0.7
39.7 76.3
51.6 76.1
50.2 64.5
44.0 70.0
SmolLM3-3B
Task Arithmetic w = 0.7
53.9
57.4
46.8
47.0
Selection note domain-primary feasible point balanced feasible point domain-primary feasible point domain-primary feasible point domain-primary feasible point boundary trade-off point domain-primary feasible point domain-primary feasible point
Table 16: Selected Recover settings for the main IAR rows. The table reports held-out test scores for the concrete operating point chosen from the fixed Recover grid by the validation protocol, making the domain-primary selection rule explicit rather than treating recovery as an unreported hyperparameter search. Initial checkpoint Qwen3-4B-Instruct Llama-3.2-3B-Instruct Phi-4-mini-instruct SmolLM3-3B
CCI QA (%)
Doc. mean BPB
Corpus BPB
70.6 29.2 27.3 34.1
0.744 1.021 0.968 0.838
0.729 0.998 0.948 0.819
Qwen–peer macro ∆ [95% CI] – −0.273 [−0.285, −0.261] −0.220 [−0.231, −0.208] −0.093 [−0.102, −0.084]
Table 17: Conditional BPB on identical CCI source-document continuations. Corpus BPB is byte weighted; the primary effect first averages paired Qwen-minus-peer BPB differences within each of seven domains and then weights domains equally. Negative ∆ means lower BPB for Qwen. All intervals exclude zero and all seven domain means agree in direction. Model
MMLU
MMLU-Pro
BBH
MGSM
MMMLU
INCLUDE
62.63 72.99 76.89 81.05 83.61
36.76 50.58 56.73 61.03 65.54
54.47 72.59 78.40 81.07 87.38
50.71 67.74 76.02 79.20 83.06
63.27 71.42 75.72 79.69 83.83
45.57 56.29 59.40 64.55 67.87
Qwen3-1.7B-Base Qwen3-4B-Base Qwen3-8B-Base Qwen3-14B-Base Qwen3-32B-Base
Table 18: Officially disclosed Qwen3 dense-family base-model scores from the Qwen3 technical report. These are public general and multilingual benchmark results, not CCI QA results, and are included only to contextualize the high-base-prior interpretation. Model
Setting
Qwen3-1.7B
Base Instruct Vanilla SFT Mixed 1:1:1 + Stage2
CCI domain (%) 60.0 57.0 56.7
Qwen3-4B
Base Instruct Vanilla SFT Context-aware SFT Mixed 1:1:1 + Stage2 Continue + Stage2 1:0:0 + Stage2 Rewrite + Stage2 Mixed 1:1:2 + Stage2 Replay
70.6 75.1 65.0 73.7 72.9 75.5 74.4 72.5 66.4
Table 19: Qwen3 CCI high-base-prior diagnostics. The 1.7B and 4B rows show that Qwen3 starts unusually high on CCI, so this setting is better interpreted as preserving and recovering a strong prior than as creating a large new domain gain.
Operator
Coefficient
CCI domain (%)
Operator
Coefficient
DARE DARE DARE
dr = 0.1 dr = 0.3 dr = 0.5
74.1 74.3 73.7
SLERP SLERP SLERP
t = 0.2 t = 0.3 t = 0.4
CCI domain (%) 69.0 72.7 73.2
Task Arithmetic Task Arithmetic Task Arithmetic
w = 0.3 w = 0.5 w = 0.7
71.1 74.1 76.3
TIES TIES TIES
d = 0.3 d = 0.5 d = 0.7
76.3 72.5 75.0
Table 20: Qwen3-4B CCI Recover sweep. Multiple merge operators stay in the high-domain range, with Task Arithmetic and TIES reaching the main selected value; this supports the boundary-case reading of the Qwen3 CCI row. Model
Method
Domain (%)
IFEval (%)
MMLU (%)
MSBench (%)
Llama-3.2-3B
Vanilla SFT SDFT LoRA Replay Vanilla-FAPM IA-FAPM IAR
35.5 39.9 22.5 30.8 22.3 22.4 36.5
54.2 58.4 64.0 56.7 75.3 74.5 60.2
11.2 23.5 53.2 30.7 51.8 53.7 35.0
21.5 33.5 30.0 37.5 62.0 59.0 30.5
Phi-4-mini
Vanilla SFT SDFT LoRA Replay Vanilla-FAPM IA-FAPM IAR
24.4 32.9 18.0 24.7 17.1 16.9 34.1
47.8 43.2 70.6 48.7 56.4 53.8 49.0
51.0 58.7 59.3 28.8 58.2 61.3 57.0
32.5 45.5 39.5 48.5 64.5 63.0 43.0
Table 21: Complete CC extended-baseline comparison for Llama-3.2-3B and Phi-4-mini. Model
Method
Domain (%)
IFEval (%)
MMLU (%)
MSBench (%)
Qwen3-4B
Vanilla SFT SDFT LoRA Replay Vanilla-FAPM IA-FAPM IAR
42.4 44.1 31.3 42.8 41.2 44.1 50.5
51.1 55.9 68.2 69.7 83.8 82.6 59.8
8.8 14.0 48.5 34.7 61.3 65.5 19.5
51.0 53.0 53.0 66.5 83.5 85.0 63.0
SmolLM3-3B
Vanilla SFT SDFT LoRA Replay Vanilla-FAPM IA-FAPM IAR
32.1 36.5 15.5 33.6 24.7 26.1 37.5
35.6 49.8 66.3 53.1 71.0 69.4 40.3
10.5 44.3 22.5 28.0 35.5 49.0 25.7
25.0 25.5 42.0 34.0 68.5 67.0 29.0
Table 22: Complete CC extended-baseline comparison for Qwen3-4B and SmolLM3-3B. Dataset
Model
CC CC CCI
Llama-3.2-3B Phi-4-mini Llama-3.2-3B
Domain (%)
IFEval (%)
MMLU (%)
MSBench (%)
38.7 31.2 52.9
43.5 43.3 29.0
9.8 40.7 8.3
19.5 31.0 23.0
Table 23: Available Instruct-initialized CPT+SFT diagnostics. CC Llama exposes a domain–general trade-off rather than uniform IAR dominance, while the CC Phi and CCI Llama diagnostics remain below the corresponding best IA domain scores. Coverage is limited to completed archived runs and is not extrapolated to Qwen3 or SmolLM3.
Baseline implementation settings. SDFT trains each model from its original Instruct checkpoint on a modelspecific 14,258-row synthetic CC QA file using the shared three-epoch configuration in Table 8. LoRA uses rank 16, scaling factor 32, dropout .05, and no bias; it targets the attention and MLP projections (fused projections for Phi), and evaluation uses the merged BF16 model. Replay replaces, rather than appends, 25% of the domain QA rows with general instructions using seed 42, preserving the original dataset size before tokenizer-specific length filtering. CPT trains for 16 epochs on raw-document causal LM and then applies the same three-epoch answer-only SFT stage. The historical launcher set this 16-epoch Stage 1 schedule to approximately match the Inject-stage token budget. Main-table CPT runs start from the corresponding Base checkpoint for Llama, Qwen, and SmolLM; the diagnostic runs in Table 23 instead start from the Instruct checkpoint. FAPM baseline. FAPM is applied as a post-hoc pruningbased recovery method at sparsity 0.9, retaining the top 10% of task-vector entries under an independently computed pertensor score threshold; retained entries keep the fine-tuning delta and pruned entries revert to the Instruct weight. Outputs are stored in BF16. Vanilla-FAPM means applying FAPM to the Vanilla SFT checkpoint, while IA-FAPM means applying the same procedure to the best pre-recovery Inject+Align checkpoint. This distinguishes the recovery mechanism from the adaptation checkpoint it starts from. Table 24 isolates the domain effect, while Table 25 reports the domain-general view. Full pre-recovery recipe grid. Tables 26 and 27 report the full pre-recovery Inject recipe grids. On CC, Mixed 1:1:2 is best for Llama and Phi, while Mixed 1:1:1 is best for Qwen and SmolLM. On CCI, Mixed 1:1:2 is best for Llama, Phi, and SmolLM, while reconstruction-only 1:0:0 is best for Qwen. Full Qwen scaling results. Table 28 reproduces the Qwen scaling scores in the supplementary record for completeness.
Dataset
Model
Vanilla SFT (%)
Vanilla-FAPM (%)
IA-FAPM (%)
CC
Llama-3.2-3B Phi-4-mini Qwen3-4B SmolLM3-3B
35.5 24.4 42.4 32.1
22.3 17.1 41.2 24.7
22.4 16.9 44.1 26.1
CCI
Llama-3.2-3B Phi-4-mini Qwen3-4B SmolLM3-3B
53.0 40.2 75.1 52.3
38.6 27.3 71.5 43.8
40.7 28.7 68.9 41.6
Table 24: FAPM domain results at sparsity 0.9. The domain-only comparison shows that pruning-based recovery often sacrifices internalized document knowledge, even when it is useful for general-capability restoration.
Dataset
Model Llama-3.2-3B Phi-4-mini
CC Qwen3-4B SmolLM3-3B Llama-3.2-3B Phi-4-mini CCI Qwen3-4B SmolLM3-3B
Variant
Domain (%)
IFEval (%)
MMLU (%)
MSBench (%)
Vanilla-FAPM IA-FAPM Vanilla-FAPM IA-FAPM Vanilla-FAPM IA-FAPM Vanilla-FAPM IA-FAPM
22.3 22.4 17.1 16.9 41.2 44.1 24.7 26.1
75.3 74.5 56.4 53.8 83.8 82.6 71.0 69.4
51.8 53.7 58.2 61.3 61.3 65.5 35.5 49.0
62.0 59.0 64.5 63.0 83.5 85.0 68.5 67.0
Vanilla-FAPM IA-FAPM Vanilla-FAPM IA-FAPM Vanilla-FAPM IA-FAPM Vanilla-FAPM IA-FAPM
38.6 40.7 27.3 28.7 71.5 68.9 43.8 41.6
75.4 74.7 53.6 56.7 82.7 83.7 72.8 72.7
54.2 53.7 60.0 60.5 60.0 65.8 33.7 48.2
62.5 59.5 71.0 64.5 86.0 84.5 67.5 68.5
Table 25: FAPM domain-general results at sparsity 0.9. The table exposes the recovery trade-off directly: FAPM often improves general benchmarks, but the domain column explains why it is not a drop-in replacement for IAR.
Model Llama-3.2-3B Phi-4-mini Qwen3-4B SmolLM3-3B
Vanilla
Mix 1:1:1
Continue
1:0:0
Rewrite
Mix 1:1:2
35.5 24.4 42.4 32.1
36.1 27.5 47.7 36.8
35.1 27.2 40.9 32.7
36.8 29.9 44.8 33.6
34.4 27.6 43.5 31.6
38.3 32.1 46.9 36.1
Table 26: CC Inject recipe sensitivity before Recover. Mixed objectives are usually robust on CC, but the best pre-recovery domain checkpoint still varies by model family.
Model Llama-3.2-3B Phi-4-mini Qwen3-4B SmolLM3-3B
Vanilla
Mix 1:1:1
Continue
1:0:0
Rewrite
Mix 1:1:2
53.0 40.2 75.1 52.3
57.2 45.0 73.7 54.1
55.8 42.1 72.9 52.2
57.2 36.7 75.5 53.6
54.4 37.7 74.4 51.1
58.6 46.3 72.5 54.6
Table 27: CCI Inject recipe sensitivity before Recover. Mixed 1:1:2 remains strongest for most model families, while Qwen3-4B is the high-base-prior boundary case where the 1:0:0 reconstruction recipe slightly exceeds mixed objectives.
Model
Method
Domain (%)
IFEval (%)
MMLU (%)
MSBench (%)
Qwen3-8B
Base Instruct Vanilla SFT Best IA IAR (TIES d = 0.3)
38.5 48.7 57.5 56.8
87.6 56.4 50.6 62.2
65.3 14.0 18.5 26.7
82.5 52.5 48.5 73.5
Qwen3-14B
Base Instruct Vanilla SFT Best IA IAR (TIES d = 0.3)
40.4 54.8 60.5 59.6
90.0 62.9 53.5 67.5
72.5 54.5 40.3 67.2
81.5 57.0 42.0 73.5
Qwen3-32B
Base Instruct Vanilla SFT Best IA IAR (TIES d = 0.3)
47.2 56.4 63.9 62.8
87.5 58.5 53.0 67.0
74.8 44.0 63.0 74.5
84.5 56.5 44.5 72.5
Table 28: Complete Qwen3 scaling ablation on CC. Bold and underline mark the best and second-best result within each model block.
Related documents
- A Storage-Retrieval Gap in Parametric Knowledge Graph Memory#984235
- Hybrid Retrieval Systems for Enterprise Knowledge#722379
- CLEAR: Cross-Source Evidence Adjudication for Large Language Models in Medicine#1110667
- CVE-2026-77517 — MEDIUM 5.4#1054432
- ArticleMiner: Ontology-Guided Knowledge Graph Construction from Scientific Publications#1061244
Retrieved via Conceptio: every document is proof-bundled with source, license, and retrieval metadata.
Read the Docs → · View CLI source on GitHub · Conceptio Open Knowledge Archive