Manuscript Offprint

arXiv:2610.22293

Towards Continual Learning: Mitigating Forgetting With Subspace Tuning

Arnav Chavan, Kusha Sareen, Rishabh Tiwari, Abhranil Chandra, Johan Obando-Ceron, Kurt Keutzer, Scott Niekum, Inderjit S Dhillon, Devvrit Khatri

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

Arnav Chavan 1^{1} Kusha Sareen 2,3^{2,3} Rishabh Tiwari 1^{1} Abhranil Chandra 5^{5} Johan Obando-Ceron 2,4^{2,4} Kurt Keutzer 1^{1} Scott Niekum 5^{5} Inderjit S Dhillon 6^{6} Devvrit Khatri 7,8^{7,8}

1^{1}UC Berkeley 2^{2}Mila 3^{3}McGill University 4^{4}Université de Montréal 5^{5}UMass Amherst 6^{6}Google 7^{7}UT Austin 8^{8}Mirendil

Large language models (LLMs) acquire new skills through fine-tuning, but it can destroy capabilities they already have: catastrophic forgetting remains a central obstacle to continual learning in LLMs. Recent works connect forgetting to how far, and along which directions, fine-tuning moves the weights. On-policy methods such as reinforcement learning and on-policy distillation avoid updating the principal singular directions of weight matrices and thus forget less. In contrast, SFT concentrates updates along these directions and is susceptible to catastrophic forgetting. In this work, we introduce Subspace Tuning (SST), which restricts each weight update to the bottom singular subspace, eliminating changes along the principal directions. SST is optimizer-agnostic and composes well with fine-tuning recipes including SFT and self-distillation. SST combines tight subspace protection, dense gradient estimation, and a simple refresh mechanism, enabling stronger learning than prior orthogonal fine-tuning methods. With these mechanisms, protecting as much as 99% of the weight subspace substantially improves retention while preserving strong target-task performance. This behavior strengthens with model and data size and nearly eliminates forgetting in the large-model regime. SST also keeps the model close to its base distribution, inducing 2–4× less KL drift than the baseline recipes. Overall, SST advances the learning–forgetting Pareto frontier, making it a practical default for fine-tuning pre-trained language models.

Correspondence: arnavchavan@berkeley.edu, devvrit.03@gmail.com

Figure

projects the applied update

singular directions of W (sorted)

Figure

New task accuracy gain (pp)

Figure 1: SST freezes the top of each weight matrix's spectrum, and improves learning–forgetting trade-off across fine-tuning recipes. Left: the method. SST projects the update on low energy singular directions of each weight matrix. Right: the result on Qwen3-8B, averaged over four domains (Table 4). Both axes show changes from the base model in percentage points (pp); higher is better. Circles denote training without SST, stars denote training with SST, and the black triangle marks the base model.

1 Introduction

Large language models (LLMs) are useful across a rapidly growing range of applications, including assistants, coding, search, science, and finance [1, 8, 20]. Many of these applications follow the same paradigm. A small number of strong base models are pre-trained once [7, 49, 56], and each use case then fine-tunes one of them on specialized data [6, 15, 16, 36, 46]. Fine-tuning has thus become a standard way to specialize an LLM for a target task or domain.

This paradigm comes at the cost of catastrophic forgetting. As a model learns a new task, capabilities acquired over trillions of training tokens, including instruction following, coding, reasoning, and general knowledge, can degrade severely [24, 28, 29]. This phenomenon is particularly difficult to address because the original pre-training data is typically unavailable [23], while post-hoc repair may recover only part of what was lost [28, 44] (Sec. 3). More broadly, forgetting stands in the way of continual learning. The next generation of foundation models should be able to improve over their deployed lifetime, adding new skills, domains, and corrections without sacrificing what they already do well.

Recent works provide insights into the origin of this forgetting. The leading singular directions of pretrained weight matrices have been associated with important model functionality [30, 43], while reinforcement learning has been found to fine-tune relatively small parameter subnetworks [33]. More directly, RLVR updates concentrate outside the principal directions and induce relatively little spectral drift compared with SFT [60]. On-policy RL also stays closer to the base policy and forgets less than SFT [45]. These observations suggest a simple hypothesis. Preserving the principal singular subspaces of pretrained weights may preserve prior capabilities while leaving sufficient capacity elsewhere in weight space to learn new ones. Existing methods induce this behavior indirectly. For example, SDFT [44] trains the model on its own rewrites of the training data, so that supervision stays close to the model's output distribution—approximately on-policy, and hence expected to forget less. This helps on non-reasoning instruct models, but we find substantial forgetting remains on longer reasoning traces (Sec. 3).

We introduce Subspace Tuning (SST), which restricts weight updates to a non-principal subspace of the weight spectrum. Concretely, let ΔW\Delta W be the optimizer's final update to a weight matrix WW, and let UkU_k and VkV_k contain the top-k left and right singular vectors of WW. SST applies the projected update

Π(ΔW)  =  (I−UkUk⊤)ΔW  (I−VkVk⊤)(1)\Pi(\Delta W)\;=\;(I-U_{k}U_{k}^{\top})\Delta W\;(I-V_{k}V_{k}^{\top}) \tag{1}

in place of ΔW\Delta W. The two projectors remove from the update any component along the principal directions, on the output and input sides respectively, so every applied step stays in the non-principal subspace (Sec. 2.1). Importantly, SST constrains the final optimizer update rather than the raw gradient. Stateful optimizers such as Adam rescale the gradient coordinate-wise before it reaches the weights, so a projected gradient does not produce a projected step and part of the update returns to the directions we mean to freeze (Sec. 2). Because the projection acts on the applied update, SST is optimizer-agnostic and composes with any fine-tuning recipe, with no other change to training.

We conduct extensive empirical analysis and establish the following properties of SST (Sec. 3):

  • SST learns new tasks and retains prior capabilities. Despite protecting the top 99% of singular directions, SST matches the target-task accuracy of unconstrained fine-tuning, while retaining the prior capabilities that standard fine-tuning severely degrade (Figure 1). This behavior holds across Science, Medicine, Pathology, Finance, and Tool Use, across SFT and SDFT, and with both Adam and Muon; Tables 4 and 1 provide the full per-domain results. We hypothesize that such constrained learning is possible because LLMs are heavily over-parameterized [2, 22], leaving enough capacity in the non-principal subspace to fit a new task. When a fixed complement becomes restrictive, a refresh step recomputes the SVD on the current weights, realigning the protected subspace so adaptation can continue (Section 2.3).

  • SST scales well. With more training data, SFT forgets progressively more while SST stays flat and still reaches higher target-task accuracy (Figure 3). With larger models, forgetting under SST shrinks even further, staying within ∼1%\sim 1\% of the base model from 8B onward (Figure 2).

Model Size: Prior Capability

Figure

Model Size: New Task Accuracy

Figure

Figure 2: Scaling model size. Qwen3 models from 1.7B to 14B fine-tuned on Science for five epochs. SFT forgets heavily at every scale, whereas forgetting under SST shrinks as models grow and nearly vanishes from 8B onward. SST also reaches higher new-task accuracy at every size.

  • SST stays close to the base model. It induces 2−4×2-4\times less KL divergence from the pretrained model than unconstrained recipes and preserves behavior that accuracy alone does not capture. A thinking model fine-tuned with SST keeps its natural reasoning length where SFT collapses it, and adding SST to SDFT reduces fabricated reference-solution attributions (Figure 8).

  • SST makes sequential fine-tuning cumulative. Over two- and three-stage fine-tuning chains of the above domains, each skill rises when it is trained and holds its level as later stages are learned, whereas under SFT each new stage degrades the dormant ones (Figure 9,10).

Overall, this work shows that catastrophic forgetting is not an inevitable consequence of learning, but depends on where the update lands in weight space, and provides a simple, practical method for improving capability retention while acquiring new capabilities..

References (57)