Weighted Ensemble Models Are Strong Continual Learners
Imad Eddine Marouf, Subhankar Roy, Enzo Tartaglione, Stéphane Lathuilière
TL;DR
The paper tackles catastrophic forgetting in class-incremental learning (CIL) with pretrained transformers by proposing Continual Model Averaging (CoMA), a simple weight-space ensemble that blends the previous-task model with the current-task fine-tuned model to preserve past knowledge while allowing new learning. It further improves this approach with Continual Fisher-weighted Model Averaging (CoFiMA), which uses the diagonal Fisher information to weight parameter contributions according to their importance to each task, enabling a more stable retention-plasticity balance. Across four benchmarks and both supervised and self-supervised pretraining, CoMA delivers strong gains over state-of-the-art PTM-based CL methods, while CoFiMA sets new records and approaches joint-training performance in several settings. The results demonstrate that a compact, post-hoc weight-averaging strategy can effectively mitigate forgetting in continual learning without extensive data rehearsal or architectural changes, making it practical for large pretrained models.
Abstract
In this work, we study the problem of continual learning (CL) where the goal is to learn a model on a sequence of tasks, such that the data from the previous tasks becomes unavailable while learning on the current task data. CL is essentially a balancing act between being able to learn on the new task (i.e., plasticity) and maintaining the performance on the previously learned concepts (i.e., stability). Intending to address the stability-plasticity trade-off, we propose to perform weight-ensembling of the model parameters of the previous and current tasks. This weighted-ensembled model, which we call Continual Model Averaging (or CoMA), attains high accuracy on the current task by leveraging plasticity, while not deviating too far from the previous weight configuration, ensuring stability. We also propose an improved variant of CoMA, named Continual Fisher-weighted Model Averaging (or CoFiMA), that selectively weighs each parameter in the weights ensemble by leveraging the Fisher information of the weights of the model. Both variants are conceptually simple, easy to implement, and effective in attaining state-of-the-art performance on several standard CL benchmarks. Code is available at: https://github.com/IemProg/CoFiMA.
