On Random Subset Generalization Error Bounds and the Stochastic Gradient Langevin Dynamics Algorithm

Borja Rodríguez Gálvez, Germán Bassi, Ragnar Thobaben, Mikael Skoglund · DOI

Abstract

This work unifies several expected generalization error bounds based on random subsets using the framework developed by Hellström and Durisi. We recover existing bounds based on individual sample mutual information and random subsets, introduce new analogous bounds in the randomized subsample setting, and identify fundamental limitations of the framework. Finally, we extend Langevin dynamics bounds to Stochastic Gradient Langevin Dynamics (SGLD), offering refinements for loss functions with potentially large gradient norms.

Introduction

In machine learning theory, the generalization error—the discrepancy between a model's performance on training data versus unseen data—remains a central focus. While traditional measures like VC dimension provided early foundations, they often fail to provide tight bounds for modern, high-dimensional models. This has led to the rise of information-theoretic approaches, which quantify generalization through measures such as Mutual Information ($I(W; S)$) between the model weights ($W$) and the training set ($S$).

However, the field has become fragmented, with various researchers proposing different "random subset" and "subsampling" settings. This paper addresses this fragmentation by providing a unified mathematical framework and applying these theoretical insights to Stochastic Gradient Langevin Dynamics (SGLD), a cornerstone algorithm in noisy optimization.

A Unified Framework for Generalization

The authors utilize the framework established by Hellström and Durisi, which leverages "information density" to derive generalization bounds. This approach allows for the unification of several disparate theories:

  1. Individual Sample Mutual Information: Recovering bounds proposed by Bu et al.
  2. Random Subsets: Recovering bounds from Negrea et al.
  3. Randomized Subsample Setting: Building upon the "super-sample" approach of Steinke and Zakynthinou.

In the randomized subsample setting, one considers a super-set of $2N$ samples. For each pair of samples, a random "coin flip" determines which sample enters the training set. The generalization error is then bounded by the information the learning algorithm reveals about these coin flips. The authors prove in Lemma 3 that their new "individual conditional mutual information" bound is the tightest possible among all mutual-information-based approaches in this specific setting.

Theoretical Limits: The "Square Root" Wall

Despite the successes of the unification, the authors identify a fundamental limitation of the Hellström-Durisi framework. Because the framework relies on Jensen’s inequality, it cannot recover the absolute tightest known bounds where the expectation sits outside the square root. This defines a clear boundary for where this specific framework is useful and identifies a "wall" that requires different mathematical tools to scale.

Extending to Stochastic Gradient Langevin Dynamics (SGLD)

While previous research successfully applied information-theoretic bounds to Langevin Dynamics (LD), extending these to SGLD introduces significant complexity. SGLD incorporates stochasticity not just from added Gaussian noise, but from the random selection of mini-batches.

To address this, the authors model SGLD as an iterative process where the batch trajectory is incorporated into the random variables being measured (Proposition 6). A significant challenge in SGLD bounds is their tendency to "blow up" if the gradient of the loss function is large (high Lipschitz constant).

To remedy this, the authors move away from simple Gaussian assumptions and instead model the reference distribution as a mixture of Gaussians. This mixture modeling (Proposition 7) allows for a logarithmic bound rather than a linear one when gradients are large. The resulting Corollary 2 offers a refined SGLD bound that takes the minimum of two different bounding functions, ensuring stability across various gradient scales.

Conclusion and Future Work

This research provides a consolidation of information-theoretic generalization literature, bridging the gap between abstract information theory and practical optimization algorithms like SGLD. While the framework currently requires bounded loss functions and faces the "square root" limitation, it provides a robust foundation for future refinements. Future directions include relaxing the bounded loss assumption and exploring ways to move the expectation outside the square root within a unified context.

Summary updated

BibTeX
@inproceedings{galvez2020random,
  author = {Borja Rodríguez Gálvez and Germán Bassi and Ragnar Thobaben and Mikael Skoglund},
  title = {{On Random Subset Generalization Error Bounds and the Stochastic Gradient Langevin Dynamics Algorithm}},
  booktitle = {ITW},
  year = {2020},
  doi = {10.1109/itw46852.2021.9457578},
}
Figure