Unique Properties of Flat Minima in Deep Networks

Rotem Mulayoff, Tomer Michaeli

While it is widely accepted that gradient descent (GD) favors "flat minima," the deep learning community has lacked a clear understanding of what these solutions actually look like internally. This paper proves that in deep linear networks, flat minima possess a unique structural "highway": consecutive layers align their singular vectors to create a dedicated, balanced path for the most important signals.

The Mystery of Flat Minima

In deep learning, the "sharpness" of a minimum—the curvature of the loss landscape—is a highly debated topic. We know that stochastic gradient descent (SGD) tends to avoid sharp "valleys" and settle into flatter ones, a behavior many believe aids generalization. However, previous research has shown that a sharp minimum can technically be "stretched" to look flat without changing the network's output, suggesting that flatness isn't solely about generalization.

The authors ask a more fundamental question: If the optimizer forces the network into the flattest possible minimum, what does that do to the internal structure of the weights? Moving beyond empirical observations, they provide a rigorous mathematical characterization of these solutions.

Methodology

The authors primarily analyze deep linear neural networks trained with a quadratic loss. While linear networks might seem simple, they serve as a crucial theoretical laboratory because their loss landscapes are non-convex and share many complexities with deep nonlinear models.

Key methodological steps include:

  • Hessian Analysis: Defining sharpness as the maximal eigenvalue of the Hessian matrix (the matrix of second-order derivatives).
  • Minimax Optimization: Solving for the "flattest of the flat" by finding specific weight configurations that minimize the maximum Hessian eigenvalue among all possible global minima.
  • Singular Value Decomposition (SVD): Tracking how signals are transformed as they pass through each layer.

To validate their theoretical findings on more realistic architectures, the authors also conducted experiments using fully connected ReLU networks on a denoising task with the MNIST dataset.

Key Insights and Structural Properties

The "Highway" Effect (Layer Coupling) In the flattest minima, consecutive layers are not independent. The "exit" direction (left singular vector) of one weight matrix aligns perfectly with the "entrance" direction (right singular vector) of the next. This forms a distinct, high-gain path from input to output dedicated to the most significant signal.

Balanced Gains In arbitrary minima, one layer might have a massive gain while the next has a tiny one. In flat minima, the gain is distributed gracefully across the network. The signal experiences a consistent, moderate amplification at every step.

Sharpness vs. Depth The authors prove that as a network gets deeper, its flattest possible minimum becomes sharper. Specifically, sharpness grows roughly linearly with the number of layers. This explains why deeper networks often require smaller learning rates to remain stable.

Visualization is Deceiving The paper provides a warning to researchers: standard 1D plots used to compare the sharpness of two minima can be mathematically misleading. A minimum that looks "sharper" on a 1D interpolation plot might actually be flatter in the full high-dimensional space.

1D interpolation plots can be misleading when comparing the sharpness of minima.

Optimization Dynamics and Results

Stability Bound and Implicit Bias The authors derive a precise maximum step-size for GD. If the step size is large, the optimizer is physically incapable of staying in sharp regions and is "pushed" toward the flattest solutions.

Gradient descent trajectories demonstrating how optimizers are pushed away from sharp regions toward flatter minima.

Linear ResNets and Nonlinear Transferability They show that linear Residual Networks (ResNets) with zero initialization are naturally biased toward these flattest, balanced solutions. Furthermore, experiments with ReLU networks confirmed that the "balanced gain" and "layer coupling" properties predicted by the linear theory also appear in practice when training nonlinear models with large step sizes.

Limitations and Future Work

  • Linearity Assumption: The core proofs rely on linear layers. While experiments show these properties hold for ReLU networks, a formal mathematical extension to nonlinear activations remains an open challenge.
  • Loss Function: The analysis is specific to quadratic (MSE) loss. The behavior of flat minima under cross-entropy loss might differ due to the different geometry of the loss surface.
  • Generalization Link: The paper focuses on the structural properties of flat minima rather than proving a direct link to generalization, leaving the "why does flatness help?" debate for future study.

Summary updated

BibTeX
@inproceedings{mulayoff2020unique,
  author = {Rotem Mulayoff and Tomer Michaeli},
  title = {{Unique Properties of Flat Minima in Deep Networks}},
  booktitle = {International Conference on Machine Learning},
  year = {2020},
  url = {https://openreview.net/forum?id=BTSGCyTDPN},
}
Figure