Weight Space Alignment for Linear Mode Connectivity

This direction is merged into another direction: permutation invariance (permutation symmetry). Its last version stays readable and citable here.

Version 1 of 118 papers22 conceptsfrozen 2026-10-04

When we train two neural networks with the same architecture but different random seeds, they converge to different points in weight space. If you try to average these two sets of weights, the resulting "middle" model is almost always useless, performing no better than random chance. This observation led to the long-standing belief that the loss landscapes of deep networks are composed of many isolated, high-performance "valleys" separated by impassable mountains of high loss.

However, recent research suggests these mountains might be an illusion. The problem isn't that the models are in different valleys; it's that they are described in different "languages." Because of the inherent symmetries in neural networks—specifically permutation invariance—we can swap the order of neurons in a hidden layer without changing the network's output.

Hanie Sedghi, Behnam Neyshabur, and their colleagues proposed in The Role of Permutation Invariance in Linear Mode Connectivity of Neural Networks that if you find the right permutation to align the neurons of one model with another, the loss barrier between them disappears. This phenomenon is known as Linear Mode Connectivity (LMC) modulo permutation.

The Combinatorial Challenge of Alignment

If two models are functionally similar but their weights are permuted, how do we find the "correct" permutation to align them? For a layer with $n$ neurons, there are $n!$ (n-factorial) possible ways to arrange them. In a modern deep network with hundreds or thousands of neurons per layer, the search space becomes astronomically large, making a brute-force search impossible.

Finding this optimal alignment is a combinatorial optimization problem categorized as NP-hard. Traditionally, researchers have relied on greedy heuristics like activation matching (aligning neurons that fire similarly on the same data) or weight matching. However, as noted by Ekansh Sharma and Gintare Karolina Dziugaite in Simultaneous Linear Connectivity of Neural Networks Modulo Permutation, these heuristics often struggle during early training stages or with complex architectures, leaving the true extent of model connectivity uncertain.

To bypass these slow, iterative solvers, Aviv Navon, Haggai Maron, and their team developed DEEP-ALIGN in Equivariant Deep Weight Space Alignment. Instead of searching for a permutation, they use a specialized equivariant neural network to predict the alignment in a single feed-forward pass. This turns a difficult optimization problem into a fast, learnable inference task.

From Pairs to Shared Basins

While aligning two models is a breakthrough, real-world applications often involve many models—such as in federated learning or large-scale model ensembling. A surprising discovery by Akira Ito in Linear Mode Connectivity between Multiple Models modulo Permutation Symmetries is that pairwise alignment doesn't automatically scale. Just because Model A aligns with Model B, and Model B aligns with Model C, it doesn't mean Model A and Model C are aligned in the same way.

The goal is to find a shared basin: a single region of the loss landscape where many independent training runs can coexist. Ito introduced the STE-MM algorithm to align multiple models simultaneously, proving that independent runs can indeed converge to a shared, approximately convex region. In this region, the "merged" model (the average of all aligned models) can actually be smoother and more robust than any of its individual parents.

Applications of Weight Symmetry

Understanding and exploiting these symmetries allows us to manipulate neural networks in ways previously thought impossible:

  • Model Merging: We can combine models trained on different datasets or tasks without retraining from scratch. Masanori Yamada demonstrated in Toward Data Efficient Model Merging that this can be done with as few as 10 samples per class, making collaborative AI much more efficient.
  • Transferring Sparse Masks: The Lottery Ticket Hypothesis suggests that specific sparse subnetworks ("winning tickets") are essential for performance, but they are usually tied to their original initialization. Mohammed Adnan and Rahul Krishnan showed in Sparse Training from Random Initialization that by permuting these masks to align with new initializations, "winning tickets" can finally be transferred across different starting points.
  • Security and Purification: Symmetries can even be used for defense. Jie Peng introduced Two-stage Symmetry Connectivity (TSC) in Circumventing Backdoor Space via Weight Symmetry, which "purifies" backdoored networks by navigating the weight space to find a functionally equivalent version of the model that has "shaken off" the malicious backdoor triggers.

By treating the specific ordering of neurons as a superficial "coordinate system" rather than a fundamental property, this research direction reveals a much simpler, more connected structure underlying the seemingly chaotic landscape of deep learning.

Papers in this version

History & citationVersion 1 · 2026-10-04

Merged into another direction · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_weight_space_alignment_for_linear_mode_c_82803929,
  title = {Weight Space Alignment for Linear Mode Connectivity},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/weight-space-alignment-for-linear-mode-connectivity/rdr_828039296f6d425b9e8d9eb2e619d7cd},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-12-02},
}

This exact version (version 1, frozen text):

@misc{lacuna_weight_space_alignment_for_linear_mode_c_82803929_v1,
  title = {Weight Space Alignment for Linear Mode Connectivity},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/weight-space-alignment-for-linear-mode-connectivity/rdr_828039296f6d425b9e8d9eb2e619d7cd/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-12-02},
}