Wide stochastic networks: Gaussian limit and PAC-Bayesian training

Eugenio Clerico, George Deligiannidis, Arnaud Doucet

Introduction: Bridging the Generalization Gap

In deep learning, models often possess millions more parameters than training points, yet they generalize remarkably well. This phenomenon contradicts classical statistical theory. PAC-Bayesian theory offers a framework to bridge this gap by providing "non-vacuous" (meaningful) upper bounds on the true error of stochastic classifiers. However, optimizing these bounds is difficult because they often involve the 0-1 loss—a step function with zero gradients almost everywhere, making standard gradient descent impossible.

The Gaussian Limit and Lazy Training

This research addresses the optimization challenge by focusing on shallow stochastic networks where weights are independent normal distributions. The authors prove a critical Gaussian limit: as the number of hidden nodes ($n$) approaches infinity, the network's output distribution converges to a multivariate normal distribution.

Crucially, this Gaussian behavior is not limited to initialization. The authors demonstrate that it persists throughout "lazy" training, provided the weights do not deviate significantly from their starting points. This stability is naturally enforced by the PAC-Bayesian framework, which penalizes the Kullback-Leibler (KL) divergence between trained and initial weights.

Making the 0-1 Loss Differentiable

The primary advantage of the Gaussian limit is that the expected 0-1 loss becomes a smooth, analytical function involving the error function (erf). This transformation allows for direct gradient descent on the PAC-Bayesian bound itself, bypassing the need for surrogate losses like cross-entropy that often create a mismatch between optimization objectives and generalization guarantees.

Intuition: The "Stairs" Analogy

The benefit of stochasticity can be understood through a simple physical analogy regarding gradient flow on non-differentiable surfaces.

The "Stairs" Analogy: A single point on a step has no gradient, but a stochastic cloud overlaps steps to provide a clear direction.

Imagine trying to descend a flight of stairs using gradient descent. A deterministic model is like a single point; if it lands on a flat step, the gradient is zero, and it cannot move. A stochastic model, however, acts like a "cloud" of points. Because the cloud is spread out, it overlaps multiple steps simultaneously. The average gradient across this cloud points "downstairs," providing a clear signal for optimization even when the underlying loss surface is discontinuous.

Key Results and Empirical Validation

The proposed "Gaussian" training method (labeled invkl) was evaluated against standard PAC-Bayesian objectives such as McAllester (McAll) and Thiemann et al. (lbd).

  • Binary MNIST: The method achieved a superior generalization bound of 0.1773, outperforming all other tested methods.
  • Full MNIST: On the 10-class task, the Gaussian method reached a test error of 10.83%, significantly outperforming standard PAC-Bayesian methods which typically ranged between 26% and 31%.
  • Distributional Match: Empirical histograms of output nodes confirmed a near-perfect match with theoretical Gaussian predictions, even with a modest hidden layer size of 1,200 nodes.

Limitations and Future Directions

While promising, the current theory is limited to shallow architectures due to the requirement for hidden node independence. Extending these proofs to deep, multilayer networks remains a challenge, as nodes in deeper layers become dependent. Additionally, the reliance on the "lazy regime" suggests the approximation might degrade in tasks requiring significant feature learning where weights must move far from their initialization.

Summary updated

BibTeX
@inproceedings{clerico2023wide,
  author = {Eugenio Clerico and George Deligiannidis and Arnaud Doucet},
  title = {{Wide stochastic networks: Gaussian limit and PAC-Bayesian training}},
  booktitle = {ALT},
  year = {2023},
}
Figure