[Paper Review] Taxonomizing local versus global structure in neural network loss landscapes
This paper introduces a taxonomy of neural network loss landscapes by analyzing local and global structural properties across thousands of models. It demonstrates that high test accuracy correlates with globally well-connected landscapes, model ensemble similarity, and local smoothness—while poor data quality or small models can induce poorly-connected landscapes that hurt generalization despite zero training loss.
Viewing neural network models in terms of their loss landscapes has a long history in the statistical mechanics approach to learning, and in recent years it has received attention within machine learning proper. Among other things, local metrics (such as the smoothness of the loss landscape) have been shown to correlate with global properties of the model (such as good generalization performance). Here, we perform a detailed empirical analysis of the loss landscape structure of thousands of neural network models, systematically varying learning tasks, model architectures, and/or quantity/quality of data. By considering a range of metrics that attempt to capture different aspects of the loss landscape, we demonstrate that the best test accuracy is obtained when: the loss landscape is globally well-connected; ensembles of trained models are more similar to each other; and models converge to locally smooth regions. We also show that globally poorly-connected landscapes can arise when models are small or when they are trained to lower quality data; and that, if the loss landscape is globally poorly-connected, then training to zero loss can actually lead to worse test accuracy. Our detailed empirical results shed light on phases of learning (and consequent double descent behavior), fundamental versus incidental determinants of good generalization, the role of load-like and temperature-like parameters in the learning process, different influences on the loss landscape from model and data, and the relationships between local and global metrics, all topics of recent interest.
Motivation & Objective
- To understand the interplay between local and global structures in neural network loss landscapes.
- To identify which loss landscape properties correlate with good generalization performance in real-world models.
- To move beyond local sharpness metrics by incorporating global connectivity and similarity measures.
- To investigate how model size, data quality, and training hyperparameters affect landscape structure.
- To provide an operational ML framework using familiar metrics (CKA, mode connectivity, Hessian) to probe global loss landscape properties.
Proposed method
- Empirically analyze thousands of trained neural network models across diverse tasks, architectures, and data regimes.
- Use Hessian-based metrics (largest eigenvalue, trace) to quantify local curvature and smoothness.
- Apply mode connectivity to assess global landscape connectivity between trained models.
- Compute CKA (Centered Kernel Alignment) similarity between model outputs to measure ensemble similarity.
- Systematically vary model width, data quantity, data quality (label noise), and training temperature.
- Correlate these metrics with test accuracy to identify structural patterns linked to generalization.
Experimental results
Research questions
- RQ1How do local metrics like Hessian eigenvalues relate to global landscape properties such as connectivity and similarity?
- RQ2What role does data quality and model size play in shaping the global connectivity of the loss landscape?
- RQ3Can globally poorly-connected landscapes lead to poor generalization even when local minima are flat?
- RQ4How do load-like (model size) and temperature-like (training hyperparameters) parameters influence landscape structure?
- RQ5To what extent do connectivity and similarity metrics predict generalization performance better than local sharpness?
Key findings
- Globally well-connected loss landscapes are strongly correlated with high test accuracy, while poorly-connected landscapes degrade generalization even when training loss is zero.
- Increasing model width improves both mode connectivity and CKA similarity, indicating better global structure and model agreement.
- Higher data quantity and quality enhance CKA similarity and mode connectivity, suggesting that data quality directly shapes global landscape properties.
- In Phase IV (globally well-connected and locally flat minima), a larger training temperature improves model similarity, indicating a role for stochasticity in promoting generalization.
- Low mode connectivity combined with small Hessian eigenvalues and low CKA similarity indicates 'lack of signal' from data, suggesting poor data quality.
- Local sharpness metrics (e.g., Hessian trace) are insufficient predictors of generalization when confounded by data quality and model size, as flat minima can still generalize poorly.
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.