TL;DR
By finding neuron permutations that align intermediate activations, the authors show that wide fully connected networks trained from different random seeds converge to the exact same loss basin. Remarkably, applying this alignment directly to untrained, random initializations and averaging them produces a network that performs significantly above chance. However, this "all solutions are equal" hypothesis breaks down in convolutional neural networks (CNNs), which explore genuinely distinct, non-connectable modes under larger learning rates.
What Problem Does This Paper Address?
Neural networks initialized with different random seeds often yield models with nearly identical test accuracies, representations, and error distributions. Entezari et al. (2021) hypothesized that this is not a coincidence: modulo permutation symmetries (the arbitrary ordering of neurons/channels in hidden layers), any two solutions found by stochastic gradient descent (SGD) reside in the same convex loss valley. In other words, there is a permutation of one network such that linearly interpolating weights between the two models encounters no significant loss barrier (Linear Mode Connectivity).
This paper addresses two central questions:
- Can we directly construct such permutations to verify whether SGD solutions actually belong to the same basin?
- When during training do networks enter this shared valley—and does this behavior generalize across architectures?
Methods
Because searching over all layer-wise permutations is combinatorial and NP-hard, the authors adopt an activation-matching heuristic:
- Activation Matching via the Hungarian Algorithm: For two networks $\theta_1$ and $\theta_2$, hidden layer activation matrices $A, B \in \mathbb{R}^{d \times n}$ are collected across $d = 10{,}000$ calibration data points. A bipartite matching problem is solved layer-by-layer using the Hungarian algorithm to maximize the sum of pairwise cosine similarities $k(A_{\pi(i)}, B_i)$ between post-activation neurons.
- Linear Interpolation & Barrier Measurement: The authors evaluate paths $\lambda \pi(\theta_1) + (1-\lambda)\theta_2$ for $\lambda \in [0, 1]$ and measure the barrier: $$\text{Barrier} := \max_{\lambda \in [0,1]} \ell(\lambda \pi(\theta_1) + (1-\lambda)\theta_2) - \big(\lambda \ell(\theta_1) + (1-\lambda)\ell(\theta_2)\big)$$
- Untrained Permutations: To match models before training, the authors align parameter updates using gradient directions scaled by an approximate natural gradient optimizer (FOOF), solving a symmetric linear assignment problem without any training.
Datasets
The authors evaluate their approach on three standard vision classification benchmarks:
- MNIST
- Fashion-MNIST
- CIFAR-10
No new datasets were introduced.
Key Insights and Ideas
- Untrained Networks Already Inhabit the Same Valley: For fully connected networks, the shared loss basin is not created by training; it exists at initialization. Applying the permutation revealed after training to the untrained weights $\pi(\theta_1^{\text{init}})$ and $\theta_2^{\text{init}}$, then averaging them, yields a network that performs far above random guess rates (e.g., ~65% on 10-class Fashion-MNIST where chance is 10%).
- Ensembling Inits Improves Signal: Averaging more permuted random initializations ($n > 2$) monotonically increases test accuracy (up to >75% on Fashion-MNIST with 10 averaged initializations for width 8192).
- Width Erases the Loss Barrier in MLPs: In narrow networks, a small loss barrier remains, but increasing network width completely collapses the barrier, confirming the Entezari et al. conjecture for MLPs.
- CNNs Explore Genuinely Diverse Modes: The conjecture fails for convolutional architectures. Even after finding optimal channel permutations, a substantial barrier persists. Furthermore, permuted random initializations in CNNs stay firmly at chance performance.
- Learning Rates Dictate CNN Landscape Exploration: CNN mode connectivity depends heavily on training dynamics. Small learning rates produce solutions separated by very small barriers, whereas large learning rates—operating near the "edge of stability"—force SGD into structurally diverse loss valleys.
Key Results
- Fully Connected Models:
- On Fashion-MNIST, 4-hidden-layer networks of width 2048 showed an eliminated loss barrier under permuted weight averaging (~88% test accuracy, matching a single trained net), whereas unpermuted ("vanilla") averaging suffered an accuracy drop below 70%.
- On MNIST, permuted interpolation between two random initializations reached ~80% test accuracy without training.
- On CIFAR-10, permuted random initializations yielded ~20% accuracy (vs. 10% chance).
- Convolutional Models:
- For a 5-layer CNN on Fashion-MNIST trained with SGD ($lr=0.01$), permuted averaging maintained performance (~80%), but increasing to $lr=0.03$ caused the permuted average to drop significantly below individual networks (~65% vs. ~80%), revealing distinct basins.
- Analogous divergence occurred on CIFAR-10 with AdamW when moving from $lr=0.001$ to $lr=0.003$.
Limitations and Future Work
- Heuristic Suboptimality: Layer-by-layer matching is greedy. The authors cannot definitively prove that narrow MLPs or CNNs live in distinct basins, as a globally optimal permutation could theoretically find a lower barrier.
- Architectural Simplicity: Experiments focused on vanilla CNNs without residual connections or batch normalization; modern architectures (e.g., Vision Transformers, deep ResNets) may exhibit different symmetry landscapes.
- Theoretical Foundations: A rigorous mathematical explanation for why linear combinations of permuted random Gaussian weights yield predictive features remains an open question.
Summary updated