Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

MagMax: Leveraging Model Merging for Seamless Continual Learning

About

This paper introduces a continual learning approach named MagMax, which utilizes model merging to enable large pre-trained models to continuously learn from new data without forgetting previously acquired knowledge. Distinct from traditional continual learning methods that aim to reduce forgetting during task training, MagMax combines sequential fine-tuning with a maximum magnitude weight selection for effective knowledge integration across tasks. Our initial contribution is an extensive examination of model merging techniques, revealing that simple approaches like weight averaging and random weight selection surprisingly hold up well in various continual learning contexts. More importantly, we present MagMax, a novel model-merging strategy that enables continual learning of large pre-trained models for successive tasks. Our thorough evaluation demonstrates the superiority of MagMax in various scenarios, including class- and domain-incremental learning settings. The code is available at this URL: https://github.com/danielm1405/magmax.

Daniel Marczak, Bart{\l}omiej Twardowski, Tomasz Trzci\'nski, Sebastian Cygert• 2024

Related benchmarks

TaskDatasetResultRank
Continual LearningStandard CL Benchmark
Avg Final Acc0.803
50
Continual LearningLarge Number of Tasks
Average Performance73.4
50
Continual LearningCIFAR100 (test)
Mean Accuracy79.54
31
Chest X-ray classificationPneumonia (test)
Accuracy0.579
30
General Language Understanding and ReasoningTRACE
C-STANCE Accuracy59
29
Class-incremental learningCIFAR100 10 Tasks
Accuracy77.04
29
Class-incremental learningImageNet-R 5-task--
27
Class-incremental learningCIFAR-100 20 tasks--
26
Class-incremental learningStanford Cars CIL, T=10 (test)
Avg Accuracy65.62
23
Chest X-ray classificationTuberculosis (test)
Accuracy71.2
23
Showing 10 of 29 rows

Other info

Follow for update