How does the optimizer implicitly bias the model merging loss landscape?

Chenxiang Zhang, Alexander Theus, Damien Teney, Antonio Orvieto, Jun Pang, Sjouke Mauw

TL;DR

Researchers have discovered that "effective noise scale"—a single value combining learning rate, batch size, and momentum—is the secret ingredient determining whether two AI models can be successfully merged. By finding the "Goldilocks" level of training noise, practitioners can create models that aren't just accurate on their own, but are also compatible enough to be fused together for even better performance at zero extra computational cost.

The Mystery of Model Merging

Model merging is a bit like a "free lunch" in deep learning. It allows you to take two independently trained models (for instance, one good at coding and one good at creative writing) and average their weights to create a single model that can do both. This avoids the massive cost of retraining from scratch or increasing inference time.

However, merging is notoriously finicky. Sometimes averaging weights works beautifully; other times, the resulting "merged" model performs worse than a random guess. This phenomenon is often discussed in terms of "mode connectivity"—the idea that models inhabit a loss landscape where low-loss paths exist between different solutions. The big mystery has been: What specific training choices make models compatible for merging? Until now, practitioners relied on expensive trial-and-error, training dozens of models just to see which ones might stick together.

The Unified Noise Theory

The authors propose that the success of model merging is driven by the optimization dynamics during training. They identify a unifying metric called the effective noise scale ($\tilde{S}$), mathematically defined as:

$$\tilde{S} \propto \frac{\eta}{B(1-\mu)}$$

Where $\eta$ is the learning rate, $B$ is the batch size, and $\mu$ is momentum.

To test this, they used a branching experimental setup: training a base model, splitting it into two independent paths with different data orders or augmentations, and training both to convergence. Finally, they merged the endpoints using Linear Interpolation or Task Arithmetic.

Accuracy gain plotted against learning rate, batch size, and the unified effective noise scale, revealing a critical point for optimal merging.

The most striking finding is that learning rate, batch size, and weight decay aren't independent factors for merging. They all modulate the same thing: the "effective noise" in the optimization path. When plotting merging success against this unified noise scale, disparate curves from different experiments suddenly align into a single, predictable trend.

Key Insights: Finding the Sweet Spot

  • The Non-Monotonic "Sweet Spot": Merging success follows a peaked, non-monotonic curve. Too little noise (low LR, large batch) leads to models that are too "rigid" and don't merge well. Too much noise destabilizes training. There is a distinct critical point where noise is high enough to broaden the loss basin—making models compatible—but low enough to maintain high individual accuracy.
  • Weight Decay is a Hidden Learning Rate: In modern networks with Normalization layers (like BatchNorm), weight decay doesn't just prevent overfitting; it actually prevents the effective learning rate from decaying to zero. This keeps the optimization "noisy" and the loss landscape "mergeable."
  • Diversity vs. Alignment: High-noise training encourages models to learn more diverse features. While you might think diversity makes merging harder, the authors show that these features remain "alignable" through weight permutations, ultimately leading to higher performance gains when merged.

Significant Accuracy Gains

The impact of these hyperparameter choices on the final merged model is substantial.

Scatter plot showing that higher learning rates yield greater accuracy gains after merging, clustering distinctly from lower learning rate models.
  • Learning Rate: On CIFAR-100, models trained with a high learning rate ($\eta = 0.2$) saw a +1.2% accuracy boost after merging. In contrast, those trained with a low learning rate ($\eta = 0.01$) only gained +0.2%, even though both models had identical individual performance before merging.
  • Batch Size: Reducing batch size (which increases noise) significantly improved mergeability. A batch size of 16 achieved a median gain of +1%, while a batch size of 256 showed almost no benefit from merging.
  • Transfer Learning: In fine-tuning scenarios (e.g., CLIP models), the authors found a near-perfect linear correlation (Pearson $r = 0.981$) between the learning rate used during fine-tuning and the accuracy gain of the merged model.

Limitations and Future Work

While the paper provides a powerful empirical framework, it has a few caveats. The "effective noise scale" is an empirical observation; a formal mathematical proof linking Stochastic Differential Equation (SDE) noise to global landscape geometry remains an open challenge. Furthermore, experiments were conducted on relatively small-to-medium models (ResNet18, small GPTs). Testing these dynamics on massive 70B+ parameter LLMs is a necessary next step.

Ultimately, this research suggests that if we want to build the next generation of fused AI systems, we need to stop training models to be solitary peak performers. Instead, we must train them in the "Goldilocks zone" of noise, where they learn to be team players.

Summary updated

BibTeX
@inproceedings{zhang2026how,
  author = {Chenxiang Zhang and Alexander Theus and Damien Teney and Antonio Orvieto and Jun Pang and Sjouke Mauw},
  title = {{How does the optimizer implicitly bias the model merging loss landscape?}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=RU76KTF1Da},
}
Figure