On the Generalization of Models Trained with SGD: Information-Theoretic Bounds and Implications

Ziqiao Wang, Yongyi Mao

Introduction

A central mystery in modern machine learning is why high-capacity deep neural networks generalize so effectively. Despite having far more parameters than data points—a scenario where classical statistical learning theory predicts overfitting—these models often perform excellently on unseen data. This paper addresses this puzzle by introducing tighter information-theoretic upper bounds for the generalization error of models trained with Stochastic Gradient Descent (SGD).

Refining Generalization Bounds

Researchers have long used information theory to bound the "generalization gap" (the difference between training and test performance) by measuring the mutual information between training data and learned model weights. However, previous bounds, such as those by Neu et al. (2021), often included a "local gradient sensitivity" term. This term typically grows monotonically during training, resulting in loose bounds that offer little practical insight.

The authors' key innovation is the removal of this problematic sensitivity term. By applying a specific instance of the HWI inequality and a novel technical lemma, they derive a bound primarily driven by gradient dispersion—a measure of how much individual mini-batch gradients deviate from their mean. Unlike sensitivity, gradient dispersion typically vanishes as the model nears a local minimum, allowing for significantly tighter bounds that more closely track the actual generalization gap throughout the training process.

Comparison of the trajectory term in the proposed bound versus Neu et al. (2021) across MNIST and CIFAR-10. The new bound (red) remains significantly tighter and more stable than the previous sensitivity-based approach (orange).

Practical Training Strategies

From these theoretical insights, the authors propose two actionable techniques to improve model performance:

  1. Gaussian Model Perturbation (GMP): Inspired by the "flatness" term in their bound, this scheme adds Gaussian noise to model parameters during training. This acts as a local "average pooling" on the loss surface, encouraging the optimizer to find flatter minima, which are theoretically linked to better generalization.
  2. Dynamic Gradient Clipping: This strategy aims to reduce gradient dispersion by clipping the current gradient norm if it exceeds the norm from several steps prior. This effectively slows the transition from the "learning" regime (capturing patterns) to the "memorizing" regime (fitting noise).

Empirical Validation and Key Results

The theoretical bounds and proposed methods were validated on standard benchmarks, including MNIST, CIFAR-10/100, and SVHN.

  • Bound Verification: The estimated bounds consistently track the trend of the true generalization gap across different network widths and label noise levels. They even capture the counter-intuitive decay of the gap as model size increases.
  • GMP Performance: Gaussian Model Perturbation (GMP) performs comparably to state-of-the-art regularization methods like Sharpness-Aware Minimization (SAM). On CIFAR-100 with a VGG16 architecture, GMP achieved a top-1 accuracy of 75.09%, outperforming the baseline ERM (72.16%) and other methods like AMP (74.40%).
  • Mitigating Memorization: In noisy label scenarios, Dynamic Gradient Clipping was shown to effectively mitigate memorization, closing the generalization gap by preventing the model from entering a high-dispersion memorization phase.
  • Double Descent Phenomenon: The authors observed that in the presence of label noise, gradient dispersion exhibits a "double descent" curve. The valley in this curve appears to mark the transition between the generalization regime and the memorization regime.

Conclusion

By focusing on gradient dispersion rather than sensitivity, this work provides a more precise theoretical framework for understanding SGD's generalization properties. The resulting practical techniques, particularly GMP, offer robust tools for improving deep learning models. Future research will explore refining these bounds using conditional mutual information and further investigating the relationship between training trajectories and loss surface geometry.

Summary updated

BibTeX
@inproceedings{wang2022generalization,
  author = {Ziqiao Wang and Yongyi Mao},
  title = {{On the Generalization of Models Trained with SGD: Information-Theoretic Bounds and Implications}},
  booktitle = {International Conference on Learning Representations},
  year = {2022},
  url = {https://openreview.net/forum?id=xKk-n5jDED},
}
Figure