betaFeedback

WorksComputer Science

InstructReplay: Replaying Assistant Turns to Preserve General Behavior During Factual Fine-Tuning

Abstract

Fine-tuning an instruction-tuned language model on new facts often erodes its general abilities. We find that standard fine-tuning lowers instruction-following, reasoning and coding benchmarks by 35 points on average, and that these losses track a collapse in answer length: fine-tuned models at least halve their responses, and the further a response drifts from the initial model's length, the more often it fails. We propose InstructReplay: the initial model answers a set of general instructions once, and during fine-tuning the model is kept close to the initial model on these answers. Across three model families and two domains, InstructReplay reduces the average decline on five general benchmarks from 28.1 to 2.4 points and keeps answer length close to the initial model's, while learning the new facts as well as standard fine-tuning. It balances learning and retention better than seven adaptation methods in all six settings. Controlled comparisons attribute the gain to replaying the model's own answers to general instructions rather than to the form of the loss.

Introduction

Practitioners often adapt an instruction-tuned language model to a domain by fine-tuning it on question–answer pairs that state new facts. The facts are learned, but at a cost elsewhere. Fine-tuned on recent biomedical articles, SmolLM3-3B answers 21 points more of the new questions correctly, yet its instruction-following accuracy on IFEval falls from 71% to 9%. Fine-tuning is known to be an inefficient way of adding knowledge [7, 24]. We study how to preserve general assistant behavior during closed-book factual fine-tuning.

Where does the damage occur? Standard fine-tuning sharply lowers accuracy on every benchmark that requires the model to generate an answer, from instruction following to mathematics, reasoning and code, yet barely changes MMLU, which we score by option likelihood. The adapted models also stop answering at length. Their responses shrink toward the short domain answers they were trained on, and the more a method shortens responses, the more accuracy it loses (§ 3). The adapted models thus stop behaving as the assistants they were, even though likelihood-based probes change little.

Replaying an earlier model’s predictions is a standard remedy for such losses ([17, 5]). A distillation penalty, however, constrains the model only at the prefixes where it is applied, so the choice of replay inputs decides which behavior is protected. Recent self-generated replay for instruction-tuned models samples from a beginning-of-sequence (BOS) token, outside the chat template ([20]), and context-free synthetic data likewise avoids external prompts ([3]). Self-synthesized rehearsal does use instruction contexts, but it synthesizes and refines them and trains on the refined outputs ([12]). What has not been isolated is which ingredients of replay matter: where the reference model is matched, whose responses are replayed, and in what form.

To study this question, we introduce InstructReplay, a minimal form of instruction-context replay (Figure 1). The initial model answers 9,600 general instructions once, and during domain training the model matches the frozen initial model’s full next-token distributions on these saved responses. We compare it with seven domain-adaptation methods and with three controlled variants. The first keeps the objective but applies it elsewhere, to samples generated from a beginning-of-sequence token or to the domain answers themselves. The second matches sampled tokens instead of full distributions, and the third replays the instruction dataset’s own answers instead of the model’s. Our findings are:

Figure 1. Overview of InstructReplay. (a) Before training, the frozen initial model M0M_0 answers each general instruction once under its chat template, and these assistant turns form the replay buffer; the dataset’s own answers are not used. (b) In each step the student matches M0M_0’s full next-token distribution at every saved prefix of the replayed turns while it learns domain answers with cross-entropy; the two losses share the student’s weights. (c) Equal-weight mean acquisition AA and forgetting FF over six model–domain settings, combining the adaptation methods in Table 3 and replay controls in Table 4. The green star marks InstructReplay; shading indicates S=A−F>0S = A - F > 0.

  • Factual fine-tuning mainly damages generative behavior. Standard fine-tuning lowers the four generative benchmarks by 35 points on average and at least halves response length, while likelihood-scored MMLU barely moves (§ 3).

  • Instruction-context replay removes most forgetting while keeping acquisition on par with standard fine-tuning. Replaying the model’s own answers to general instructions reduces the average general decline from 28.1 to 2.4 points, and its acquisition stays within two points of standard fine-tuning in every setting (§ 6.1).

  • What is replayed matters more than how it is matched. Moving the same constraint from the domain answers to unprompted samples and then to the model’s own instruction responses reduces the average IFEval decline from 43 to 14 and then to about 3 points. Under sampled targets, replaying the dataset’s answers to the same instructions instead of the model’s own more than doubles forgetting, from 3.1 to 7.5 points, whereas soft and sampled targets perform similarly (§ 6.2).

Related Work

Learning new facts by fine-tuning. Facts that a model does not already know are learned more slowly than known ones and, once learned, increase hallucination ([7]), and retrieval augmentation outperforms unsupervised fine-tuning for knowledge injection ([24]). We take closed-book fine-tuning as given and study its cost to general behavior.

Preserving earlier behavior. Parameter-space penalties such as EWC protect weights deemed important for earlier tasks ([13]); low-rank adaptation ([11]) learns less and forgets less than full fine-tuning ([4]). Function-space methods instead match an earlier model’s outputs: Learning without Forgetting distills the old model on new-task inputs ([17]), Dark Experience Replay stores logits alongside rehearsed examples ([5]), and label annealing distills the initial model on the fine-tuning data itself ([33]). Rehearsing a small share of earlier tasks preserves abilities in sequentially fine-tuned language models ([27]). Forgetting after fine-tuning often reflects a shift in how the model responds rather than a loss of capability ([14, 35]), and updates driven by a model’s own on-policy outputs forget less than supervised fine-tuning on external targets ([29, 6]). Our Domain-KL baseline places the distillation term on domain answers, as label annealing does, and therefore isolates the choice of context.

Choosing what to replay. When the original training data are unavailable, replay must be constructed. Self-Synthesized Rehearsal generates and refines synthetic instructions ([12]); GeRe replays general text and compares label, logit and feature targets ([34]); Bansal and Sanghavi [3] train on context-free

BenchmarkΔ\Delta accuracy (pp) mean [min, max]Median words M0M_0Median words SFT
Generated answers
IFEval−44.9-44.9 [−61.7-61.7, −33.3-33.3]19020
MATH-500−28.0-28.0 [−45.0-45.0, −5.0-5.0]24242
BBH−36.0-36.0 [−70.0-70.0, −15.6-15.6]12254
HumanEval+−30.5-30.5 [−51.6-51.6, −6.2-6.2]4623
Answer-option likelihood
MMLU−0.4-0.4 [−2.1-2.1, +2.8+2.8]––

synthetic responses; and Marek et al. [20] apply frozen-reference forward KL to self-generated replay, sampled from BOS for instruction-tuned models. § 5.3 defines our BOS replay control.

Changing the domain supervision. Another line keeps the data but changes the targets: Self-Distillation Fine-Tuning rewrites gold answers with the initial model (Yang et al. [32]), on-policy self-distillation trains on the model’s own responses (Shenfeld et al. [28]; ); Agarwal et al. [1]), RAFT refines answers and adds adaptive distillation (Li et al. [16]), and DFT reweights target tokens (Wu et al. [31]). Both methods are called SDFT; we call the offline one Self-Rewrite.

Where Does Factual Fine-Tuning Hurt?

We first characterize the damage that motivates our method, using standard fine-tuning (Naive SFT) in the setup of §5. Three instruction-tuned models are each fine-tuned separately on 9,600 question–answer pairs from two domains and evaluated on five general benchmarks against the unchanged initial model M0M_0.

The damage is concentrated in generation. Table 1 contrasts the four benchmarks that require the model to generate an answer with MMLU, which we score by the likelihood of the answer options. The generative benchmarks fall by 35 points on average, whereas MMLU stays within three points in every setting. On BIG-Bench Hard, the share of answers that the task-aware parser cannot extract rises from 6% to 45% (Appendix Table 12), so much of the loss comes from answers

BenchmarkΔ\Delta accuracy (pp) mean [min, max]Median words M0M_0Median words SFT
Generated answers
IFEval−44.9-44.9 [−61.7-61.7, −33.3-33.3]19020
MATH-500−28.0-28.0 [−45.0-45.0, −5.0-5.0]24242
BBH−36.0-36.0 [−70.0-70.0, −15.6-15.6]12254
HumanEval+−30.5-30.5 [−51.6-51.6, −6.2-6.2]4623
Answer-option likelihood
MMLU−0.4-0.4 [−2.1-2.1, +2.8+2.8]––

Table 1. Standard fine-tuning on domain facts versus M0M_0, over six model–domain settings. Benchmarks that require a generated answer collapse and responses shorten; MMLU, scored by the likelihood of its answer options, barely moves and produces no response to measure. Median words (whitespace-separated) average the per-setting medians.

Prompt: Write a letter to a friend in all lowercase letters ask them to go and vote.
M0M_0 155 words, ✓dear [friend’s name], i hope this letter finds you well and in good spirits. i wanted to take a moment to reach out and ask you to consider casting your vote in the upcoming election. …
Naive SFT 8 words, ×Please go and vote in the upcoming election.
InstructReplay 195 words, ✓dear friend, i hope this letter finds you well. i wanted to take a moment to ask you to consider going and voting in the upcoming election. …

that no longer follow the task’s answer format.

Responses become short, and shortening predicts the loss. Median responses to IFEval prompts shrink from 190 to 20 words, and MATH-500 solutions from 242 to 42; Table 2 shows an example in which a request for a letter receives a single sentence. This matches the training data: domain answers average about 30 tokens, while the initial models’ answers to general instructions average about 340. Across the 60 adapted models, a model’s median response length relative to its M0M_0 is strongly rank-correlated with its accuracy change (Figure 2a). Spearman’s ρ\rho is 0.77 on IFEval, 0.81 on MATH-500 and 0.84 on BIG-Bench Hard (Appendix § 18).

Scatterplots and line plots showing accuracy change and failure rate versus response length

Figure 2. (a) IFEval accuracy change versus median response length relative to M0M_0 for the 60 adapted checkpoints (Spearman ρ=0.77\rho= 0.77; Appendix Figure 7 adds MATH-500 and BBH). (b) Failure rate on questions that M0M_0 answers correctly, by the length of each response relative to M0M_0’s on the same question, pooled over the same checkpoints (Appendix Table 26).

Prompt: Write a letter to a friend in all lowercase letters ask them to go and vote.
M0M_0 155 words, ✓dear [friend’s name], i hope this letter finds you well and in good spirits. i wanted to take a moment to reach out and ask you to consider casting your vote in the upcoming election. …
Naive SFT 8 words, ×Please go and vote in the upcoming election.
InstructReplay 195 words, ✓dear friend, i hope this letter finds you well. i wanted to take a moment to ask you to consider going and voting in the upcoming election. …

Table 2. An IFEval prompt and SmolLM3’s responses on PMC (truncated; ✓/×: constraint met or not). After standard fine-tuning the model answers in one sentence, like its short training answers, and breaks the lowercase constraint (red); InstructReplay keeps M0M_0’s letter.

The losses are not only word-count failures. Naive SFT’s IFEval pass rate falls by 11 points on length constraints but by 55 points or more on constraints that require structure or specific content, such as formats, required openings and endings, and combined constraints (Appendix Table 25). Among questions that M0M_0 answers correctly, the failure rate of adapted models is lowest, below 20%, when a response stays within 25% of M0M_0’s length, and far higher when it is much shorter or much longer (Figure 2b). What predicts failure is thus departure from M0M_0’s response, of which shortening is the most common form.

Hypothesis. Fitting short domain answers shifts the model’s behavior in assistant turns toward terse, direct answers, which breaks instruction following and chain-of-thought formatting; knowledge probed by likelihood is affected far less. If the hypothesis holds, a retention penalty should be most effective when it is applied in the contexts where assistant behavior is exercised.

InstructReplay

Objective

Let M0M_0 be the initial instruction-tuned model with next-token distribution p0p_0, and pθp_\theta the distribution of its trainable copy. The domain data D={(xi,yi)}D = \{(x_i, y_i)\} contain questions and source-supported answers. Before training, M0M_0 samples one response zjz_j to each prompt rjr_j of a general instruction collection under its native chat template, giving a fixed replay buffer BR={(rj,zj)}j=1NRB_R = \{(r_j, z_j)\}_{j=1}^{N_R}. Let T(⋅)T(\cdot) denote the response-token positions of a sequence. The domain loss is the per-sequence mean cross-entropy

LD=−ED[1∣T(y)∣∑t∈T(y)log⁡pθ(yt∣x,y<t)]\mathcal{L}_D = -\mathbb{E}_D\left[\frac{1}{|T(y)|}\sum_{t\in T(y)}\log p_\theta(y_t\mid x,y_{<t})\right]

and the replay loss matches M0M_0’s full-vocabulary distribution at every saved prefix ht=(r,z<t)h_t=(r,z_{<t}):

LR=EBR[1∣T(z)∣∑t∈T(z)ℓ(ht)],\mathcal{L}_R = \mathbb{E}_{B_R}\left[\frac{1}{|T(z)|}\sum_{t\in T(z)}\ell(h_t)\right],
ℓ(h)=DKL(p0(⋅∣h)∥pθ(⋅∣h)).\ell(h)=D_{\mathrm{KL}}\left(p_0(\cdot\mid h)\mathbin{\|}p_\theta(\cdot\mid h)\right).

We minimize LD+λLR\mathcal{L}_D+\lambda\mathcal{L}_R with equal numbers of domain and replay sequences in every update. The reference is frozen, and inference uses only the adapted model. Appendix § 9 gives the local properties of LR\mathcal{L}_R.

Why instruction contexts?

Forward KL at a fixed prefix hh has logit gradient pθ(⋅∣h)−p0(⋅∣h)p_\theta(\cdot\mid h)-p_0(\cdot\mid h). It pulls the student toward the reference only at the prefixes in the replay set and affects other contexts only through shared parameters, so the choice of prefixes determines what is preserved. Near θ0\theta_0, the replay loss is a quadratic penalty whose curvature is built only from the logit Jacobians at the replayed prefixes (Appendix § 9). It resists parameter changes that alter the model’s outputs in those contexts and leaves other directions unconstrained. Domain-answer prefixes, as in Domain-KL, lie in exactly the contexts that LD\mathcal{L}_D is changing. BOS-conditioned samples are free-form continuations generated without the chat template, which an instruction-tuned model rarely encounters at inference. Responses to general instructions under the native template place the constraint on assistant turns spanning instruction following, reasoning, mathematics, code and translation. These are the contexts in which general benchmarks and users query the model, and in which § 3 located the damage. § 6.2 tests this ordering, comparing instruction and BOS contexts at a matched response-token budget.

We use soft targets because they exert no pull where the student already agrees with the reference, whereas a sampled token yields a nonzero gradient at every prefix (Appendix § 9). A token sampled from M0M_0 still gives an unbiased estimate of the forward-KL gradient, so the two targets differ in variance rather than in what they preserve, and we expect the choice of prefixes, not the form of the target, to matter most. § 6.2 compares soft and sampled-token targets at the same replay coefficient.

Experimental Setup

Models, domains and replay data

We adapt SmolLM3-3B (Bakouch et al., [2]), Qwen3-4B (Qwen Team, [26]) and Phi-4-mini-instruct (Microsoft, [21]); each domain adaptation starts from the unchanged checkpoint M0M_0. Each domain provides 9,600 training question–answer pairs and 512 evaluation questions that ask about taught facts in new wording, without a source passage. CommonCorpus energy/engineering (PleIAs, [25]) draws on technical documents; PMC biomedical (National Library of Medicine, [22]) uses CC BY 4.0 articles published online between May and August 2026, after all three models were released. Appendix § 10 describes construction, examples and the extent to which some questions cue part of the answer.

The replay collection holds 9,600 prompts from UltraData-SFT ([23]), split equally across instruction following, academic tasks, mathematics, code and translation and selected without reference to model scores. Each model samples its own responses (temperature 1, at most 512 tokens); the dataset’s own assistant answers are used only by the Gold replay control (§ 5.3).

Measuring acquisition and forgetting

Acquisition. Three judges from different model families (Qwen3.8-27B, Gemma-4-31B-it, GPT-OSS-20B) compare each greedy answer with a source-supported fact card; an answer is confirmed when at least two judges validly find all core facts supported. With CC and C0C^{0} confirmations for the adapted model and M0M_{0} out of ND=512N_{D}=512 questions, acquisition is A=100(C−C0)/NDA=100(C-C^{0})/N_{D}. Unresolved and ineligible questions stay in the denominator; on CommonCorpus, a fixed fact-card rule makes 374 of the 512 questions eligible (Appendix § 10.§ 4).

Forgetting. We measure general ability on fixed subsets of IFEval ([36]), MMLU ([9]), MATH-500 ([10, 18]), BBH ([30]) and HumanEval+ ([19]), using the same questions across models and methods. Subset sizes and selection procedures are detailed in Appendix § 10.§ 5. With GkG_{k} and Gk0G^{0}_{k} the adapted and initial scores on benchmark kk, forgetting is the mean decline F=15∑kmax⁡(0,Gk0−Gk)F=\frac{1}{5}\sum_{k}\max(0,G^{0}_{k}-G_{k}), and WW is the largest single decline. We summarize the trade-off by S=A−FS=A-F, but report AA and FF throughout and show in § 6.3 that the conclusions hold for any weighting that puts forgetting at more than 0.31 times acquisition.

Baselines and controls

Domain-adaptation baselines. Naive SFT and LoRA-SFT train on the gold answers; Self-Rewrite, SDFT and RAFT change the domain supervision; DFT reweights target tokens; and Domain-KL adds our KL term (λ=0.25\lambda=0.25) on domain-answer prefixes. Appendix § 11 and Table 13 give their implementations.

MethodTraining input and targetReference / teacherTraining objective / main change
Naive SFTDomain question and supplied answerNoneFull-parameter CE
LoRA-SFTSame domain pairsNoneRank-16 adapters; learning rate 10−410^{-4}
Self-RewriteDomain question and M0 rewrite; original-answer fallbackInitial model for offline rewritingCE on fixed rewritten answers
SDFTCurrent-student domain responses with demonstrationsTeacher EMA, updated each optimizer stepFull-vocabulary forward KL, temperature 1
DFTDomain question and supplied answerDetached current-student probabilityTarget-token probability weights CE
RAFTRefined answer and student domain responsesFrozen M0 with answer-conditioned contextCE plus top-kk forward KL; rank-local loss EMA ratio
Domain-KLDomain gold-answer prefixesFrozen initial modelCE plus 0.25 forward KL on domain prefixes
InstructReplayDomain pairs plus saved general-instruction responsesFrozen initial modelDomain CE plus 0.25 forward KL on instruction prefixes
BOS replayDomain pairs plus BOS-generated responsesFrozen initial modelSame replay objective; BOS contexts and matched response tokens
HardDomain pairs plus the same instruction responses as InstructReplayNo teacher in the optimized replay lossDomain CE plus 0.25 next-token CE on replay
Gold replayDomain pairs plus the collection’s own answers to the same instructionsNoneDomain CE plus 0.25 next-token CE on replay

Table 13. Baseline configuration matrix: inputs, targets and references under the shared training protocol. Method-specific adaptations are described in Appendix § 11.§ 2. BOS replay, Hard and Gold replay are controlled variants of InstructReplay that change only the replay context, the target or the source of the replayed answers; they are not tuned baselines.

Replay controls. Three controls keep InstructReplay’s λ=0.25\lambda=0.25, 1:1 ratio and schedule and change one component at a time. BOS replay changes the context: it applies the KL to samples generated from a beginning-of-sequence token without the chat template, the sampling used by Marek et al. [20]. This comparison evaluates BOS sampling under our training protocol, not their full method; Appendix § 16 lists the configuration differences. Hard changes the target: it keeps InstructReplay’s saved responses but replaces the KL with next-token cross-entropy. Both match InstructReplay’s number of response tokens sequence by sequence. Gold replay changes the author of the replayed answers: it keeps Hard’s prompts and loss but trains on the collection’s own assistant answers, truncated to 512 tokens.

Training. Every method runs 300 optimizer steps with 32 domain sequences per step, so all methods see the same domain examples and are evaluated at the same step; replay methods add 32 replay sequences per step. Full-parameter methods use a constant learning rate of 10−510^{-5} and LoRA uses 10−410^{-4} (Appendix § 11). The replay ratio, λ=0.25\lambda=0.25 and the schedule were tuned on CommonCorpus with SmolLM3 and Qwen3 and transferred unchanged to Phi-4-mini and to PMC.

Study design and uncertainty

PMC tests the same recipe, unchanged, on a second domain. For question-sampling uncertainty we use a paired cluster bootstrap that resamples domain questions by shared source and general-benchmark questions within benchmark strata, with Bonferroni correction over all 36 pairs among the eight methods and M0M_{0} in each setting (Appendix § 14).

Results

Main comparison

Instruction-context replay removes most forgetting and keeps acquisition on par with standard fine-tuning. InstructReplay has the highest SS in all six settings (Table 3). The gain comes almost entirely from reduced forgetting. Averaged over the six settings, InstructReplay’s general decline is 2.44 points against 28.07 for Naive SFT, and it stays below 4.7 in every setting, whereas the lowest-forgetting baseline in each setting loses at least 3.73. No general benchmark loses more than 3 points on average under InstructReplay, whereas standard fine-tuning loses 28 or more on each generative benchmark. Its acquisition is within 1.95 points of Naive SFT or higher in every setting, and its average of 15.49 is second only to RAFT’s 16.15. InstructReplay Pareto-dominates 35 of the 42 baseline points in the AA–FF plane (Figure 3); each exception acquires at most 3.1 points more but forgets at least 2.33 points more.

MethodCommonCorpus: SS SmolLM3CommonCorpus: SS Qwen3CommonCorpus: SS Phi-4-miniPMC: SS SmolLM3PMC: SS Qwen3PMC: SS Phi-4-miniMean of six A↑A \uparrowMean of six F↓F \downarrow
Naive SFT−17.49−11.54−13.94−22.07−1.17−10.8315.2328.07
LoRA-SFT−16.02−8.63−7.88−9.90−0.87−8.045.1113.67
Self-Rewrite−5.836.822.06−11.768.447.5012.7311.52
SDFT−10.82−0.72−0.88−10.65−9.29−1.488.5314.17
DFT−30.55−20.04−24.10−42.25−26.24−23.152.9030.62
RAFT−10.236.800.80−5.919.7911.8616.1513.96
Domain-KL−13.83−6.60−4.79−15.31−7.669.0414.0320.55
InstructReplay1.018.567.2218.2018.5824.7815.492.44
ΔS\Delta S vs. best baseline+6.84+1.74+5.16+24.11+8.80+12.93

Table 3. Acquisition–retention score S=A−FS = A - F (pp; M0M_0 has S=0S = 0), with six-setting means of acquisition AA and forgetting FF. In each column, bold marks the best value and underlining the second best (highest SS or AA, lowest FF); in the SS columns the underlined entry is therefore the strongest baseline. The shaded row is InstructReplay. Figure 3 shows the per-setting A/FA/F decomposition; Table 14–Table 15 give all raw scores.

Acquisition versus forgetting for every method

Figure 3. Acquisition versus forgetting for every method, including the two replay controls (open markers). Upper left is better; the shaded region has S=A−F>0S = A - F > 0 and the dashed line marks S=0S = 0. Forgetting shares one scale; acquisition scales differ by domain.

The closest competitors are those that also keep the model near its own distribution. Self-Rewrite, which trains on M0M_0’s rewrites of the gold answers, is the strongest baseline on CommonCorpus, and RAFT, which adds distillation to refined answers, is the strongest on PMC. The closest case is CommonCorpus Qwen3, where InstructReplay acquires 0.59 points less than Self-Rewrite but forgets 2.33 points less, a margin of 1.74 in SS. Elsewhere the margin is at least 5.16 points and reaches 24.11, driven by forgetting: on PMC SmolLM3, for example, RAFT forgets 26.42 points against InstructReplay’s 4.26.

InstructReplay keeps the initial model’s answer length. Its median response length stays within 15% of M0M_0’s on IFEval, MATH-500 and BBH, whereas standard fine-tuning at least halves it (Appendix § 18). On questions that M0M_0 answers correctly, 69% of InstructReplay’s responses fall in the near-M0M_0 band of Figure 2b, where failures are rarest, against 24% for standard fine-tuning.

Where to constrain and what to match

The location of the constraint drives retention. Table 4 holds the objective fixed and moves it. Placing the KL on domain-answer prefixes barely helps: IFEval still falls by 43 points and responses remain a fifth of their original length. Placing it on BOS-conditioned samples, which are generated without the chat template, recovers about two thirds of the IFEval loss. Placing it on the model’s own answers to general instructions recovers almost all of it, and restores response length to 85% of M0M_0’s. Acquisition stays between 14.0 and 15.7 points throughout, so the differences in SS come from forgetting. At an identical response-token budget, InstructReplay has higher SS than BOS replay in all six settings, by 1.28 to 11.05 points, and lower FF in each (Appendix § 16).

Replay context (method)TargetMean change vs. M0M_0 (pp) IFEvalMean change vs. M0M_0 (pp) MATHMean change vs. M0M_0 (pp) BBHMean change vs. M0M_0 (pp) MMLUMean change vs. M0M_0 (pp) HELength IFEvalMean of six (pp) A↑A \uparrowMean of six (pp) F↓F \downarrowMean of six (pp) S↑S \uparrow
None (Naive SFT)–−44.9−28.0−36.0−0.4−30.50.1115.228.1−12.8
Domain-answer prefixes (Domain-KL)*soft−43.3−12.7−23.7+0.1−21.40.1914.020.6−6.5
BOS samples, no template (BOS replay)soft−14.2−6.2−6.2−0.8−15.90.6215.69.26.4
Instruction prompts, dataset answers (Gold replay)dataset−7.4−4.3−6.7−5.3−10.90.7415.77.58.2
Instruction responses (Hard)sampled−4.0−0.3+0.8−0.9−5.70.8215.03.111.9
Instruction responses (InstructReplay)soft−2.6−0.2−0.7−1.3−1.00.8515.52.413.1

Table 4. Moving the retention constraint, averaged over six settings. All replay variants use λ=0.25\lambda= 0.25, a 1:1 sequence ratio and 300 steps; BOS replay and Hard also use exactly InstructReplay’s response-token budget, so each differs from it mainly in the replay context or the target; Gold replay differs from Hard mainly in training on the dataset’s answers instead of M0M_0’s (2.8M response tokens per model). HE is HumanEval+. Length is the median IFEval response length relative to M0M_0. In each column, bold marks the best value and underlining the second best (smallest decline, length closest to M0M_0, highest AA and SS, lowest FF); the shaded row is InstructReplay. *Domain-KL constrains about one tenth as many positions (0.20–0.36M versus 3.0–3.5M per model). Per-setting scores are in Table 22.

**Self-generated answers reduce average forgetting. Gold replay uses the prompts and loss of Hard but trains on the collection’s own answers. It acquires as much as InstructReplay, 15.7 against 15.5 points on average, and exceeds the strongest of the seven baselines in five of six settings, yet it forgets more than twice as much as Hard, which replays M0M_0’s answers with the same loss, 7.5 against 3.1 points. Its SS is lower than InstructReplay’s in all six settings, by at least 2.06 points. On SmolLM3 it lowers MMLU by 18.2 and 12.3 points, where no other method loses more than 4.6 (Appendix § 16). With the instruction prompts held fixed, self-generated answers preserve general performance better on average than the dataset answers tested here.

Soft and sampled targets perform similarly at the shared coefficient. Replacing the soft targets with the saved tokens themselves, as Hard does, leaves forgetting almost unchanged: 3.1 versus 2.4 points on average. InstructReplay has the higher SS in five settings and Hard in one, CommonCorpus SmolLM3, by 0.88 points; no difference exceeds 2.29 points. At a fixed prefix, the expected sampled-token gradient equals the forward-KL gradient (Appendix § 9); Hard can omit the reference forward pass from the replay loss. At this shared coefficient, both preserve assistant behavior, while replay context and answer source produce larger differences in average forgetting.

How robust are the conclusions?

Question sampling. Against the strongest baseline, the corrected interval excludes zero in the three PMC settings (Table 5), and across all 42 InstructReplay–baseline pairs it excludes zero in 37 (Appendix § 14). Appendix Table 18 gives the corresponding intervals against the three replay controls.

Settingvs.ΔS\Delta S95% CI
CC SmolS-R6.84[−0.40, 14.11]
CC QwenS-R1.74[−5.20, 8.36]
CC PhiS-R5.16[−2.15, 13.01]
PMC SmolRAFT24.11[14.28, 32.91]
PMC QwenRAFT8.80[1.33, 16.32]
PMC PhiRAFT12.93[3.58, 21.22]

Table 5. InstructReplay minus the strongest baseline (S-R: Self-Rewrite; CC: CommonCorpus). The CI is a paired cluster-bootstrap percentile interval, Bonferroni-corrected over all 36 pairs among the eight methods and M0M_0 in each setting.

Training runs. Repeating training three times for InstructReplay, Self-Rewrite and RAFT leaves the ranking unchanged. InstructReplay has the highest mean SS in every setting and exceeds both baselines in 35 of the 36 run-by-run comparisons (Appendix § 15).

Weighting of acquisition and forgetting. SS weights acquisition and forgetting equally. Under Sβ=A−βFS_{\beta} = A - \beta F, InstructReplay has the highest score among the seven baselines in every setting whenever β>0.31\beta> 0.31; the binding case is RAFT on CommonCorpus Qwen3, and on PMC SmolLM3 and Qwen3 it is highest for every β>0\beta> 0. If gains on some benchmarks are instead allowed to offset losses on others, U=A+15∑k(Gk−Gk0)U = A + \frac{1}{5}\sum_k(G_k-G_k^0), InstructReplay still has the highest value in every setting.

Answer quality and judging. Requiring every designated detail and no unsupported material claims, which we call full-answer confirmation, leaves InstructReplay ahead of all seven baselines, BOS replay and Hard in all six settings, with acquisition between 6.84 and 31.64 points. Scoring CommonCorpus over its 374 eligible questions only rescales acquisition and leaves InstructReplay ahead of every baseline and BOS replay. On CommonCorpus, BOS replay and Hard each leave 128 questions without a judge majority, against 30 for InstructReplay; Appendix § 10.§ 4 bounds the effect of these labels.

Analysis

Replay source. The diagnosis in § 3 ties the loss of general ability to responses that drift away from M0M_0’s. Replay counters this drift best when its targets are M0M_0’s own responses in assistant turns. Domain-answer prefixes cover only short factual answers, and BOS samples lie outside the chat template. The dataset’s answers are assistant turns in a different style, so fitting them moves the model away from M0M_0 in another direction (Appendix § 16). Gold replay keeps M0M_0’s MATH-500 response length yet loses 4.3 points there, against 0.2 for InstructReplay, so matching length alone does not preserve accuracy. Updates driven by a model’s own outputs have likewise been found to forget less than training on external targets (Shenfeld et al., [29]; Chen et al., [6]).

Knowledge-level changes. InstructReplay keeps assistant behavior close to M0M_0’s, and its MMLU score changes little, by −1.35-1.35 points on average. The largest change, −4.56-4.56 on CommonCorpus SmolLM3, does not come from output format, since the four options keep nearly all of the probability mass at the scored position, as they do for M0M_0. It also varies across training runs (Appendix § 15).

Retention weight. We chose λ=0.25\lambda= 0.25 among {0,0.25,1,4}\{0, 0.25, 1, 4\} on CommonCorpus with SmolLM3 and Qwen3, where it gave the highest SS for both (Appendix § 13). Relative to no replay, which at λ=0\lambda= 0 is identical to Naive SFT, the selected replay weight lowers FF from 25.10 to 4.66 for SmolLM3 and from 20.33 to 1.40 for Qwen3. Larger weights trade acquisition for retention unevenly: at λ=4\lambda= 4, Qwen3 forgets slightly less but loses a quarter of its acquisition. Because λ\lambda was selected on these two settings, the four transfer settings, Phi-4-mini and all of PMC, are the fairer test of the recipe, and there InstructReplay leads the strongest baseline by 5.16 points or more in SS.

Cost. InstructReplay doubles the sequences per step and replays about 3M response tokens per model, roughly an order of magnitude more than its domain tokens. Yet its PMC training takes at most 2.22 GPU-hours per model, against at least 4.83 for RAFT, and the buffer is generated once per model and shared across domains (Appendix § 13).

Conclusion

Fine-tuning small instruction-tuned models on new facts mainly damaged their generative behavior: generative benchmarks collapsed and responses shrank, while likelihood-scored MMLU barely moved. Replaying the initial model on general instructions largely prevented this damage at little cost to acquisition. In the controlled comparisons, assistant-turn replay gave lower average forgetting than BOS-conditioned and domain-answer replay, and self-generated answers gave lower average forgetting than the tested dataset answers. Soft and sampled targets performed similarly at the shared coefficient. For practitioners, about ten thousand general instructions answered once by the model being adapted are an inexpensive safeguard. Small MMLU declines under replay and larger models remain open.

Limitations

Evaluation. Domain acquisition relies on model judges without human calibration, judges of the same families also score RAFT’s training targets, and invalid-vote rates differ between methods. Some evaluation questions cue part of the answer. Publication dates alone cannot rule out that related facts appeared in pretraining.

Coverage of general ability. Our evaluation covers five general benchmarks that overlap in kind with the replay mixture; whether retention extends to abilities absent from the replay data, such as safety behavior or long-context use, remains untested. MMLU is scored by likelihood and is therefore insensitive to generation failures.

Comparisons. The replay controls use the shared settings in § 5.3; configuration differences and the Gold replay formatting diagnostic are detailed in Appendix § 16. Method-specific tuning remains open. The study covers three models from different families, all at the 4B scale, two domains and short training (300 steps), and the six settings share general-benchmark questions and are therefore not independent.

Ethics and Reproducibility

Biomedical scores measure factual answering about research articles and do not support clinical use. PMC sources were selected for CC BY 4.0 licenses; the UltraData repository declares Apache-2.0 and requires compliance with incorporated upstream licenses, and full-text redistribution awaits row-level clearance. The accompanying supplement provides the paper source, result tables, hash-anonymized domain labels, scoring materials and a verification script (Appendix § 17).

Properties of the Retention Loss

For a fixed prefix, let aa be student logits, q=softmax⁡(a)q = \operatorname{softmax}(a), and q0q_0 the frozen reference distribution. Expanding forward KL gives ℓ(a)=∑vq0vlog⁡q0v−∑vq0vlog⁡qv\ell(a) = \sum_v q_{0v} \log q_{0v} - \sum_v q_{0v} \log q_v. Differentiation yields ∇aℓ=q−q0\nabla_a \ell= q-q_0 and ∇a2ℓ=diag⁡(q)−qqT\nabla_a^2 \ell= \operatorname{diag}(q)-qq^{\mathsf{T}}. At a=a0a=a_0, both the loss and its first derivative vanish. Its Hessian is positive semidefinite, since for any vector uu,

uT(diag⁡(q0)−q0q0T)u=Var⁡v∼q0(uv)≥0.u^{\mathsf{T}}\left(\operatorname{diag}(q_0)-q_0q_0^{\mathsf{T}}\right)u = \operatorname{Var}_{v\sim q_0}(u_v) \ge0.

For smooth logits aθ(h)a_\theta(h), the parameter-space Hessian at θ0\theta_0 is JhT(diag⁡(q0)−q0q0T)JhJ_h^{\mathsf{T}}\left(\operatorname{diag}(q_0)-q_0q_0^{\mathsf{T}}\right)J_h. The terms involving second derivatives of the logits vanish because the logit gradient is zero at that point. Choosing a sequence uniformly from BRB_R, then a position uniformly from T(z)T(z), defines

μ^R=1NR∑(r,z)∈BR1∣T(z)∣∑t∈T(z)δ(r,z<t).\widehat{\mu}_R = \frac{1}{N_R}\sum_{(r,z)\in B_R}\frac{1}{\lvert T(z)\rvert}\sum_{t\in T(z)}\delta_{(r,z_{<t})}.

Averaging the fixed-prefix Hessian gives

HR=Eh∼μ^R[JhTKhJh],Kh=diag⁡(q0h)−q0h(q0h)T,H_R = \mathbb{E}_{h\sim\widehat{\mu}_R}\left[J_h^{\mathsf{T}}K_hJ_h\right], \qquad K_h = \operatorname{diag}(q_0^h)-q_0^h(q_0^h)^{\mathsf{T}},
LR(θ0+δ)=12δTHRδ+o(∥δ∥2).\mathcal{L}_R(\theta_0+\delta)=\frac{1}{2}\delta^{\mathsf{T}}H_R\delta+o(\lVert\delta\rVert^2).

Here JhJ_h is the logit Jacobian at θ0\theta_0. The expansion assumes finite logits, twice differentiability near θ0\theta_0, and a fixed mask and prefix set. The positive-semidefinite Hessian describes local sensitivity on the saved replay contexts and may have a null space.

For a hard token Z∼q0Z\sim q_0 at a fixed prefix, the logit gradient at initialization is q0−eZq_0-e_Z. Its expectation is zero and its covariance is diag⁡(q0)−q0q0T\operatorname{diag}(q_0)-q_0q_0^{\mathsf{T}}, with expected squared norm 1−∥q0∥221-\lVert q_0\rVert_2^2. At any student distribution qq, the sampled-token gradient q−eZq-e_Z has expectation q−q0q-q_0, the forward-KL gradient, so cross-entropy on tokens sampled from q0q_0 is an unbiased single-sample estimate of the same objective up to the constant entropy of q0q_0. These identities condition on the prefix and sampling distribution. Capping responses and averaging each sequence by its valid length defines the empirical prefix weighting μ^R\widehat{\mu}_R above, distinct from the unnormalized KL between complete response distributions.

For a retention-only update at the reference point, zero parameter change also requires zero weight decay, fresh optimizer state, and identical deterministic student/reference behavior. In mixed training, the domain gradient can still update the student. Appendix C summarizes implementation checks.

Data and Evaluation Protocol

Domain data construction

CommonCorpus ([25]) energy/engineering passages are organized into source-supported fact groups. A 9,600-row training set and 512 evaluation questions ask about the same taught facts using different formulations.

The PMC Open Access Subset ([22]) supplies 4,500 fixed article candidates: license/date checks retain 2,161 and topic screening retains 1,661. Eligible articles declare CC BY 4.0, online publication from 1 May through 31 August 2026, and acceptance in 2026 or later. Fixed hash selection retains 3,561 of the 4,170 qualified fact groups, the same number as in CommonCorpus. The training questions cover 1,450 articles; the evaluation questions cover 512 taught facts from 440 articles. PMC admission requires M0’s confirmation rate to stay below 30% for each model. The criterion applies to the whole collection and does not select questions from model-specific errors.

For both datasets, Qwen3.5-35B proposes alternate questions for existing answer propositions; Qwen3.8-27B audits evidence support, including a negative control in each request. Generation uses temperature 0, top-pp 1, and a 512-token limit; audit responses allow 1,024 tokens. The alternate-question generation stage receives an existing training question, its answer proposition and source evidence, without the evaluation question wording. The builder accepts only candidates that pass its lexical checks and all seven checks: evidence answerability, question–answer relevance, answer support, self-contained wording, natural wording, no answer leakage, and meaningful rewording; abstentions are excluded. The supplement’s data cards give the retained counts at each stage.

The supplement’s confirmation-transition table separates previously unconfirmed answers that become confirmed from confirmed answers that lose confirmation. For CommonCorpus Smol Instruct-8B-Reply, these counts are 59 and 30, yielding net acquisition 100(59−30)/512=5.66100(59 - 30)/512 = 5.66 pp. Unconfirmed answers combine valid negative judgments and unresolved cases. For each of the 54 Table 3 rows, the net transition equals C−C0C - C^{0}; the supplement provides all transition counts.

For PMC, the initial Smol/Qwen/Phi checkpoints confirm 83/95/57 of 512 answers. The training sources cover genetics/genomics, immunology, neuroscience, oncology and infection research.

The CommonCorpus split is defined by a training manifest with file hashes: 6,889 source tasks define 3,564 source fact groups; normalization removes 213 duplicate tasks and retains 3,561 distinct fact groups. A fact with multiple question formulations supplies a held-out formulation while remaining questions expose that fact in training; singleton facts stay training-only. The 9,600-row pack contains 6,164 retained questions and 3,436 accepted augmentations. The passage filter uses language and engineering keyword profiles; passages are thus selected by vocabulary rather than by subject classification, and the collection includes technical computing articles such as the first example below. Parent records retain source identifiers and license labels. PMC uses the article selection described above; 6,610 retained questions plus 2,990 augmentations form its training set.

Source-linked examples.

A CommonCorpus fact comes from the SPARF article of Hamdi et al. [8], released under CC BY 4.0. The source states: “INGP [46] uses multi-resolution voxel hashing to perform a real-time rendering of radiance fields.” Its scored CORE proposition links multi-resolution voxel hashing to real-time rendering. The evaluation question supplies the mechanism but leaves the real-time effect to be stated; the reference answer also discusses MLP redundancy, outside the scored CORE. This makes the question a test of the effect given a mechanism cue. The training question is “How does INGP perform real-time rendering of radiance fields?” The evaluation question is “How does INGP use multi-resolution voxel hashing to address rendering limitations in radiance fields?” The supplement provides the fact card and both question–answer pairs. The public article contains the quoted passage.

The following case comes from the PMC evaluation. The simvastatin study of Li et al. [15] was released under Creative Commons Attribution. Its abstract states: “In vivo, pmPLGA@SV treatment dramatically reduced the cerebral infarct volume, exhibiting significant superiority over free SV.”

Replay population

The source is openbmb/UltraData-SFT-2605, revision affda6aca75e7cff78e73f93ad08d4c3b01f097c. The 9,600 prompts allocate 1,920 each to instruction following, academic tasks, mathematics, coding, and translation. Mathematics splits equally between Math and Multi-lang-Math. Selection uses deterministic hash ranking and normalized prompt deduplication, preserving the parent train/monitor split, and excludes prompts over 4,096 UTF-8 bytes. Selection is independent of model scores. Prompt lengths range from 27 to 4,078 bytes, with a mean of 779.

Final assistant turns are removed, and the remaining conversation must end with a user message. Earlier system/user/assistant turns remain as input context; 25 of 9,600 prompts contain earlier assistant turns. Each model generates its own targets once, without correctness filtering. A lexical comparison against the General evaluation questions and few-shot examples found no normalized exact, substring, or trigram candidates. The check covers lexical overlap; semantic overlap and pre-training exposure remain unmeasured.

Replay generation and masks

Native chat templates use enable_thinking=False. General-response sampling uses temperature 1, top-p 1, top-k 0, and at most 512 new tokens; generation stops at the model’s EOS and includes that terminal token in supervision. Phi accepts its two native stopping

DomainTrain/eval questionsTrain/eval documentsTrain/eval fact groups
CommonCorpus9,600 / 512961 / 3863,561 / 512
PMC9,600 / 5121,450 / 4403,561 / 512

Table 6. Dataset sizes. Both domains assess taught facts with rephrased evaluation questions. Source identifiers and construction metadata are in the supplement’s data cards.

IDs. Prompt and padding positions are masked; nonempty response tokens are retained without a separate reasoning-token mask. Materialization rejects rows exceeding the training length limit. In Smol/Qwen/Phi order, response lengths average 363.11/351.59/312.14 tokens, with medians 424/417/329 and 90th/95th percentiles of 512 for all three. Actual length-cap stops occur in 3,960/3,975/3,251 of 9,600 responses; EOS at exactly 512 tokens accounts for the difference from raw length counts. All retained responses contain at least one target token.

Domain scoring

Eligibility and timing. The CommonCorpus rule requires a mechanically valid fact card and usable-card judgments from both Gemma and GPT-OSS. Mechanical validity requires answerability, nonempty facts and requirements, unique fact IDs, at least one CORE fact, and verbatim source quotes. Of 512 records, 68 are marked unanswerable by the card builder, four have no resolved builder result, and 26 fail quote matching. Among the 414 mechanically valid cards, four fail both audits, 24 fail only Gemma’s audit and 12 fail only GPT-OSS’s audit, leaving 374 eligible. These mutually exclusive counts reconstruct the fixed mask distributed with the supplement.

We keep all 512 questions in the denominator, so the maximum attainable CommonCorpus rate is 374/512 = 73.05%. Eligibility uses the question, source evidence, reference answer and fact-card audits, without the candidate answers.

A fact card identifies each required proposition, its CORE or REQUIRED_DETAIL role, and an exact source quote. Scoring prompts contain the question, source evidence, key, and one candidate answer, without a method name or competing answer. Judges assign SUPPORTED, OMITTED, CONTRADICTED, or UNCLEAR per fact and separately label material extra claims. Valid records must cover the exact fact IDs and cite matching answer/source substrings. All CORE facts must be supported; a relevant contradiction makes the core vote negative. Unsupported additional claims are reported separately and do not automatically veto core confirmation; they do affect the stricter full-answer measure. Ineligible tasks, unresolved records, and insufficient valid votes remain unconfirmed in the denominator of 512. Two positive valid core votes confirm an answer.

Judging uses temperature 0, top-p 1, and at most two total format attempts per call, without hidden client retries. In the focused CC records, Smol uses a 180-second timeout and Qwen/Phi use 600 seconds; judge token budgets range from 3,072 to 8,192, as recorded per run. Qwen and Gemma disable thinking; GPT-OSS uses low reasoning effort. The supplement gives the complete prompts and the quote-validation function. Constructed positive/negative controls check implementation behavior. Prompt-order and repeat diagnostics are recorded separately from the scoring votes.

Full-answer sensitivity. Core confirmation asks whether the taught core fact is stated correctly; full confirmation additionally requires designated details and no material unsupported extras. The core/full gap combines omitted details, unsupported extras and unresolved judgments. Table 7 compares methods using each measure’s own M0 count and the same F.

MethodCore nFull nAcoreA_{\mathrm{core}}AfullA_{\mathrm{full}}FFSfullS_{\mathrm{full}}
CommonCorpus — SmolLM3-3B
M05040.000.000.000.00
Naive SFT89577.6210.3525.10-14.75
Self-Rewrite76145.081.9510.91-8.96
RAFT95228.793.5219.02-15.50
BOS replay87577.2310.357.502.85
InstructReplay79535.669.574.664.91
CommonCorpus — Qwen3-4B
M03860.000.000.000.00
Naive SFT83478.798.0120.33-12.32
Self-Rewrite923510.555.663.731.93
SDFT83308.794.699.51-4.82
RAFT934610.747.813.943.87
BOS replay925710.559.9611.04-1.08
InstructReplay89499.968.401.407.00
CommonCorpus — Phi-4-mini
M03390.000.000.000.00
Naive SFT82499.577.8123.51-15.70
Self-Rewrite78238.792.736.73-4.00
SDFT72367.625.278.50-3.23
RAFT953512.115.0811.31-6.23
BOS replay76448.406.8411.12-4.28
InstructReplay84449.966.842.744.10
PMC — SmolLM3-3B
M083230.000.000.000.00
Naive SFT19017920.9030.4742.97-12.50
LoRA-SFT1121055.6616.0215.570.45
Self-Rewrite16211515.4317.9727.19-9.22
RAFT18812420.5119.7326.42-6.69
BOS replay18817520.5129.695.3024.39
InstructReplay19818522.4631.644.2627.38
PMC — Qwen3-4B
M095440.000.000.000.00
Naive SFT19017518.5525.5919.735.86
Self-Rewrite19115718.7522.0710.3111.76
RAFT18316717.1924.027.4016.62
BOS replay19217918.9526.376.0020.37
InstructReplay19117218.7525.000.1724.83
PMC — Phi-4-mini
M057320.000.000.000.00
Naive SFT19017425.9827.7336.81-9.08
Self-Rewrite14812517.7718.1610.277.89
RAFT19818627.5430.0815.6814.40
BOS replay19918427.7329.6914.0015.69
InstructReplay19117926.1728.711.3927.32

Table 7. Core/full counts and acquisition–retention sensitivity (denominator 512). Afull=100(Cfull−Cfull0)/512A_{\mathrm{full}} = 100(C_{\mathrm{full}} - C^{0}_{\mathrm{full}})/512 and Sfull=Afull−FS_{\mathrm{full}} = A_{\mathrm{full}} - F; all A/F/S entries are pp. Core and full use their respective M0 counts. Shaded rows mark InstructReplay. Within each setting, bold/underline mark the best/second-best shown adapted result (higher counts, A and S, lower F); M0 is a reference. Ties share marks.

InstructReplay has positive full-answer acquisition and higher SfullS_{\mathrm{full}} than all seven Table 3 baselines, BOS replay and Hard in all six settings. Comparator order can change: under the full criterion the closest Table 3 method is RAFT on CommonCorpus Qwen, SDFT on CommonCorpus Phi and LoRA-SFT on PMC Smol. On CommonCorpus Smol, Hard’s primary-score lead reverses under full scoring (4.81 versus 4.91 pp).

Judging stages. Table 8 separates vote-slot outcomes from final question judgments. The same 138 ineligible CommonCorpus questions occur for every endpoint: pooled over three models, each method has 414 fixed exclusions and 3,366 issued slots. PMC has no fixed exclusions and 4,608 issued slots. Each method has 1,536 question outcomes per domain. Invalid slots fail record validation; valid UNCLEAR-containing slots describe content uncertainty and can overlap with negative core votes. Core U combines fixed ineligibility with eligible questions lacking a resolved majority.

MethodInvalid slotsUnclear slotsNegative slotsCore yesCore noCore UCore & Extra
CommonCorpus
M036134256712188952682
Naive SFT4683245525484343966
LoRA-SFT4585278214495044248
Self-Rewrite120482429246835455149
SDFT84982465234841461102
DFT3877284813297243226
RAFT133602319283794459143
Domain-KL51554204424674854265
BOS replay51844202925573954253
Hard51044203924874654254
InstructReplay5074246025284044464
PMC
M05783833142351175126106
Naive SFT7810326975709283835
LoRA-SFT94101327636911343313
Self-Rewrite1626528845019944194
SDFT11997322838411173540
DFT102108343931311794413
RAFT817927295699373085
Domain-KL9110627625419613419
BOS replay899226755799243334
Hard8610726955709323437
InstructReplay679327045809292737

Table 8. Judging-stage counts pooled over the three models. Slot columns and question columns have different denominators, specified in the text. Core yes/no/U partition the 1,536 questions. Core & Extra is their joint majority-confirmation event and can overlap with other columns. Shaded rows mark InstructReplay.

Invalid rates differ by method. In CommonCorpus, InstructReplay and BOS have 50 and 518 invalid slots out of 3,366, respectively; their eligible unresolved questions number 30 and 128. Confirmation gains can therefore reflect both answer content and assessability under this rubric.

The targeted CommonCorpus check compares InstructReplay, BOS and Domain-KL using saved run records. Primary rubric/schema identities and within-model request settings agree. We write IR for InstructReplay. In the final labels, BOS has 542 Core U outcomes, comprising 414 fixed exclusions and 128 eligible unresolved questions.

Holding resolved labels, fixed exclusions and FF unchanged, the domain-mean score difference has the deterministic unknown-only range [ΔSˉ−100uIR/1536,ΔSˉ+100uIR/1536][\Delta\bar{S}-100u_{\mathrm{IR}}/1536,\Delta\bar{S}+100u_{\mathrm{IR}}/1536], where uu counts eligible unresolved questions. For IR minus BOS, this is [−1.58,8.71][-1.58, 8.71] pp on CommonCorpus and [4.41,8.32][4.41, 8.32] pp on PMC. Hard also has 128 eligible unresolved CommonCorpus questions, and 34 on PMC against 27 for IR, so IR minus Hard has the range [−7.57,2.72][-7.57, 2.72] pp on CommonCorpus and [−0.69,3.28][-0.69, 3.28] pp on PMC. These bounds vary only unresolved labels; the supplement’s verification script recomputes them.

Eligible-denominator sensitivity. For CommonCorpus, A512=(374/512)A374A_{512}=(374/512)A_{374}, so S512=(374/512)A374−FS_{512}=(374/512)A_{374}-F. Changing the denominator rescales acquisition relative to forgetting. Table 9 reports scores over the 374 eligible questions. InstructReplay still exceeds all seven Table 3 baselines and BOS in the three settings, while the closest comparator for Qwen changes to RAFT.

ModelIR S512S_{512}IR S374S_{374}Best baselineBaseline S374S_{374}ΔS\Delta SΔS\Delta S vs. BOS
SmolLM3-3B1.013.10Self-Rewrite-3.957.050.70
Qwen3-4B8.5612.23RAFT10.771.468.83
Phi-4-mini7.2210.89Self-Rewrite5.305.5910.51

Table 9. CommonCorpus core-score denominator sensitivity (pp), retaining F. Best baseline excludes M0, InstructReplay and the BOS/Hard controls. Hard’s primary-score lead on CommonCorpus SmolLM3-3B persists on this scale. Within each row, bold marks the higher S374S_{374} of the two shown methods.

Table 10 contrasts two saved answers to the same evaluation question: one is core-confirmed with unsupported additions, while the other has an unresolved majority. These examples illustrate how the rubric separates answer quality from judging uncertainty.

Observed answerCore/full votes (Qwen; Gemma; GPT-OSS)Interpretation
Smol InstructReplay: “pmPLGA@SV treatment reduced cerebral infarct volume by 50% compared to free simvastatin.”1/0; 1/0; U/UCore confirmed; full not confirmed. Two judges mark the added 50% as unsupported.
Smol Domain-KL: “pmPLGA@SV treatment significantly reduced cerebral infarct volume in the in vivo model.”U/U; U/U; 1/1Unconfirmed: Qwen has a schema failure, Gemma marks CORE unclear, GPT-OSS supports it. The majority remains unresolved.

Table 10. Two saved answers illustrating core/full confirmation and unresolved judging. U denotes unknown.

General scoring

Evaluation subsets. We use fixed subsets to limit the cost of repeated generation and scoring across models, methods and checkpoints. MMLU contains five test questions from each of its 57 subjects (285 total); its five-shot demonstrations come from MMLU’s dev split. MATH-500 contains 20 problems from each of five difficulty levels (100 total). BBH contains ten questions from each of 27 tasks (270 total). HumanEval+ [19] contains 64 of its 164 problems. Within each stratum, questions are ranked by a deterministic SHA-256 hash of a fixed namespace and the question identifier, and the required number with the lowest hashes is retained. These selectors do not use model outputs or correctness. IFEval uses the first 120 examples in the frozen evaluation dataset order, selected with the evaluation harness’s limit option and reused unchanged across runs; this is a fixed prefix, without random or stratified sampling. All compared models and checkpoints use identical question sets and the same scoring conventions within each backbone. Reported accuracies refer to these subsets.

IFEval reports prompt-level strict accuracy. MMLU uses five-shot, conditional option log likelikelihood with each model’s fixed native chat template and answer-prefill convention; the same convention applies to M0 and its adapted checkpoints. MATH-500 uses the versioned answer extractor and symbolic equivalence checker. BBH uses task-aware answer extraction independent of the gold label, normalized exact comparison, and zero credit for invalid output. HumanEval+ executes the generated function against the EvalPlus base and extended tests; a problem counts as solved only when both pass. A response that contains a full function definition is executed after removing common leading indentation. The supplement includes the BBH answer extractor. The scores include sensitivity to answer formatting and extraction. Net benchmark changes can conceal both newly correct and lost correct questions. All compared checkpoints are scored with the same scorers.

Saved-output diagnostics. Table 12 separates BBH accepted-correct, accepted-wrong and invalid-extraction outcomes under the task-aware scorer. Relative to M0, InstructReplay has 24 fewer invalid extractions, 35 more accepted-but-wrong answers and 11 fewer correct answers across the six settings. Naive SFT has 721 invalid extractions versus M0’s 96. Parser acceptance improves for InstructReplay while answer correctness falls slightly. Figure 4 shows the corresponding benchmark-score changes.

Heatmap of signed General-score changes for each method and setting

Figure 4. Signed General-score change relative to M0M_0 for every method and setting (pp, rounded; colors saturate at ±50). IF, MM, MA, BBH and HE denote IFEval, MMLU, MATH-500, BBH and HumanEval+. Rows below the first rule are the replay controls; the last row is InstructReplay. Positive changes are shown even though FF counts only declines. CC abbreviates CommonCorpus.

The supplementary scoring examples include hash-selected M0/adapted pairs and six complete short BBH responses selected by parser-result category. These examples show how the parser scores each category.

Training and Baseline Implementation

Shared optimization

The training schedule is 300 optimizer steps with 32 effective domain sequences per step. The matched replay runs use eight devices, one sequence per device per microbatch and four accumulation steps. The released run-level matrix lists all 48 layouts. CommonCorpus SDFT uses four devices with accumulation eight; its other methods use eight with accumulation four. PMC SDFT uses the four-device layout, Self-Rewrite uses four or eight depending on the model, and the other methods use eight. Each microbatch contains one sequence per device, giving the same effective batch of 32. All paths use BF16. The maximum sequence length is 2,048 for SmolLM3 and Phi, 2,304 for every CommonCorpus Qwen path, and 2,304 for PMC Qwen except Naive SFT, DFT, and LoRA-SFT, which use 2,048. The sequence limits accommodate the respective encoded inputs. InstructReplay uses a constant 10−510^{-5} learning rate with no warmup, response-only losses, and 32 additional retention sequences per step. Student and teacher share the exact initial model, tokenizer, and chat-template identity; the teacher stays frozen. AdamW uses betas (0.9, 0.999), epsilon 10−810^{-8}, zero weight decay, gradient clipping at 1, and ZeRO-2. Equal-size rank batches and per-sequence losses determine the accumulation reduction. Samples are right-padded without packing; prompt/padding labels are masked. Attention dropout is zero in the model configurations, and LoRA dropout is zero. Student forwards use training mode; frozen-reference forwards use evaluation mode without gradients. Non-reentrant gradient checkpointing is enabled. Tokenizer and template identities are bound with the model tree.

TaskAnswer protocolNew-token capPrompt and scorer
DomainGreedy generation512One user turn, closed-book domain question; core/full rubric
IFEvalGreedy generation1,280Frozen instruction text; prompt-level strict scorer
MATH-500Greedy generation1,024Frozen problem prompt; versioned extraction and symbolic comparison
BBHGreedy generation1,024Three-shot CoT prompt; task-aware extraction and exact comparison
HumanEval+Greedy generation768Frozen function prompt; EvalPlus base and extended tests
MMLUFive-shot option likelihoodN/ANative template and model-specific Answer prefill; conditional option scores

Table 11. Evaluation decoding, separate from replay generation. Generation uses do_sample=False, native chat templates, enable_thinking=False, evaluation mode and BF16. Temperature and top-p do not apply to this greedy path. No system message or model-answer retry is added by the wrapper; task instructions are in the user prompt. Smol/Qwen stop IDs are 128012/151645; Phi uses [200020, 199999]. The model inventory provides tokenizer/template hashes and scorer entrypoints.

MethodAccepted correctAccepted wrongInvalid extraction
M0115437096
Naive SFT571328721
LoRA-SFT1041390189
Self-Rewrite901356363
SDFT918436266
DFT386326908
RAFT938423259
Domain-KL770366484
InstructReplay114340572

Table 12. BBH output categories pooled across the six settings, with 1,620 question–endpoint records per method. BOS replay, Hard and Gold replay are not included in this table. The shaded row is InstructReplay. Bold/underline mark the best/second-best adapted count for accepted-correct answers (more) and invalid extractions (fewer); accepted-wrong counts are not ranked, because they also fall when outputs cannot be parsed. M0 is a reference.

Baseline targets and adaptation

LoRA-SFT uses rank 16, alpha 32, zero dropout, and no bias adaptation. It targets attention q/k/v/o projections and feed-forward gate/up/down projections, with learning rate 10−410^{-4}. Naive SFT uses the original domain answers and full parameters. DFT uses detached target-token probabilities to weight negative log likelihood, using within-sequence means.

Self-Rewrite uses the exact M0 to rewrite domain answers with access to the gold answer, applies a generic-answer filter with fallback to the original, and trains full parameters on the resulting supervision. SDFT follows the practical forward-KL choice described in v2 of Shenfeld et al. [28]. It uses current-student responses and a demonstration-conditioned teacher updated once per optimizer step as θT←0.99θT+0.01θ\theta_T \leftarrow0.99\theta_T + 0.01\theta. Its loss is full-vocabulary teacher-to-student KL at temperature 1; generation is capped at 512 tokens within the total sequence limit. It has no separate general replay population.

RAFT follows Li et al. [16]. It obtains an M0 rewrite, applies a cosine-similarity threshold of 0.8 using all-MiniLM-L6-v2, and uses Qwen3.8-27B for answer fusion on the retained path. Three-judge quality scoring stops fusion early at 0.8; if no candidate reaches that threshold, the highest-scoring candidate is still selected. Online training combines supervision with answer-conditioned reference feedback on up to 64 student-generated tokens. KL uses the teacher’s top 512 tokens at temperature 1.5, normalized over that support.

Adaptive balancing uses the ratio of detached

CE and KL loss EMAs: w=(mCE/b)/(mKL/b+10−8)w = (m_{\mathrm{CE}}/b)/(m_{\mathrm{KL}}/b + 10^{-8}), where b=1−0.9s+1b = 1 - 0.9^{s+1}. The rank-local 0.9 EMA is updated per microbatch. Its common correction factor 1−0.9s+11 - 0.9^{s+1} uses optimizer step ss and cancels in the CE/KL ratio except for the epsilon term. The rank-local update makes balancing dependent on the recorded rank/microbatch layout.

Domain-KL uses frozen-reference forward KL on domain gold-answer prefixes, with full vocabulary, temperature 1, and fixed coefficient 0.25. Following the reference-matching principle of Yang et al. [33], this adaptation keeps the coefficient fixed throughout training. Across the six settings, Self-Rewrite retains at least 97.5% of rewrites and falls back to the original answer otherwise; its final mean response length varies from 40 to 142 tokens across settings. RAFT takes the fusion branch for 60% to 73% of examples, with final mean response lengths of 26 to 57 tokens. Among accepted Self-Rewrite outputs, a lexical numeric-anchor scan flags 248/312/342 CommonCorpus rows and 26/68/572 PMC rows (Smol/Qwen/Phi) with a missing numeric anchor.

The following sample inspects numeric-string preservation in more detail.

A fixed rule selects 32 numeric-bearing training questions per domain, including eight with numeric-unit expressions, using only gold answers and hashed task IDs. The same questions are checked across three models and both Self-Rewrite and RAFT. Across the six settings, Self-Rewrite retains all source numeric literals in 178/192 checked targets and all selected number–unit expressions in 43/48; RAFT retains them in 189/192 and 47/48. This sample checks literal preservation with limited normalization. Unit equivalence and the surrounding factual relations require semantic assessment.

The public source examples also retain all 12 method/model targets on the two illustrated facts. They expose distinctions missed by lexical retention: CommonCorpus Smol Self-Rewrite expands INGP as “Neural Image Generation Pipeline”, which the fixed evidence does not supply; PMC Smol RAFT adds “30% to 50%”, while the fixed evidence gives no such range.

Validation coverage

Forward KL uses FP32 log probabilities and its analytical logit gradient q−q0q-q_0, avoiding a finite-precision residual at identical logits. A masked, unequal-length CPU comparison with an FP64 autograd oracle gives maximum gradient error 1.84×10−81.84 \times10^{-8}; an eight-rank nonzero-KL check gives gradient cosine 0.999954 and relative L2 error 0.009600.

All 48 trained endpoints completed 300 steps, and each restored checkpoint passes a reload check: 39 by a paired save/reload comparison and nine by reproducing fixed-input logits and short greedy outputs across two independent restores.

All three instruction-replay buffers retain 9,600 prompts without rejection or replacement. The maximum Qwen replay length is 2,082 tokens, within its actual 2,304-token limit. The run-level length matrix confirms that all 42 static-supervision sets fit their recorded limits, and the six on-policy SDFT runs generate their targets during training.

Complete Scores

Figure 4 separates the five General benchmarks whose declines enter F. Table 14–Table 15 report the raw endpoint scores.

MethodDomain (%)General (%)Acquisition / forgetting (pp)
Core ↑IFMMMABBHHEAA ↑FF ↓WW ↓SS ↑
SmolLM3-3B
M09.7770.8359.3071.0073.7051.560.000.000.000.00
Naive SFT17.3820.0057.5436.0052.9634.387.6225.1050.83-17.49
LoRA-SFT8.5935.0058.2567.0062.2229.69-1.1714.8535.83-16.02
Self-Rewrite14.8449.1759.6565.0057.7840.625.0810.9121.67-5.83
SDFT15.4341.6758.9559.0050.0034.385.6616.4829.17-10.82
DFT8.4018.3358.2545.0037.0421.88-1.3729.1852.50-30.55
RAFT18.5530.8359.6560.0051.4829.698.7919.0240.00-10.23
Domain-KL17.3819.1757.1953.0050.7439.067.6221.4551.67-13.83
InstructReplay15.4367.5054.7474.0069.2640.625.664.6610.941.01
Qwen3-4B
M07.4280.8371.5867.0066.3059.380.000.000.000.00
Naive SFT16.2137.5072.6362.0041.1131.258.7920.3343.33-11.54
LoRA-SFT10.3549.1775.7972.0065.1934.382.9311.5631.67-8.63
Self-Rewrite17.9770.0073.3374.0073.7051.5610.553.7310.836.82
SDFT16.2160.8375.7974.0055.9342.198.799.5120.00-0.72
DFT9.7733.3374.0461.0048.5218.752.3422.3847.50-20.04
RAFT18.1665.8374.7474.0071.4854.6910.743.9415.006.80
Domain-KL16.2135.8374.7467.0050.0043.758.7915.3845.00-6.60
InstructReplay17.3874.1771.2370.0070.3762.509.961.406.678.56
Phi-4-mini-instruct
M06.4568.3371.5869.0073.7056.250.000.000.000.00
Naive SFT16.0223.3370.1833.0044.8150.009.5723.5145.00-13.94
LoRA-SFT9.1854.1770.5347.0070.3743.752.7310.6122.00-7.88
Self-Rewrite15.2350.8370.8858.0069.2656.258.796.7317.502.06
SDFT14.0652.5069.8262.0065.1946.887.628.5015.83-0.88
DFT7.6235.0068.0758.0031.1120.311.1725.2742.59-24.10
RAFT18.5549.1770.5349.0065.1948.4412.1111.3120.000.80
Domain-KL14.4534.1770.8851.0062.5956.258.0112.8034.17-4.79
InstructReplay16.4167.5070.1859.0072.2262.509.962.7410.007.22

Table 14. Complete CommonCorpus results. The denominator includes 374 eligible and 138 fixed ineligible questions (Appendix § 10.§ 4). Within each model block, bold/underline mark the best/second-best adapted result in each column: higher Core, General, AA and SS, lower FF and WW. M0 is a reference; ties at the shown precision share marks. Shaded rows are InstructReplay. Table 22 reports the matched controls.

MethodDomain (%) Core ↑General (%) IFMMMABBHHEAcquisition / forgetting (pp) A↑A \uparrowF↓F \downarrowW↓W \downarrowS↑S \uparrow
SmolLM3-3B
M016.2170.8359.3071.0073.7051.560.000.000.000.00
Naive SFT37.119.1758.2526.0018.150.0020.9042.9761.67-22.07
LoRA-SFT21.8839.1760.7067.0051.8531.255.6615.5731.67-9.90
Self-Rewrite31.6420.0061.0551.0021.1139.0615.4327.1952.59-11.76
SDFT27.1529.1760.0050.0044.0735.9410.9421.5841.67-10.65
DFT18.7514.1755.7924.008.520.002.5444.7865.19-42.25
RAFT36.7219.1761.7544.0043.7028.1220.5126.4251.67-5.91
Domain-KL35.1614.1759.3043.0035.563.1218.9534.2556.67-15.31
InstructReplay38.6767.5059.6571.0066.6740.6222.464.2610.9418.20
Qwen3-4B
M018.5580.8371.5867.0066.3059.380.000.000.000.00
Naive SFT37.1147.5074.3961.0050.7415.6218.5519.7343.75-1.17
LoRA-SFT28.1270.8375.4469.0077.0417.199.5710.4442.19-0.87
Self-Rewrite37.3051.6774.7476.0047.0456.2518.7510.3129.178.44
SDFT25.5954.1774.3968.0056.6714.067.0316.3245.31-9.29
DFT20.1239.1772.9861.0015.5618.751.5627.8150.74-26.24
RAFT35.7456.6772.2871.0058.1554.6917.197.4024.179.79
Domain-KL35.5539.1774.0472.0030.0014.0616.9924.6645.31-7.66
InstructReplay37.3080.0072.6370.0074.0762.5018.750.170.8318.58
Phi-4-mini-instruct
M011.1368.3371.5869.0073.7056.250.000.000.000.00
Naive SFT37.1133.3369.4728.003.7020.3125.9836.8170.00-10.83
LoRA-SFT22.0748.3368.7743.0058.8925.0010.9418.9731.25-8.04
Self-Rewrite28.9150.8370.1847.0064.8154.6917.7710.2722.007.50
SDFT22.2748.3367.7251.0068.1540.6211.1312.6120.00-1.48
DFT22.2733.3369.8248.002.2214.0611.1334.2871.48-23.15
RAFT38.6752.5071.2334.0057.4145.3127.5415.6835.0011.86
Domain-KL34.9637.5069.1252.0056.3050.0023.8314.7930.839.04
InstructReplay37.3067.5068.4269.0070.7459.3826.171.393.1624.78

Table 15. Complete PMC biomedical results, using the metric definitions of Table 14. Within each model block, bold/underline mark the best/second-best adapted result in each column, with directions and ties as in Table 14; M0 is a reference. Shaded rows are InstructReplay. Cross-domain differences also reflect source genre, chronology, fact structure, and initial model performance.

Table 14–Table 15 retain all 54 rows. Domain reports the core-confirmation rate 100C/ND100C/N_D on a scale of 0 to 100, with ND=512N_D=512 and unknown questions retained in the denominator. IF, MM, MA and HE denote IFEval, MMLU, MATH-500 and HumanEval+. Domain and General scores are percentages; A, F, W, and S are percentage points. Domain-KL denotes the fixed-coefficient domain-prefix adaptation in Appendix § 11.§ 2. Each M0 is the corresponding model’s unchanged checkpoint.

Weight Ablation and Training Cost

Retention-loss weight

The ablation reuses saved checkpoints and model answers. The four additional configurations for two CommonCorpus backbones at λ∈{1,4}\lambda\in\{1,4\} are evaluated with the same domain and general scorers.

Training cost

InstructReplay’s listed training costs are 1.64, 2.22, and 1.91 GPU-hours in model order SmolLM3, Qwen3, and Phi. RAFT’s corresponding costs are 6.30, 7.87, and 4.83. These measurements cover the training loop. Retention generation, answer rewriting/fusion, failed runs and evaluation are separate costs. Naive SFT training time was not included in the extracted PMC cost records and is not imputed.

Training exposure is 9,600 domain sequences per method. In Smol/Qwen/Phi order, CommonCorpus has 358,024/364,800/353,912 valid domain tokens and PMC has 206,908/213,554/202,637. InstructReplay additionally uses 9,600 sequences with 3,485,818/3,375,216/2,996,543 valid replay tokens. The corresponding replay input-context token counts are 2,469,551/1,955,081/1,826,685.

Paired Uncertainty and Comparative Summaries

Domain questions are joined when they share a source or fact identifier. The resulting connected components number 386 for CommonCorpus and 440 for PMC. Bootstrap draws sample these clusters from all 512 recorded questions, using common indices across all nine methods in a model–domain setting. Each question carries its eligibility status and observed confirmation label into every replicate; the 138 ineligible CommonCorpus questions contribute zero confirmations, preserving the recorded evaluation population. General resampling is stratified by MMLU subject, MATH-500 difficulty level, and BBH task, with IFEval and HumanEval+ each treated as one stratum. Every one of 200,000 replicates recomputes A, F, W, and S. If cluster cc contains ncn_c questions and is drawn mcm_c times, the replicate confirmation rate is ∑cmcCc/∑cmcnc\sum_c m_cC_c/\sum_c m_cn_c; unequal cluster sizes therefore retain question weighting, with a resampled denominator.

We report two interval constructions. The main text (Table 5) uses percentile intervals of each pairwise difference in S, Bonferroni-corrected over all 36 pairs among the eight methods and M0 in a setting. These intervals target the reported quantity directly. Of the 42 InstructReplay–baseline intervals, 37 exclude zero; the other five are Self-Rewrite in the three CommonCorpus settings and RAFT on CommonCorpus Qwen3 and Phi-4-mini. Be-

CommonCorpus sensitivity plots for SmolLM3-3B and Qwen3-4B

Figure 5. CommonCorpus sensitivity to retention weight λ\lambda at a fixed 1:1 sequence ratio and 300-step schedule. Lines connect the four tested weights on a categorical axis. Each column isolates one metric and shares its vertical scale across models. Every value is labeled; shading marks the default λ=0.25\lambda= 0.25. The dashed zero lines mark M0M_0’s metric values (A=F=S=0A = F = S = 0).

Weight λ\lambdaDomain (%)General (%)Acquisition / forgetting (pp)
Core ↑\uparrowIFMMMABBHHEA↑A \uparrowF↓F \downarrowW↓W \downarrowS↑S \uparrow
SmolLM3-3B
M09.7770.8359.3071.0073.7051.560.000.000.000.00
017.3820.0057.5436.0052.9634.387.6225.1050.83-17.49
0.2515.4367.5054.7474.0069.2640.625.664.6610.941.01
1<u>16.02</u>63.3354.74<u>72.00</u><u>68.15</u><u>40.62</u><u>6.25</u>5.71<u>10.94</u><u>0.54</u>
414.45<u>64.17</u><u>55.79</u>74.0067.7842.194.69<u>5.10</u>9.38-0.41
Qwen3-4B
M07.4280.8371.5867.0066.3059.380.000.000.000.00
0<u>16.21</u>37.5072.6362.0041.1131.25<u>8.79</u>20.3343.33-11.54
0.2517.38<u>74.17</u>71.2370.0070.3762.509.96<u>1.40</u><u>6.67</u>8.56
1<u>16.21</u>70.0072.63<u>68.00</u>70.74<u>64.06</u><u>8.79</u>2.1710.83<u>6.62</u>
414.8475.00<u>72.28</u>70.0067.0467.197.421.175.836.26

caption: Table 16: CommonCorpus loss-weight ablation, grouped by backbone, with fixed sequence ratio and schedule. The shaded row is the default weight λ=0.25\lambda= 0.25. M0, weight 0, and weight 0.25 agree with the corresponding reference, Naive SFT, and InstructReplay rows. All endpoints use the current scoring protocol. Within each backbone, bold/underline mark the best/second-best tested weight in every metric, with directions and ties as in Table 14; M0 is a reference.

:::

MethodSmolLM3 GPUhQwen3 GPUhPhi-4-mini GPUh
LoRA-SFT1.191.400.87†
Self-Rewrite0.790.960.67
SDFT9.075.173.58
DFT<u>0.82</u><u>1.08</u>1.04†
RAFT6.307.874.83
Domain-KL1.441.901.32
InstructReplay1.642.221.91

Table 17. Allocated GPU-hours during successful step300 PMC training. Device types are listed separately. Offline preparation, failed attempts and evaluation add to these costs. A100 unless marked † (A800). The shaded row is InstructReplay. Bold/underline mark the lowest/second-lowest recorded GPU-hours per backbone, with hardware as noted.

because positive-part and maximum operations make FF and WW nonsmooth at zero-decline boundaries, we also report a more conservative construction. It forms a 95% max-TT simultaneous band over 36 pairwise Domain differences and 40 signed General changes relative to M0 within a panel and maps that band conservatively to the reported differences. The band covers all pairs, including the subsequently displayed closest baseline. The implementation standardizes each centered bootstrap component by its empirical bootstrap standard deviation (sample SD over all draws). Components with SD at most 10−1210^{-12} are omitted from the maximum. The 95th percentile of that maximum absolute standardized deviation supplies a common cutoff, multiplied by each component SD to form its band.

Each component uses one SD estimated across the bootstrap draws. For a signed general change bounded by [l,u][l,u], its drop lies in [max⁡(0,−u),max⁡(0,−l)][\max(0,-u),\max(0,-l)]; averaging or maximizing these bounds gives F or W bounds. A pair’s S interval subtracts the upper/lower F difference bounds from the corresponding acquisition bounds. Zero-variance components have zero band width. Each of the six model–domain settings forms a separate comparison family. The family contains all 36 unordered pairs of its nine methods and 40 signed General changes. Under this construction, 13 of the 42 InstructReplay–baseline intervals exclude zero, none of them against the closest baseline of a setting.

Replay controls. BOS replay, Hard and Gold replay are outside the 36-pair family. Table 18 gives paired percentile intervals for InstructReplay minus each control in SS, with the same resampling design and 200,000 draws and a separate Bonferroni correction over the three controls in each setting. The interval excludes zero against Gold replay in two settings (PMC SmolLM3 and Phi-4-mini), against BOS replay in four (CommonCorpus Qwen3 and Phi-4-mini, and PMC Qwen3 and Phi-4-mini) and against Hard in none. If the three pairs are instead added to the 36-pair family (Bonferroni over 39), intervals exclude zero against Gold replay in PMC Phi-4-mini and against BOS replay in CommonCorpus Qwen3 and Phi-4-mini, and PMC Phi-4-mini. These intervals resample questions only; Appendix § 10.§ 4 bounds the effect of unresolved judge labels on the CommonCorpus comparisons.

Settingvs. Gold replayvs. Hardvs. BOS replay
ΔS\Delta S95% CIΔS\Delta S95% CIΔS\Delta S95% CI
CommonCorpus SmolLM34.51[−0.44, 9.06]−0.88[−4.11, 2.27]1.28[−2.40, 5.01]
CommonCorpus Qwen32.47[−2.71, 7.53]0.96[−3.31, 5.05]9.05*[3.73, 13.70]
CommonCorpus Phi-4-mini4.10[−1.03, 9.17]2.22[−1.30, 6.05]9.94*[4.86, 14.86]
PMC SmolLM36.23*[1.38, 10.58]1.35[−2.34, 4.46]2.99[−0.79, 6.20]
PMC Qwen32.06[−1.73, 6.31]2.29[−1.80, 5.95]5.64*[0.72, 10.08]
PMC Phi-4-mini9.60*[4.23, 14.45]0.92[−2.91, 4.65]11.05*[5.21, 15.75]

Table 18. InstructReplay minus each replay control in SS (pp). Intervals are paired cluster-bootstrap percentile intervals, Bonferroni-corrected over the three controls in each setting; the main 36-pair family of Table 5 is unchanged. *The interval excludes zero.

All 42 InstructReplay–baseline point differences accompany the source data. The Pareto count in § 6.1 uses only the frozen AA and FF values: a baseline point is dominated when InstructReplay has at least as much acquisition and at most as much forgetting, with one strict improvement. The counts by model are 4/5/6 on CommonCorpus and 7/7/6 on PMC. The intervals quantify question-sampling variation conditional on the recorded checkpoints and judge votes.

The choice to penalize declines without cancelling them against improvements affects ranking. Under the alternative utility U=A+1K∑k=1K(Gk−G0k)U = A + \frac{1}{K}\sum_{k=1}^{K}(G_k-G_0^k), InstructReplay remains highest in all six settings; the smallest margin is 0.55 points over Self-Rewrite on CommonCorpus Qwen.

Weighting acquisition against forgetting. For Sβ=A−βFS_\beta= A-\beta F, InstructReplay beats a baseline with higher acquisition whenever β\beta exceeds the ratio of their acquisition difference to their forgetting difference. Because InstructReplay has the lowest FF in every setting, it beats every baseline with lower or equal acquisition for all β>0\beta> 0. Table 19 gives, for each setting, the smallest β\beta above which InstructReplay has the highest SβS_\beta among the seven Table 3 baselines, and the baseline that determines it.

DomainModelβ∗\beta^*Binding baseline
CommonCorpusSmolLM3-3B0.22RAFT
CommonCorpusQwen3-4B0.31RAFT
CommonCorpusPhi-4-mini0.25RAFT
PMCSmolLM3-3B0–
PMCQwen3-4B0–
PMCPhi-4-mini0.10RAFT

Table 19. Smallest weight β∗\beta^* above which InstructReplay has the highest Sβ=A−βFS_\beta= A - \beta F among the seven baselines. A value of 0 means it is highest for every β>0\beta> 0.

Variation Across Training Runs

InstructReplay and the two strongest baselines, Self-Rewrite and RAFT, were trained three times in every setting. The runs differ in training randomness and in the order of the training pairs, with each domain sequence kept paired with its replay sequence, and they share the offline supervision: InstructReplay’s saved responses, the Self-Rewrite answers and the RAFT targets. Every run finishes 300 optimizer steps and is evaluated with the same questions, judges and general subsets; the main text reports the first run of each method. Table 20 gives SS as mean ± sample standard deviation over the three runs together with InstructReplay’s advantage computed run by run, and Table 21 decomposes it into AA and FF.

ModelInstructReplaySelf-RewriteRAFTmeanminmeanmin
SS, mean ±\pm SD over three runs (pp)IR − Self-RewriteIR − RAFT
CommonCorpus
SmolLM3-3B2.24 ±\pm 1.07−6.09 ±\pm 0.35−11.70 ±\pm 1.918.336.8413.9311.24
Qwen3-4B5.84 ±\pm 2.365.30 ±\pm 1.324.02 ±\pm 2.480.54−0.231.821.23
Phi-4-mini6.81 ±\pm 0.640.34 ±\pm 1.520.08 ±\pm 0.666.475.166.736.16
PMC
SmolLM3-3B18.69 ±\pm 2.00−8.92 ±\pm 2.82−4.42 ±\pm 1.9727.6125.8823.1119.17
Qwen3-4B17.07 ±\pm 2.428.11 ±\pm 2.037.56 ±\pm 4.548.968.359.527.80
Phi-4-mini26.24 ±\pm 1.397.74 ±\pm 2.9210.41 ±\pm 5.2918.5015.6015.8312.74

Table 20. Acquisition–retention score SS over three training runs of InstructReplay (IR), Self-Rewrite and RAFT (pp). Differences are computed between runs with the same index, so each setting contributes three per baseline; min is the smallest of the three. In each row, bold marks the highest and underlining the second-highest mean SS. Ties at the shown precision share marks.

ModelInstructReplaySelf-RewriteRAFTInstructReplaySelf-RewriteRAFT
A↑A \uparrow, mean ±\pm SD (pp)F↓F \downarrow, mean ±\pm SD (pp)
CommonCorpus
SmolLM3-3B5.79 ±\pm 1.185.34 ±\pm 0.638.53 ±\pm 0.303.56 ±\pm 1.6111.43 ±\pm 0.5620.23 ±\pm 1.61
Qwen3-4B9.31 ±\pm 0.609.83 ±\pm 0.7910.29 ±\pm 0.413.47 ±\pm 1.814.53 ±\pm 0.796.27 ±\pm 2.12
Phi-4-mini9.24 ±\pm 0.638.01 ±\pm 0.7811.00 ±\pm 1.082.43 ±\pm 0.697.67 ±\pm 0.8210.92 ±\pm 0.77
PMC
SmolLM3-3B22.85 ±\pm 1.9815.62 ±\pm 0.5221.55 ±\pm 1.484.16 ±\pm 0.0924.55 ±\pm 2.9625.96 ±\pm 0.50
Qwen3-4B17.58 ±\pm 2.0317.58 ±\pm 1.4118.03 ±\pm 1.470.51 ±\pm 0.409.47 ±\pm 1.2610.48 ±\pm 3.89
Phi-4-mini27.73 ±\pm 1.4117.90 ±\pm 1.1827.21 ±\pm 3.431.50 ±\pm 0.2210.17 ±\pm 1.7516.81 ±\pm 1.98

Table 21. Acquisition AA and forgetting FF over the same three training runs (pp). In each row and metric, bold marks the best and underlining the second-best mean (highest AA, lowest FF). Ties at the shown precision share marks.

InstructReplay has the highest mean SS in every setting and exceeds both baselines in 35 of the 36 run-by-run comparisons; the exception is run 3 on CommonCorpus Qwen3, where Self-Rewrite leads by 0.23 points. The standard deviation of SS across runs ranges from 0.64 to 2.42 points for InstructReplay, 0.35 to 2.92 for Self-Rewrite and 0.66 to 5.29 for RAFT. InstructReplay’s MMLU change also varies across runs: −4.56, −4.56 and −0.35 points on CommonCorpus SmolLM3 and −3.16, −0.70 and −0.35 on PMC Phi-4-mini. Its mean over all 18 runs is −1.05, against +0.55 for Self-Rewrite and +0.82 for RAFT; per-run values are in the supplement.

Replay Controls: BOS Context, Hard Targets and Gold Answers

InstructReplay and Hard share the saved instruction-response prefixes, with frozen-distribution KL and saved-token cross-entropy targets, respectively. BOS replay uses BOS-conditioned prefixes with the same KL. Domain-KL instead uses domain gold-answer prefixes (Appendix § 11). Gold replay keeps InstructReplay’s instruction prompts token for token but replaces M0M_0’s responses with the collection’s own final assistant answers, truncated to 512 tokens and closed with the model’s end-of-turn token. This gives about 2.8M response tokens per model, against 3.0M to 3.5M for InstructReplay. It trains on them with cross-entropy and otherwise uses the trainer, coefficient, ratio and schedule of Hard, so Hard and Gold replay differ only in who wrote the replayed answers. Figure 6 decomposes the measured differences for BOS replay and Hard; Table 22 reports all four variants.

Three-column comparison of acquisition, forgetting, and score differences for Hard and BOS replay

Figure 6. InstructReplay minus Hard and BOS replay across all six settings (pp). Acquisition, forgetting, and score differences occupy separate columns; arrows indicate the favorable direction and zero lines mark ties. The score column labels every value. CC abbreviates CommonCorpus.

Replay configurationCore ↑IFMMMABBHHEAA ↑FF ↓WW ↓SS ↑
CommonCorpus — SmolLM3-3B
InstructReplay15.4367.5054.7474.0069.2640.625.664.6610.941.01
Hard16.2164.1755.7972.0068.8943.756.454.567.811.88
BOS replay16.9955.0057.1972.0066.6739.067.237.5015.83-0.27
Gold replay17.7758.3341.0562.0063.7043.758.0111.5118.25-3.50
CommonCorpus — Qwen3-4B
InstructReplay17.3874.1771.2370.0070.3762.509.961.406.678.56
Hard17.9775.8371.2369.0073.3350.0010.552.959.387.60
BOS replay17.9755.0074.0470.0060.3735.9410.5511.0425.83-0.49
Gold replay18.5571.6772.6365.0075.1945.3111.135.0514.066.09
CommonCorpus — Phi-4-mini
InstructReplay16.4167.5070.1859.0072.2262.509.962.7410.007.22
Hard14.2664.1770.5362.0071.8557.817.812.817.005.00
BOS replay14.8450.8369.4744.0067.4151.568.4011.1225.00-2.72
Gold replay16.2160.8369.8262.0062.9650.009.776.6510.743.12
PMC — SmolLM3-3B
InstructReplay38.6767.5059.6571.0066.6740.6222.464.2610.9418.20
Hard37.5066.6760.7074.0068.1539.0621.294.4412.5016.84
BOS replay36.7260.8359.6574.0068.1540.6220.515.3010.9415.21
Gold replay38.4865.8347.0268.0058.1535.9422.2710.2915.6211.97
PMC — Qwen3-4B
InstructReplay37.3080.0072.6370.0074.0762.5018.750.170.8318.58
Hard36.9178.3371.9370.0077.7851.5618.362.067.8116.30
BOS replay37.5074.1772.2872.0064.8137.5018.956.0021.8812.94
Gold replay36.9171.6772.6369.0070.0059.3818.361.839.1716.53
PMC — Phi-4-mini
InstructReplay37.3067.5068.4269.0070.7459.3826.171.393.1624.78
Hard36.9166.6769.1265.0072.2257.8125.781.924.0023.86
BOS replay38.8759.1767.7245.0062.5934.3827.7314.0024.0013.73
Gold replay35.9467.5069.8262.0057.0434.3824.809.6321.8815.18

Table 22. Direct comparison of InstructReplay, Hard, BOS replay and Gold replay in all six settings. InstructReplay rows are reproduced from Table 14–Table 15. Within each four-row group, bold/underline mark the best/second-best value in every metric, with directions and ties as in Table 14; Hard has the highest SS in one setting. IF, MM, MA and HE denote IFEval, MMLU, MATH-500 and HumanEval+. Domain reports 100C/NDN_D (%) with ND=512N_D = 512; unknowns are retained in the denominator. General percentages use the same scorers as Table 14–Table 15; A/F/W/S are in pp. Shaded rows mark InstructReplay.

On SmolLM3, Gold replay lowers MMLU by 18.2 and 12.3 points, far more than any other method. A probe shows that SmolLM3 takes on formatting from the dataset’s answers; the scorer is identical for all methods. Of the 1,920 academic answers, 986 open with a literal empty reasoning block, <think></think>, which for SmolLM3 and Qwen3 repeats the block that the chat template has already placed in the prompt; no response sampled from M0M_0 does. After Gold replay, SmolLM3 assigns probability 0.29 to 0.32 to opening its turn with this token on the 285 MMLU prompts, against 0.00 for M0M_0 and Hard. At the scored position the four options keep 0.83 and 0.84 of the probability mass, against 0.99 for M0M_0 and 0.98 for Hard. The remainder goes mainly to Markdown emphasis and end-of-turn tokens, which the dataset’s answers use and M0M_0’s rarely do. Because MMLU takes the most likely of the four options at that position, the leaked mass does not by itself change a prediction. To test the artifact directly, we removed the leading block from the 986 answers, rebuilt the SmolLM3 buffer otherwise unchanged and retrained both SmolLM3 cells, evaluating General ability only. The opening probability falls to 0.00, but MMLU does not recover: 37.89 on CommonCorpus and 47.72 on PMC, against 41.05 and 47.02 with the block and 59.30 for M0M_0. The options keep 0.87 and 0.84 of the probability mass, the remainder still going mainly to Markdown emphasis. IFEval is essentially unchanged at 57.50 and 65.83, whereas MATH-500 falls to 53.00 in both settings and BBH to 61.11 and 53.70, so FF rises to 15.25 and 14.98. Removing the empty block leaves MMLU below M0M_0 in both SmolLM3 settings. The remaining loss is unresolved: this intervention does not separate other formatting effects, answer length, target quality and knowledge changes.

BOS replay and the hard-target ablation start from the same exact M0 as their InstructReplay counterpart. Domain token IDs, pair order, effective batch, constant learning rate, and 300-step endpoint are preserved. Both losses use response-only masks and per-sequence means. The training records confirm the schedule and zero logit discrepancy after saving and reloading the final model. Pre-run checks verify finite nonzero domain gradients and the reference identity. The hard-target ablation uses LD+0.25Lhard\mathcal{L}_D + 0.25\mathcal{L}_{\mathrm{hard}}, where Lhard\mathcal{L}_{\mathrm{hard}} is next-token cross-entropy on the saved instruction responses. A frozen-teacher forward is retained for diagnostics but excluded from the optimized hard loss. Its measured compute therefore includes work that a production hard-replay implementation could omit.

BOS replay uses the BOS-conditioned sampling of Marek et al. [20] with the forward KL, coefficient and schedule of InstructReplay. The model-config BOS token initializes each sequence. Sampling uses temperature 1, top-p 1, and top-k 0, with EOS stopping disabled. Each row uses a fixed random state; the generated sequence is trimmed to that row’s instruction-response budget. The stored 9,600-row buffer is reused across the two domains for each model. This matches sequence counts and retained response positions per sequence; content, instruction context, padding and runtime depend on the replay input. The author implementation averages over valid tokens and generates replay in successive frozen-reference buffers. Our adaptation uses sequence means and a precomputed buffer, with per-row length matching and the common 1:1, 0.25, 300-step schedule. The authors’ instruction-model configuration instead uses a 4:1 domain/replay sequence ratio, five epochs, and a coefficient sweep over 1, 3, and 10.

Hard-target ablation results. InstructReplay leads Hard in five settings; Hard leads by 0.88 pp on CommonCorpus Smol. On PMC, InstructReplay leads by 0.92 to 2.29 pp. CommonCorpus Phi’s 2.22-pp advantage mostly reflects acquisition (2.15 pp), with only 0.07 pp less average forgetting. The comparison uses the fixed coefficient 0.25 for both losses, whose gradient magnitudes can differ. The balance between acquisition and forgetting favors different target forms across these settings.

ModelReplay positionsCommonCorpus (GPUh) HardCommonCorpus (GPUh) BOS replayPMC (GPUh) HardPMC (GPUh) BOS replay
SmolLM3-3B3,485,8181.571.501.581.50
Qwen3-4B3,375,2162.241.892.201.90
Phi-4-mini2,996,5431.981.521.721.45

Table 23. Shared retained-token budgets and per-domain training costs (GPUh) for the additional replay baseline and hard-target ablation. All 12 runs use eight A100 40-GB devices. Each model uses the same replay budget in both domains, matching its InstructReplay response budget; GPU-hours include the diagnostic teacher forward in Hard. Within each model and domain, bold marks the lower recorded GPU-hours.

The 12 training runs consume 21.03 allocated GPU-hours in total. Separate BOS buffer generation consumes 5.26 allocated GPU-hours including startup: 1.65 for Smol on A800, 2.03 for Qwen on A800, and 1.58 for Phi on A100. Generation produces 4,915,200 tokens per model before row-wise trimming; retained counts are 3,485,818, 3,375,216, and 2,996,543. These one-time buffer costs are not charged twice for reuse across domains. Smoke runs, evaluation and failed attempts are outside the listed training costs.

Reproducibility Materials

The arXiv ancillary files provide result tables for all 114 evaluated endpoints, hash-anonymized domain labels and the scoring materials. The standalone supplement also includes the LaTeX source.

The result tables give the five General scores, the domain confirmation count and AA, FF and SS of every endpoint, together with the paired intervals, output lengths and training costs. The labels cover 102 endpoints: the 54 rows of Table 3, the 36 additional training runs and the 12 BOS replay and Hard runs. For each endpoint they give the three judge votes and the majority label on all 512 questions, and the CommonCorpus eligibility mask is included. The scoring materials contain the data-construction and judge prompts, the data cards, the source examples of Appendix § 10, saved short General outputs and the BBH answer extractor.

A verification script recomputes every labeled endpoint’s confirmation count from the judge votes, the AA, FF and SS values from the scores, the confirmation transitions and the unknown-only ranges of Appendix § 10.§ 4. It uses the Python standard library only. Released examples include two attributed CC BY 4.0 source excerpts with example question–answer pairs, short General outputs and six complete BBH response examples. Full source and evaluation corpora are withheld because row-level redistribution permission is not established for the complete data mixture.

All models are public. Student repositories are:

  • HuggingFaceTB/SmolLM3-3B

  • Qwen/Qwen3-4B

  • microsoft/Phi-4-mini-instruct

Judge and fusion repositories are:

  • Qwen/Qwen3.8-27B

  • google/gemma-4-31B-it

  • openai/gpt-oss-20b

The recorded training runtime uses Transformers 4.57.1; judge deployment logs report vLLM 0.19.0.

Output-Length Analysis

This analysis reads the saved greedy General outputs of all 66 checkpoints (six M0M_0 evaluations, 48 trained methods and 12 replay controls) and counts whitespace-separated words per response. For each checkpoint and generative benchmark we take the median response length and divide it by that of the same model’s M0M_0. Table 24 averages these ratios over the six settings, and Figure 7 relates them to the accuracy change of every adapted checkpoint. The Spearman correlation over the 60 adapted checkpoints is 0.77 for IFEval, 0.81 for MATH-500 and 0.84 for BBH. The 60 exclude the six Gold replay checkpoints; Table 24 adds their length ratios, and including them gives correlations of 0.80, 0.73 and 0.74. Gold replay keeps M0M_0’s MATH-500 length (ratio 1.00) yet loses 4.3 points there, which agrees with the question-level result below: departure from M0M_0’s response, not shortening alone, goes with failure. Shorter outputs are not wrong in themselves; the correlation shows that, in this study, the methods that preserve accuracy are those that preserve the initial model’s response style.

MethodIFEvalMATH-500BBH
Naive SFT0.110.170.44
DFT0.130.190.34
Domain-KL0.190.430.52
LoRA-SFT0.210.420.71
SDFT0.340.280.52
RAFT0.520.360.59
Self-Rewrite0.530.580.65
BOS replay0.620.640.78
Gold replay0.741.000.88
Hard0.820.880.92
InstructReplay0.850.880.91

Table 24. Median response length relative to M0M_0 (1.00), averaged over six settings. M0M_0’s mean medians are 190 (IFEval), 242 (MATH-500) and 122 (BBH) words. The shaded row is InstructReplay. Bold/underline mark the closest/second-closest ratio to 1.00 per column, including ties.

Accuracy change versus median response length relative to $M_0$ for IFEval, MATH-500, and BBH, with points colored and marked by adaptation method

Figure 7. Accuracy change versus median response length relative to M0M_0 for all 60 adapted checkpoints, extending Figure 2a to MATH-500 and BBH. Spearman ρ\rho is 0.77 (IFEval), 0.81 (MATH-500) and 0.84 (BBH).

Instruction categories. Shorter answers could fail IFEval mechanically, by violating word-count constraints. Table 25 lists all nine instruction categories. Naive SFT’s strict pass rate falls by 11 points on length constraints but by 55 to 77 points on constraints that require structure or specific content, namely format, start/end phrases, content and combinations. A terse answer violates these even when it meets any length requirement. Losses are smaller on letter case, keywords and punctuation, at 20, 31 and 9.5 points; the 67-point loss on response language rests on five instructions per model. InstructReplay stays within a few points of M0M_0 in most categories.

Instruction categorynnM0M_0NaiveDom.-KLBOSHardIR
Length (words, sentences, paragraphs)3259.448.446.463.560.461.5
Format (sections, lists, JSON)3689.835.244.983.391.790.7
Start or end phrase1389.712.817.955.187.288.5
Content (placeholders, postscript)12100.023.641.783.397.294.4
Combination (repeat prompt, two answers)1672.910.413.550.062.560.4
Response language5100.033.316.756.780.083.3
Letter case2384.163.854.376.879.783.3
Keywords4481.850.852.369.776.178.4
Punctuation1490.581.069.072.684.586.9

Table 25. IFEval strict pass rate (%) by instruction category over the six settings. nn is the number of instructions per model; M0M_0 is counted once per model and each method once per setting. Dom.-KL: Domain-KL; IR: InstructReplay. Within each category, bold/underline mark the highest/second-highest adapted pass rate; M0M_0 is a reference.

Question-level failures. Table 26 restricts attention to questions that M0M_0 answers correctly and groups each adapted response by its length relative to M0M_0’s response to the same question. Pooled over checkpoints, failure is least frequent when the length stays within 25% of M0M_0’s and rises both for much shorter and for much longer responses, in all three benchmarks. Within Naive SFT alone, failure falls steeply as responses approach M0M_0’s length. The pooled rows mix methods, so they describe where failures occur rather than isolate a causal effect of length.

BenchmarkCheckpoints<0.25< 0.250.25–0.50.5–0.80.8–1.25>1.25> 1.25
IFEvalall adapted70 (1464)46 (954)29 (1108)20 (1295)49 (459)
Naive SFT79 (333)61 (96)33 (46)43 (28)52 (25)
InstructReplay17 (6)8 (24)14 (129)10 (303)24 (66)
MATH-500all adapted84 (1131)60 (832)34 (892)17 (1131)37 (154)
Naive SFT93 (274)89 (83)62 (37)41 (17)67 (3)
InstructReplay14 (7)26 (27)10 (78)7 (276)23 (26)
BBHall adapted83 (1617)58 (1463)35 (1809)15 (6265)46 (386)
Naive SFT95 (314)76 (192)55 (165)27 (464)74 (19)
InstructReplay20 (10)13 (47)20 (158)11 (877)32 (62)

Table 26. Failure rate (%) of adapted checkpoints on questions that M0M_0 answers correctly, by per-question response length (whitespace words) relative to M0M_0; the number of question–checkpoint pairs is in parentheses. “All adapted” pools the 60 adapted checkpoints of Table 24. Within each row, bold/underline mark the lowest/second-lowest failure rate across length bins; counts are unranked.

References

  1. [1]Rishabh Agarwal, Nino Vieilland, Yongchao Zhou, Piotr Stanczyk, Sabela Ramos, Matthieu Geist, and Olivier Bachem. 2024. On-policy distillation of language models: Learning from self-generated mistakes. In The Twelfth International Conference on Learning Representations.arxiv.org/abs/2306.13649
  2. [2]Elie Bakouch, Loubna Ben Allal, Anton Lozhkov, Nouamane Tazi, Lewis Tunstall, Carlos Miguel Patiño, Edward Beeching, Aymeric Roucher, Aksel Joonas Reedi, Quentin Gallouédec, Kashif Rasul, Nathan Habib, Clémentine Fourrier, Hynek Kydlíček, Guilherme Penedo, Hugo Larcher, Mathieu Morlon, Vaibhav Srivastav, Joshua Lochner, and 4 others. 2025. SmolLM3: smol, multilingual, long-context reasoner. Publisher model card.
  3. [3]Parikshit Bansal and Sujay Sanghavi. 2025. Context-free synthetic data mitigates forgetting. arXiv preprint arXiv:2505.13811.arxiv.org/abs/2505.13811
  4. [4]Dan Biderman, Jacob Portes, Jose Javier Gonzalez Ortiz, Mansheej Paul, Philip Greengard, Connor Jennings, Danijel King, Sam Havens, Vitaliy Chiley, Jonathan Frankle, Cody Blakeney, and John P. Cunningham. 2024. LoRA learns less and forgets less. Transactions on Machine Learning Research.
  5. [5]Pietro Buzzega, Matteo Boschini, Angelo Porrello, Davide Abati, and Simone Calderara. 2020. Dark experience for general continual learning: a strong, simple baseline. In Advances in Neural Information Processing Systems, volume 33.arxiv.org/abs/2004.07211
  6. [6]Howard Chen, Noam Razin, Karthik R. Narasimhan, and Danqi Chen. 2026. Retaining by doing: The role of on-policy data in mitigating forgetting. In Proceedings of the 43rd International Conference on Machine Learning, volume 306 of Proceedings of Machine Learning Research, pages 16479–16494. PMLR.arxiv.org/abs/2510.18874
  7. [7]Zorik Gekhman, Gal Yona, Roee Aharoni, Matan Eyal, Amir Feder, Roi Reichart, and Jonathan Herzig. 2024. Does fine-tuning LLMs on new knowledge encourage hallucinations? In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing.
  8. [8]Abdullah Hamdi, Bernard Ghanem, and Matthias Nießner. 2023. SPARF: Large-scale learning of 3D sparse radiance fields from few input images. arXiv preprint arXiv:2212.09100v3.DOI
  9. [9]Dan Hendrycks, Collin Burns, Steven Basart, Andy Zou, Mantas Mazeika, Dawn Song, and Jacob Steinhardt. 2021a. Measuring massive multitask language understanding. In International Conference on Learning Representations.
  10. [10]Dan Hendrycks, Collin Burns, Saurav Kadavath, Akul Arora, Steven Basart, Eric Tang, Dawn Song, and Jacob Steinhardt. 2021b. Measuring mathematical problem solving with the MATH dataset. In Advances in Neural Information Processing Systems Datasets and Benchmarks Track.
  11. [11]Edward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. 2022. LoRA: Low-rank adaptation of large language models. In International Conference on Learning Representations.arxiv.org/abs/2106.09685
  12. [12]Jianheng Huang, Leyang Cui, Ante Wang, Chengyi Yang, Xinting Liao, Linfeng Song, Junfeng Yao, and Jinsong Su. 2024. Mitigating catastrophic forgetting in large language models with self-synthesized rehearsal. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 1416–1428.arxiv.org/abs/2403.01244
  13. [13]James Kirkpatrick, Razvan Pascanu, Neil Rabinowitz, Joel Veness, Guillaume Desjardins, Andrei A. Rusu, Kieran Milan, John Quan, Tiago Ramalho, Agnieszka Grabska-Barwinska, et al. 2017. Overcoming catastrophic forgetting in neural networks. Proceedings of the National Academy of Sciences, 114(13):3521–3526.DOI
  14. [14]Suhas Kotha, Jacob Springer, and Aditi Raghunathan. 2024. Understanding catastrophic forgetting in language models via implicit inference. In The Twelfth International Conference on Learning Representations.arxiv.org/abs/2309.10105
  15. [15]Qin Li, Rongyuan Li, Lu Lin, Meiting Gong, Yu Liang, and Daming Sui. 2026a. Platelet membrane biomimetic nanoparticle-based targeted delivery system of simvastatin for the treatment of ischemic stroke. PLOS One, 21(7):e0354184.DOI
  16. [16]Yuduo Li, Xiaofeng Shi, Qian Kou, Longbin Yu, and Hua Zhou. 2026b. RAFT: Data refinement and adaptive distillation for domain fine-tuning with alleviated forgetting. arXiv preprint arXiv:2606.00147.arxiv.org/abs/2606.00147
  17. [17]Zhizhong Li and Derek Hoiem. 2016. Learning without forgetting. In Computer Vision – ECCV 2016.
  18. [18]Hunter Lightman, Vineet Kosaraju, Yura Burda, Harri Edwards, Bowen Baker, Teddy Lee, Jan Leike, John Schulman, Ilya Sutskever, and Karl Cobbe. 2024. Let’s verify step by step. In The Twelfth International Conference on Learning Representations.arxiv.org/abs/2305.20050
  19. [19]Jiawei Liu, Chunqiu Steven Xia, Yuyao Wang, and Lingming Zhang. 2023. Is your code generated by ChatGPT really correct? rigorous evaluation of large language models for code generation. In Advances in Neural Information Processing Systems, volume 36.arxiv.org/abs/2305.01210
  20. [20]Martin Marek, Dongkyu Cho, Shikai Qiu, Rumi Chunara, Pavel Izmailov, and Andrew Gordon Wilson. 2026. Forgetting in language models: Capacity, optimization, and self-generated replay. arXiv preprint arXiv:2605.26097.arxiv.org/abs/2605.26097
  21. [21]Microsoft. 2025. Phi-4-mini-instruct model card.
  22. [22]National Library of Medicine. 2026. PMC open access subset. Source and license selection described in Appendix B.
  23. [23]OpenBMB. 2026. UltraData-SFT-2605. Dataset revision affda6aca75e7cff78e73f93ad08d4c3b01f097c.
  24. [24]Oded Ovadia, Menachem Brief, Moshik Mishaeli, and Oren Elisha. 2024. Fine-tuning or retrieval? comparing knowledge injection in LLMs. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing.arxiv.org/abs/2312.05934
  25. [25]PleIAs. 2024. Common Corpus. Publisher dataset card; exact upstream revision of the local extract unavailable.
  26. [26]Qwen Team. 2025. Qwen3 technical report. Preprint, arXiv:2505.09388.
  27. [27]Thomas Scialom, Tuhin Chakrabarty, and Smaranda Muresan. 2022. Fine-tuned language models are continual learners. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing.arxiv.org/abs/2205.12393
  28. [28]Idan Shenfeld, Mehul Damani, Jonas Hübötter, and Pulkit Agrawal. 2026. Self-distillation enables continual learning. arXiv preprint arXiv:2601.19897. Version 2.arxiv.org/abs/2601.19897
  29. [29]Idan Shenfeld, Jyothish Pari, and Pulkit Agrawal. 2025. RL’s razor: Why online reinforcement learning forgets less. arXiv preprint arXiv:2509.04259.arxiv.org/abs/2509.04259
  30. [30]Mirac Suzgun, Nathan Scales, Nathanael Schärli, Sebastian Gehrmann, Yi Tay, Hyung Won Chung, Aakanksha Chowdhery, Quoc V. Le, Ed H. Chi, Denny Zhou, and Jason Wei. 2023. Challenging BIG-Bench tasks and whether chain-of-thought can solve them. In Findings of the Association for Computational Linguistics: ACL 2023, pages 13003–13051.arxiv.org/abs/2210.09261
  31. [31]Yongliang Wu, Yizhou Zhou, Ziheng Zhou, Yingzhe Peng, Xinyu Ye, Xinting Hu, Wenbo Zhu, Lu Qi, Ming-Hsuan Yang, and Xu Yang. 2026. On the generalization of SFT: A reinforcement learning perspective with reward rectification. In International Conference on Learning Representations.arxiv.org/abs/2508.05629
  32. [32]Zhaorui Yang, Tianyu Pang, Haozhe Feng, Han Wang, Wei Chen, Minfeng Zhu, and Qian Liu. 2024a. Self-distillation bridges distribution gap in language model fine-tuning. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 1028–1043.arxiv.org/abs/2402.13669
  33. [33]Zitong Yang, Aonan Zhang, Sam Wiseman, Xiang Kong, Ke Ye, and Dong Yin. 2024b. Memory-retaining finetuning via distillation. In NeurIPS Workshop on Fine-Tuning in Modern Machine Learning: Principles and Scalability.
  34. [34]Yunan Zhang, Shuoran Jiang, Mengchen Zhao, Yuefeng Li, Yang Fan, Xiangping Wu, and Qingcai Chen. 2025. GeRe: Towards efficient anti-forgetting in continual learning of LLM via general samples replay. arXiv preprint arXiv:2508.04676.arxiv.org/abs/2508.04676
  35. [35]Junhao Zheng, Xidi Cai, Shengjie Qiu, and Qianli Ma. 2025. Spurious forgetting in continual learning of language models. In The Thirteenth International Conference on Learning Representations.arxiv.org/abs/2501.13453
  36. [36]Jeffrey Zhou, Tianjian Lu, Swaroop Mishra, Siddhartha Brahma, Sujoy Basu, Yi Luan, Denny Zhou, and Le Hou. 2023. Instruction-following evaluation for large language models. arXiv preprint arXiv:2311.07911.arxiv.org/abs/2311.07911

Paper details

vlnc:W_fts5pd4k
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents