NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Generalization Error Bounds for Noisy, Iterative Algorithms

Ankit Pensia, Varun Jog, Po-Ling LohISIT 2018

Abstract

In statistical learning theory, generalization error quantifies the degree to which a supervised machine learning algorithm overfits to training data. Recent work has established bounds on the generalization error of empirical risk minimization based on the mutual information $I(S;W)$ between the algorithm input $S$ and output $W$. We leverage these results to derive generalization error bounds for a broad class of iterative algorithms characterized by bounded, noisy updates with Markovian structure. Our bounds are applicable to settings such as stochastic gradient Langevin dynamics (SGLD) and stochastic gradient Hamiltonian Monte Carlo (SGHMC). These bounds hold for any output function computed over the path of iterates and allow for non-uniform sampling of data.

Introduction

A central challenge in machine learning is ensuring that a model trained on a finite dataset performs well on unseen data. This performance gap, known as the generalization error, is often addressed through Empirical Risk Minimization (ERM). However, ERM is prone to overfitting, where the model memorizes noise in the training set rather than learning underlying patterns. While classical measures like VC dimension or algorithmic stability provide some insight, they often struggle to capture the dynamics of modern, noisy, iterative optimization algorithms.

This paper provides a theoretical framework using information theory to bound the generalization gap. By treating the learning process as an information channel, we demonstrate how injecting noise into iterative updates acts as a "bottleneck," preventing the model from capturing excessive information about the specific training samples.

Methodology: Information as a Bottleneck

The core of this approach is the use of Mutual Information ($I(S; W)$), which quantifies the amount of information the final model parameters ($W$) retain about the training dataset ($S$).

The Markovian Structure

The algorithms studied are assumed to be Markovian, meaning each update depends only on the previous state and a newly sampled data point. This structure allows for the application of the chain rule of mutual information. The total information "leakage" from the dataset into the model can be decomposed into a sum of incremental leaks occurring at each iteration.

Noise as a Regularizer

By assuming the algorithm adds Gaussian noise at each step—a common practice in algorithms like Stochastic Gradient Langevin Dynamics (SGLD)—the authors show that this noise "blurs" the data's influence. Mathematically, the noise variance ($\sigma^2$) provides a controllable upper bound on the mutual information, effectively capping how much the model can overfit.

Key Results and Generalization Bounds

The primary contribution of this work is a general bound on the expected generalization error. For a loss function that is $R$-sub-Gaussian, the error is bounded by:

$$\mathbb{E}[\text{gen}(w, S)] \le \sqrt{\frac{2R^2}{n} I(S; W)}$$

For noisy iterative algorithms with step size $\eta_t$, Lipschitz constant $L$, and noise variance $\sigma_t^2$, the bound expands to:

$$\text{Generalization Error} \le \sqrt{\frac{R^2}{n} \sum_{t=1}^{T} \frac{\eta_t^2 L^2}{\sigma_t^2}}$$

Implications of the Bound

This formula highlights several critical trade-offs in algorithm design:

  1. Iterations ($T$): Increasing the number of steps can increase the risk of overfitting.
  2. Step Size ($\eta$): Larger steps may lead to higher information leakage.
  3. Noise ($\sigma$): Increasing noise variance directly reduces the bound on generalization error.
  4. Data Size ($n$): Larger training sets naturally suppress the generalization gap.

Flexibility and Applications

One of the most significant advantages of this framework is its flexibility regarding the "output function." The bounds apply regardless of whether the final model is the last iterate, an average of all iterates (Polyak-Ruppert averaging), or a specific subset of the path. Furthermore, the results hold even under non-uniform sampling strategies, provided the sampling process is independent of the current model parameters.

The authors specifically apply these bounds to:

  • Stochastic Gradient Langevin Dynamics (SGLD)
  • Stochastic Gradient Hamiltonian Monte Carlo (SGHMC)

Limitations and Future Directions

While powerful, the framework has limitations. The bounds rely on the presence of continuous noise. In deterministic settings, such as standard Stochastic Gradient Descent (SGD) without added Gaussian noise, the mutual information can become infinite, rendering these specific bounds vacuous. Additionally, as these are upper bounds, a high bound does not guarantee overfitting; it merely indicates that this specific information-theoretic tool cannot guarantee generalization.

Future research may focus on extending these information-theoretic strategies to non-noisy or degenerate cases and developing lower bounds to prove the minimum necessary overfitting for specific algorithmic classes.

Summary updated

BibTeX
@inproceedings{pensia2018generalization,
  author = {Ankit Pensia and Varun Jog and Po-Ling Loh},
  title = {{Generalization Error Bounds for Noisy, Iterative Algorithms}},
  booktitle = {ISIT},
  year = {2018},
  url = {https://openreview.net/forum?id=1TFVTJRVgu7},
}
Figure