Linear Mode Connectivity between Multiple Models modulo Permutation Symmetries

Akira Ito, Masanori Yamada, Atsutoshi KumagaiICML 2025

Overview

While previous research has shown that any two neural networks can be "aligned" into a single convex loss basin via neuron permutations, this paper reveals that standard pairwise alignment fails for groups of three or more models. To solve this, the authors introduce STE-MM (Straight-Through Estimator for Multiple Models), a novel algorithm that successfully aligns multiple models simultaneously. Their work provides strong empirical evidence that many independent training runs can converge to a shared, approximately convex region where the "merged" model is actually smoother and more robust than its parent models.

The Challenge of Multi-Model Alignment

Neural network optimization is notoriously non-convex, yet Stochastic Gradient Descent (SGD) consistently finds excellent solutions. A popular explanation for this phenomenon is the Linear Mode Connectivity (LMC) hypothesis: all "good" solutions actually reside in the same convex, low-loss basin. They only appear disconnected because their neurons are ordered differently—a concept known as permutation symmetry.

Earlier work (such as Git Re-basin) proved this hypothesis for pairs of models. However, the authors of this paper identified a significant gap: alignment is not inherently transitive. If you align Model A to Model B, and Model C to Model B, there is no guarantee that Model A and Model C are aligned with each other. In fact, when attempting to merge multiple models using standard pairwise methods, the performance of the resulting "average" model collapses. This paper tackles the challenge of finding a single permutation set that brings multiple models into one shared basin simultaneously.

Proposed Methodology

The authors propose two primary technical contributions to achieve multi-model LMC:

  1. STE-MM (Straight-Through Estimator for Multiple Models): Instead of matching models in isolated pairs, STE-MM optimizes a convex combination of all models at once. Because permutations are discrete and non-differentiable, the authors utilize a "straight-through estimator" approach. They introduce continuous "dummy parameters" as proxies. During the forward pass, the algorithm finds the best discrete permutation; during the backward pass, it updates the proxies using standard gradients.

  2. Accelerated Weight Matching (WM): The computational bottleneck in these algorithms is solving the Linear Assignment Problem (LAP) to find the optimal neuron swaps. To address this, the authors propose an acceleration technique that reuses "dual variables" from previous iterations to "warm-start" the solver. This makes the multi-model alignment process significantly more efficient without sacrificing accuracy.

Key Insights and Discoveries

  • The "Anchor" Failure: Simply picking one model as an anchor and aligning others to it causes a monotonic degradation in performance as the number of models increases. A simultaneous, global alignment strategy is required.
  • The Regular Simplex: The authors discovered that after successful permutation with STE-MM, the models form an approximately regular simplex in parameter space. This means all models are roughly equidistant from each other and from their collective average.
  • Merging Reduces Sharpness: One of the most striking findings is that the "merged" model (the average of the permuted models) is actually "flatter" than the individual models. By measuring the trace of the Hessian matrix, the authors showed that sharpness decreases as more models are added to the mix. This strongly suggests that the models are being pulled into the very bottom of a wide, smooth, convex basin.

Experimental Results

The researchers evaluated their approach on standard image classification benchmarks (MNIST, Fashion-MNIST, CIFAR-10) using various architectures, including MLPs, VGG-11, and ResNet-20. To facilitate LMC, they followed the common practice of increasing model width, as wider models are known to exhibit better connectivity.

Test accuracies and losses of merged models as the number of models increases.
  • Performance Stability: Unlike previous methods where test accuracy drops as you add more models, the proposed alignment strategies maintain—and sometimes even improve—test accuracy as the number of merged models grows (tested up to 10 models).
  • Massive Speedup: The Accelerated WM algorithm reduced the processing time for ResNet-20 models to 1/40th of the original time, making multi-model alignment computationally feasible.
  • Loss Barriers: The loss barriers between all pairs in a 10-model group remained near zero, confirming that the entire group had been successfully transferred into a single convex region.

Limitations and Future Work

While the results are promising, the paper notes a few limitations. The experiments were restricted to relatively small architectures, leaving it an open question whether these findings hold for massive Large Language Models (LLMs). Additionally, the method still relies on over-parameterization (widening the models) to achieve perfect connectivity; achieving LMC in narrower, more efficient models remains a key area for future research. Finally, while the paper provides strong empirical evidence for the existence of these shared basins, the theoretical reasons why SGD dynamics lead different initializations to the same functional neighborhood are still not fully understood.

Summary updated

BibTeX
@inproceedings{ito2025linear,
  author = {Akira Ito and Masanori Yamada and Atsutoshi Kumagai},
  title = {{Linear Mode Connectivity between Multiple Models modulo Permutation Symmetries}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=qaJuLzY6iL},
}
Figure