High probability generalization bounds for uniformly stable algorithms with nearly optimal rate

Vitaly Feldman, Jan Vondrák

Abstract

Algorithmic stability is a fundamental framework for understanding the generalization properties of machine learning models. While it has long been established that stable algorithms generalize well on average, proving tight generalization bounds that hold with high probability has remained a significant challenge. For nearly two decades, a mathematical overhead of $\sqrt{n}$ in the concentration analysis rendered stability-based bounds vacuous for many practical algorithms. This paper resolves this long-standing discrepancy by introducing a novel recursive analysis that achieves nearly optimal high-probability generalization bounds, effectively removing the $\sqrt{n}$ penalty.

Introduction

In learning theory, an algorithm is considered uniformly stable if changing a single training example has a bounded impact on the resulting model's loss. Specifically, for a $\gamma$-uniformly stable algorithm, the loss on any point changes by at most $\gamma$ when one element of the training set is replaced. This property is a powerful tool for proving that an algorithm will not overfit its training data.

However, a persistent gap has existed between the expected generalization error and the high-probability error. While the expected error scales directly with the stability parameter $\gamma$, the high-probability bounds established by Bousquet and Elisseeff (2002) included an additional factor of $\sqrt{n}$. In many common scenarios—such as Stochastic Gradient Descent (SGD) where $\gamma \approx 1/\sqrt{n}$—this $O(\gamma\sqrt{n})$ bound becomes $O(1)$, providing no meaningful guarantee. This work by Feldman and Vondrák (2019) bridges this gap, providing the first nearly optimal high-probability bounds for uniformly stable algorithms.

The Estimation Error Challenge

The core of the problem lies in the estimation error ($\Delta$): the difference between the empirical risk (performance on training data) and the true risk (performance on the underlying distribution). To be practically useful, we need to prove that $\Delta$ is small with probability at least $1-\delta$ for a small failure probability $\delta$.

Previous analyses relied on McDiarmid’s inequality, which is often too loose for this application. Because the stability $\gamma$ is often relatively large compared to the $1/n$ rate required for standard concentration tools to work effectively, the resulting bounds were often vacuous. This paper demonstrates that this $\sqrt{n}$ overhead is not an inherent property of stable algorithms but rather a limitation of previous analytical techniques.

Methodology: Recursive Concentration

The authors introduce a sophisticated proof technique that avoids the pitfalls of standard concentration inequalities. Their approach utilizes two primary operations applied recursively over $\log n$ levels:

  1. Dataset Size Reduction (Block Partitioning): The estimation error on a dataset of size $n$ is decomposed into an average of errors over smaller blocks of data. This recursive partitioning allows the analysis to scale down the problem complexity.
  2. Range Reduction (Adaptive Clamping): To ensure tight concentration, the range of the loss function must be controlled. The authors employ a "shifting" clamping procedure. By adaptively clamping the algorithm's output values at each level of the recursion, they keep the expected error centered at zero while preventing the variance from exploding.

By alternating these steps, the total estimation error is broken down into a sum of manageable components, resulting in a total overhead that is only logarithmic in $n$, rather than polynomial.

Key Results and Implications

The primary contribution of the paper is a new high-probability bound on the estimation error $\Delta$:

$$\Delta \le O\left(\gamma \log(n) \log(n/\delta) + \sqrt{\frac{\log(1/\delta)}{n}}\right)$$

This result has immediate and profound implications for several pillars of machine learning:

  • Optimal SGD Bounds: It provides the first high-probability generalization bounds for multi-pass SGD on smooth convex losses with a rate of $O(1/\sqrt{n})$. Previously, such rates were only known in expectation.
  • Regularized ERM: The paper resolves a 2010 conjecture by proving that regularized Empirical Risk Minimization (ERM) for stochastic convex problems achieves the optimal $O(1/\sqrt{n})$ rate with high probability.
  • Privacy-Preserving Learning: The results improve the theoretical foundations for algorithms that must remain stable to satisfy differential privacy or other stability-based privacy constraints.

Discussion and Future Work

While this work significantly narrows the gap, a small logarithmic factor $\log(n)$ remains. It is currently an open question whether this factor is a necessary component of the bound or if a truly optimal bound (matching the expectation exactly) can be achieved.

Furthermore, the current analysis focuses on uniform stability, which is a worst-case guarantee. Many modern deep learning models may not satisfy uniform stability but might satisfy weaker notions like "on-average" stability. Extending these high-probability techniques to these more relaxed stability definitions remains a vital area for future research. Finally, while the bounds for SGD are groundbreaking, they currently rely on the smoothness of the loss functions; exploring ways to generalize these results to non-smooth settings is a logical next step.

Summary updated

BibTeX
@inproceedings{feldman2019high,
  author = {Vitaly Feldman and Jan Vondrák},
  title = {{High probability generalization bounds for uniformly stable algorithms with nearly optimal rate}},
  booktitle = {Conference on Learning Theory},
  year = {2019},
  url = {https://openreview.net/forum?id=u_gMhiXfx4},
}
Figure