Abstract
Standard measures of neural network "flatness" are often used to explain generalization, yet they break down for ReLU networks due to positive scale invariance (PSI). This property allows weights to be scaled without changing the network's function, making weight-space flatness measures mathematically ill-posed. This paper introduces PSI-flatness, a novel measure based on the network's basis paths rather than individual weights. By reparameterizing the loss landscape, the authors restore the link between flatness and generalization, providing both theoretical PAC-Bayes bounds and empirical validation on CIFAR-10.
Introduction
A long-standing heuristic in deep learning suggests that "flat" minima in the loss landscape—regions where small perturbations to weights do not significantly increase loss—generalize better than "sharp" minima. However, Dinh et al. (2017) demonstrated that for ReLU networks, this concept is problematic. ReLU networks are Positively Scale-Invariant (PSI): multiplying incoming weights of a neuron by a positive constant $c$ and dividing its outgoing weights by $c$ leaves the output unchanged. This scaling can transform a "flat" minimum into a "sharp" one in weight space without altering the model's predictions. Consequently, standard metrics like $\epsilon$-flatness or Hessian trace are unreliable for ReLU architectures because they are not invariant to these transformations.
Methods: PSI-Flatness via Basis Paths
To address the scaling issue, the authors propose measuring flatness in the space of basis path values. A path is defined as the product of weights along a sequence of edges from an input node to an output node. Crucially, the product of weights along any path is invariant to PSI transformations, as the scaling factors $c$ and $1/c$ cancel out along the path.
A "basis path" set is a minimal, linearly independent subset of these paths that can fully represent the network's function. The authors define PSI-flatness (including PSI-$\epsilon$-flatness and PSI-trace flatness) by applying standard flatness definitions to these basis path values instead of the raw weights.
The researchers also developed a "skeleton method" to visualize these landscapes. By perturbing basis paths and projecting them back into weight space for loss computation, they can plot 2D loss surfaces that accurately reflect the functional geometry of the model, free from scaling artifacts.
Theoretical and Empirical Results
The paper provides a rigorous theoretical foundation using PAC-Bayes theory. They derive a generalization bound showing that smaller PSI-flatness directly leads to a tighter bound on generalization error. A key insight from this theory is that "balanced" basis paths—where the ratio between the largest and smallest path values is minimized—tend to result in flatter, better-generalizing minima.
Empirically, the authors tested their framework on CIFAR-10 using a PlainNet-18. They compared models trained with small batch sizes (which typically generalize better, achieving 87.78% accuracy) against those trained with large batch sizes (86.3% accuracy). While weight-space flatness could be manipulated to look similar for both, the PSI-flatness measures clearly distinguished them: the better-generalizing small-batch model occupied a significantly flatter valley in the PSI-basis space.
Conclusion
By shifting the focus from individual weights to basis paths, this work resolves the ambiguity of flatness in ReLU networks. PSI-flatness provides a robust, scale-invariant metric that aligns with both theoretical generalization bounds and empirical observations. Future research may extend this reparameterization approach to other architectural properties and explore the trade-offs in choosing perturbation scales to ensure PAC-Bayes bounds remain informative.
Summary updated