Source-linked AI summary

A PAC-Bayesian Approach to Spectrally-Normalized Margin Bounds for Neural Networks

Behnam Neyshabur, Srinadh Bhojanapalli, Nathan Srebro

arXiv:1707.09564v2cs.LG

TL;DR

Overparameterized neural networks can generalize despite parameter counts that exceed sample sizes, motivating bounds based on norms rather than parameters. This paper derives a ReLU-network margin bound with PAC-Bayes analysis, using perturbation bounds tied to spectral norms and a Frobenius-norm complexity term. The paper concludes that this produces a tighter bound and a simpler analysis, while acknowledging that a later ℓ2,1-norm bound is strictly better.

  • Problem

    Parameter-count-based bounds cannot explain generalization in overparameterized networks, so the paper seeks a norm-based explanation for their small test error.

  • Method

    The paper analytically combines PAC-Bayes margin bounds with perturbation bounds to derive a ReLU-network guarantee based on layer spectral norms and weight Frobenius norms.

  • Results

    The paper reports a tighter generalization bound based on the spectral and Frobenius norms of network layers, derived through a simpler PAC-Bayes analysis.

  • Takeaways & Limitations

    PAC-Bayes perturbation analysis provides a tool for studying neural-network generalization through sharpness and layer norms.

  • Takeaways & Limitations

    A later Bartlett et al. bound using the ℓ2,1 norm is strictly better than this paper's Frobenius-norm bound.

Abstract

from arXiv · show

We present a generalization bound for feedforward neural networks in terms of the product of the spectral norm of the layers and the Frobenius norm of the weights. The generalization bound is derived using a PAC-Bayes analysis.

1 INTRODUCTION

The paper addresses why overparameterized neural networks can generalize despite parameter-count-based bounds being uninformative. It introduces a PAC-Bayes margin bound depending on spectral and Frobenius norms, with a simpler perturbation-based analysis.

  • Motivation: Overparameterized networks can achieve small test error despite having more parameters than training samples and fitting random labels.This motivates bounds that do not rely directly on parameter count.
  • Motivation: Parameter-count-based VC bounds cannot explain generalization when the number of samples is much smaller than the number of parameters.Norm- and margin-dependent bounds are proposed as a better fit for this setting.
  • Contribution: The paper presents a ReLU-network margin bound using the product of layer spectral norms and the Frobenius norms of the weights.The bound also has an additional multiplicative dependence on network width, and is not directly comparable to the related ℓ1-based bound.
  • Method: The analysis uses a generic PAC-Bayes margin bound together with a perturbation bound that controls output changes through the product of layer spectral norms.The authors contrast this with the covering-number analysis of Bartlett et al. and suggest that alternative priors or perturbations could yield other norm dependencies.
  • Related work: Earlier norm-based bounds can have multiplicative dependence across layers or exponential depth dependence, whereas this analysis multiplies only spectral norms across layers.The paper notes that its Frobenius-norm bound was later strictly improved by an ℓ2,1-norm bound.

2 GENERALIZATION BOUND

The generalization theorem is derived by combining a PAC-Bayes margin result with a perturbation analysis for ReLU networks. The proof selects Gaussian perturbations, controls their layerwise spectral norms, evaluates the KL term, and covers possible spectral-norm scales.

  • Perturbation analysis: The perturbation lemma bounds changes in network output and thereby provides a sharpness bound for the network.This perturbation result is then combined with the PAC-Bayes result to obtain the generalization guarantee.
  • Proof strategy: The proof first bounds the maximum parameter perturbation compatible with margin γ, then evaluates the PAC-Bayes KL term for that perturbation.These are the two main steps identified in the proof of the theorem.
  • Normalization: ReLU homogeneity allows the weights to be normalized across layers without changing the network function or its empirical and expected losses.The proof consequently assumes equal spectral norms β across layers.
  • PAC-Bayes construction: The proof chooses Gaussian prior and perturbation distributions with variance σ^2, calibrates σ using an approximate spectral norm, and applies a union bound over a grid of approximations.The grid covers relevant β values while keeping the prior independent of the learned predictor.

3 COMPARISON TO EXISTING GENERALIZATION BOUNDS

The paper compares its spectral/Frobenius-norm margin bound with VC-dimension and prior spectral-norm bounds, identifying weight-structure regimes where each guarantee can improve. These comparisons assume uniform layer norms and often ignore logarithmic factors.

  • Comparison setup: The comparison evaluates Theorem 1 against Bartlett et al. (2017a) and VC-dimension guarantees for depth-d, width-h ReLU networks.The VC dimension is ˜Θ(d2h2), while logarithmic factors depending on δ, m, d, and h are omitted.
  • Comparison setup: Both margin bounds multiply spectral norms across layers, but Theorem 1 uses Frobenius norms whereas Bartlett et al. uses elementwise ℓ1 norms.The comparison further assumes uniform spectral, Frobenius, and ℓ1 norms across layers, a setting acknowledged as favorable to Theorem 1.
  • Bound comparison by sparsity: Theorem 1 dominates when h ∥Wi∥F ≪ ∥Wi∥1, the bounds are similar with roughly Θ(h) significant weights, and Bartlett et al. dominates under extreme sparsity.For dense uniform-magnitude weights, the ℓ1-to-Frobenius comparison can make the second inequality tight.
  • Comparison with VC bounds: Theorem 1 can improve over the VC bound under mild eigenvalue concentration, reduced rank, or row-level sparsity, but not for unstructured random weight matrices.The relevant condition is tight only for orthogonal matrices, where all eigenvalues are equal.
  • Comparison with VC bounds: Improving over the VC bound with Bartlett et al.’s bound may require elementwise sparsity combined with low-rank row structure, and either bound can win depending on sparsity.The two conditions need not hold simultaneously, so one bound may improve over VC while the other does not.
  • Subsequent comparison: Bartlett et al. (2017b) later replaced its ℓ1 term with an ℓ2,1 norm, which is always better than the earlier ℓ1-based bound and matches the Frobenius scaling when hidden-unit norms are equal.The matching relationship is stated as ∥Wi∥2,1 ≈ h∥Wi∥F under equal hidden-unit norms.

4 PROOFS OF LEMMAS

The proofs construct a PAC-Bayes perturbation distribution, bound its KL divergence, and show that admissible perturbations change network margins by at most γ.

  • The proof constructs a perturbed-parameter distribution q and restricts it to perturbations satisfying the desired margin condition.The restricted distribution is normalized using Z, the probability that the perturbation remains admissible.
  • The perturbation can change the margin between two output units of f_w by at most γ.
  • The KL term is bounded for the restricted distribution using its normalization constant and binary entropy.The proof uses KL(q||p) = ZKL(q̃||p) + (1−Z)KL(q̃_c||p) − H(Z), with H(Z) ≤ 1.
  • The network-output perturbation bound is established inductively using the activation's Lipschitz property and φ(0) = 0.The layer-output norms are bounded using the input norm and products of layer spectral norms.

5 CONCLUSION

The paper introduces perturbation bounds that control network sharpness and uses PAC-Bayes to derive a tighter feedforward-network generalization bound based on spectral and Frobenius norms.

  • The paper presents new perturbation bounds for neural networks that provide a bound on model sharpness.
  • Applying PAC-Bayes to feedforward networks yields a tighter generalization bound based on the spectral norm and Frobenius norm of the layers.
  • The simpler proof relative to covering-number arguments suggests PAC-Bayes may be useful for analyzing neural-network generalization.
Loading 1707.09564v2…