Skip to main content
QUICK REVIEW

[Paper Review] Positively Scale-Invariant Flatness of ReLU Neural Networks

Mingyang Yi, Qi Meng|arXiv (Cornell University)|Mar 6, 2019
Advanced Neural Network ApplicationsComputer Science20 references11 citations
TL;DR

This paper proposes PSI-flatness, a positively scale-invariant measure of flatness for ReLU neural networks based on basis path values, which overcomes the limitations of traditional flatness definitions that fail to account for the positive homogeneity of ReLU units. The authors theoretically link PSI-flatness to generalization via a PAC-Bayes bound and empirically validate that minima with lower PSI-flatness generalize better, as shown by visualizations of loss landscapes in basis path space.

ABSTRACT

It was empirically confirmed by Keskar et al.\cite{SharpMinima} that flatter minima generalize better. However, for the popular ReLU network, sharp minimum can also generalize well \cite{SharpMinimacan}. The conclusion demonstrates that the existing definitions of flatness fail to account for the complex geometry of ReLU neural networks because they can't cover the Positively Scale-Invariant (PSI) property of ReLU network. In this paper, we formalize the PSI causes problem of existing definitions of flatness and propose a new description of flatness - \emph{PSI-flatness}. PSI-flatness is defined on the values of basis paths \cite{GSGD} instead of weights. Values of basis paths have been shown to be the PSI-variables and can sufficiently represent the ReLU neural networks which ensure the PSI property of PSI-flatness. Then we study the relation between PSI-flatness and generalization theoretically and empirically. First, we formulate a generalization bound based on PSI-flatness which shows generalization error decreasing with the ratio between the largest basis path value and the smallest basis path value. That is to say, the minimum with balanced values of basis paths will more likely to be flatter and generalize better. Finally. we visualize the PSI-flatness of loss surface around two learned models which indicates the minimum with smaller PSI-flatness can indeed generalize better.

Motivation & Objective

  • To address the ill-posed nature of existing flatness definitions in ReLU networks, which do not account for the networks' positive scale-invariance (PSI) property.
  • To formalize a new flatness measure—PSI-flatness—that is invariant under positive scaling transformations of the network weights.
  • To establish a theoretical connection between PSI-flatness and generalization error using PAC-Bayes generalization bounds.
  • To empirically validate that lower PSI-flatness corresponds to better generalization through visualization of loss landscapes in basis path space.

Proposed method

  • Define PSI-flatness using values of basis paths—maximal linearly independent subsets of all paths in a ReLU network—since these values are proven to be PSI-variables.
  • Propose three variants of PSI-flatness corresponding to standard flatness definitions in weight space, but re-expressed in terms of basis path values to ensure scale invariance.
  • Derive a PAC-Bayes generalization bound that depends on the ratio between the largest and smallest basis path values, showing that balanced path values reduce generalization error.
  • Use the skeleton method from Meng et al. [16] to project perturbations in basis path space back to weight space for loss evaluation during visualization.
  • Visualize the loss surface in basis path space by sampling perturbations along two random directions in the basis path space and computing the loss via forward pass on projected weights.
  • Compare two models trained with different SGD batch sizes (128 vs. 2048) to obtain minima with distinct generalization performance (87.78% vs. 86.3% test accuracy).

Experimental results

Research questions

  • RQ1Can existing flatness definitions adequately capture generalization behavior in ReLU networks, given their positive scale-invariance?
  • RQ2Is there a flatness measure that is invariant under positive scaling transformations of ReLU network weights?
  • RQ3Does a lower ratio between the largest and smallest basis path values correlate with better generalization in ReLU networks?
  • RQ4Can visualizations of the loss landscape in basis path space reveal flatter minima that generalize better?

Key findings

  • The proposed PSI-flatness measure is invariant under positive scaling transformations, making it a more appropriate measure for ReLU networks than traditional weight-space flatness definitions.
  • A PAC-Bayes generalization bound shows that generalization error decreases as the ratio of the largest to smallest basis path value decreases, indicating that balanced basis path values lead to flatter, better-generalizing minima.
  • Empirical visualization of the loss surface in basis path space reveals that the model trained with a smaller batch size (87.78% test accuracy) lies in a flatter valley under PSI-flatness, while the larger-batch model (86.3% accuracy) lies in a sharper region.
  • The visualization results confirm that PSI-flatness captures generalization behavior better than weight-space flatness, as the latter fails to distinguish generalization performance in the same way.
  • The study demonstrates that basis path values serve as effective PSI-variables for analyzing the geometry of ReLU network loss landscapes.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.