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
This work investigates why independently trained models merge poorly or well by examining how optimization dynamics sculpt the merging loss landscape. It introduces the effective noise scale as a unifying factor that aggregates learning rate, batch size, momentum, and data augmentation, and shows a non-monotonic relationship between this noise and merging gains for both linear interpolation and task arithmetic. Across architectures, datasets, and transfer scenarios, larger learning rates and weight decays can enhance merging up to a sweet spot, while smaller batch sizes and augmentation further promote compatibility, with initialization playing a crucial role in task arithmetic. The findings illuminate how optimization shapes cross-solution compatibility, offering a pathway to engineer training dynamics that yield more mergeable models and informing future study of loss-landscape geometry in multi-solution fusion.
Abstract
Model merging methods combine models with different capabilities into a single one while maintaining the same inference cost. Two popular approaches are linear interpolation, which linearly interpolates between model weights, and task arithmetic, which combines task vectors obtained by the difference between finetuned and base models. While useful in practice, what properties make merging effective are poorly understood. This paper explores how the optimization process affects the loss landscape geometry and its impact on merging success. We show that a single quantity -- the effective noise scale -- unifies the impact of optimizer and data choices on model merging. Across architectures and datasets, the effectiveness of merging success is a non-monotonic function of effective noise, with a distinct optimum. Decomposing this quantity, we find that larger learning rates, stronger weight decay, smaller batch sizes, and data augmentation all independently modulate the effective noise scale, exhibiting the same qualitative trend. Unlike prior work that connects optimizer noise to the flatness or generalization of individual minima, we show that it also affects the global loss landscape, predicting when independently trained solutions can be merged. Our findings broaden the understanding of how optimization shapes the loss landscape geometry and its downstream consequences for model merging, suggesting the possibility of further manipulating the training dynamics to improve merging effectiveness.
