SoK: On Finding Common Ground in Loss Landscapes Using Deep Model Merging Techniques

Arham Khan, Todd Nief, Nathaniel Hudson, Mansi Sakarvadia, Daniel Grzenda, Aswathy Ajith, Jordan Pettyjohn, Kyle Chard, Ian T. Foster

Abstract

We survey the model merging literature through the lens of loss landscape geometry to connect observations from empirical studies on model merging and loss landscape analysis to phenomena that govern neural network training and the emergence of their inner representations. We distill repeated empirical observations from the literature in these fields into descriptions of four major characteristics of loss landscape geometry: mode convexity, determinism, directedness, and connectivity. We argue that insights into the structure of learned representations from model merging have applications to model interpretability and robustness, subsequently we propose promising new research directions at the intersection of these fields.

Introduction: The Challenge of Model Merging

As deep learning models scale to billions of parameters, the computational cost of retraining or fine-tuning from scratch becomes a significant bottleneck. Model merging has emerged as a powerful paradigm to "kitbash" specialized models together without additional training. However, merging is rarely as straightforward as simple weight averaging. Naive averaging often leads to "destructive interference," where the resulting model performs significantly worse than its parents.

This failure stems from two primary factors: permutation symmetries—where neurons in a layer can be reordered without changing the output—and divergent training trajectories. To understand and overcome these hurdles, we must look at the "terrain" of the loss landscape.

A Taxonomy of Merging Techniques

The current literature categorizes merging techniques into three core algorithmic approaches, as visualized in the taxonomy below.

Taxonomy of model merging methods
  1. Ensemble Learning: This involves combining model outputs (logits) or composing layers (e.g., Mixture-of-Experts). While reliable, it incurs high inference costs as multiple models must be run simultaneously.
  2. Weight Averaging/Aggregation: This approach computes linear combinations of parameters. Notable examples include Task Arithmetic, which uses "task vectors" to steer model behavior, and Model Soups, which average models fine-tuned with varying hyperparameters.
  3. Neuron Alignment: These techniques resolve permutation misalignment before merging. Methods like Git Re-basin or OTFusion attempt to align the neurons of one model to another, making weight averaging mathematically meaningful.
Neuron permutation symmetry

As shown in the figure above, different weight configurations can represent the same underlying function. Without alignment, averaging these weights would result in a nonsensical model because the weights associated with specific neurons (like $\alpha$ and $\beta$) would be misaligned.

Loss Landscape Macrophenomena

The survey distills empirical observations into four key characteristics of loss landscape geometry that explain why merging works:

  • Mode Convexity: Within a single "loss basin," linear interpolation between solutions often yields new, high-performing models.
  • Mode Determinism: A model's final basin is often determined early in training. Models sharing a pre-trained ancestor typically reside in the same linearly connected region, explaining the success of merging fine-tuned Large Language Models (LLMs).
  • Mode Directedness: Specific directions in parameter space can be associated with semantic behaviors, enabling "weight steering" as a tool for interpretability.
  • The "Width" Advantage: Larger, wider models concentrate knowledge into fewer "dominant singular directions," making them easier for alignment algorithms to synchronize.

Key Results and Efficiency

Empirical studies highlight several advantages of modern merging techniques:

  • Sparsification: Methods like DARE can prune 90-99% of fine-tuning parameters while maintaining the ability to merge into effective multi-task LLMs.
  • The Pre-training Advantage: Merging models derived from a shared pre-trained checkpoint consistently outperforms merging independently initialized models.
  • Robustness and Unlearning: Merging serves as a tool for "unlearning" harmful behaviors (by subtracting specific task vectors) and improving out-of-distribution (OOD) generalization.

Limitations and Future Directions

Despite its promise, model merging faces several open challenges. The "Common Ancestor" constraint remains significant; merging models with different architectures or training histories is currently an NP-hard problem. Furthermore, current neuron alignment methods are often "greedy" (layer-by-layer), potentially missing global symmetries.

There are also security implications: Mode Determinism suggests that models fine-tuned from public checkpoints are highly predictable, making them susceptible to adversarial attacks. Future research should focus on "orthogonalizing" task-specific directions in weight space to create truly modular and decomposable neural networks.

Summary updated

Abstract

We survey the model merging literature through the lens of loss landscape geometry to connect observations from empirical studies on model merging and loss landscape analysis to phenomena that govern neural network training and the emergence of their inner representations. We distill repeated empirical observations from the literature in these fields into descriptions of four major characteristics of loss landscape geometry: mode convexity, determinism, directedness, and connectivity. We argue that insights into the structure of learned representations from model merging have applications to model interpretability and robustness, subsequently we propose promising new research directions at the intersection of these fields.
BibTeX
@misc{khan2024sok,
  author = {Arham Khan and Todd Nief and Nathaniel Hudson and Mansi Sakarvadia and Daniel Grzenda and Aswathy Ajith and Jordan Pettyjohn and Kyle Chard and Ian T. Foster},
  title = {{SoK: On Finding Common Ground in Loss Landscapes Using Deep Model Merging Techniques}},
  year = {2024},
  eprint = {2410.12927},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.12927},
}
Figure