When training two neural networks with the exact same architecture but different random initializations, they naturally converge to different sets of weights. If one attempts to "walk" in a straight line between these two points in the weight space—a process known as linear interpolation—they typically encounter a massive "barrier" of high loss or low accuracy. This lack of Linear Mode Connectivity (LMC) has historically suggested that the neural network loss landscape is a rugged terrain filled with isolated, distinct valleys.
Understanding LMC is critical for several areas of deep learning:
- The Lottery Ticket Hypothesis: Do different "winning tickets" ultimately belong to the same basin of attraction?
- Distributed Training: Can we train models independently on different machines and simply average their weights to combine their knowledge?
- Ensembling: Why does averaging the predictions of multiple models work so well, while averaging their weights usually destroys performance?
This paper proposes a bold conjecture: these valleys are not actually isolated. Instead, the "energy barriers" observed during interpolation are largely an artifact of ignoring permutation invariance. Because we can swap the order of neurons in a hidden layer without changing the network's output, the authors suggest that most Stochastic Gradient Descent (SGD) solutions actually reside in the same basin. They just appear distant because their neurons are permuted differently.
Methodology: Aligning Symmetries
To test whether models can be "aligned" to eliminate these interpolation barriers, the authors investigated the role of network symmetries.
- Formalizing the Barrier: They first defined a precise loss barrier metric that measures the maximum deviation in loss during linear interpolation compared to a strictly linear change in loss.
- Theoretical Proof: The authors provide a preliminary proof demonstrating that for a sufficiently wide, single-hidden-layer network at initialization, there always exists a permutation that completely eliminates the barrier.
- "Real World" vs. "Our Model": To empirically test their hypothesis, they compared "Real World" scenarios (interpolating between two independently trained SGD solutions) against a proxy model. In the proxy model, they take a single SGD solution and simply apply a random permutation to it.
- Simulated Annealing (SA): Because finding the optimal permutation to align two networks is an NP-hard combinatorial problem, the authors utilized Simulated Annealing to search for the "winning" permutation that minimizes the barrier between the models.
If the barriers look identical in both the "Real World" and proxy cases, it strongly implies that different SGD solutions are essentially just permuted versions of one another.
Key Insights and Findings
The study evaluated these concepts across a wide range of standard benchmarks, including MNIST, SVHN, CIFAR-10, CIFAR-100, and ImageNet, to ensure the findings were not specific to a single architecture or dataset.
- The Permutation Proxy: One of the most striking findings is that the barrier behavior between two independent SGD runs is nearly identical to the barrier behavior between a model and a random permutation of itself. The high correlation between these two scenarios strongly supports the idea that the "distance" between different minima is primarily a matter of neuron ordering.
- Width is a Bridge: Increasing the width of a network makes it significantly easier to find a path with no barrier. This observation aligns well with the well-known "double descent" phenomenon in deep learning.
- Task Difficulty: Harder tasks (such as CIFAR-100 compared to MNIST) naturally result in higher barriers, suggesting that the "basins" of the loss landscape become more complex as the underlying problem complexity grows.
- Depth is a Wall: Conversely, increasing the depth of a network significantly increases the barrier size. As models get deeper, it becomes exponentially harder for search algorithms to find a connecting path.
Using Simulated Annealing, the authors successfully reduced or eliminated barriers for several architectures. For instance, in one-layer MLPs trained on MNIST, they found permutations that resulted in a zero barrier across all tested widths. Furthermore, by using "functional difference" to match neurons, they demonstrated the ability to create better ensembles by averaging weights, outperforming standard subspace learning methods.
Limitations and Future Directions
While the conjecture is compelling, the primary hurdle remains the search space. As networks grow deeper and wider, the number of possible permutations explodes factorially. Simulated Annealing struggles with very deep models like ResNets, meaning the authors could not definitively "prove" the conjecture for the largest, most complex models in use today.
Additionally, the current work focuses heavily on image recognition tasks. Extending these insights to Natural Language Processing (NLP) and transformer architectures represents a crucial next step. Finally, while the paper shows that barriers can be reduced post-training, a major open question is whether we can design initialization schemes or optimizers that naturally gravitate toward a "canonical" permutation, making seamless weight averaging the default behavior.
Summary updated