Soup to go: mitigating forgetting during continual learning with model averaging
Anat Kleiman, Gintare Karolina Dziugaite, Jonathan Frankle, Sham Kakade, Mansheej Paul
TL;DR
Catastrophic forgetting in sequential task fine-tuning is mitigated by Sequential Fine-tuning Averaging (SFA), a data-free model-merging approach that periodically averages the current training state with an earlier checkpoint. SFA formalizes parameter updates as θ_{t+1} = (1−β) θ_t^* + β θ_o after every interval of pT steps and at the end, linking its behavior to L2-regularization and Bayesian interpretations. Across both image and language tasks, SFA matches or surpasses data-buffer baselines and outperforms other merging methods, with stronger past-task retention when averaging occurs during training (p<1). The approach reduces memory and computation compared to rehearsal while providing insights into the role of continual averaging in learning dynamics, and shows applicability to diverse domains including Law, Math, and Code in LLM fine-tuning contexts. Overall, SFA offers a practical, scalable alternative for continual learning with strong empirical performance and solid theoretical intuition.
Abstract
In continual learning, where task data arrives in a sequence, fine-tuning on later tasks will often lead to performance degradation on earlier tasks. This is especially pronounced when these tasks come from diverse domains. In this setting, how can we mitigate catastrophic forgetting of earlier tasks and retain what the model has learned with minimal computational expenses? Inspired by other merging methods, and L2-regression, we propose Sequential Fine-tuning with Averaging (SFA), a method that merges currently training models with earlier checkpoints during the course of training. SOTA approaches typically maintain a data buffer of past tasks or impose a penalty at each gradient step. In contrast, our method achieves comparable results without the need to store past data, or multiple copies of parameters for each gradient step. Furthermore, our method outperforms common merging techniques such as Task Arithmetic, TIES Merging, and WiSE-FT, as well as other penalty methods like L2 and Elastic Weight Consolidation. In turn, our method offers insight into the benefits of merging partially-trained models during training across both image and language domains.
