Normalized Flat Minima: Exploring Scale Invariant Definition of Flat Minima for Neural Networks using PAC-Bayesian Analysis

Yusuke Tsuzuku, Issei Sato, Masashi Sugiyama

Abstract

The relationship between the flatness of a loss minimum and its generalization performance is a cornerstone of deep learning theory. However, traditional measures of flatness, such as the Hessian trace, are sensitive to weight rescaling—a property inherent in networks with ReLU activations or Batch Normalization. This paper introduces Normalized Sharpness, a scale-invariant metric derived through PAC-Bayesian analysis with hyperpriors. Our results demonstrate that Normalized Sharpness provides a significantly more reliable predictor of generalization than standard curvature measures, particularly in distinguishing between true learning and data memorization.

Introduction: The Scale-Invariance Problem

A long-standing observation in deep learning is that "flat" minima—regions where the loss function is relatively insensitive to parameter perturbations—tend to generalize better. Despite its intuitive appeal, this concept faces a theoretical hurdle: scale dependence. In networks employing ReLU activations or Batch Normalization, parameters can be rescaled (e.g., multiplying one layer's weights by $\alpha$ and dividing the next by $\alpha$) without altering the network's output function.

While the function remains identical, such transformations can drastically alter the curvature (Hessian) of the loss landscape. Consequently, a minimum that appears "sharp" can be made to look "flat" through simple rescaling, rendering traditional flatness metrics arbitrary. This work seeks a definition of flatness that remains invariant under these functionally equivalent transformations.

Methodology: PAC-Bayesian Normalization

To derive a robust metric, the authors utilize PAC-Bayesian analysis, which provides theoretical bounds on generalization error based on model complexity.

Hyperpriors on Variance

Standard PAC-Bayesian bounds typically assume a uniform noise level (variance) across all parameters. The authors refine this by introducing "hyperpriors," allowing the variance to be optimized for individual weight matrices, rows, or columns. By minimizing the generalization bound with respect to these noise levels, the authors naturally arrive at a "normalized" Hessian.

Normalized Sharpness

The resulting metric, Normalized Sharpness, weights the curvature (Hessian) by the scale of the parameters (specifically the Frobenius norm). This formulation ensures that the metric is invariant to the $\alpha$-rescaling trick. Furthermore, the authors prove that finding the optimal scale-invariant parameters is a convex optimization problem, ensuring efficient computation via standard gradient descent.

Experimental Results

The metric was evaluated across various architectures (MLP, LeNet, Wide ResNet) and datasets (MNIST, CIFAR-10), including critical tests involving random labels to evaluate memorization.

Correlation with Generalization

A primary test of any flatness metric is its correlation with the "generalization gap" (the difference between training and test performance). On Wide ResNets trained on CIFAR-10, Normalized Sharpness achieved a correlation coefficient of 91.1, vastly outperforming the standard trace of the Hessian, which scored 70.8.

Distinguishing Memorization

The authors conducted experiments using randomized labels to force models into "memorization" mode. Models that memorize noise exhibit a large generalization gap. While traditional metrics often struggle to distinguish these "sharp" memorization minima from "flat" generalization minima in complex models, Normalized Sharpness clearly separates the two regimes, identifying memorization as inherently sharper and providing a clearer hierarchy in the hypothesis space.

Conclusion and Future Directions

By addressing the scale-dependence of flatness through the lens of PAC-Bayesian hyperpriors, this work restores the utility of "flatness" as a meaningful predictor of generalization. While the current derivation relies on Gaussian approximations and second-order Taylor expansions (the Hessian), it provides a mathematically grounded framework for understanding the geometry of generalization. Future work may explore defining priors directly in function space to further tighten these bounds and capture more global landscape properties.

Summary updated

BibTeX
@inproceedings{tsuzuku2020normalized,
  author = {Yusuke Tsuzuku and Issei Sato and Masashi Sugiyama},
  title = {{Normalized Flat Minima: Exploring Scale Invariant Definition of Flat Minima for Neural Networks using PAC-Bayesian Analysis}},
  booktitle = {International Conference on Machine Learning},
  year = {2020},
  url = {https://openreview.net/forum?id=QMUXJbdL9mB},
}
Figure