Generalization error bounds for iterative learning algorithms with bounded updates

Jingwen Fu, Nanning Zheng · OpenReview

Abstract

This paper explores the generalization characteristics of iterative learning algorithms with bounded updates for non-convex loss functions, employing information-theoretic techniques. We introduce a novel bound for the generalization error that extends beyond Stochastic Gradient Descent (SGD) to include popular optimizers like Adam and Adagrad. Our approach reformulates mutual information as the uncertainty of updates and utilizes a variance decomposition technique to simplify the analysis. We demonstrate improved bounds, particularly when the model dimension $d$ increases at the same rate as the sample size $n$, and bridge the gap between theory and empirical scaling laws in large language models (LLMs).

Introduction

In machine learning, the generalization error—the performance gap between training and unseen data—remains a fundamental challenge for theoretical analysis. Traditional metrics like VC dimension and Rademacher complexity often fail to explain the success of modern deep learning, where overparameterized models (where $d > n$) generalize remarkably well despite their massive capacity.

Recent information-theoretic approaches have attempted to address this by measuring the mutual information between training data $S_n$ and model weights $W$. However, these methods typically rely on the injection of noise at every iteration to ensure mathematical convergence. Standard iterative algorithms like Adam or SGD do not inherently inject such noise, making them difficult to analyze with existing information-theoretic tools. This paper proposes a framework to bound generalization error for a broad class of "bounded update" algorithms without requiring per-step noise.

Methodology

To bridge the gap between theory and practice, the authors introduce three key technical innovations:

  1. Bounded Updates Assumption: Rather than assuming global Lipschitz smoothness of the loss function, the analysis focuses on the local property of the algorithm's updates. This condition is naturally satisfied by Adam, Adagrad, and RMSprop, making the theory applicable to complex neural networks.
  2. Uncertainty of Updates: Mutual information $I(W; S_n)$ is reframed as a measure of update uncertainty. If an algorithm produces consistent updates regardless of specific training samples, it exhibits low update uncertainty and, consequently, better generalization.
  3. Variance Decomposition: Moving away from the standard "chain rule" of mutual information—which requires tracking information at every iteration—the authors employ a variance decomposition technique. By using the covariance of updates, they create a "surrogate process" where noise is only conceptually added to the final update, leading to tighter and more manageable bounds.

Theoretical Results and Comparison

The proposed framework yields significantly tighter bounds than previous state-of-the-art methods, particularly in non-convex settings.

Comparison of generalization error bounds across different learning algorithms and assumptions.

As shown in the comparison above, the proposed method achieves a vanishing rate of $O(\log n / \sqrt{n})$ for bounded update algorithms, outperforming prior work on adaptive optimizers like Adam and Adagrad (e.g., Nguyen et al., 2022). Furthermore, the analysis provides a better vanishing rate than traditional stability-based methods for non-convex functions.

Bridging to Scaling Laws

A critical finding of this work is the behavior of the bound in overparameterized regimes. When the model dimension $d$ scales linearly with the number of samples $n$ ($d = \Theta(n)$), the authors show that their theoretical vanishing rate aligns closely with empirical scaling laws observed in landmark LLM papers.

Comparison of theoretical generalization error bounds with empirical scaling laws from Kaplan et al., Hoffmann et al., and Muennighoff et al.

While previous information-theoretic bounds often collapsed to a constant $O(1)$ in these regimes, the proposed bounds continue to vanish at rates of $O(1/n^{1/3})$ or $O(1/n^{1/2})$. This provides a theoretical justification for the power-law behavior observed in models like Chinchilla ($O(n^{-0.28})$).

Discussion and Limitations

While the framework provides a significant step forward, several areas remain for future exploration. For purely convex problems, algorithmic stability methods still offer tighter bounds. Additionally, the reliance on the Russo-Zou framework means the bounds may still be loose in specific theoretical failure cases. Future work should aim to integrate more specific knowledge of the optimizer's learning trajectory and extend the analysis to complex learning rate schedules like cosine annealing.

Summary updated

BibTeX
@misc{fu2023generalization,
  author = {Jingwen Fu and Nanning Zheng},
  title = {{Generalization error bounds for iterative learning algorithms with bounded updates}},
  year = {2023},
  eprint = {2309.05077},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2309.05077},
}
Figure