Rethinking Layer-wise Model Merging through Chain of Merges
Pietro Buzzega, Riccardo Salami, Angelo Porrello, SIMONE CALDERARA
NeurIPS page · OpenReview · Open on the map
Category: Interpretability & Model Adaptation › Model Merging · Type: new method · Keywords: model merging, layer-wise merging, covariate shift, activation alignment, sequential merging
Summary
Chain of Merges (CoM) addresses covariate shift in layer-wise model merging by sequentially merging weights across layers and recomputing activations, improving performance on heterogeneous tasks.
Explained to a 5-year-old
Some people build smart computer programs that can do many things. Sometimes they have two such programs and want to combine them into one bigger program. The simple way is to just mix the layers of the two programs together. But this can cause problems because the layers don't match up well. The paper suggests a new way to carefully blend the programs step by step, fixing the mismatches so the combined program works better.
Explained to a 5-year-old, longer
People build computer brain models that can do many tasks. Sometimes they have two such models and want to combine them into one larger model. The simple way is to just mix the layers of the two models together. But this can cause problems because the layers don't match up well. The mismatches are like when puzzle pieces don't fit. The paper points out that this mismatch is called covariate shift and gets worse deeper in the model. To fix it, they suggest merging the models not all at once, but step by step. At each step they recalculate the signals so the new layers match the old ones. They also use a smart weighting system that pays more attention to parts that are likely to break. This careful blending helps the combined model work better on many different tasks. The result is a more reliable way to combine pre-trained models without having to train from scratch. The code for this method is available for others to try.
For a technical reader
The paper addresses a limitation in current model merging techniques, which combine pre-trained neural networks by simply averaging weights at each layer. This naive approach can cause distributional mismatches in intermediate activations, leading to degraded performance. The authors propose a sequential merging procedure that recomputes activations at each step using regression to align representations and reduce covariate shift. They also introduce a dynamic weighting scheme that focuses on the most vulnerable task-layer pairs to improve robustness. Experiments on standard benchmarks show the new method achieves state-of-the-art results across heterogeneous tasks, and the code is provided for reproducibility.
Problem
Existing model merging techniques that merge layers independently can cause distributional mismatches in intermediate activations, leading to degraded performance when merging models. This issue arises because changes in early layers do not properly propagate to downstream layers, creating a form of covariate shift across the network.
Method
The approach sequentially merges weights across layers while accounting for inter-layer interactions, using regression problems to recompute activations at each step and a dynamic weighting scheme that prioritizes task-layer pairs prone to performance loss.
Results
The approach achieves state-of-the-art performance on heterogeneous tasks across standard benchmarks.
Contributions
It identifies covariate shift caused by independent layer-wise merging and proposes a sequential merging procedure with activation recomputation and dynamic weighting to mitigate this issue, improving merging robustness.
Practical relevance
The method is released with code in the supplementary material for reproducibility.
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction