betaFeedback

WorksComputer Science

Tune for Retention, Not Just Gain: SFT Forgets Far Less than You Think

Abstract

Catastrophic forgetting, the drastic loss of previously acquired capabilities when learning new ones, is a central challenge in language model fine-tuning. Supervised fine-tuning (SFT) is widely believed to be prone to such forgetting. Recent works have attributed this to the off-policy nature of SFT, arguing that on-policy learning is key to continual learning. In this paper, we challenge this premise. We show that while maximizing new-task performance can induce catastrophic forgetting, alternative hyperparameter choices (lower learning rate and batch size) can yield similar gains with little to no forgetting. With hyperparameters selected jointly for gain and retention, vanilla SFT retains prior capabilities far better than previously suggested and can be competitive with Self-Distillation Fine-Tuning (SDFT), an on-policy approach designed to mitigate forgetting. While SDFT can be more robust to hyperparameter choices, it also requires a retention-aware criterion to identify hyperparameter configurations that avoid catastrophic forgetting. Our results challenge the view that on-policy training is what enables learning with retention and raise broader questions about what drives catastrophic forgetting during fine-tuning.

Introduction

Adapting language models to new domains, skills, and knowledge without forgetting their previously learned capabilities is a central challenge in fine-tuning. Designing methods for such adaptation is increasingly pressing as language models are continually updated to incorporate new capabilities, domain expertise, and knowledge. The simplest and most widely used adaptation approach is supervised fine-tuning (SFT), which is widely reported to cause “catastrophic forgetting” of prior capabilities [17, 14, 6, 26].

Recent work points to the off-policy nature of SFT as a key culprit in catastrophic forgetting [24, 4]. Here, off-policy refers to the fact that SFT trains on demonstrations generated by an external expert or data-generating policy, rather than on outputs sampled from the model being fine-tuned. By contrast, on-policy methods such as reinforcement learning (RL) train on trajectories sampled from the learner’s own current policy, so the training distribution evolves with the model itself. This has been argued to allow stronger retention [24, 4]. More recently, Shenfeld et al. [23] brings this on-policy perspective to learning from demonstrations via self-distillation fine-tuning (SDFT). Using only a static set of teacher demonstrations, SDFT constructs a training signal from the student model’s own generations. Shenfeld et al. demonstrates that this enables continual learning and avoids catastrophic forgetting. Taken together, these works put forward the following picture: off-policy SFT tends to forget, while on-policy training is a key mechanism for learning without forgetting [4, 23 b].

In this work, we directly challenge this emerging narrative. We ask: does SFT really catastrophically forget prior capabilities?

Results. Our main findings suggest that SFT forgets far less than previously reported (Figure 1).

Figure 1. Similar gains, different degrees of forgetting, from catastrophic to none. (Left) For both (off-policy) SFT and (on-policy) SDFT, Science fine-tuning with different hyperparameters yields similar gains but markedly different retention of general capabilities. (Right) In sequential Science→ToolUse training, adjusting only the ToolUse training hyperparameters allows off-policy SFT to learn ToolUse without forgetting previously learned Science. Lower learning-rate (and batch size) configurations achieve comparable gains with little or no forgetting.

  • Similar New-Task Gains, Different Forgetting. In § 3, we show that SFT configurations with comparable new-task gains can differ substantially in retention: lower learning rates (and batch sizes) cause only little forgetting, whereas aggressive ones can cause catastrophic forgetting. Insisting on maximizing new-task performance can trade substantial retention for only marginal additional gains.

  • Comparison After Tuning for Both Gain and Retention. In § 5, we introduce criteria that jointly use new-task gain and prior-capability retention to select checkpoints. Under such retention-aware tuning, SFT is highly competitive with SDFT for learning with retention. Although SDFT is more robust across hyperparameters, it still requires retention-aware selection: otherwise, it can also trade substantial retention for only marginal additional gains.

  • Cost-effective Retention-aware Tuning. In § 6, we present two practical strategies for hyperparameter selection that significantly reduce tuning costs without substantially compromising the quality of the selected checkpoints: validation on a small subset of prior capabilities and retention-guided hyperparameter search.

  • Implications. Our work calls for a systematic understanding of how hyperparameter choices affect new-task learning and prior-capability retention in continual fine-tuning. We outline key open questions in § 7. Our two main takeaways for continual fine-tuning are:

  • (Takeaway 1.) Continual fine-tuning requires a different model-selection principle from standard fine-tuning: simply squeezing out gains on the new task can induce severe forgetting, for both SFT and SDFT.

  • (Takeaway 2.) Our results challenge the view that on-policy learning is the mechanism that enables learning without forgetting: a fully off-policy method, vanilla SFT, can exhibit the same qualitative learning with retention, when hyperparameter-tuned for both retention and gain.

Related Work

A broad body of work reports forgetting after SFT [17, 14, 3]. Several works propose variants of SFT to mitigate forgetting [14, 12, 22, 26]. Some studies report results under fixed training recipes [17, 14, 12] or select learning rates by new-task performance [22]. We study how methods should be compared under the sensitivity of hyperparameter choices, assessing whether reported advantages persist when each method is tuned under shared selection criteria that jointly account for new-task gain and prior-capability retention.

Prior work reports that learning and forgetting are sensitive to learning-rate choices and proposes explanations for these effects [15, 20, 18]. Most closely related, Lin et al. [15] show that smaller learning rates can reduce general-capability degradation while preserving comparable new-task performance. Nevertheless, recent studies report substantial forgetting with SFT and present on-policy methods as enabling strong new-task learning with little forgetting [24, 4, 23]. This raises the question of whether on-policy methods retain prior capabilities across all hyperparameter configurations that achieve strong new-task performance, and whether any greater robustness provides a practical advantage over SFT.

Similar SFT Gains Can Exhibit Very Different Forgetting

In this section, we show that hyperparameter configurations with similar new-task gains can nevertheless exhibit very different degrees of forgetting. We begin by discussing:

How Hyperparameter Choices Affect Gain and Retention? The most important hyperparameter of SFT is the learning rate. At one extreme, a very small learning rate (lr) may barely change the model: new-task gains are small, but forgetting on prior capabilities is also negligible, with lr = 0 as the limiting case of no learning and no forgetting. At the other extreme, a suitably large learning rate can gain in the adaptation task, but may also move the model far enough to damage prior capabilities. The interesting question lies in the intermediate regime: whether substantial new-task learning necessarily comes at the cost of substantial forgetting. Note that batch size (bs) interacts with the learning rate choice. At larger learning rates, larger batches can help stabilize the more aggressive updates. At smaller learning rates, smaller batches may suffice, and can even be preferable under a fixed epoch budget,2 because they allow the model to take enough small update steps to learn the new task.

Similar Gains, Different Degrees of Forgetting. We first show that these hyperparameter choices can yield similar new-task gains while differing substantially in how much prior capabilities the model forgets. We demonstrate this in the continual fine-tuning settings studied by Shenfeld et al. [23] and Chen et al. [4], where the effect is large enough to change the apparent gap between SFT and on-policy methods.

In Figure 2a, we consider the setting of Shenfeld et al. [23], where adaptation is measured on ToolUse and retention is measured on a suite of prior capabilities; see Appendix § 8 for details. We include an SDFT run, within their hyperparameter sweep, that we believe reproduces their reported SDFT behavior (details in Appendix § 8.§ 1). For SFT, two configurations achieve similar ToolUse performance but very different retention. The higher lr and bs configuration would be selected by maximizing ToolUse performance, but it exhibits catastrophic forgetting. The lower-lr, lower-bs configuration is only 1.03 percentage points (pp) lower on ToolUse, but retains 9.27 pp more performance on the prior-capability suite.

Similar new-task gains can correspond to substantially different degrees of forgetting

Figure 2. (a) A setting from Shenfeld et al. [23]. (b) A setting from Chen et al. [4]. Similar new-task gains can correspond to substantially different degrees forgetting: demonstrated in the ToolUse-on-Qwen2.5-7B setting of Shenfeld et al. [23] and the MMLU-on-Llama-3.1-8B setting of Chen et al. [4], with each point averaged over three seeds.

We also see the same behavior in the setting of Chen et al. [4]. In Figure 2b, we consider their strongest SFT-forgetting case, where Llama-3.1-8B is trained on MMLU as the new task and retention is evaluated on a separate suite of prior capabilities. Running SFT (with higher lr and bs) and GRPO using the best provenance we could establish for their hyperparameter choices, we obtain learning and forgetting behavior qualitatively consistent with their report; see Remark 2 in Appendix § 8. However, a different SFT configuration achieves higher MMLU gains than their SFT baseline, matches GRPO’s new-task performance, and exhibits essentially no degradation of prior capabilities. Appendix § 8 further shows that the same pattern extends to additional SFT forgetting baselines from Shenfeld et al. [23] and Chen et al. [4].

Sequential Fine-Tuning Shows the Same Effect. We also consider the more challenging sequential-learning setup of Shenfeld et al. [23], where the model is fine-tuned on multiple tasks in succession (Figure 3). We follow their (Shenfeld et al., [23], Figure 3) setting: training sequentially on Science and ToolUse, evaluating Science and ToolUse throughout, and evaluating the general prior-capability suite at the end of each phase.

SFT in Shenfeld et al. (2026a)

(a) (a) SFT in Shenfeld et al. [23].

SDFT in Shenfeld et al. (2026a)

(b) (b) SDFT in Shenfeld et al. [23].

SFT with different hyperparameters

(c) (c) SFT with different hyperparameters.

Figure 3. Sequential fine-tuning on Science and ToolUse. We report Science, ToolUse, and prior-capability performance, averaged over three seeds. Figure 3a and Figure 3b reproduce the qualitative SFT and SDFT behavior reported by Shenfeld et al. [23]. SFT with different ToolUse training hyperparameters (Figure 3c) learns both tasks sequentially while retaining Science and general capabilities essentially as well as SDFT.

Figure 3a and Figure 3b reproduce the qualitative SFT and SDFT behavior reported by Shenfeld et al. [23]. 3 In Figure 3c, we run SFT with lower lr and bs during ToolUse training. This SFT run learns both tasks sequentially while retaining performance on Science and the general prior-capability suite essentially as well as SDFT. By contrast, the SFT run in Figure 3a would appear highly successful if judged only by its final ToolUse accuracy of 64.26%, yet it suffers catastrophic forgetting on Science and degrades general capabilities.

Implications. These examples show that continual fine-tuning comparisons can depend strongly on hyperparameter choices. Unlike standard single-task fine-tuning, hyperparameter tuning should account for both new-task learning and retention of prior capabilities. These results also challenge the view that SFT forgets because it is intrinsically off-policy: in the settings above, much of the apparent forgetting is a property of the chosen SFT hyperparameters, not of SFT itself.

Our Questions. This raises several broader questions. How should continual fine-tuning methods be tuned and compared? Can methods other than SFT achieve their best new-task performance while still retaining prior capabilities, making them preferable? Or is there an inherent tradeoff between learning and retention? If such a tradeoff exists, how can we reliably select checkpoints based on validation performance on both new and prior tasks?

Our Experimental Setting

In this section, we describe our main experimental setting.

New Skill-Acquisition Tasks. For new-task learning, we fine-tune on three qualitatively different tasks: Science, ToolUse, and Multistate Bar Examination (MBE). We choose tasks on which the base models are not already near ceiling performance, leaving room for meaningful new-task gains; otherwise, a method could appear to retain prior capabilities simply because it learns little. Science and ToolUse, adapted directly from Shenfeld et al. [23], are well suited for this purpose. As a third task, we include MBE questions to extend our evaluation to legal reasoning.

  • Science. We use the Chemistry Level-3 subset of SciKnowEval (Feng et al., [7]), following Shenfeld et al. [23]. The task consists of multiple-choice questions (MCQs).

  • ToolUse. We use the dataset released by Shenfeld et al., a derivative of ToolAlpaca (Tang et al., [25]); see Remark 3. The task requires selecting tool calls and their arguments.

  • Multistate Bar Examination (MBE). We use the demonstration dataset of Fernandes et al. [8] for training and Bar Exam QA (Zheng et al., [28]) for testing. The task consists of multiple-choice legal reasoning questions from the Multistate Bar Examination.

Science and MBE are evaluated by exact match on the answer option extracted from the model output. ToolUse is evaluated by matching the predicted tool calls and arguments to the released targets; see Appendix § 9.§ 1 for details.

General Capability Retention Tasks. To measure retention, we use nine prior-capability categories spanning standard language-model abilities and safety behavior: (1) code generation (Code: MBPP and HumanEval), (2) instruction following (IFEval), (3) factuality (TruthfulQA), (4) general knowledge (MMLU), (5) commonsense reasoning (HellaSwag), (6) coreference reasoning (WinoGrande), (7) mathematical reasoning (MATH), (8) jailbreak robustness (WildJailbreak), and (9) harmful-prompt refusal (WildGuardTest). This suite combines the six prior-capability tasks used by Shenfeld et al. [23] (1–6) with the three additional retention tasks used by Chen et al. [4] (7–9). We modify only the Code category, pooling MBPP with HumanEval rather than using HumanEval alone to obtain a larger validation set for model selection.

Overall, our suite contains a good mix of tasks requiring structured outputs or free-form responses, such as code, instruction following, mathematics, and safety, and tasks evaluated using fixed answer options, such as MMLU, HellaSwag, WinoGrande, and TruthfulQA. This broad aggregate captures retention across diverse capabilities; we also report category-level results where relevant. Evaluation follows standard protocols; see Appendix § 9.§ 1 for details.

Validation and Test Sets. For all benchmarks except ToolUse, we split the evaluation set into validation and test sets, using validation for hyperparameter and checkpoint selection and test for final reporting; see Table 5 for split sizes. ToolUse has only 97 released evaluation examples, making further splitting too noisy, while validation examples drawn from the training distribution poorly represent its out-of-distribution evaluation set. We therefore use the entire evaluation set for both selection and reporting; a larger set of comparable difficulty would enable a reliable validation/test split, as demonstrated in other settings.4

Dataset#Val#Test#Total Eval
New-task datasets
Science100407507
ToolUse––97
MBE2309201,150
Prior-capability datasets
Code (MBPP + HumanEval)250414664
IFEval270271541
TruthfulQA-MC1350467817
MMLU (57 subjects)50313,53914,042
HellaSwag5009,54210,042
WinoGrande3009671,267
MATH5004,5005,000
WildJailbreak3001,9102,210
WildGuardTest3001,4251,725

Table 5. Validation and test sizes for new-task and prior-capability evaluation datasets. We split each Eval dataset into validation and test subsets.

Algorithms. Our main goal is to compare SFT and SDFT. Given a demonstration y∗y^* for input xx, SFT minimizes the next-token negative log-likelihood:

LSFT(θ)=−∑t=1∣y∗∣log⁡πθ(yt∗∣x,y<t∗).(1)\mathcal{L}_{\mathrm{SFT}}(\theta)=-\sum_{t=1}^{|y^*|}\log\pi_\theta(y_t^* \mid x,y^*_{<t}). \tag*{(1)}

This is an off-policy objective because the model is trained on prefixes from the demonstration trajectory y∗y^* rather than its own sampled trajectories. Thus, the training distribution need not match the distribution encountered by the model at generation time.

Shenfeld et al. [23] propose self-distillation fine-tuning (SDFT), an on-policy fine-tuning algorithm. To understand SDFT, first suppose we had access to a strong teacher. After the student generates an answer y^∼πθ(⋅∣x)\hat{y} \sim\pi_\theta(\cdot\mid x), we could train it to imitate the teacher’s next-token distribution along that generated trajectory:

LSDFT(θ)=Ey^∼πθ(⋅∣x)[∑t=1∣y^∣KL⁡(πT(⋅∣x,y^<t)∥πθ(⋅∣x,y^<t))].(2)\mathcal{L}_{\mathrm{SDFT}}(\theta)=\mathbb{E}_{\hat{y}\sim\pi_\theta(\cdot\mid x)}\left[\sum_{t=1}^{|\hat{y}|}\operatorname{KL}\left(\pi_T(\cdot\mid x,\hat{y}_{<t})\mathbin{\|}\pi_\theta(\cdot\mid x,\hat{y}_{<t})\right)\right]. \tag*{(2)}

This is on-policy distillation (Agarwal et al. [1]) in the teacher–student setting. However, in our fine-tuning setting, we have only demonstrations, without access to such a teacher. Shenfeld et al. [23] propose using a demonstration-conditioned version of the model as the teacher, a form of self-distillation. This teacher guides the student on the student’s own generated prefixes. Specifically, the teacher uses an exponential moving average (EMA) of the student parameters, initialized from the base model and updated during student training:

πT(⋅∣x,y^<t)=πθˉ(⋅∣x,y∗,y^<t),θˉk=(1−α)θˉk−1+αθk,θˉ0=θbase,\pi_T(\cdot\mid x,\hat{y}_{<t})=\pi_{\bar{\theta}}(\cdot\mid x,y^*,\hat{y}_{<t}),\qquad\bar{\theta}_k=(1-\alpha)\bar{\theta}_{k-1}+\alpha\theta_k,\qquad\bar{\theta}_0=\theta_{\mathrm{base}},

where α\alpha is the EMA hyperparameter. See also Remark 1 regarding the SDFT objective in (2).

Main Results

In this section, we present our main experimental results. In § 5.1, we introduce hyperparameter selection rules that account for both new-task gain and prior-capability retention. We then compare SFT and SDFT under these criteria in § 5.3. Along the way, § 5.2 gives further evidence for the observation in § 3, and how learning-rate choices shape both learning and forgetting. Additional factors and results at a larger model scale are discussed in § 5.4.

Hyperparameter Selection for Gain and Retention

Let θbase\theta_{\mathrm{base}} denote the base model, and θFT,A,λ\theta_{\mathrm{FT},A,\lambda} denote the model obtained by fine-tuning with algorithm AA and hyperparameters λ\lambda. Let Acc⁡new(θ)\operatorname{Acc}_{\mathrm{new}}(\theta) be accuracy on the new task, and let Acc⁡prior(θ)\operatorname{Acc}_{\mathrm{prior}}(\theta) be the average accuracy over the prior-capability suite. We define

ΔL(A,λ):=Acc⁡new(θFT,A,λ)−Acc⁡new(θbase),ΔR(A,λ):=Acc⁡prior(θFT,A,λ)−Acc⁡prior(θbase).(3)\Delta_{\mathrm{L}}(A,\lambda):=\operatorname{Acc}_{\mathrm{new}}(\theta_{\mathrm{FT},A,\lambda})-\operatorname{Acc}_{\mathrm{new}}(\theta_{\mathrm{base}}),\qquad\Delta_{\mathrm{R}}(A,\lambda):=\operatorname{Acc}_{\mathrm{prior}}(\theta_{\mathrm{FT},A,\lambda})-\operatorname{Acc}_{\mathrm{prior}}(\theta_{\mathrm{base}}). \tag*{(3)}

Thus, ΔL\Delta_{\mathrm{L}} (Learning Delta) measures new-task gain, while ΔR\Delta_{\mathrm{R}} (Retaining Delta) measures forgetting. In particular, −ΔR-\Delta_{\mathrm{R}} is the net drop in the prior capabilities.

conclusions as selection based on sufficiently large validation sets.

Joint Utility (Retention+Gain). Our primary selection criterion is the joint learning–retention utility

ULR(A,λ):=ΔL(A,λ)+ΔR(A,λ).(4)\mathcal{U}_{\mathrm{LR}}(A,\lambda) := \Delta_{\mathrm{L}}(A,\lambda) + \Delta_{\mathrm{R}}(A,\lambda). \tag*{(4)}

This criterion assigns equal weight to improving new-task accuracy and retaining prior capabilities. Since the base-model terms are fixed, maximizing ULR\mathcal{U}_{\mathrm{LR}} is equivalently maximizing Acc⁡new(θFT,A,λ)+Acc⁡prior(θFT,A,λ)\operatorname{Acc}_{\mathrm{new}}(\theta_{\mathrm{FT},A,\lambda})+\operatorname{Acc}_{\mathrm{prior}}(\theta_{\mathrm{FT},A,\lambda}). For each algorithm, we estimate this utility on validation splits and select

λA⋆∈arg⁡max⁡λ U^LRval(A,λ).\lambda_A^\star\in\underset{\lambda}{\arg\max}\ \widehat{\mathcal{U}}_{\mathrm{LR}}^{\mathrm{val}}(A,\lambda).

We then evaluate θFT,A,λA⋆\theta_{\mathrm{FT},A,\lambda_A^\star} on the held-out test sets and report its new-task accuracy, prior-capability accuracy, and ULRtest(A,λA⋆)\mathcal{U}_{\mathrm{LR}}^{\mathrm{test}}(A,\lambda_A^\star).

Maximizing Gains for a Forgetting Threshold. Another criterion of practical interest is to allow a fixed small degradation in prior capabilities, and subject to this constraint, maximize new-task gain. For a tolerance ϵ≥0\epsilon\ge0, this corresponds to selecting

λA,ϵ⋆∈arg⁡max⁡λ Δ^Lval(A,λ)s.t.−Δ^Rval(A,λ)≤ϵ.(5)\lambda_{A,\epsilon}^\star\in\underset{\lambda}{\arg\max}\ \widehat{\Delta}_{\mathrm{L}}^{\mathrm{val}}(A,\lambda) \quad\text{s.t.} \quad-\widehat{\Delta}_{\mathrm{R}}^{\mathrm{val}}(A,\lambda) \le\epsilon. \tag*{(5)}

This criterion is useful when an application specifies an acceptable forgetting budget and asks for the largest possible improvement on the new task.

Learning Rate Drives the Learning–Forgetting Tradeoff

We further examine the role of learning rate in the gain–retention tradeoff discussed in § 3. For each method, task, and learning rate, we fix training to 2 epochs and select the best batch size and, for SDFT, EMA parameter α\alpha from Table 6 using ULR\mathcal{U}_{\mathrm{LR}}.5 Figure 4 shows a consistent pattern for both methods: increasing lr improves new-task learning up to a point, but also increases forgetting of prior capabilities. This tradeoff has several consequences.

Figure 4. lr sweep for Qwen2.5-7B: SFT (top) and SDFT (bottom). For each lr, we select the bs that maximizes ULRU_{\mathrm{LR}} from (4); error bars show standard deviation across three reporting seeds.

HyperparameterSFTSDFT
Base modelQwen2.5 7B-Instruct; Qwen2.5 14B-InstructQwen2.5 7B-Instruct; Qwen2.5 14B-Instruct
Learning rate (7B){5e-6, 1e-5, 2e-5, 3e-5, 4e-5, 5e-5, 1e-4}{5e-6, 1e-5, 2e-5, 3e-5, 4e-5, 5e-5, 1e-4}
Learning rate (14B){1e-5, 2e-5, 3e-5, 4e-5, 5e-5, 1e-4}{1e-5, 2e-5, 3e-5, 4e-5, 5e-5, 1e-4}
Optimizer (7B)AdamWAdamW
Optimizer (14B)Paged 8-bit AdamWPaged 8-bit AdamW
LR schedulerCosine with warmupCosine with warmup
Warmup ratio0.10.1
Epochs22
Batch size{16, 32, 64}{16, 32, 64}
Max gradient norm11
bfloat16TrueTrue
Weight decay00
Number of seeds33
SDFT-only hyperparameters
EMA α\alpha–{0.01, 0.05}
Max generation length–2048

Table 6. Hyperparameter settings for SFT and SDFT. Boldface values define a smaller subsweep that can be useful under resource constraints.

  • The best new-task checkpoint is not always the best checkpoint for the joint utility criterion in (4) (e.g., Science task for both SFT and SDFT).

  • New-task-only selection can pick hyperparameters with catastrophic forgetting. The green shaded region marks learning rates whose new-task performance is within 3 percentage points (pp) of the best observed new-task performance. We use this region to represent the range of hyperparameters that could plausibly be selected by cross-validation on the new task alone.6 Within this region of nearly indistinguishable new-task performance, prior-task degradation can vary sharply and it also may overlap with the catastrophic-forgetting regime; see for example Science and ToolUse.

  • SDFT achieves strong new-task performance, while retaining prior capabilities, more robustly than SFT in the following sense: (i) SDFT has a broader range of learning rates between mild forgetting (> 2 pp drop) and catastrophic forgetting (> 12 pp drop), across all three tasks. This range can overlap more with the green shaded region (near-best new-task gain); and (ii) even beyond the catastrophic-forgetting threshold, SDFT suffers less severe degradation than SFT, especially on ToolUse and MBE.

Comparing SFT vs SDFT after Tuning for Gain and Retention

We now ask whether validation-based selection using the joint utility criterion in (4) reliably identifies good hyperparameters. We compare this with selection based solely on new-task gain to quantify the cost of ignoring retention. In either case, we assess whether SDFT’s greater hyperparameter robustness translates into sizable benefits over correctly tuned SFT.

We evaluate SFT and SDFT over the full hyperparameter sweep in Table 6 under both selection criteria. Figure 5 and Table 1 present the results; we summarize the main observations below.

Figure 5. New-task versus average prior-task performance for Qwen2.5-7B. Each panel compares SFT and SDFT under three selection criteria: maximizing joint utility (4), maximizing new-task gain subject to a 2 pp forgetting budget (5), and maximizing new-task gain alone.

TaskMethodJoint utility ΔL\Delta_{\mathrm{L}}Joint utility −ΔR-\Delta_{\mathrm{R}}Joint utility ULR\mathcal{U}_{\mathrm{LR}}New-task only ΔL\Delta_{\mathrm{L}}New-task only −ΔR-\Delta_{\mathrm{R}}New-task only ULR\mathcal{U}_{\mathrm{LR}}New-only minus joint ΔΔL\Delta\Delta_{\mathrm{L}}New-only minus joint Δ(−ΔR)\Delta(-\Delta_{\mathrm{R}})
ScienceSFT34.6±1.234.6 \pm1.21.4±0.31.4 \pm0.333.236.9±0.936.9 \pm0.98.5±0.38.5 \pm0.328.328.32.22.27.1
SDFT37.0±0.737.0 \pm0.73.2±0.23.2 \pm0.233.838.3±0.438.3 \pm0.46.4±1.76.4 \pm1.731.931.91.31.33.2
ToolUseSFT28.5±2.628.5 \pm2.62.8±0.42.8 \pm0.425.828.5±2.628.5 \pm2.62.8±0.42.8 \pm0.425.825.80.00.00.00.0
SDFT28.5±2.628.5 \pm2.62.1±0.42.1 \pm0.426.428.5±2.628.5 \pm2.62.1±0.42.1 \pm0.426.426.40.00.00.00.0
MBESFT23.3±1.223.3 \pm1.29.9±1.79.9 \pm1.713.423.3±1.223.3 \pm1.29.9±1.79.9 \pm1.713.40.00.00.00.0
SDFT26.7±2.526.7 \pm2.55.4±0.65.4 \pm0.621.326.8±0.926.8 \pm0.98.5±0.98.5 \pm0.918.30.13.1

Table 1. Comparison of joint-utility selection and new-task-only selection. Subscripts denote standard deviation across three reporting seeds.

  • Under the joint-utility criterion, SFT is competitive with SDFT on Science and ToolUse, where the selected checkpoints exhibit only mild forgetting. In contrast, on MBE, where the best utility requires trading off new-task gain against prior-task forgetting, SDFT outperforms SFT.

  • While selecting hyperparameters by new-task performance alone can coincide with the joint-utility choice, as in ToolUse, this is not always reliable and can hurt retention. On Science, new-task-only selection gives only a modest additional gain in ΔL\Delta_L, but at a much larger retention cost in −ΔR-\Delta_R, especially in SFT. The same pattern also appears for SDFT on MBE, where new-task-only selection gains almost nothing in ΔL\Delta_L while losing several points in −ΔR-\Delta_R.

Even when maximizing new-task gain under a forgetting threshold, as defined in (5), SDFT’s advantage over SFT is limited to a narrower range of settings; see Table 2. With a very small forgetting budget (2pp), both methods are restricted to low-forgetting configurations and often perform similarly within seed variability. Relaxing the budget (to 3pp) need not favor SDFT when SFT already achieves substantial new-task gains with little forgetting, as in Science and ToolUse. However, SDFT can have an advantage when further gains from SFT come with substantial forgetting, whereas SDFT achieves greater gains with only a small additional retention loss, as in MBE.

TaskMethod−ΔR≤2-\Delta_{\mathrm{R}} \le2 pp−ΔR≤3-\Delta_{\mathrm{R}} \le3 pp
ScienceSFT34.6±1.234.6 \pm1.235.6±2.235.6 \pm2.2
SDFT31.2±1.831.2 \pm1.836.0±0.536.0 \pm0.5
ToolUseSFT25.1±1.225.1 \pm1.228.5±2.628.5 \pm2.6
SDFT27.1±2.627.1 \pm2.628.5±2.628.5 \pm2.6
MBESFT7.3±0.37.3 \pm0.37.3±0.37.3 \pm0.3
SDFT8.6±1.28.6 \pm1.218.5±1.918.5 \pm1.9

Table 2. Best new-task gain ΔL\Delta_{\mathrm{L}} (pp) under fixed forgetting thresholds. Entries show means and standard deviations across three seeds.

Additional Factors and Larger Model

We briefly discuss additional important observations.

Most of the drop is in generative capabilities. Figure 10 shows that most of the drop in prior capabilities, including the catastrophic drop at larger learning rates, comes from generative evaluations (IFEval, Code, Math, WildJailbreak, WildGuardTest). In contrast, non-generative benchmarks (MMLU, HellaSwag, WinoGrande, TruthfulQA) remain comparatively stable. This suggests that fine-tuning degrades the ability to produce task-valid generations more severely than performance on non-generative benchmarks.

Figure 10. Generative evaluations show the largest drops at high learning rates. Learning-rate sweeps for Qwen2.5-7B with SFT (top) and SDFT (bottom), using the same configurations as Figure 4. Bars show changes from the base model on the new task (green) and unweighted mean changes within the generative (orange) and non-generative (blue) benchmark groups.

Effect of the number of epochs. All our main experiments use 2 epochs of training.7 We ask whether longer training at a lower learning rate can achieve the same new-task gains without the additional forgetting caused by a higher learning rate. In Figure 11, our runs suggest that training for 3 epochs can marginally improve over 2 epochs at the same learning rate. However, it still trails the gains achieved with 2 epochs at larger learning rates. Thus, extending training from 2 to 3 epochs at lower learning rates does not fully recover the gains achieved at larger learning rates.

Figure 11. A third epoch at low learning rates yields modest Science gains with little change in retention. In this sweep, matching the best two-epoch gains requires a higher learning rate; training longer at a lower rate does not close the gap.

Effect of batch size. Figure 12 shows the interaction between learning rate and batch size. Below the critical learning-rate threshold where catastrophic degradation begins, we find that smaller batch sizes generally match or improve new-task gains. We attribute this to the larger number of optimization steps (since the number of epochs is fixed). Importantly, this does not appear to come at the cost of additional forgetting.

Figure 12. The gains and drop for different batch sizes at different learning rates.

Effect of model size. Repeating our analysis on Qwen2.5-14B yields the same main findings: catastrophic forgetting still occurs, but suitable hyperparameter choices enable similar new-task gains with little or no forgetting; see Appendix § 11. This suggests that limited model capacity alone does not explain catastrophic forgetting, and that increasing model size does not eliminate the effects documented here or the importance of hyperparameter selection.

A Practical Recipe for Cost-Effective Hyperparameter Tuning

Our results highlight the importance of tuning hyperparameters jointly for new-task gain and prior-capability retention. However, evaluating performance on such a large suite of general capabilities across many hyperparameter configurations can be prohibitively compute-intensive. Moreover, some capabilities we wish to preserve may even be implicit and lack explicit evaluation sets. How can we perform retention-aware hyperparameter tuning under these constraints?

The most promising possibility is to identify warning alarms during training on the new task that are completely independent of the prior-capability suite (e.g., based on training statistics). Such alarms could help identify and early-stop training for configurations likely to cause catastrophic forgetting. We tracked absolute and relative parameter drift using the ℓ1\ell_1, ℓ2\ell_2, and ℓ∞\ell_\infty norms, as well as cross-entropy loss on the new task during training, but did not reveal noticeable differences between configurations that caused catastrophic forgetting and those that did not.

Identifying potential alarms during new-task training that are prior-task agnostic remains an important open question. For now, we present two cost-effective approaches that still use the prior-capability suite.

Tuning on a Small Subset of Capabilities

We first examine whether prior capabilities exhibit correlated patterns of forgetting. Figure 6 shows pairwise Pearson correlations in performance changes from the base model (Qwen2.5-7B) across configurations in the Science fine-tuning sweep of Table 6, pooling SFT and SDFT runs. Most prior capabilities exhibit strongly correlated accuracy changes, suggesting redundancy in the information they provide for retention-aware tuning. This motivates using only a small subset of them for validation and testing whether it recovers the hyperparameter choices made using the full prior-capability suite.

We use Science as a reference task to identify candidate validation subsets. For each of the (93)=84\binom{9}{3}=84 triplets of prior capabilities, we repeat hyperparameter selection according to the utility criterion in (4), replacing the nine-category prior average with the average over the three selected capabilities. We find that 23 triplets recover the exact full-suite-selected checkpoint for each of SFT and SDFT on Science. From these, we fix {MMLU, MATH, WildGuardTest} to span general knowledge, mathematical reasoning, and safety, as well as non-generative and generative evaluation. We then only use this triplet for validation on ToolUse and MBE. It exactly recovers the full-suite choices for both methods on both tasks, yielding zero utility regret.

We also note that this success extends beyond this particular choice: 12 of the 23 Science-qualified triplets of prior capabilities recover the full-suite choices for both methods on both ToolUse and MBE. For 20 of the 23 triplets, the worst-case utility regret across these two tasks and both methods is below 1 pp; for the remaining three, it is below 1.4 pp. These results provide strong empirical evidence that a small validation subset calibrated on one reference task can preserve full-suite selection decisions across other fine-tuning tasks. The same triplet also supports effective hyperparameter selection for the larger Qwen2.5-14B model (see Appendix § 11).

A Heuristic for Retention-Aware Hyperparameter Search

Our next strategy seeks high-utility checkpoints by evaluating only a few configurations from the full sweep. Motivated by our observation that lower learning rates and smaller batch sizes can achieve strong gains with better retention, we propose the following protocol:

  1. Begin with the smallest batch size (e.g., bs=16\mathbf{bs}=16) and binary-search the ordered learning-rate grid using the criterion: If prior-capability drop exceeds −ΔR>2-\Delta_{\mathrm{R}}>2 pp, search lower learning rates; otherwise, search higher learning rates. Continue until the search interval is empty.

  2. Select the evaluated configuration with the highest utility ULR\mathcal{U}_{\mathrm{LR}} in (4), then evaluate the next larger batch size at the same learning rate. If utility improves, repeat the learning-rate search at that batch size and consider the next larger batch size in the same way. Otherwise, stop.

We apply this protocol independently to each task for SFT.8 In a retrospective evaluation on Qwen2.5-7B, the larger-batch check does not improve utility on any of the three tasks. The protocol therefore evaluates only four configurations per task instead of 21 in the full sweep (Table 6), reducing the number of evaluated configurations by 81.0%. Utility regret relative to full-sweep selection is zero on Science and ToolUse and 2.72 pp on MBE.

Discussion and Open Issues

Our results show that SFT can learn new tasks while forgetting far less than previously suggested. Simple hyperparameter choices such as learning rate (and batch size) can produce very different degrees of forgetting at similar new-task gains, highlighting the importance of careful hyperparameter selection. We propose tuning hyperparameters jointly for new-task gain and prior-capability retention, rather than focusing primarily on squeezing out gains on the new task. Such retention-aware tuning appears necessary even for SDFT, making it an important principle for continual fine-tuning. Overall, our results shift the focus of continual fine-tuning from algorithm choice alone to the hyperparameter selection and evaluation. There are several important open questions that can be investigated further.

Whether and why SFT forgets. Independent studies have also reported hyperparameter effects on forgetting (see § 2), yet substantial SFT forgetting remains a central finding in recent comparisons with on-policy methods. Extending our comparisons to more model families,9 training settings, and low-rank fine-tuning could clarify whether reported forgetting persists after retention-aware tuning and when SFT can serve as a simple, cost-effective strategy for continual adaptation. Our work does not attempt to explain why SFT forgets. While prior studies have proposed some explanations [15, 20], we believe a more systematic understanding of why hyperparameter choices affect learning and retention is needed. Our results also suggest greater degradation on generative evaluations. Non-generative evaluations of the same capabilities, such as multiple-choice variants, could help distinguish underlying knowledge loss from difficulty eliciting retained knowledge.

Figure 17. Learning-rate sweep for SFT on Llama-3.1-8B. At each learning rate, we select the batch size maximizing joint utility (4), with two epochs of training. Bars show new-task gains and average prior-task drops; error bars show standard deviations.

Other algorithms in post-training. A central open question is whether an algorithm can avoid catastrophic forgetting for all hyperparameter configurations that achieve strong new-task performance. Such an algorithm would greatly reduce the retention-aware tuning burden that remains for both SFT and SDFT. Until then, understanding how hyperparameters affect learning and retention remains essential. A related question is whether on-policy algorithms retain prior capabilities more robustly across hyperparameters and whether this robustness yields a meaningful practical advantage in learning with retention over the highly cost-effective SFT. The same perspective can also be applied to other post-training settings such as verifier-based RL, continual teacher–student distillation, preference optimization such as DPO, and reward-model training.

Sequential fine-tuning. A more challenging setting is learning a sequence of tasks, A→B→CA \to B \to C, while retaining earlier tasks (and the model’s original capabilities). The main challenge is hyperparameter selection across stages, both when tasks are known in advance and, more challengingly, when they arrive online. We leave the development of systematic hyperparameter selection strategies in both settings to future work. In Figure 7, we provide evidence that SFT can learn sequentially without catastrophic forgetting and can serve as a strong baseline.

Figure 7. Sequential SFT on Science→\toToolUse→\toMBE. We train Qwen2.5-7B for two epochs per task using the indicated hyperparameters. SFT learns each new task without catastrophic forgetting of what was previously learned.

Similar Gains, Different Forgetting (Section 3): Details

We provide the experimental details for the settings of Shenfeld et al. [23] and Chen et al. [4] studied in § 3.

Settings of Shenfeld et al.

We follow the reported evaluation protocol of Shenfeld et al. [23], using Qwen2.5-7B-Instruct and their released Science and ToolUse data and graders. Retention averages accuracy on MMLU, HellaSwag, and WinoGrande; TruthfulQA-MC1; HumanEval pass@1; and IFEval instruction-level loose accuracy. Evaluation is zero-shot and greedy, without a chat template. Our base-model average of 64.97% closely matches their 65.5%, which we take as evidence of reproducing their evaluation pipeline.

Single-task fine-tuning. We follow the training setup of Shenfeld et al. [23] and sweep hyperparameters to identify configurations close to their reported results.10 We compare these with a higher-retention SFT run obtained by changing only the learning rate and batch size while maintaining similar new-task gains (Table 3 and Figure 2a and Figure 8).

Table 3: ToolUse (Figure 2a) and Science (Figure 8) fine-tuning on Qwen2.5-7B. All configurations are trained for 2 epochs; SDFT uses EMA α=0.01\alpha= 0.01 for ToolUse and α=0.05\alpha= 0.05 for Science. Avg is the unweighted mean over the six prior-capability benchmarks. Values are means over 3 seeds, with standard deviations shown for the new task and the average prior task.

ConfigurationToolUseHSwagHEvalIFEvalMMLUTQAWinoGAvg
Base (Qwen2.5-7B)41.2461.9964.0273.2671.7647.8670.9664.97
SDFT (1⋅10−51 \cdot10^{-5}, bs 64)67.35 ±0.59\pm0.5961.5765.4469.1171.5746.8871.7764.39 ±0.12\pm0.12
SFT (1⋅10−51 \cdot10^{-5}, bs 16)66.32 ±1.19\pm1.1961.1061.1869.8671.5745.7471.7763.54 ±0.17\pm0.17
SFT (5⋅10−55 \cdot10^{-5}, bs 64)67.35 ±0.59\pm0.5958.2747.3640.0570.4836.1173.3254.26 ±0.66\pm0.66
ConfigurationScienceHSwagHEvalIFEvalMMLUTQAWinoGAvg
Base (Qwen2.5-7B)33.9361.9964.0273.2671.7647.8670.9664.97
SDFT (5⋅10−55 \cdot10^{-5}, bs 16)72.25 ±0.41\pm0.4160.2670.5347.3269.9743.8273.8060.95 ±0.81\pm0.81
SFT (5⋅10−55 \cdot10^{-5}, bs 16)70.81 ±1.23\pm1.2360.6466.8750.2870.2741.7072.1960.32 ±0.47\pm0.47
SFT (1⋅10−41 \cdot10^{-4}, bs 32)68.57 ±1.38\pm1.3857.4047.9725.9452.8036.0772.5348.78 ±4.01\pm4.01

Table 3.

Science fine-tuning performance plot

Figure 8. Science fine-tuning on Qwen2.5-7B (means over three seeds): SFT configurations with similar gains can have substantially different retention.

Sequential fine-tuning. For Figure 3, we train on Science→ToolUse for two epochs per task, restarting the schedule and warmup at each phase. We use learning rate 5⋅10−55 \cdot10^{-5} following the authors’ clarification, with codebase defaults of batch size 32 and SDFT EMA α=0.01\alpha= 0.01. In Figure 3c, we change only the SFT ToolUse phase to learning rate 10−510^{-5} and batch size 16.

Remark 1 (SDFT objective). Shenfeld et al. [23] state the objective as

L(θ)=KL⁡(πθ(⋅∣x) ∥ πT(⋅∣x))=Ey^∼πθ(⋅∣x)[∑t=1∣y^∣KL⁡(πθ(⋅∣x,y^<t) ∥ πT(⋅∣x,y^<t))].\mathcal{L}(\theta) = \operatorname{KL}\left(\pi_\theta(\cdot\mid x) \,\middle\|\, \pi_T(\cdot\mid x)\right) = \mathbb{E}_{\hat{y} \sim\pi_\theta(\cdot\mid x)}\left[\sum_{t=1}^{\lvert\hat{y}\rvert} \operatorname{KL}\left(\pi_\theta(\cdot\mid x,\hat{y}_{<t}) \,\middle\|\, \pi_T(\cdot\mid x,\hat{y}_{<t})\right)\right].

The authors later clarified that their experiments sample student trajectories on-policy but compute the per-token forward KL from teacher to student, as in (2).

Settings of Chen et al.

We revisit MMLU and IFEval fine-tuning on Llama-3.1-8B-Instruct and Llama-3.2-1B-Instruct.11 We use the released training data and evaluation code of Chen et al. [4], including their WildGuard judge. Retention is the unweighted mean over the five non-target tasks among MMLU, IFEval, Countdown, MATH, WildJailbreak, and WildGuardTest.

Training configurations. SFT uses AdamW for two epochs with a cosine learning-rate schedule, warmup ratio 0.03, gradient clipping 1.0, and maximum sequence length 4096. The comparison configurations use batch size 128 and learning rates 5⋅10−55 \cdot10^{-5} for 8B and 10−410^{-4} for 1B. Our higher-retention SFT configurations change only learning rate and batch size (Table 4). GRPO uses two epochs, a constant learning rate of 5⋅10−65 \cdot10^{-6}, batch size 32, G=5G = 5 generations per prompt, temperature 0.8, and a 1024-token generation budget. Its KL coefficient is 0 for 8B MMLU and 0.05 otherwise.

(a) MMLU, Llama 3.1 8B
RunMMLUPrior
Basescore 60.0456.27
SFT, 1⋅10−51\cdot10^{-5}/bs16score 72.17 ±0.57\pm0.5756.82 ±0.17\pm0.17
Δ\Delta +12.13 ±0.57\pm0.57+0.55 ±0.17\pm0.17
SFT, 5⋅10−55\cdot10^{-5}/bs128score 69.38 ±1.42\pm1.4223.27 ±0.39\pm0.39
Δ\Delta +9.34 ±1.42\pm1.42−33.00 ±0.39\pm0.39
GRPOscore 71.99 ±3.90\pm3.9055.05 ±0.23\pm0.23
Δ\Delta +11.95 ±3.90\pm3.90−1.22 ±0.23\pm0.23
(b) IFEval, Llama 3.1 8B
RunIFEvalPrior
Basescore 43.9959.48
SFT, 5⋅10−65\cdot10^{-6}/bs32score 62.15 ±0.28\pm0.2857.88 ±0.47\pm0.47
Δ\Delta +18.16 ±0.28\pm0.28−1.60 ±0.47\pm0.47
SFT, 5⋅10−55\cdot10^{-5}/bs128score 66.55 ±0.96\pm0.9633.56 ±0.76\pm0.76
Δ\Delta +22.56 ±0.96\pm0.96−25.92 ±0.76\pm0.76
GRPOscore 65.38 ±1.28\pm1.2857.51 ±0.78\pm0.78
Δ\Delta +21.39 ±1.28\pm1.28−1.97 ±0.78\pm0.78
(c) MMLU, Llama 3.2 1B
RunMMLUPrior
Basescore 40.7043.36
SFT, 2⋅10−52\cdot10^{-5}/bs16score 46.93 ±0.36\pm0.3640.64 ±0.02\pm0.02
Δ\Delta +6.23 ±0.36\pm0.36−2.72 ±0.02\pm0.02
SFT, 1⋅10−41\cdot10^{-4}/bs128score 45.02 ±0.54\pm0.5419.36 ±0.21\pm0.21
Δ\Delta +4.32 ±0.54\pm0.54−24.00 ±0.21\pm0.21
GRPOscore 49.35 ±0.44\pm0.4443.27 ±0.35\pm0.35
Δ\Delta +8.65 ±0.44\pm0.44−0.09 ±0.35\pm0.35
(d) IFEval, Llama 3.2 1B
RunIFEvalPrior
Basescore 29.0045.69
SFT, 2⋅10−52\cdot10^{-5}/bs16score 53.61 ±1.12\pm1.1241.81 ±0.28\pm0.28
Δ\Delta +24.61 ±1.12\pm1.12−3.88 ±0.28\pm0.28
SFT, 1⋅10−41\cdot10^{-4}/bs128score 55.25 ±0.85\pm0.8524.92 ±0.58\pm0.58
Δ\Delta +26.25 ±0.85\pm0.85−20.77 ±0.58\pm0.58
GRPOscore 50.60 ±0.63\pm0.6345.43 ±0.29\pm0.29
Δ\Delta +21.60 ±0.63\pm0.63−0.26 ±0.29\pm0.29

Table 4. Results for MMLU and IFEval settings of Chen et al. [4]. “Prior” is the average over the five non-target tasks. Δ\Delta rows report signed changes relative to the corresponding base model: positive and negative values indicate the gains and drops respectively.

Remark 2 (Comparison configurations). The SFT comparison learning rates follow the authors’ released training script. We report our own three-seed reruns, which reproduce the qualitative pattern of substantial forgetting for these SFT configurations and stronger retention for GRPO.

Table 4 reports all four settings, with corresponding learning–retention comparisons in Figure 2b and Figure 9. We discuss the results below.

IFEval, Llama-3.1-8B

(a)

MMLU, Llama-3.2-1B

(b)

IFEval, Llama-3.2-1B

(c)

Figure 9. Additional comparisons in the settings of Chen et al. [4]. Each point is a mean over three seeds. Configurations and per-task results are given in Table 4.

8B MMLU (Figure 2b). Our higher-retention SFT configuration improves both learning and retention: new-task gain increases from 9.34 to 12.13 pp, while a 33.00 pp prior-capability drop becomes a 0.55 pp improvement. It matches GRPO’s 11.95 pp gain while preserving prior capabilities, making SFT competitive in this setting through hyperparameter changes alone.

8B IFEval (Figure 9a). The comparison SFT configuration achieves the largest IFEval gain (22.56 pp), but incurs a 25.92 pp prior-capability drop. Our higher-retention configuration achieves an 18.16 pp gain with only a 1.60 pp drop. Its retention is comparable to GRPO’s 1.97 pp drop, although GRPO achieves a larger new-task gain of 21.39 pp.

1B MMLU (Figure 9b). Our higher-retention SFT configuration increases new-task gain from 4.32 to 6.23 pp while reducing the prior-capability drop from 24.00 to 2.72 pp. Hyperparameter changes substantially narrow the SFT–GRPO gap, although GRPO remains stronger here, achieving an 8.65 pp gain with a 0.09 pp drop.

1B IFEval (Figure 9c). Our higher-retention SFT configuration preserves most of the new-task gain (24.61 versus 26.25 pp) while reducing the prior-capability drop from 20.77 to 3.88 pp. It achieves greater new-task gain than GRPO (21.60 pp), while GRPO retains prior capabilities better, with a 0.26 pp drop. The comparison therefore exposes a learning–retention tradeoff between the selected configurations.

Table 4: Results for MMLU and IFEval settings of Chen et al. [4]. “Prior” is the average over the five non-target tasks. Δ\Delta rows report signed changes relative to the corresponding base model: positive and negative values indicate the gains and drops respectively.

Additional Details for Our Experiments

We now describe dataset details in Appendix B.1 and hyperparameter choices in Appendix B.2 for our experiments.

Dataset Curation

Science. We use the Chemistry L3 split of SciKnowEval ([7]), following Shenfeld et al. [23]. Each example is a four-option question, and the model is scored by exact match after emitting the answer letter inside an <answer>...</answer> field. We use the released 2,674 training examples and split the 507 held-out examples into validation and test sets of sizes 100 and 407, respectively, as shown in Table 5.

ToolUse. We use the ToolAlpaca-derived dataset released by Shenfeld et al. [23], so that our results are directly comparable to theirs. The released training set contains 4,046 examples, and the released evaluation set contains 97 examples. Outputs are parsed into tool actions and JSON action inputs and scored by exact match against the gold actions and inputs. Because the released ToolUse evaluation set is small, we do not split it into separate validation and test subsets. We also found that validation sets drawn from the ToolUse training distribution are out-of-distribution relative to the released evaluation set and do not reliably select good checkpoints. Therefore, for this task only, we select checkpoints using the same released evaluation set on which we report performance.

Remark 3 (ToolUse evaluation set). The released ToolUse evaluation set differs from ToolAlpaca’s original eval_simulated.json. Of the 97 released evaluation examples, 68 are drawn verbatim from the original ToolAlpaca evaluation set, while 29 do not appear in that set. Conversely, 32 of ToolAlpaca’s original 100 simulated evaluation examples are omitted. Many omitted examples involve multi-step or dependent tool calls and remain difficult across the methods we study, while the added examples are substantially easier to improve on under fine-tuning. All methods in our experiments use the same released evaluation set. Absolute ToolUse accuracies should be interpreted in light of its construction.

Multistate Bar Examination (MBE). Our training set consists of 1,501 examples with distilled explanations from HolySaint/MBE-exam-questions (Fernandes et al. [8]). The evaluation set comes from the qa configuration of Bar Exam QA (Zheng et al. [28]), released as reglab/barexam_qa. After removing 44 exact duplicates of training items from 1,194 usable evaluation questions, we split the remaining 1,150 into validation (230) and test (920) sets (Table 5). Many remaining questions are rewordings of training items, so MBE accuracy reflects a mixture of recall and generalization. Learning domain-specific legal knowledge and applying it to closely related questions are meaningful adaptation objectives. Therefore, MBE provides a valid setting for measuring how such adaptation affects retention of prior capabilities. Outputs are scored using the same answer-tag exact-match protocol as Science.

General Language Model Capabilities Evaluation. We evaluate retention on nine prior-capability categories: code generation (MBPP Austin et al. [2] + HumanEval Chen et al. [5]), instruction following (IFEval Zhou et al. [29]), factuality (TruthfulQA-MC1 Lin et al. [16]), general knowledge (MMLU Hendrycks et al. [10]), commonsense reasoning (HellaSwag Zellers et al. [27]), coreference reasoning (WinoGrande Sakaguchi et al. [21]), mathematical reasoning (MATH Hendrycks et al. [11]), jailbreak robustness (WildJailbreak Jiang et al. [13]), and harmful-prompt refusal behavior (WildGuardTest Han et al. [9]). We include the safety tasks because safety behavior is known to be sensitive to fine-tuning (Qi et al., [19]). Validation/test split sizes are given in Table 5; the same fixed splits are used for every method and checkpoint.

We run HellaSwag, MMLU, WinoGrande, TruthfulQA-MC1, IFEval, MBPP, and HumanEval through the LM Evaluation Harness. For HellaSwag, MMLU, WinoGrande, TruthfulQA-MC1, and IFEval, we use fixed harness metrics: accuracy for HellaSwag, MMLU, and WinoGrande; MC1 accuracy for TruthfulQA; and instruction-level loose accuracy for IFEval, computed over the 834 individual instructions. Because HumanEval is too small to support a stable validation split on its own, we pool it with MBPP into a single 664-example code category, stratifying the validation/test split by source dataset. For this code category, we score generated samples with our execution-based grader. This differs from the default harness score for MBPP, which is brittle to harmless formatting differences, but gives the same score as standard pass@1 for HumanEval. We report code as a micro-average over the pooled examples, rather than averaging the two task accuracies. MATH is graded by extracting the final boxed answer and exact-matching it to the gold answer. WildJailbreak and WildGuardTest are both evaluated by judging model responses with the WildGuard judge and scoring against the dataset labels.

We divide the above suite into two groups. The non-generative prior evaluations are MMLU, HellaSwag, Winogrande, and TruthfulQA, where the model is evaluated through constrained answer choices or short-form classification. The generative prior evaluations are IFEval, Code, Math, WildJailbreak, and WildGuardTest, which require the model to produce free-form responses that are then scored by task-specific rules or external judges.

Unless otherwise stated, aggregate retention is the unweighted mean over all of the above prior-capability categories.

Hyperparameter Choices

We sweep the values in Table 6. Hyperparameter selection uses validation scores averaged across three seeds. Whenever we examine the effect of a subset of hyperparameters, we select the remaining hyperparameters according to the highest joint utility (4).

Optimizer. All Qwen2.5-7B experiments use AdamW. For Qwen2.5-14B, we use paged 8-bit AdamW for memory efficiency.

Compute. Each run uses one NVIDIA B200 GPU with bfloat16 precision and gradient checkpointing. We use a per-device batch size of 1 and gradient accumulation to obtain the reported batch sizes. We estimate total compute for the study at approximately 3,000 GPU-hours.

Compute cost of SDFT. SDFT is more expensive than SFT because it generates on-policy student rollouts. We estimate that SDFT costs roughly 1.3× as much as SFT end-to-end and 1.9× for training, on average across Qwen2.5-7B and Qwen2.5-14B. The smaller end-to-end difference reflects the evaluation overhead shared by both methods. SDFT may also require additional runs to tune the teacher EMA parameter α\alpha, which is important for achieving its best performance.

Deferred Details (Qwen 2.5-7B)

This appendix provides additional results for the Qwen2.5-7B findings in § 5. To complement the aggregate comparison in Figure 5, Table 7 compares scores on individual benchmarks with the base model for the configurations selected by joint utility. For example, after fine-tuning on MBE, MATH drops by about 19 pp with SFT and 2 pp with SDFT, while IFEval drops by about 23 pp with either method.

TaskMethodNew taskMMLUHellaSw.Wino.TQA1IFEvalCodeMATHWJBWGTAvg
ScienceBase33.9371.7661.9970.9647.8673.2660.0972.2621.5477.2261.88
SFT, 3e-5/bs1668.57±1.1668.57 \pm1.1671.4861.3672.6745.4164.2365.9170.1917.9875.1360.48 \pm 0.27
SDFT, 3e-5/bs1670.94±0.7570.94 \pm0.7571.3860.9572.7446.7257.6762.1570.1913.4472.9558.69 \pm 0.24
ToolUseBase41.2471.7661.9970.9647.8673.2660.0972.2621.5477.2261.88
SFT, 2e-5/bs1669.76±2.5969.76 \pm2.5971.5160.4972.9342.0665.8358.4869.4117.6373.7659.12 \pm 0.39
SDFT, 3e-5/bs3269.76±2.5969.76 \pm2.5971.5061.1873.0146.9660.5963.7570.9615.7874.3459.78 \pm 0.40
MBEBase49.7471.7661.9970.9647.8673.2660.0972.2621.5477.2261.88
SFT, 5e-5/bs1673.04±1.1573.04 \pm1.1571.5560.8871.2039.2950.4045.3852.8910.6865.2251.94 \pm 1.68
SDFT, 4e-5/bs1676.46±2.5276.46 \pm2.5271.6860.9872.5845.4149.9655.0770.0111.7670.9256.49 \pm 0.59

Table 7. Per-capability performance for Qwen2.5-7B configurations selected by joint utility (4). The selected SDFT configurations use EMA parameter α=0.05\alpha= 0.05 for Science and MBE and α=0.01\alpha= 0.01 for ToolUse. The final column reports the unweighted average accuracy across the nine prior-capability categories. Subscripts indicate standard deviations.

Most of the drop is generative. Recall from Appendix § 9.§ 1 that our generative evaluations score free-form responses for instruction following (IFEval), code generation (MBPP and HumanEval), mathematical reasoning (MATH), jailbreak robustness (WildJailbreak), and harmful-prompt refusal (WildGuardTest). Figure 10 revisits the learning-rate sweep in Figure 4, reporting retention separately for these benchmarks and for the non-generative benchmarks. At the highest learning rate, the generative group drops by about 20–49 pp across the three tasks and both methods, compared with 3–8 pp for the non-generative group.

Effect of the number of epochs. Following § 5.4, Figure 11 tests whether an extra epoch at a lower learning rate can match the gains from a higher rate without the additional forgetting.

Effect of batch size. Figure 12 shows all three batch sizes for the learning-rate sweep in Figure 4. Once forgetting becomes catastrophic, the effect of batch size varies across tasks and methods, but we highlight one clean observation at lower learning rates. Below the onset of catastrophic forgetting up to a critical learning rate, batch size 16 generally nearly matches or improves on the new-task gains of larger batches without worsening retention. At a fixed epoch count, smaller batches give more optimizer updates, which may explain the stronger gains.

Results at Larger Scale on Qwen2.5-14B

Figure 13 shows that the main effects persist at 14B (recall the discussion in § 5.2), with learning rate remaining a primary driver of the learning–retention tradeoff for both SFT and SDFT. While SDFT again exhibits greater robustness, with less severe drops in some settings, it too can yield checkpoints with similar gains but forgetting ranging from catastrophic to negligible.

Figure 13. Learning-rate sweeps for Qwen2.5-14B with SFT (top) and SDFT (bottom). At each learning rate, we select the batch size that maximizes joint utility (4), with 2 epochs of training. Bars show new-task gains and average prior-task drops relative to the base model.

We repeat the comparison on Qwen2.5-14B using the hyperparameter sweep in Table 6. Figure 14 and Table 8 show that appropriately tuned SFT remains competitive, particularly on Science and ToolUse. Under joint-utility selection (4), SFT achieves somewhat smaller Science gains but also forgets less, while slightly exceeding SDFT’s mean ToolUse performance with better retention. Selecting only for new-task gain can substantially worsen retention for modest additional gains, most visibly for SFT on ToolUse. When greater new-task learning involves trading off prior capabilities, as in MBE, SDFT again offers an advantage through less severe retention losses.

Figure 14. SFT vs SDFT comparison for Qwen2.5-14B.

TaskMethodNew taskMMLUHellaSw.Wino.TQA1IFEvalCodeMATHWJBWGTAvg. accuracy
ScienceBase43.0078.8765.6275.8551.7770.3863.8676.1632.8179.8366.13
SFT, 3e-5/bs1669.49±0.5077.8065.0776.3548.3166.0372.0475.0324.9077.8664.82±0.25
SDFT, 4e-5/bs3272.78±1.0477.9364.7877.7449.8156.7571.1974.4519.0175.5263.02±0.14
ToolUseBase61.8678.8765.6275.8551.7770.3863.8676.1632.8179.8366.13
SFT, 2e-5/bs1669.41±0.5978.2564.4476.9548.1466.6767.3773.9726.5978.1864.51±0.34
SDFT, 1e-5/bs1668.73±1.1978.6465.3175.8049.4166.7165.6675.1123.2177.6064.16±0.28
MBEBase56.6178.8765.6275.8551.7770.3863.8676.1632.8179.8366.13
SFT, 4e-5/bs1676.46±1.0078.6565.9475.6442.9668.1570.8956.5715.1673.4560.82±0.38
SDFT, 5e-5/bs1681.25±1.9377.8464.8677.8548.9263.6771.6472.2116.7074.8263.17±1.05

Table 8. Per-capability performance for Qwen2.5-14B configurations selected by joint utility (4). All selected SDFT configurations use EMA parameter α=0.05\alpha= 0.05. The final column reports the unweighted average accuracy across the nine prior-capability categories. Subscripts indicate standard deviations.

Additional Correlations and Model-Family Results

We provide further evidence that drops in prior capabilities are highly correlated as we fine-tune on a new task. Figure 15 complements the Science results in Figure 6 with ToolUse and MBE at 7B; Figure 16 shows the corresponding patterns for all three tasks at 14B.

Figure 6. Most prior capabilities exhibit strongly correlated performance changes across SFT and SDFT configurations for Science. See Figure 15 for ToolUse and MBE.

Figure 15. Capability-change correlations for Qwen2.5-7B: ToolUse (left) and MBE (right). Pearson correlations are computed across two-epoch SFT and SDFT configurations.

Figure 16. Capability-change correlations for Qwen2.5-14B: Science (left), ToolUse (middle), and MBE (right), computed as above across 34 configurations per task.

We also run SFT on Llama-3.1-8B and observe the same main effects along the learning-rate axis: larger learning rates can improve new-task gains but lead to substantial prior-capability drops (Figure 17).

References

  1. [1]Rishabh Agarwal, Nino Vieillard, Yongchao Zhou, Piotr Stanczyk, Sabela Ramos Garea, Matthieu Geist, and Olivier Bachem. On-policy distillation of language models: Learning from self-generated mistakes. In International Conference on Learning Representations, volume 2024, pages 21246–21263, 2024.arxiv.org/abs/2306.13649
  2. [2]Jacob Austin, Augustus Odena, Maxwell Nye, Maarten Bosma, Henryk Michalewski, David Dohan, Ellen Jiang, Carrie Cai, Michael Terry, Quoc Le, et al. Program synthesis with large language models. arXiv preprint arXiv:2108.07732, 2021.arxiv.org/abs/2108.07732
  3. [3]Dan Biderman, Jacob Portes, Jose Javier Gonzalez Ortiz, Mansheej Paul, Philip Greengard, Connor Jennings, Daniel King, Sam Havens, Vitaliy Chiley, Jonathan Frankle, et al. Lora learns less and forgets less. arXiv preprint arXiv:2405.09673, 2024.
  4. [4]Howard Chen, Noam Razin, Karthik Narasimhan, and Danqi Chen. Retaining by doing: The role of on-policy data in mitigating forgetting. In International Conference on Machine Learning, 2026.arxiv.org/abs/2510.18874
  5. [5]Mark Chen, Jerry Tworek, Heewoo Jun, Qiming Yuan, Henrique Pondé de Oliveira Pinto, Jared Kaplan, Harri Edwards, Yuri Burda, Nicholas Joseph, Greg Brockman, Alex Ray, Sandhini Puri, Gretchen Krueger, Mikhail Petrov, Heidy Khlaaf, Girish Sastry, Pamela Mishkin, Brooke Chan, Scott Gray, Nick Ryder, Michael Pavlov, Alethea Power, Lukasz Kaiser, Mohammad Bavarian, Clemens Winter, Phil Tillet, Felipe Such, Dave Cummings, Matthias Plappert, Fotios Chantzis, Elizabeth Barnes, Ariel Herbert-Voss, William H. Guss, Alex Nichol, Igor Paino, Nikolas Tezak, Jie Tang, Igor Babuschkin, Suchir Balaji, Szymon Jain, William Saunders, Jesse Hsu, Ryan Crowder, Anjali Srinivasan, Andrew Ho, Tom Gray, Nicholas Ryder, Dario Amodei, Ilya Sutskever, and Wojciech Zaremba. Evaluating large language models trained on code. arXiv preprint arXiv:2107.03374, 2021.arxiv.org/abs/2107.03374
  6. [6]Fei Ding and Baiqiao Wang. Improved supervised fine-tuning for large language models to mitigate catastrophic forgetting. arXiv preprint arXiv:2506.09428, 2025.arxiv.org/abs/2506.09428
  7. [7]Kehua Feng, Xinyi Shen, Weijie Wang, Xiang Zhuang, Yuqi Tang, Qiang Zhang, and Keyan Ding. Sicknoweval: Evaluating multi-level scientific knowledge of large language models. arXiv preprint arXiv:2406.09098, 2024.arxiv.org/abs/2406.09098
  8. [8]Rean Fernandes, André Biedenkapp, Frank Hutter, and Noor Awad. A llama walks into the’bar’: Efficient supervised fine-tuning for legal reasoning in the multi-state bar exam. arXiv preprint arXiv:2504.04945, 2025.arxiv.org/abs/2504.04945
  9. [9]Seungju Han, Kavel Rao, Allyson Ettinger, Liwei Jiang, Bill Yuchen Lin, Nathan Lambert, Yejin Choi, and Nouha Dziri. Wildguard: Open one-stop moderation tools for safety risks, jailbreaks, and refusals of llms. Advances in neural information processing systems, 37:8093–8131, 2024.arxiv.org/abs/2406.18495
  10. [10]Dan Hendrycks, Collin Burns, Steven Basart, Andy Zou, Mantas Mazeika, Dawn Song, and Jacob Steinhardt. Measuring massive multitask language understanding. arXiv preprint arXiv:2009.03300, 2020.
  11. [11]Dan Hendrycks, Collin Burns, Saurav Kadavath, Akul Arora, Steven Basart, Eric Tang, Dawn Song, and Jacob Steinhardt. Measuring mathematical problem solving with the math dataset. arXiv preprint arXiv:2103.03874, 2021.
  12. [12]Jianheng Huang, Leyang Cui, Ante Wang, Chengyi Yang, Xinting Liao, Linfeng Song, Junfeng Yao, and Jinsong Su. 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, 2024.arxiv.org/abs/2403.01244
  13. [13]Liwei Jiang, Kavel Rao, Seungju Han, Allyson Ettinger, Faeze Brahman, Sachin Kumar, Niloofar Mireshghallah, Ximing Lu, Maarten Sap, Yejin Choi, et al. Wildteaming at scale: From in-the-wild jailbreaks to (adversarially) safer language models. Advances in Neural Information Processing Systems, 37:47094–47165, 2024.arxiv.org/abs/2406.18510
  14. [14]Hongyu Li, Liang Ding, Meng Fang, and Dacheng Tao. Revisiting catastrophic forgetting in large language model tuning. In Findings of the Association for Computational Linguistics: EMNLP 2024, pages 4297–4308. Association for Computational Linguistics, 2024.arxiv.org/abs/2406.04836
  15. [15]Jiacheng Lin, Zhongruo Wang, Kun Qian, Tian Wang, Arvind Srinivasan, Hansi Zeng, Ruochen Jiao, Xie Zhou, Jiri Gesi, Dakuo Wang, et al. Sft doesn’t always hurt general capabilities: Revisiting domain-specific fine-tuning in llms. In International Conference on Learning Representations, volume 2026, pages 46954–46992, 2026.arxiv.org/abs/2509.20758
  16. [16]Stephanie Lin, Jacob Hilton, and Owain Evans. Truthfulqa: Measuring how models mimic human falsehoods. In Proceedings of the 60th annual meeting of the association for computational linguistics (volume 1: long papers), pages 3214–3252, 2022.arxiv.org/abs/2109.07958
  17. [17]Yun Luo, Zhen Yang, Fandong Meng, Yafu Li, Jie Zhou, and Yue Zhang. An empirical study of catastrophic forgetting in large language models during continual fine-tuning. arXiv preprint arXiv:2308.08747, 2023.arxiv.org/abs/2308.08747
  18. [18]Martin Marek, Dongkyu Cho, Shikai Qiu, Rumi Chunara, Pavel Izmailov, and Andrew Gordon Wilson. Forgetting in language models: Capacity, optimization, and self-generated replay. arXiv preprint arXiv:2605.26097, 2026.arxiv.org/abs/2605.26097
  19. [19]Xiangyu Qi, Yi Zeng, Tinghao Xie, Pin-Yu Chen, Ruoxi Jia, Prateek Mittal, and Peter Henderson. Fine-tuning aligned language models compromises safety, even when users do not intend to! In International Conference on Learning Representations, volume 2024, pages 30988–31043, 2024.arxiv.org/abs/2310.03693
  20. [20]Mark Rofin, Aditya Varre, and Nicolas Flammarion. (how) learning rates regulate catastrophic overtraining. arXiv preprint arXiv:2604.13627, 2026.arxiv.org/abs/2604.13627
  21. [21]Keisuke Sakaguchi, Ronan Le Bras, Chandra Bhagavatula, and Yejin Choi. Winogrande: An adversarial winograd schema challenge at scale. Communications of the ACM, 64(9):99–106, 2021.arxiv.org/abs/1907.10641
  22. [22]Sunny Sanyal, Hayden Prairie, Rudrajit Das, Ali Kavis, and Sujay Sanghavi. Upweighting easy samples in fine-tuning mitigates forgetting. arXiv preprint arXiv:2502.02797, 2025.arxiv.org/abs/2502.02797
  23. [23]Idan Shenfeld, Mehul Damani, Jonas Hübottter, and Pulkit Agrawal. Self-distillation enables continual learning. In International Conference on Machine Learning, 2026a.arxiv.org/abs/2601.19897
  24. [24]Idan Shenfeld, Jyotish Pari, and Pulkit Agrawal. RL’s razor: Why online reinforcement learning forgets less. In International Conference on Learning Representations, 2026b.arxiv.org/abs/2509.04259
  25. [25]Qiaoyu Tang, Ziliang Deng, Hongyu Lin, Xianpei Han, Qiao Liang, Boxi Cao, and Le Sun. Toolalpaca: Generalized tool learning for language models with 3000 simulated cases. arXiv preprint arXiv:2306.05301, 2023.arxiv.org/abs/2306.05301
  26. [26]Chao-Chung Wu, Zhi Rui Tam, Chieh-Yen Lin, Yun-Nung Chen, Shao-Hua Sun, and Hung-yi Lee. Mitigating forgetting in llm fine-tuning via low-perplexity token learning. In Advances in Neural Information Processing Systems, volume 38, 2025.arxiv.org/abs/2501.14315
  27. [27]Rowan Zellers, Ari Holtzman, Yonatan Bisk, Ali Farhadi, and Yejin Choi. Hellaswag: Can a machine really finish your sentence? In Proceedings of the 57th annual meeting of the association for computational linguistics, pages 4791–4800, 2019.arxiv.org/abs/1905.07830
  28. [28]Lucia Zheng, Neel Guha, Javokhir Arifov, Sarah Zhang, Michal Skreta, Christopher D Manning, Peter Henderson, and Daniel E Ho. A reasoning-focused legal retrieval benchmark. In Proceedings of the 2025 Symposium on Computer Science and Law, pages 169–193, 2025.DOI
  29. [29]Jeffrey Zhou, Tianjian Lu, Swaroop Mishra, Siddhartha Brahma, Sujoy Basu, Yi Luan, Denny Zhou, and Le Hou. Instruction-following evaluation for large language models. arXiv preprint arXiv:2311.07911, 2023.arxiv.org/abs/2311.07911

Paper details

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

views · 1

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