TL;DR
Why do neural networks trained from a shared checkpoint often connect via straight, low-loss paths at convergence? This paper introduces a intuitive "mountainside and ridge" topographical model to explain when and why Linear Mode Connectivity (LMC) appears. The authors also derive a simple second-order curvature model that accurately predicts barrier heights across entire networks and individual layers.
What Problem Does This Paper Address?
The loss landscape of over-parameterized neural networks is notoriously non-convex. Despite this, optimizing from a common initial training segment—"forking" training after ~10–20% of the epochs—often yields distinct solutions that can be linearly interpolated with negligible loss increase, a phenomenon known as Linear Mode Connectivity (LMC).
While researchers have used LMC for model merging and weight averaging, why this regularity occurs dynamically within complex loss landscapes has remained unclear. Most studies treat the barrier as a static artifact measured purely at convergence. This paper tackles the missing topographical picture: how does the landscape guide models toward or away from linear connectivity during training?
Methods
The authors study the geometry of LMC by tracking training dynamics and local curvature:
- The "Mountainside and Ridge" Perspective: A conceptual framework likening optimization to descending a foggy mountain slope crossed by ridges of varying heights. Forking early on a high ridge or plateau sends sibling trajectories down opposite sides (creating a massive barrier), while forking late keeps them on the same side of the slope (leaving only small bumps between them).
- Dynamic Cross-Sectional Tracking: Instead of inspecting barriers only at convergence, the authors measure the loss on the interpolation segment throughout training across different forking points (e.g., epoch 0, 1, 2, 15).
- Subspace Alignment & Sibling Geometry: They track the angular separation between sibling paths and the cosine similarity between intermediate parameter differences ($\theta_1^t - \theta_2^t$) and converged differences ($\theta_1^* - \theta_2^*$) to determine when the solution plane solidifies.
- Second-Order Barrier Formulation: Applying a second-order Taylor expansion around converged stationary points ($\nabla \mathcal{L} \approx 0$), they derive an analytical prediction for the barrier curve $B(\alpha)$ as a quadratic form in parameter distance weighted by the convex combination of local Hessians. They extend this formulation to layer-wise LMC.
Datasets
- CIFAR-10: Evaluated with ResNet20 (standard SGD, weight decay $10^{-4}$, initial learning rate 0.1) and ResNet18 (with and without batch normalization, learning rate 0.05).
- Note: No new datasets or benchmarks were introduced.
Key Insights and Ideas
- Barriers are ridges, not late-stage artifacts: Interpolation barriers do not suddenly pop up at convergence. They manifest early in child training (often within 10–20 child epochs) as ridges that persist throughout optimization.
- Sibling solution planes freeze remarkably fast: When models are forked early (where high barriers occur), the directional plane separating the two models ($\theta_1^t - \theta_2^t$) aligns with its final converged orientation very rapidly. The models commit to separate valleys early on.
- Barrier height boils down to distance and curvature: The proposed second-order formulation shows that the interpolation barrier is proportional to: $$\mathcal{B}(\alpha) \approx \frac{\alpha(1-\alpha)}{2} (\theta_2^* - \theta_1^*)^\top \left[ \alpha \nabla^2 \mathcal{L}(\theta_1^*) + (1-\alpha) \nabla^2 \mathcal{L}(\theta_2^*) \right] (\theta_2^* - \theta_1^*)$$ This immediately explains why barriers peak near $\alpha = 0.5$ and demonstrates that barrier height is governed by the distance between solutions projected onto dominant Hessian curvature directions.
Key Results
- Barrier Height Predictions: Despite neglecting third- and higher-order terms, the Hessian-based barrier formula accurately matches true loss barriers across various forking epochs (from epoch 0 through epoch 60 on CIFAR-10/ResNet20).
- Layer-wise LMC Fidelity: When extended to layer-wise interpolation (where only a single layer is mixed between two models), the analytical barrier predictions reproduce the empirical heatmap patterns and relative magnitudes across all layers in ResNet18. Both the parameter distance and the layer Hessian are shown to be essential for accurate estimation.
Limitations and Future Work
- Higher-Order Effects: The theoretical model truncates at the second order ($O(\|\Delta \theta\|^3)$). When networks are forked very early, parameter distances are large, meaning higher-order terms become non-negligible.
- Stationary Point Assumption: The derivation assumes both solutions are converged local minima ($\nabla \mathcal{L} \approx 0$), making it less applicable to early-stopped or under-trained models.
- Future Directions:
- Identifying an early geometric metric that predicts final barrier magnitude before training completes.
- Efficiently incorporating higher-order landscape geometry without full Hessian computation.
- Exploiting early-determined cross-sectional trajectory directions to perform model fusion without training all child models to full convergence.
Summary updated