Manuscript Offprint

arXiv:2610.02126

Local Support Learning

Assaf Ben-Kish, Akarsh Kumar, James Glass, Raja Giryes

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

ABSTRACT

We explore catastrophic forgetting in the context of large pre-trained models. By considering forgetting as a geometric problem in the input space of each weight matrix, we uncover a natural retention objective under which updates produced by gradient-based optimizers are suboptimal. Following this observation, we propose Local Support Learning (LSL), a general-purpose framework that augments gradient-based training for retention of prior capabilities without access to prior data. During a new learning phase, LSL pairs two components with distinct roles: a standard weight adapter, trained as usual to minimize the loss, and a gating function that enables the adapter only on input activations from its own training distribution, making the update local to that distribution. The key challenge is that this gate must route data from all learning phases while training only on data from the current one. We address this with a gate based on a Gaussian Mixture Model (GMM), whose likelihood decays rapidly away from its training data, giving it a natural tendency to stay closed on data from prior phases. We show that this post-training approach can resolve forgetting in LLMs of up to 7 billion parameters, retaining both pretrained and finetuned capabilities across multiple training phases, while being efficient in memory and compute, robust to hyperparameter choice, and showing scaling potential.

Website and code: https://assafbk.github.io/lsl

Figure

Figure 1: Avoiding catastrophic forgetting with Local Support Learning. (Left) We augment gradient-based training with a mechanism that retains prior capabilities without access to prior data. The key component is a gating function that enables the weight adapter only on input activations from its training distribution. Interestingly, conventional MLP classifiers are not well suited for this task. Instead, we propose a GMM-based gate that tends to stay closed on prior data it has never encountered. (Right) 1D illustration of the GMM-based gate. Φpos\Phi_{pos} (orange) captures the distribution of the finetuning data, while the wider Φneg\Phi_{neg} (blue) dominates elsewhere - ensuring that data outside the current distribution is routed only to the pretrained weights.

1 INTRODUCTION

The modern deep learning paradigm first pretrains a neural network on a large dataset and then adapts it to desired tasks and behaviors through additional finetuning phases (Ouyang et al., 2022; Wei et al., 2022; Rozière et al., 2024). However, neural networks tend to forget previously learned capabilities when adapting to new data - a phenomenon known as catastrophic forgetting (McCloskey & Cohen, 1989). Forgetting hinders multi-phase learning, as capabilities acquired during pretraining and previous finetuning phases often get overwritten (Biderman et al., 2024).

†^{\dagger}Work done while visiting the Spoken Language Systems group at MIT CSAIL

Figure

Figure 2: Catastrophic forgetting - toy example. (Data) We train over six classes in two phases: “Pretraining” (points in blue), and “Finetuning” (points in red). (Pretrained) Classifier trained on the pretraining data. The background colors are the learned decision boundaries - depicting a perfect score on the observed distribution. (Pretrained + FT) We continually train the model on two other classes. The model performs well on data from the second phase (red), yet the boundaries learned during the first phase are heavily deformed - a clear case of forgetting. (Pretrained + LSL) Same experiment, this time with LSL. We restrict weight updates to the region of the input space that produced them, leaving model behavior unchanged elsewhere - thus achieving a perfect score.

Catastrophic forgetting is a long-standing problem, studied well before pretraining became popular. Among earlier mitigation approaches, the most successful augment the model with buffers of previous data samples (Chaudhry et al., 2019a), apply data-dependent regularization (Kirkpatrick et al., 2017), or impose optimization constraints (Farajtabar et al., 2019). However, these auxiliary mechanisms scale poorly, making them impractical in the modern paradigm, especially for retaining capabilities from the large-scale pretraining phase. Instead, mitigation approaches now aim to minimize change in pre-trained networks (Xiong & Xie, 2025; Nayak et al., 2025; Wang et al., 2023; Liang & Li, 2024), yet the exact definition of change, and how to prevent it, remain open problems.

By considering change at the level of a single weight matrix, we can analyze the effect of an update on the full input-output mapping of the matrix. In the context of large-scale pretraining, this perspective yields a natural retention objective: updates should affect only the input region required for learning, i.e., the support of the current phase's distribution. We show that updates produced by gradient-based optimizers often act outside this support: any prior input not orthogonal to the update has its mapping altered, which may lead to forgetting. Existing works that enforce orthogonality to all prior inputs work in small-scale settings (Saha et al., 2021), yet become infeasible at pretraining scale. Without assuming access to pretraining data, recent approaches either protect only previous finetuning phases, keeping updates orthogonal to them (Wang et al., 2023; Liang & Li, 2024), or approximate the orthogonal complement of the pretraining data from the weights (Xiong & Xie, 2025; Nayak et al., 2025) - an approximation we find insufficient (App. C), calling for a new approach.

Motivated by this, we propose Local Support Learning (LSL), a general-purpose framework that augments standard gradient-based training to retain prior capabilities without access to prior data. During a new learning phase, LSL pairs two components with distinct roles: a standard weight adapter (Hu et al., 2021), trained as usual to minimize the loss, and a gating function that estimates the support of the current data in the adapter's input space. At inference, the gate applies the adapter only to tokens whose activations fall within that support. It is a difficult challenge given that the gate cannot train on data from prior phases. We address this with a gate based on Gaussian Mixture Models (GMMs). The key idea is that a Gaussian's density decays exponentially with distance from the training data, providing the gate an inductive bias to stay closed on inputs it has never seen.

To demonstrate the effectiveness of our approach, we finetune LLMs of up to 7 billion parameters on diverse tasks and show that they are able to learn at full capacity without degrading capabilities acquired during pretraining including math, coding, and instruction following. This holds even across multiple finetuning phases, where LSL retains both pretrained and previously finetuned capabilities. In addition, retention is largely unaffected by the choice of hyperparameters. This is in contrast to existing methods, where the learning rate, adapter rank, and batch size induce a direct trade-off between learning and forgetting. On the practical side, LSL exhibits desirable scaling trends and is highly efficient in both memory and compute. It requires no more memory than a LoRA adapter while offering fast inference, competitive training time, and straightforward parallelization.

Our main contributions are four-fold: (i) We analyze forgetting in modern large-scale settings and uncover a natural retention objective that existing methods do not satisfy, providing a possible explanation for their limited ability to mitigate forgetting. (ii) We propose Local Support Learning, a general-purpose framework that avoids forgetting by restricting weight updates to the region of the input space that produced them. (iii) We motivate our approach by providing a theoretical connection between optimal gates and density estimators. (iv) We evaluate LSL at scales of up to 7 billion parameters, demonstrating its effectiveness, robustness, and efficiency.

References (68)