Skip to content

Local Support Learning: Mitigating Catastrophic Forgetting in LLMs Without Old DataLocal Support Learning

Hugging Face Daily Papers· arXiv:2610.02126· Assaf Ben-Kish, Akarsh Kumar, James Glass, Raja Giryes·Indexed by this site · 2026-10-05· Originally publishedAI updates

Quick read

Defenses

Based on the paper PDF (AI-generated); refer to the original

LSL uses a GMM gate to restrict the adapter to the current support; in Fig. 11, the smoothed pretraining retention rate is 98.8%.

Questions
When finetuning after large-scale pretraining, gradient updates act on all inputs of each weight matrix, not just the support of the current stage's data, thereby rewriting previous capabilities. The authors argue that replay, regularization, and methods that only reduce weight changes still struggle at pretraining scale to simultaneously learn new tasks and preserve old capabilities.
Methods
LSL equips each weight matrix with a regular adapter and a GMM gate. Φpos fits the current stage activations, and Φneg fits generic samples of no more than 1M tokens; the adapter is opened only when Φpos has higher likelihood. An exponential moving average can smooth the decision. During training the gate remains open, and adapters and gates from previous stages remain enabled.
Experiments and results
The authors state that on Qwen2.5-7B-Instruct, LSL balances new tasks and pretraining retention better than LoRA, OP-LoRA, and LwF. In Fig. 11, the smoothed retention rate is 98.8% of the base model. In Fig. 5, LoRA's pretraining score drops 44% after the first stage.
Limitations and future work
The authors point out that adapters cannot be merged into the base, and inference cost grows linearly with the number of stages P, but can be parallelized. Theory covers only a single weight matrix. The gate assumes activations per stage can be characterized by GMM, so it depends on base representations. Experimental models are Qwen2.5 1.5B, 3B, 7B, with main results on 7B.
Experimental setupQwen2.5-7B-Instruct、Qwen2.5-3B-Instruct et al. · GSM8K、HumanEval et al. · pretrained tasks score、new task score et al.
Evaluated models
Qwen2.5-7B-InstructQwen2.5-3B-InstructQwen2.5-1.5B-Instruct
Benchmarks
GSM8KHumanEvalIFEvalChemBenchSecEvalEnglish→IgboFineWeb
Metrics
pretrained tasks scorenew task scorechrFretention ratiohit rateρk
AI summaryThe researchers propose Local Support Learning (LSL), a general framework for preserving a model's existing capabilities during gradient training without access to old data. LSL pairs a standard weight adapter with a Gaussian mixture model (GMM)-based gating function so that updates act only on input activations from the current training distribution, thereby preserving both pretrained and fine-tuned capabilities across multiple training stages. The method mitigates catastrophic forgetting on LLMs up to 7 billion parameters, is memory- and compute-efficient, robust to hyperparameter choice, and shows scaling potential.

The researchers propose Local Support Learning (LSL), a general framework for preserving a model's existing capabilities during gradient training without access to old data. LSL pairs a standard weight adapter with a Gaussian mixture model (GMM)-based gating function so that updates act only on input activations from the current training distribution, thereby preserving both pretrained and fine-tuned capabilities across multiple training stages. The method mitigates catastrophic forgetting on LLMs up to 7 billion parameters, is memory- and compute-efficient, robust to hyperparameter choice, and shows scaling potential.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Gradient updates rewrite the mapping of weight matrices on all inputs; LSL uses local gates to avoid forgetting.

    When fine-tuning large pretrained models, gradient updates rewrite the mapping of each weight matrix on all inputs, thereby forgetting previous capabilities.

    • Scenario: First large-scale pretraining, then post-training such as instruction following, RLHF, domain specialization, etc. The authors argue that forgetting overwrites capabilities from pretraining and previous fine-tuning.
    • Existing shortcomings: Early methods such as replay, data-dependent regularization, and orthogonality to old data are difficult to implement when pretraining is on trillions of tokens and data is often unavailable. Recent work tries to modify pretrained weights as little as possible, but how change is defined remains open; being orthogonal only to previous fine-tuning subspaces cannot preserve pretrained capabilities, and using top-k singular vectors of weights to approximate the pretrained orthogonal complement is also considered insufficient by the authors (Appendix C).
    • Observation: The preservation goal is that updates act only on the support of the current stage's distribution. The authors claim that Adam and Muon still produce matrix updates acting on all inputs; when old inputs have nonzero dot products with current samples, their logits are rewritten.
    • Approach: Propose Local Support Learning (LSL). A regular adapter reduces loss as usual, and a gate enables the adapter only on activations from the current training distribution, thus without accessing old data. Data within a stage is IID, and stages are streamed; memory per stage must be bounded, otherwise a replay buffer could bypass the problem.
  2. What related research exists?

    Related work either relies on old data or only reduces weight changes, still applying updates to all inputs.

    The paper discusses related work in the introduction, Section 2, and Appendix A.

    Post-training and the introduction of forgetting

    • After large-scale pretraining, instruction following, RLHF, domain and multilingual adaptation are performed (Wei et al., 2022; Ouyang et al., 2022; Rozière et al., 2024; Üstün et al., 2024). The authors cite Biderman et al. (2024): post-training may overwrite pretrained capabilities; LoRA forgets less than full fine-tuning, but still forgets and reduces learning capacity.
    • McCloskey & Cohen (1989) introduced catastrophic forgetting. Early methods used replay buffers, data-dependent regularization, or optimization in subspaces orthogonal to old gradients/old data (Kirkpatrick et al., 2017; Farajtabar et al., 2019; Saha et al., 2021). The authors argue that replay representing pretraining is infeasible; Saha et al. (2021) is effective at small scale, but infeasible with the full pretraining corpus.

    Preservation methods on large models

    • LoRA (Hu et al., 2021) places updates in a low-rank subspace. OP-LoRA (Xiong & Xie, 2025) and Nayak et al. (2025) constrain updates to directions orthogonal to the top-k singular vectors of pretrained weights. The authors argue that k is heuristic, and the remaining vectors may still be important; Appendix C states that this approximation is insufficient.
    • O-LoRA (Wang et al., 2023), InfLoRA (Liang & Li, 2024) make adapters orthogonal to each other, only mitigating forgetting between fine-tuning stages. LwF (Li & Hoiem, 2017) distills on fine-tuning data, penalizing functional drift relative to the base model's outputs.
    • The authors argue that these methods share the commonality of applying gradient updates to all inputs.

    Other approaches in Appendix A

    • Replay-based methods can only protect capabilities in replayed samples, and approximating the pretraining distribution during fine-tuning is unrealistic. On-policy RL (Shenfeld et al., 2025; 2026; Chen et al., 2026) is limited to RL, relies on in-context learning, and requires full rollouts at each step; the authors consider it complementary to LSL.
    • GRACE (Hartvigsen et al., 2023) uses activation keys with delayed radii, and WISE (Wang et al., 2024) routes by activation scores. The authors state that both edit a single fact on a single layer; LSL trains the entire model on the full fine-tuning data.

    Baselines and benchmarks

    • Experimental baselines are LoRA, OP-LoRA, and LwF. The authors exclude O-LoRA, which does not target pretraining preservation, and replay, which is impractical in the pretraining setting. New tasks use SecEval, chrF (English→Igbo), ChemBench; pretrained capabilities use GSM8K, HumanEval, IFEval.

    The authors position this paper as: without accessing old data, using support estimation to restrict updates to the input regions that produced those updates, rather than merely reducing changes in weight space.

  3. How does the paper address this problem?

    Using a per-matrix dual GMM gate, the adapter is opened only on the current stage's activation support.

    Local Support Learning (LSL) pairs, at each new stage, a weight adapter that reduces loss as usual with a gate that estimates the support of the current data. At inference, the adapter is only added to token activations that fall within that support.

    Problem setup and global updates

    • Learning proceeds in P stages. The formal evaluation is the average performance across all tasks in all stages. Within a stage, data is accessed IID; across stages, learning must be streaming, with bounded memory per stage. Without this constraint, one could store all old data and retrain repeatedly, but this is impractical at pretraining scale.
    • Toy setup (Fig. 2): two-dimensional inputs, six classes, linear classifier, cross-entropy. Pretrain on four classes, then finetune on the other two. Continuing full training distorts the first-stage decision boundary.
    • For pretraining samples, the change in logits is proportional to the dot product between the current training sample and that sample; a nonzero dot product produces interference. The authors state that after Adam scales gradients and Muon orthogonalizes gradients, the result is still a matrix update applied to all inputs.
    • Standard finetuning is equivalent to the gate always being open. The authors no longer estimate the subspace of old data, but instead estimate the region where the current data lies and restrict the update to that region.

    Theoretical motivation

    • Appendix E, under the worst-case test distribution, decomposes the gate error into deficit and excess. The training objective directly handles deficit, while excess is unseen. Excess is the region outside the training distribution where the gate is incorrectly open, which the authors use to quantify forgetting.
    • After comparing several hypothesis families, the authors argue that density estimation can recover the optimal gate, and analyze the cost. Unions of balls of fixed radius around training points bound the excess to a shell outside the support, but the complexity grows with the number of tokens. LSL instead uses a parameterized gate whose size grows only with the number of stages P.
    • The toy experiments use a union of balls as the support. The authors state that the model fully adapts to the finetuning distribution with zero interference with the pretraining distribution, and the decision boundary changes only near the finetuning support (Fig. 2 right).

    GMM gate

    • Each weight matrix has its own gate. Φpos is fit with EM on the current stage inputs, and Φneg is fit on a small set of generic pretraining samples. The open region is M={x∣Φpos(x)−Φneg(x)>0}, i.e., the GMM with higher likelihood wins, so no global threshold needs to be tuned.
    • The reference set need not be related to the model's original pretraining data. The authors state that empirically it need not exceed 1M tokens, and that this is about 0.0000067% of Qwen's pretraining set. The intuition is that the gate need not cover the entire pretraining support, only estimate the distribution width (Fig. 1 right); in high dimensions, Φneg need not be wider in every direction.
    • The authors state that a conventional MLP is not suitable for this gate (Fig. 1). A per-token GMM has no temporal continuity, so exponential moving average smoothing is used, and routing to that stage's adapter occurs only when the smoothed value exceeds 0.5. The authors state that the main source of retention is the GMM, with smoothing only supplementary.

    Training, inference, and implementation

    1. Algorithm 1: first fit Φneg on reference data; at each stage, fit the adapter by gradient descent, then fit Φpos on the model with that adapter attached, then mount it onto the base. Adapters and GMMs from previous stages remain enabled during current training.
    2. Training data all comes from the new task, and the gate remains open, to avoid initializing Φpos before the adapter has learned new representations. The authors state this creates a train–inference mismatch, but empirically it does not affect performance. Adapter fitting is the same as standard LoRA.
    3. Algorithm 2 operates per token and per module: first compute the pretraining weight output, then for each seen stage compute the gate, apply smoothing, and decide whether to add that adapter. Prefill can be parallelized like an MLP.
    4. Appendix B: naive persistent memory grows with P, number of layers, number of components, and the square of the hidden dimension. The acceleration compresses the gate input to a lower dimension using Johnson–Lindenstrauss and uses diagonal covariance. In Appendix D, the projection dimension is 256. Matrices with the same input can share a gate, and the authors state that in Qwen/LLaMA architectures the number of gates is reduced by 43%.
  4. What experiments did the paper conduct?

    On 7B, the authors claim LSL can learn new tasks and retain old capabilities; after smoothing, the retention rate is 98.8%.

    Experimental Setup

    • Models: Main experiments use Qwen2.5-7B-Instruct. Scale experiments additionally use Qwen2.5-3B-Instruct and 1.5B-Instruct. Unless otherwise specified, results are averaged over 3 seeds (Appendix D).
    • Tasks and metrics: Cybersecurity uses SecEval multiple choice, English→Igbo uses chrF, chemistry uses ChemBench multiple choice. The y-axis of Fig. 4 is the average score of GSM8K, HumanEval, IFEval. The retention rate in Fig. 7 is the ratio of performance before and after fine-tuning.
    • Baselines and selection: LoRA, OP-LoRA, LwF. Hyperparameters are selected only by validation performance on new tasks; retention benchmarks do not participate in selection. OP-LoRA's k is chosen from 16, 128, 512; LwF's KL coefficient is chosen from 0.1, 0.3, 1.0, 3.0, 10.0.
    • LSL configuration: Number of components is chosen from 16 and 32, smoothing coefficient from 0.1, 0.3, 1.0. After selection, Φpos is 32 for chemistry and cybersecurity, 16 for Igbo; Φneg is 32 for all. Learning rate is 1e-4 for all. Chemistry and Igbo: batch size 32, rank 128, 3 epochs; cybersecurity: batch size 16, rank 512, 1 epoch (Table 3).
    • Multi-stage: Order is Igbo, chemistry, cybersecurity. Learning rate 1e-4, batch size 32, rank 128, Φpos 16 components, Φneg 32, smoothing coefficient 0.1. Evaluation sample cap is 300 per task.
    • Unspecified items: The paper does not specify the full sample sizes of each public benchmark, nor HumanEval's pass@k. Efficiency experiments are done on Nvidia B200.

    Main Results

    ConditionReported ResultSource
    No GMM (Plain LoRA)Pretraining score 55.3, 76.6% of baseFig. 11
    LSL, no temporal smoothingPretraining score 69.8, 96.6% of baseFig. 11
    LSL, with temporal smoothingPretraining score 71.1, 98.8% of baseFig. 11
    Multi-stage LoRA, after task 1Pretraining task score drops 44%Fig. 5
    Multi-stage LoRA, after task 1 then two stagesTranslation score drops 8%Fig. 5
    Multi-stage LoRA, after task 2 then one stageChemistry score drops 5%Fig. 5
    Multi-stage LoRA, zero-shot after task 1Cybersecurity score drops 11%Fig. 5
    • The authors claim that in Fig. 4, LSL learns new tasks on chemistry, English→Igbo, and cybersecurity, and maintains near-optimal pretraining retention; LoRA can adapt but forgets on all three; OP-LoRA is close to LoRA; LwF is better than weight-based methods but still lags LSL. Scatter coordinates are not marked in the text. Fig. 11 does not specify downstream tasks, nor does it separately specify the model.
    • The authors attribute baseline forgetting to gradient updates acting on all inputs. In multi-stage, the authors claim LSL retains task gains after the task stage ends and avoids the zero-shot drop in cybersecurity after task 1; the text does not give specific scores for LSL in Fig. 5.
    • The selection protocol optimizes only new task validation performance. The authors claim this compares the learning-forgetting trade-off of each method under full learning capacity, which is most evident in Fig. 6.

    Hyperparameters and Scale

    • What was tested: Fig. 6 scans learning rate, adapter rank, and batch size, with lr=1e-5 and 1e-4, rank=8/32/128, bs=8/16/32 marked. Fig. 7 compares the ratio of pretraining task performance before and after fine-tuning on 1.5B, 3B, 7B.
    • Results: The text does not give exact percentages for each point in these two figures. The authors claim LSL learns with full learning capacity across all scans without sacrificing pretraining capabilities; conventional fine-tuning trades off learning and forgetting.
    • Author interpretation: The authors claim LSL works at all tested scales and improves with scale; LoRA also improves with scale but more slowly and is below LSL at every scale.

    Gating Ablation

    • Locality: Fig. 9 right replaces GMM with union of spheres (UoS) and MLP. MLP is a two-layer hidden network with dimensions 256 and 128 (Appendix D). The authors claim GMM and UoS are near-optimal in retention and learn at full capacity, while non-local MLP has worse retention. UoS is about 5.67GB, GMM totals 13.8MB, base weights about 14GB (bfloat16).
    • OOD classification: Fig. 9 left is the accuracy difference of MLP minus GMM on intermediate layers: chemistry positive class +3.8, Fineweb negative class −0.0, GSM8K −20.4, HumanEval −14.4, IFEval −7.2. The authors claim MLP is slightly better in-distribution and worse on three OOD pretraining tasks. Absolute accuracies are not given.
    • Single router: Fig. 10 uses one gate after the embedding layer to control all adapters. The authors claim it recovers only 50–77% of LSL's new task gains and also worsens retention on cybersecurity. The authors attribute the main trend to fewer new-task tokens identified by surface features, and a single error propagating to every adapter.

    Other Ablations and Analysis

    • Fig. 11: Even with as few as 2 components, retention is near-optimal; the text does not list exact scores for each K. Smoothing mainly further reduces pretraining task hit rate.
    • Sec. 4: The gate opens about 16% on OOD pretraining task tokens, about 5% after smoothing.
    • Fig. 8 (B200, Qwen2.5-7B-Instruct): Inference LoRA 411 ms, LSL 497 ms; memory LoRA 77.0 MB, GMM 13.8 MB, LSL 90.8 MB; 1M token training LoRA 5:22, FitGMMs 8:23, LSL 13:45. The authors claim an extra about 6.9 MB per stage, and claim that adding GMM fitting makes total training time ×1.64. In the figure, 13:45 equals the sum of 5:22 and 8:23, which is not the same multiple as 13:45/5:22. The introduction claims memory does not exceed one LoRA adapter, which is not the same as Fig. 8's 90.8 MB vs 77.0 MB.
    • Table 1 (chemistry data): ρk is 1.70% at k=512, 0.44% at k=128, 0.27% at k=64, 0.12% at k=16, 0.06% at k=4, 0.02% at k=1. The authors claim at least 98.3% of update energy is already in the orthogonal subspace, and use this to explain OP-LoRA being close to LoRA.
    • Appendix H: On chemistry fine-tuned models, in-distribution per-token output changes are similar for LSL and LoRA; on pretraining benchmarks, LSL changes are smaller, and the authors claim sometimes by an order of magnitude. The text does not give KL values.
    • Appendix I: UoS with global radius performs poorly. Calibration constraints are TPR threshold 0.17, FPR threshold 0.03, and the authors claim this set gives optimal results.
  5. What are some points that can be further explored?

    Inference cost grows with the number of stages, the theory is limited to a single matrix, and it depends on the base representations.

    Limitations and future directions noted by the authors

    • Adapters cannot be merged into the base weights, and inference cost grows linearly with the number of stages P; this computation can be parallelized, trading compute for inference time. P counts stages, not tasks, and multiple tasks can be learned jointly within one stage (Section 6).
    • The theoretical motivation targets a single weight matrix; generalization to a full multilayer network has experimental support but no formal result (Section 6).
    • LSL depends on the quality of the base representations, because the gate assumes each stage's activations can be characterized by a GMM; in scale experiments, larger models retain better (Section 6, Fig. 7).
    • Future directions include larger models, other modalities, reinforcement learning objectives, and hundreds of stages. The authors argue the latter could lead to test-time training, which is currently avoided in practice because forgetting is unpredictable, and could potentially store new knowledge in weights rather than context (Section 6).
    • The authors also list further directions to explore: other local gate functions, and better acceleration (Section 6).

    Experimental coverage

    • Models tested are Qwen2.5-1.5B-Instruct, 3B-Instruct, and 7B-Instruct; the main and efficiency experiments are on 7B, with results averaged over 3 seeds (Section 5.1, Appendix D, Fig. 8).
    • New tasks are chemistry instructions, English→Igbo, and cybersecurity instructions; pretraining retention uses GSM8K, HumanEval, and IFEval. The multi-stage order is Igbo, chemistry, cybersecurity, with an evaluation sample cap of 300 per task (Section 5.1, Appendix D).
    • Comparison baselines are LoRA, OP-LoRA, and LwF. The authors explicitly exclude O-LoRA, which does not target pretraining retention, and replay buffers, which are impractical in the pretraining setting (Section 5.1, Appendix A).
    • Hyperparameter sweeps include learning rate, batch size, adapter rank, and GMM component count and smoothing coefficient; selection considers only new-task validation performance (Section 5.1, Appendix D, Fig. 6, Fig. 11).
    • The paper does not report the exact coordinates of points in Fig. 4 and Fig. 7, does not report the full sample sizes of the public benchmarks or pass@k for HumanEval, and does not report LSL's specific scores in Fig. 5.
  6. Summarize the main content of the paper

    LSL uses a GMM gate to restrict adapters to the current data support, to mitigate multi-stage forgetting.

    LSL is a framework for preserving previous capabilities during post-training without accessing old data.

    • Problem: Gradient updates act on all inputs of the weight matrix; when old inputs are not orthogonal to the update, previous mappings are rewritten. The authors define the preservation goal as: updates remain only within the support of the current stage's distribution.
    • Method: Each new stage trains a regular adapter and uses a dual GMM gate to decide whether to enable it. Φpos fits current activations, Φneg fits a small set of generic pretraining samples. The gate is open during training; at inference, enabled adapters are added per stage, and decisions are smoothed with a moving average.
    • Results: The authors claim that on Qwen2.5-7B-Instruct, LSL can learn chemistry, English→Igbo, and cybersecurity while preserving math, code, and instruction following, whereas LoRA, OP-LoRA, and LwF cannot do both. In Fig. 11, without GMM the pretraining score is 76.6% of base, and with smoothing LSL is 98.8%. In Fig. 5, LoRA's pretraining score drops 44% after the first stage, and the authors claim LSL retains gains from each stage.
    • Other: The authors claim learning rate, rank, and batch size no longer force a learning-forgetting trade-off (Fig. 6). Retention from 1.5B to 7B improves with scale, exact values not marked (Fig. 7). GMM adds 13.8MB memory (Fig. 8). A single router recovers only 50–77% of new task gains (Fig. 10).
    • Author conclusion: Local support updates can preserve pretrained and already fine-tuned capabilities across multiple post-training stages, with memory not growing with token count. The authors also note that inference cost grows with the number of stages, theory is limited to a single matrix, and it depends on whether base representations can be fitted by GMM.
Read originalhuggingface.co