Shaping the learning landscape in neural networks around wide flat minima

Carlo Baldassi, Fabrizio Pittorino, Riccardo Zecchina · DOI

TL;DR

This paper demonstrates that the non-convex loss landscapes of neural networks contain rare, extremely robust regions called Wide Flat Minima (WFM) that coexist alongside narrower minima. The authors show that standard cross-entropy loss naturally biases optimization toward these flat regions, and they introduce novel entropy-driven algorithms designed to explicitly target them for superior generalization.

What Problem Does This Paper Address?

A central mystery in deep learning is why Deep Neural Networks (DNNs) successfully optimize highly non-convex loss functions without getting trapped in poor local minima, while simultaneously generalizing well to unseen data without overfitting.

The authors address this by exploring the geometric structure of the weight space. Specifically, they investigate the existence of "Wide Flat Minima" (WFM)—rare regions in the loss landscape characterized by a high local density of zero-error solutions. The paper aims to understand how these regions are structured, why certain network architectures possess them while others do not, and how standard optimization choices (like cross-entropy loss) help guide algorithms toward them.

Methods

The authors combine analytical tools from the statistical physics of disordered systems with numerical experiments:

  • Local Entropy Theory: They utilize a large-deviation framework (specifically the 1-step replica-symmetry-broken, or 1-RSB, formalism) to calculate the volume of optimal weight configurations within a given distance of a reference point.
  • Model Architectures: They analytically study shallow non-convex models, including the single-layer binary perceptron and two-layer committee machines with both discrete and continuous weights. They contrast these with a "parity machine" to show how architectural choices alter the landscape.
  • Novel Algorithms:
  • focusing Belief Propagation (fBP): A message-passing algorithm that uses interacting real replicas to explicitly bias the search toward high local entropy (wider) regions.
  • Entropic Least Action Learning (eLAL): A greedy, replicated heuristic solver that uses an elastic interaction to pull replicas toward a common wide minimum.
  • Cross-Entropy SGD Schedules: They analyze standard Stochastic Gradient Descent with cross-entropy loss under "fast" and "slow" weight-norm growth schedules to see how norm constraints affect flatness.

Datasets

  • Synthetic Random Patterns: Used for rigorous analytical derivations to isolate the structural properties of the loss landscape independent of data correlations.
  • Fashion-MNIST: A binarized subset (discriminating between the "Dress" and "Coat" classes) used for numerical validation, Hessian spectrum analysis, and evaluating real-world generalization performance.

Key Insights and Ideas

  • Coexistence of Minima: The loss landscape is dominated by narrow, isolated critical points. However, rare and extremely wide flat minima also exist. Despite their rarity in a pure volume sense, they possess a large "attraction basin" for standard learning heuristics.
  • The Cross-Entropy Advantage: Minimizing the cross-entropy loss function implicitly acts as a proxy for maximizing local entropy. It naturally biases gradient descent toward WFM rather than narrow, isolated solutions.
  • Architecture Matters: The presence of WFM is a structural property driven by the specific nonlinearity of the network. While the committee machine (which uses a threshold sum activation) contains WFM, a complementary "parity machine" (which multiplies hidden unit outputs) does not possess flat regions at any distance scale.
  • Weight Norm Control: In continuous networks, slowing down the growth of the weight norm during training (e.g., ceSGD-slow) gives the algorithm time to explore and settle into wider, flatter regions, significantly boosting performance compared to a rapid norm increase (ceSGD-fast).

Key Results

  • Analytical Volume Proofs: The authors derive explicit formulas for the normalized local entropy ($\mathcal{V}_1$) of committee machines. As shown in Figure 1, wide flat regions persist even as the constraint load ($\alpha$) increases, both for small ($K=3$) and large numbers of hidden units.
Figure 1. Normalized local entropy V1 vs q1, i.e. logarithm of the fraction of configurations of y real replicas at mutual overlap q1 in which all replicas have zero error loss LNE. The curves are for a tree-like committee machine trained on αN random patterns, for various values of α, obtained from a replica calculation in the limit of large N and large number of real replicas y. When the curves approach 0 as q1 →1 it means that nearly all configurations are minima, thus that the replicas are collectively exploring a wide minimum (any q1 < 1 implies distances of O (N) between replicas). Top: the case of K = 3 units. Bottom: the limiting case of a large number of hidden units K.
  • Hessian Spectrum & Flatness: Algorithms explicitly targeting local entropy (fBP and eLAL) consistently find solutions with much narrower Hessian spectra (more eigenvalues concentrated near zero), proving they land in flatter regions than standard algorithms.
  • Generalization Correlation: Testing on Fashion-MNIST confirmed that flatter minima directly correlate with better test performance and robustness to input noise. The ceSGD-slow schedule successfully found wider minima and achieved significantly lower test error than its ceSGD-fast counterpart.

Limitations and Future Work

  • Shallow Architectures: The analytical derivations using statistical physics are currently limited to one- and two-layer networks.
  • Algorithmic Scaling: While fBP provides excellent theoretical insights and works well on tree-like architectures, running it on complex, highly correlated real-world deep networks is computationally challenging and prone to convergence issues.
  • Future Directions: The authors note that promising future work includes extending these local entropy landscape analysis methods to deeper, multi-layer architectures to build a unified framework for modern deep learning generalization.

Summary updated

Abstract

Learning in Deep Neural Networks (DNN) takes place by minimizing a non-convex high-dimensional loss function, typically by a stochastic gradient descent (SGD) strategy. The learning process is observed to be able to find good minimizers without getting stuck in local critical points, and that such minimizers are often satisfactory at avoiding overfitting. How these two features can be kept under control in nonlinear devices composed of millions of tunable connections is a profound and far reaching open question. In this paper we study basic non-convex one- and two-layer neural network models which learn random patterns, and derive a number of basic geometrical and algorithmic features which suggest some answers. We first show that the error loss function presents few extremely wide flat minima (WFM) which coexist with narrower minima and critical points. We then show that the minimizers of the cross-entropy loss function overlap with the WFM of the error loss. We also show examples of learning devices for which WFM do not exist. From the algorithmic perspective we derive entropy driven greedy and message passing algorithms which focus their search on wide flat regions of minimizers. In the case of SGD and cross-entropy loss, we show that a slow reduction of the norm of the weights along the learning process also leads to WFM. We corroborate the results by a numerical study of the correlations between the volumes of the minimizers, their Hessian and their generalization performance on real data.
BibTeX
@article{baldassi2020shaping,
  author = {Carlo Baldassi and Fabrizio Pittorino and Riccardo Zecchina},
  title = {{Shaping the learning landscape in neural networks around wide flat minima}},
  journal = {Proc. Natl. Acad. Sci. USA},
  year = {2020},
  doi = {10.1073/pnas.1908636117},
}
Figure