Generalization Bounds for Uniformly Stable Algorithms

Vitaly Feldman, Jan Vondrák

Introduction

A fundamental objective in machine learning is to ensure that a model trained on a specific dataset generalizes well to unseen data. Traditionally, theoretical guarantees for generalization have relied on measures of model complexity, such as the VC dimension or Rademacher complexity. However, for many modern optimization-based algorithms—including Gradient Descent (GD) and Stochastic Gradient Descent (SGD)—these complexity-based bounds are often overly pessimistic or even infinite.

An alternative framework for understanding generalization is algorithmic stability. The core intuition is that if a change to a single training example does not significantly alter the algorithm's output, the algorithm is stable and likely to generalize. The most rigorous version of this concept is uniform stability (denoted by $\gamma$). While researchers have long established tight bounds for average generalization error, "high-probability" bounds—which guarantee performance for $1-\delta$ of all possible datasets—have historically been mathematically loose. This paper addresses this gap by providing significantly tighter high-probability generalization bounds, eliminating a loose $\sqrt{n}$ factor that previously rendered these theories "vacuous" in practical settings.

The Challenge of High-Probability Bounds

For decades, the standard tool for proving high-probability generalization bounds was McDiarmid’s inequality. While powerful, this concentration inequality introduces a dependency on the number of samples ($n$) that scales poorly. Specifically, existing bounds were off by a factor of $\sqrt{n}$. In many common scenarios where the stability parameter $\gamma$ is approximately $1/\sqrt{n}$, the resulting theoretical bound would exceed 1, offering no useful guarantee to practitioners.

This paper identifies McDiarmid’s inequality as the source of this looseness and proposes a departure from standard concentration tools. Instead of treating stability as a property to be plugged into a general-purpose inequality, the authors use stability itself as a tool to prove concentration.

Methodology: Stability via Differential Privacy

The authors’ primary innovation lies in adapting techniques from the field of Differential Privacy (DP). Differential Privacy is essentially a strong, randomized form of stability; by repurposing DP tools, the authors bridge the gap between stability and tight generalization.

1. The Exponential Mechanism and Stable-Max

In DP, the exponential mechanism is used to select an item that approximately maximizes a function while maintaining privacy. The authors adapt this to show that if an algorithm is stable, one can "select" the worst-performing instance from multiple independent runs in a stable manner. This allows for a much tighter bounding of the "tail" of the error distribution compared to previous methods.

2. Leave-one-out Decoupling

To bound the variance (the second moment) of the generalization error, the authors employ a "leave-one-out" estimator. This technique decouples the complex dependencies between the learned model and the specific data points used during training, allowing for a more precise calculation of how much the error fluctuates.

Key Theoretical Results

The paper proves mathematical theorems that hold for any data distribution $\mathcal{P}$, provided the algorithm meets the definition of uniform stability. The results represent a significant improvement over the state of the art:

  • Improved High-Probability Bound: The authors improved the generalization error bound from $O((\gamma + 1/n)\sqrt{n \log(1/\delta)})$ to $O(\sqrt{(\gamma + 1/n) \log(1/\delta)})$. This refinement ensures that as $n$ grows, the bound remains small and meaningful, whereas the previous bound could explode.
  • Tight Second Moment: The authors proved that the second moment of the estimation error is at most $16\gamma^2 + 2/n$. This result is essentially optimal, matching known lower bounds and improving upon the previous best of $O(\gamma + 1/n)$.

Practical Applications

These theoretical advancements have immediate implications for two of the most common paradigms in machine learning:

  1. Regularized Empirical Risk Minimization (ERM): The authors derive a new excess loss bound of approximately $O(n^{-1/3})$. Unlike previous theories, this bound remains non-vacuous even when high confidence is required.
  2. Gradient Descent: The paper provides the first meaningful high-probability generalization guarantees for Gradient Descent on smooth convex functions at the optimal stability rate. This bridges the gap between the empirical success of GD and our theoretical understanding of why it generalizes.

Conclusion and Future Work

By breaking the $\sqrt{n}$ barrier, this work provides a more realistic theoretical foundation for stable algorithms. While the bounds are significantly tighter, the authors note that some logarithmic factors remain. Subsequent refinements (Feldman & Vondrak, 2019) have already begun to address these, moving toward nearly optimal constants. Furthermore, while the current results focus primarily on deterministic algorithms, they lay the groundwork for extending these high-probability guarantees to randomized algorithms like SGD, which are the workhorses of modern deep learning.

Summary updated

BibTeX
@inproceedings{feldman2018generalization,
  author = {Vitaly Feldman and Jan Vondrák},
  title = {{Generalization Bounds for Uniformly Stable Algorithms}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2018},
  url = {https://openreview.net/forum?id=SkVXBwZubS},
}
Figure