De-randomized PAC-Bayes Margin Bounds: Applications to Non-convex and Non-smooth Predictors

Arindam Banerjee, Tiancong Chen, Yingxue ZhouarXiv 2020

Abstract

In spite of several notable efforts, explaining the generalization of deterministic non-smooth deep nets, e.g., ReLU-nets, has remained challenging. Existing approaches for deterministic non-smooth deep nets typically need to bound the Lipschitz constant of such deep nets but such bounds are quite large, may even increase with the training set size yielding vacuous generalization bounds. In this paper, we present a new family of de-randomized PAC-Bayes margin bounds for deterministic non-convex and non-smooth predictors, e.g., ReLU-nets. Unlike PAC-Bayes, which applies to Bayesian predictors, the de-randomized bounds apply to deterministic predictors like ReLU-nets. A specific instantiation of the bound depends on a trade-off between the (weighted) distance of the trained weights from the initialization and the effective curvature ('flatness') of the trained predictor. To get to these bounds, we first develop a de-randomization argument for non-convex but smooth predictors, e.g., linear deep networks (LDNs), which connects the performance of the deterministic predictor with a Bayesian predictor. We then consider non-smooth predictors which for any given input realized as a smooth predictor, e.g., ReLU-nets become some LDNs for any given input, but the realized smooth predictors can be different for different inputs. For such non-smooth predictors, we introduce a new PAC-Bayes analysis which takes advantage of the smoothness of the realized predictors, e.g., LDN, for a given input, and avoids dependency on the Lipschitz constant of the non-smooth predictor. After careful de-randomization, we get a bound for the deterministic non-smooth predictor. We also establish non-uniform sample complexity results based on such bounds. Finally, we present extensive empirical results of our bounds over changing training set size and randomness in labels.

Introduction

A central goal in machine learning theory is to provide rigorous generalization bounds—mathematical guarantees on how well a model trained on a finite dataset will perform on unseen data. However, for modern deep neural networks, traditional theoretical tools have often proven inadequate. Most existing bounds are "vacuous," meaning they provide values greater than one, which offers no practical insight into the model's reliability.

This paper addresses two primary obstacles in the theory of deep learning generalization: the deterministic nature of deployed models and the non-smoothness of popular architectures like ReLU networks. By introducing a de-randomized PAC-Bayes framework, the authors provide a new family of margin-based bounds that are both non-vacuous and align with empirical observations regarding the "flatness" of the loss landscape.

The Problem: Vacuity and Lipschitz Constants

Traditional generalization bounds for deep networks frequently rely on the Lipschitz constant, a measure of the maximum rate of change of the network's output relative to its input. For deep architectures, these constants tend to be extremely large and often grow with the size of the training set. When these constants are used to calculate bounds, the resulting numbers explode, failing to explain why deep networks generalize so well in practice.

Furthermore, the most powerful tools for deriving tight bounds, such as PAC-Bayes theory, are fundamentally designed for stochastic (Bayesian) predictors—models that output a probability distribution over weights. In contrast, the models used in production are almost exclusively deterministic. Bridging this gap requires a way to apply Bayesian theoretical machinery to deterministic predictors without losing the tightness of the bound.

Methodology: De-randomization and Curvature

The authors propose a three-step strategy to derive meaningful bounds for deterministic, non-smooth predictors:

1. De-randomization for Smooth Predictors

The framework begins by establishing a connection between a deterministic smooth predictor (such as a Linear Deep Network) and its Bayesian counterpart. This de-randomization argument allows the researchers to leverage PAC-Bayes tools to analyze models that do not inherently involve randomness in their weights.

2. Addressing Non-Smoothness via Local Realizations

ReLU networks are technically non-smooth due to the "kinks" at zero in the activation function. However, the authors observe that for any specific input, a ReLU network effectively collapses into a smooth Linear Deep Network (LDN) by fixing the set of active neurons. To handle the fact that these realizations change across different inputs, the authors introduce a novel analysis using Martingale Difference Sequences (MDS). This allows them to avoid the global Lipschitz constant entirely, focusing instead on the smoothness of the realized predictor for a given input.

3. Anisotropic Posteriors and Flatness

Rather than assuming a uniform margin for all weights, the authors utilize an anisotropic Gaussian posterior. This approach accounts for the geometry of the loss surface, recognizing that some directions in the weight space are "flatter" than others. By using the diagonal elements of the Hessian matrix (the second-order derivatives of the loss), the bound captures the effective curvature of the predictor. Flat minima—regions where small changes in weights do not significantly change the output—are shown to be a key driver of generalization.

Key Theoretical Insights

  • Flatness over Lipschitzness: The research demonstrates that the local curvature (flatness) of the loss surface is a far more accurate predictor of generalization than global Lipschitz constants.
  • Scale Invariance: A major hurdle in flatness-based research is that curvature can often be artificially changed by rescaling weights. The authors prove their proposed bound is scale-invariant, ensuring it measures the intrinsic geometry of the model.
  • Non-Uniformity: Unlike "uniform" bounds that apply to an entire class of functions, these are non-uniform bounds specific to the exact predictor trained. This specificity allows the bound to remain tight even when the overall hypothesis class is extremely complex.

Empirical Results

The authors validated their framework using MNIST and CIFAR-10 datasets across various architectures (depths of 2–8 layers and widths of 128–512 nodes). The experiments focused on how the bounds responded to two critical factors: training set size and label noise.

  • Qualitative Accuracy: The bounds correctly tracked empirical reality, decreasing as the number of training samples increased and increasing as more random labels (noise) were introduced.
  • Stability in Depth: While bounds based on spectral norms often explode as networks get deeper, the authors' $L_2$ norm-based approach remained stable, providing a more robust explanation for the success of deep architectures.
  • Non-Vacuous Values: Crucially, the bounds produced were quantitatively meaningful (often well below 1), representing a significant step forward in making generalization theory practical for deep learning.

Conclusion and Future Work

This work provides a rigorous foundation for understanding the generalization of deterministic ReLU networks by shifting the focus from global Lipschitz constants to local curvature and de-randomized PAC-Bayes theory. While a numerical gap still exists between the theoretical bounds and actual test errors, the framework offers a clear path forward. Future research may further tighten these results by exploring data-dependent priors, utilizing full Hessian information rather than just the diagonal, and extending the empirical validation to more complex architectures like Convolutional Neural Networks (CNNs) and ResNets.

Summary updated

BibTeX
@misc{banerjee2020de,
  author = {Arindam Banerjee and Tiancong Chen and Yingxue Zhou},
  title = {{De-randomized PAC-Bayes Margin Bounds: Applications to Non-convex and Non-smooth Predictors}},
  year = {2020},
  eprint = {2002.09956},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2002.09956},
}
Figure