arXiv:2610.30191stat.MLOct 2026

Manuscript Offprint

arXiv:2610.30191

Why Constrained Updates Still Forget: A Functional-Path Analysis of Continual SFT

Qingsen Ma, Dianyun Wang, Jiahong Liu, Irwin King

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Supervised fine-tuning adapts language models to specialized tasks but can disrupt previously acquired behavior. Existing approaches constrain parameters, gradients, or replay objectives, yet the connection between the protected object, the intervening trajectory, and retained outputs remains unclear. We develop a functional-path account that decomposes old-loss changes along realized updates into the controlled direction, gradient staleness, probe mismatch, and finite-step effects. The account yields a conditional refresh budget and identifies the restoring direction supplied by informative replay. Matched QLoRA interventions separate constraint granularity from placement before or after Adam: placement strongly affects retention across the studied code-label audits, whereas the granularity interaction depends on the endpoint. Checkpointed generation separates endpoint recovery from higher sampled-path accuracy, and matched replay schedules reveal loss exposure concealed by final scores. A sequential-task comparison extends this distinction to backward transfer: subspace regularization and projection improve average retention while trading off different old tasks; supervised replay protects both more consistently in this setting. Additional response interfaces distinguish content gains from exact-response retention. These findings connect update-level protection to task-wise behavior and motivate mitigation through explicit functional anchors, trajectory evaluation, and joint old/new auditing.

1 INTRODUCTION

Supervised fine-tuning (SFT) adapts language models to new tasks, but improvements on the fine-tuning distribution can come at the expense of behaviors the model previously performed correctly (Kotha et al., 2024; Zheng et al., 2025). This problem also arises in parameter-efficient adaptation: LoRA and QLoRA leave the pretrained weights frozen while changing the outputs of the adapted model (Hu et al., 2021; Dettmers et al., 2023). Existing approaches seek to reduce forgetting by restricting parameter changes, constraining gradients, or revisiting old examples (Kirkpatrick et al., 2017; Lopez-Paz & Ranzato, 2017; Chaudhry et al., 2018; Buzzega et al., 2020; Pan et al., 2020). These approaches protect different quantities during optimization. Understanding their effects therefore requires connecting what an update controls to which old behaviors remain available as training proceeds.

This study investigates this connection through controlled QLoRA adaptation experiments targeting behaviors verified prior to fine-tuning. Our initial observations revealed that severe forgetting can occur even when established update constraints are satisfied. In code-label adaptation scenarios, projecting actual optimizer updates onto the gradient of the "old loss" satisfies preset constraints, yet previously correct responses often disappear in large numbers. We analyze this discrepancy through a "functional-path account," precisely decomposing the change in old loss—induced by actual parameter updates—into a cached constraint term, probe mismatch, gradient staleness, and a finite-step residual. This decomposition distinguishes between quantities directly controlled by projection and changes accumulated during training. By deriving a conditional refresh-length bound and constructing cases that reach this limit, we reveal how staleness in constraints and finite-step updates drive increases in old loss. To explore which design choices alter this outcome, we independently varied constraint granularity and the point of optimizer application. Keeping probes, refresh intervals, solvers, and training configurations constant, we compared a single aggregated constraint against independent constraints for specific old-behavior categories, and examined applying constraints either to pre-Adam gradients or post-Adam parameter updates. In code-related experiments, regardless of the response evaluation metric, projecting onto pre-Adam gradients preserved more old-behavior responses than projecting onto post-Adam updates.

We also examined when old behaviors are lost and when they are recovered. Analysis of generated checkpoints revealed that methods achieving similar final accuracy can follow vastly different behavioral trajectories: one might undergo an early performance drop followed by recovery, while another maintains consistently high accuracy across observed checkpoints. Replay offers a complementary intervention for these trajectories by repeatedly presenting old-task objectives during adaptation. A theoretical result regarding conditional descent elucidates how informative replay counteracts increases in old-task loss. Empirical results demonstrate that supervised replay effectively preserves old-behavior responses during code-label adaptation. Keeping the replay samples, sample order, and total budget constant, we further discovered that even when final generation accuracy is comparable, delaying the presentation of replay samples causes the loss on old tasks to exceed baseline levels.

Finally, we extended our evaluation beyond code-label adaptation to include natural language sentiment analysis, structured information extraction, and a continual learning scenario encompassing three tasks: news classification, sentiment classification, and information extraction. These distinct response interfaces differentiate between "preserving answer content" and "precisely reproducing the required response." Sequential experiments directly measured the extent of forgetting regarding newly acquired tasks using metrics for backward transfer and per-task performance. Compared to standard supervised fine-tuning (SFT), CLoRA and OPLoRA improved average retention rates, though the distribution of gains varied; each method prioritized the retention of different early-stage tasks. In contrast, supervised replay improved retention across all early tasks in the sequence. These results establish a link between local protection mechanisms and final behavioral performance, while also revealing why aggregate metrics alone fail to accurately reflect which acquired behaviors are preserved during subsequent adaptation. We develop a functional-path understanding of catastrophic forgetting in SFT, explaining why constrained updates still forget and how replay protects previously learned behavior throughout adaptation.

References (43)