[Paper Review] Using Mode Connectivity for Loss Landscape Analysis
This paper investigates the robustness of mode connectivity—a method that connects neural network minima via low-loss curves—across diverse training setups, demonstrating its resilience to varied optimizers, initializations, and hyperparameters. The authors apply this framework to analyze SGD with cosine annealing and restarts (SGDR), finding that while SGDR traverses loss barriers, it does not converge to and escape multiple local minima as previously claimed.
Mode connectivity is a recently introduced frame- work that empirically establishes the connected- ness of minima by finding a high accuracy curve between two independently trained models. To investigate the limits of this setup, we examine the efficacy of this technique in extreme cases where the input models are trained or initialized differently. We find that the procedure is resilient to such changes. Given this finding, we propose using the framework for analyzing loss surfaces and training trajectories more generally, and in this direction, study SGD with cosine annealing and restarts (SGDR). We report that while SGDR moves over barriers in its trajectory, propositions claiming that it converges to and escapes from multiple local minima are not substantiated by our empirical results.
Motivation & Objective
- To evaluate the resilience of mode connectivity across diverse training schemes, including different optimizers, initializations, and hyperparameters.
- To investigate whether SGDR converges to and escapes from multiple local minima, as suggested by prior work.
- To use mode connectivity as a tool for analyzing loss surfaces and optimization trajectories in deep learning.
- To explore the implications of high-accuracy connecting curves for generalization and ensemble methods.
- To challenge the interpretation of SGDR as moving between distinct minima, based on empirical analysis of loss landscapes.
Proposed method
- Use mode connectivity to connect two independently trained models (minima) via a piecewise linear curve in parameter space.
- Parameterize the connecting curve using a polygonal chain with a single bend, optimized via stochastic gradient descent on the expected loss over the curve.
- Minimize the expected loss ℓ(θ) = E[t∼U(0,1)]ℒ(ϕθ(t)) using SGD with mini-batch estimates of the gradient.
- Initialize the bend point θ at the midpoint of the two models’ parameters: θ₀ = ½(wₐ + w_b).
- Project SGDR optimization trajectories onto a 2D subspace defined by three key models (e.g., w₇₀, w₁₅₀, w₇₀₋₁₅₀) to visualize loss surface behavior.
- Compare training and validation loss along connecting curves and SGDR trajectories to assess generalization and barrier-crossing behavior.
Experimental results
Research questions
- RQ1Can mode connectivity reliably connect minima trained with different optimizers, learning rate schedules, and regularization settings?
- RQ2Does SGDR truly converge to and escape from multiple local minima, as previously hypothesized?
- RQ3How does the loss landscape along the mode-connecting curve compare to the actual training trajectory of SGDR?
- RQ4What insights does mode connectivity provide about the generalization properties of models along connecting curves?
- RQ5To what extent does the mode connectivity framework reveal structural properties of the loss surface beyond isolated minima?
Key findings
- Mode connectivity remains effective across diverse training schemes, including different optimizers (Adam, SGD), learning rate schedules, batch sizes, and initializations.
- SGDR trajectories cross loss barriers, as evidenced by higher training loss along line segments joining intermediate and final models compared to endpoints.
- Despite barrier-crossing, SGDR does not converge to and escape from multiple distinct local minima, contradicting prior claims.
- The connecting curve between w₇₀ and w₁₅₀ achieves lower training loss than the final SGDR model (ℒ(w₁₅₀) > ℒ(w₇₀₋₁₅₀)), indicating a potentially better solution on the training surface.
- Models on the connecting curve generalize worse than SGDR iterates, as shown by higher validation loss, suggesting that stochasticity in SGD aids generalization.
- The 2D loss surface projection reveals that the region between w₇₀ and w₁₅₀ has lower training loss but higher validation loss, hinting at a reason why averaging iterates (e.g., via cyclic learning rates) improves generalization.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.