MAGIC: Achieving Superior Model Merging via Magnitude Calibration
Preprint
Abstract
The proliferation of pre-trained models has given rise to a wide array of specialised, fine-tuned models. Model merging aims to merge the distinct capabilities of these specialised models into a unified model, requiring minimal or even no additional training. A core objective of model merging is to ensure the merged model retains the behavioural characteristics of the specialised models, typically achieved through feature alignment. We identify that features consist of two critical components: direction and magnitude. Prior research has predominantly focused on directional alignment, while the influence of magnitude remains largely neglected, despite its pronounced vulnerability to perturbations introduced by common merging operations (e.g., parameter fusion and sparsification). Such perturbations to magnitude inevitably lead to feature deviations in the merged model from the specialised models, resulting in subsequent performance degradation. To address this, we propose MAGnItude Calibration (MAGIC), a plug-and-play framework that rectifies layer-wise magnitudes in feature and weight spaces, with three variants. Specifically, our Feature Space Calibration (FSC) realigns the merged model's features using a small set of unlabelled data, while Weight Space Calibration (WSC) extends this calibration to the weight space without requiring additional data. Combining these yields Dual Space Calibration (DSC). Comprehensive experiments demonstrate that MAGIC consistently boosts performance across diverse Computer Vision tasks (+4.3% on eight datasets) and NLP tasks (+8.0% on Llama) without additional training. Our code is available at: https://github.com/lyymuwu/MAGICKeywords
All Related Versions
This publication has 20 references indexed in Scilit:
- Model Merging in LLMs, MLLMs, and Beyond: Methods, Theories, Applications, and OpportunitiesACM Computing Surveys, 2026
- Task Singular Vectors: Reducing Task Interference in Model Merging2025
- MAGMAX: Leveraging Model Merging for Seamless Continual Learning2024
- MaxFusion: Plug&Play Multi-modal Generation in Text-to-Image Diffusion Models2024
- Direct Learning with Multi-task Neural Networks for Treatment Effect EstimationIEEE Transactions on Knowledge and Data Engineering, 2021
- Model Reuse With Reduced Kernel Mean Embedding SpecificationIEEE Transactions on Knowledge and Data Engineering, 2021
- Multi Task Mutual Learning for Joint Sentiment Classification and Topic DetectionIEEE Transactions on Knowledge and Data Engineering, 2020
- EuroSAT: A Novel Dataset and Deep Learning Benchmark for Land Use and Land Cover ClassificationIEEE Journal of Selected Topics in Applied Earth Observations and Remote Sensing, 2019
- SUN Database: Exploring a Large Collection of Scene CategoriesInternational Journal of Computer Vision, 2014
- A Survey on Transfer LearningIEEE Transactions on Knowledge and Data Engineering, 2009