TL;DR
Model merging success isn't random—it is implicitly governed by a single unified factor called the effective noise scale of the optimizer. By balancing learning rate, batch size, weight decay, and data augmentation, practitioners can hit a non-monotonic "sweet spot" that shapes the global loss landscape to maximize the mergeability of independently trained models.
What Problem Does This Paper Address?
Model merging allows researchers and engineers to combine the capabilities of independently trained neural networks (e.g., via weight averaging or task arithmetic) into a single model without incurring any extra computational cost at inference time. Despite its massive practical utility in the era of LLMs and foundation models, why some models merge seamlessly while others fail catastrophically remains a mystery.
Currently, finding compatible models relies on expensive trial-and-error. This paper tackles a fundamental question: How do training configurations and optimization dynamics implicitly bias the loss landscape to make models compatible (or incompatible) for merging?
Methods
The authors investigate how stochastic gradient descent (SGD) and AdamW dynamics shape the global loss landscape between independent solutions. They leverage a unifying proxy called the effective noise scale ($\tilde{S}$), which captures the magnitude of stochastic fluctuations during training:
$$\tilde{S} = \frac{\eta}{B(1-\mu)}$$
where $\eta$ is the learning rate, $B$ is the batch size, and $\mu$ is momentum.
The authors systematically isolate and decompose how individual optimizer components—learning rate, weight decay, batch size, momentum, and data augmentation—modulate this noise scale. They evaluate these effects across two primary merging paradigms:
- Linear Interpolation Merging: Directly averaging the weights of two models trained on the same task.
- Task Arithmetic Merging: Combining fine-tuned task vectors relative to a shared base model.
Additionally, they utilize linear Centered Kernel Alignment (CKA) to study representation-level feature diversity and weight-based matching to examine permutation symmetries.
Datasets
The paper validates its findings across a diverse suite of vision and language benchmarks:
- Vision (From Scratch): SVHN, CIFAR-10, CIFAR-100, and TinyImageNet.
- Language Modeling: TinyStories (using a small GPT Transformer architecture).
- Transfer Learning / Fine-tuning: WILDS-FMoW and RESISC45 (fine-tuning pretrained CLIP ViT-B/16 and ConvNext-T models).
Key Insights and Ideas
- The Unified Noise Scale: Instead of treating hyperparameters like learning rate and batch size as independent knobs, reparameterizing them into the effective noise scale unifies their behavior. Disparate training runs align perfectly when viewed through this lens.
- The Non-Monotonic "Goldilocks" Zone: Mergeability follows a non-monotonic curve. Too little optimizer noise leads to low merging benefits, while too much noise destabilizes training. An intermediate "critical point" of noise maximizes the performance gains of the merged model.
- Flatter Landscapes and Feature Diversity: High-noise regimes (e.g., larger learning rates, smaller batch sizes) bias optimization toward wider, flatter basins in the global loss landscape. Surprisingly, this noise also promotes feature diversity (lower feature alignment between branches), giving the merged model complementary representations to exploit.
- The Role of the Base Model: In task arithmetic, the presence of a pretrained initialization (like CLIP) flips the script. With a pretrained base, larger learning rates yield flatter, more merge-compatible solutions. Without it (training from scratch), smaller learning rates keep the landscape flatter.
Key Results
- Hyperparameter Alignment: Plotting merging accuracy gain against learning rate or batch size independently shows chaotic trends. However, plotting against the effective noise scale reveals a clean, bell-shaped curve with a distinct optimum.
- Quantifiable Merging Gains: For a ResNet18 on CIFAR-100, models trained with a larger learning rate ($\eta = 0.2$) achieved a +1.2% median accuracy gain after merging, compared to just a +0.2% gain for models trained with a smaller learning rate ($\eta = 0.01$), despite both having identical single-model performance (~75%).
- Language & Transfer Learning Consistency: The same non-monotonic trend holds for language models on TinyStories and transfer learning with CLIP. In CLIP fine-tuning, the accuracy gain of the merged model linearly correlates with the fine-tuning learning rate ($r = 0.981$).
- Advanced Merging Benefits: Advanced methods like TIES merging are shown to better counteract the noise induced by larger learning rates, yielding a +2% improvement over standard task arithmetic at the optimal setup.
Limitations and Future Work
- Lack of Theoretical Guarantees: The study is purely empirical; it lacks formal theoretical proofs explaining why the effective noise scale maps so cleanly to global landscape geometry.
- Scale Constraints: Due to computational limits, the experiments were conducted on smaller models and foundational merging techniques rather than modern, large-scale architectures (e.g., 7B+ LLMs) or complex routing mixtures.
- Future Directions: The authors suggest that future work should explore how to systematically tune effective noise levels during pretraining to inherently guarantee that downstream fine-tuned models remain merge-compatible.
Summary updated