本地支持学习

·

研究论文 · 2026/10/05

本文探讨大型预训练模型中的灾难性遗忘问题。通过将遗忘视为每个权重矩阵输入空间中的几何问题,作者发现了一个自然的保留目标,在该目标下梯度优化器产生的更新是次优的。基于此观察,提出了局部支持学习(LSL),一种通用框架,可在不访问先前数据的情况下增强基于梯度的训练以保留先前能力。在新学习阶段,LSL 结合两个角色不同的组件:一个标准权重适配器,照常训练以最小化损失;一个门控函数,仅在其自身训练分布的输入激活上启用适配器,使更新局部于该分布。关键挑战在于门控必须路由所有学习阶段的数据,而仅训练当前阶段的数据。作者通过基于高斯混合模型(GMM)的门控解决此问题,其似然在远离训练数据时迅速衰减,从而自然倾向于在先前阶段的数据上保持关闭。实验表明,这种训练后方法可解决高达 70 亿参数的 LLM 中的遗忘问题,在多个训练阶段保留预训练和微调能力,同时内存和计算高效、对超参数选择鲁棒,并展现出扩展潜力。

该研究为大型预训练模型中的灾难性遗忘问题提供了一种新颖且实用的解决方案,无需访问先前数据即可保留多阶段能力,且高效鲁棒,对持续学习和模型部署有重要价值。

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.

阅读原文

参与讨论