Skip to main content

Stability and Generalization

Authors: Olivier Bousquet, André Elisseeff
Published: 2002
Journal: Journal of Machine Learning Research
Link: PDF

Summary​

This foundational paper establishes the connection between algorithmic stability and generalization. It provides a framework for analyzing learning algorithms based on how sensitive they are to perturbations in the training data.

Key Contributions​

1. Stability Definitions​

The paper introduces several notions of algorithmic stability:

Uniform Stability: An algorithm AA is β\beta-uniformly stable if for all datasets SS differing in at most one example: sup⁡z∣L(AS,z)−L(AS′,z)∣≤β\sup_{z} |L(A_S, z) - L(A_{S'}, z)| \leq \beta

Hypothesis Stability: Measures stability in terms of the hypothesis space.

Point-wise Hypothesis Stability: ES,i[∣L(AS,zi)−L(AS\i,zi)∣]≤βph\mathbb{E}_{S,i}[|L(A_S, z_i) - L(A_{S^{\backslash i}}, z_i)|] \leq \beta_{ph}

2. Generalization Bounds​

Main Theorem: If an algorithm has uniform stability β\beta, then with probability at least 1−δ1-\delta: R[AS]≤Remp[AS]+2β+(4nβ+M)ln⁡(1/δ)2nR[A_S] \leq R_{emp}[A_S] + 2\beta + (4n\beta + M)\sqrt{\frac{\ln(1/\delta)}{2n}}

where RR is the true risk, RempR_{emp} is empirical risk, nn is sample size, and MM is loss bound.

3. Stability of Regularized Algorithms​

For regularized ERM with strongly convex loss: AS=arg⁡min⁡f∈H1n∑i=1nL(f,zi)+λ∥f∥H2A_S = \arg\min_{f \in \mathcal{H}} \frac{1}{n}\sum_{i=1}^n L(f, z_i) + \lambda \|f\|_{\mathcal{H}}^2

The stability coefficient is: β≤κ22λn\beta \leq \frac{\kappa^2}{2\lambda n}

where κ\kappa is the bound on the kernel.

Mathematical Framework​

Loss Function Properties​

Assume loss function LL satisfies:

  • Bounded: 0≤L(f,z)≤M0 \leq L(f, z) \leq M
  • Lipschitz in ff: ∣L(f,z)−L(f′,z)∣≤c∣f(x)−f′(x)∣|L(f, z) - L(f', z)| \leq c|f(x) - f'(x)|

McDiarmid's Inequality​

The proof uses concentration inequalities, particularly McDiarmid's bounded differences inequality:

If f(x1,…,xn)f(x_1, \ldots, x_n) satisfies: sup⁡xi,xi′∣f(…,xi,…)−f(…,xi′,…)∣≤ci\sup_{x_i, x_i'} |f(\ldots, x_i, \ldots) - f(\ldots, x_i', \ldots)| \leq c_i

Then: P(f−E[f]≥t)≤exp⁡(−2t2∑ici2)P(f - \mathbb{E}[f] \geq t) \leq \exp\left(-\frac{2t^2}{\sum_i c_i^2}\right)

Applications to Kernel Methods​

Regularized Least Squares​

For kernel ridge regression: fS=arg⁡min⁡f∈H1n∑i=1n(f(xi)−yi)2+λ∥f∥H2f_S = \arg\min_{f \in \mathcal{H}} \frac{1}{n}\sum_{i=1}^n (f(x_i) - y_i)^2 + \lambda \|f\|_{\mathcal{H}}^2

Stability bound: β≤κ2nλ\beta \leq \frac{\kappa^2}{n\lambda}

Support Vector Machines​

For soft-margin SVM with hinge loss: β≤2κ2nλ\beta \leq \frac{2\kappa^2}{n\lambda}

Comparison with VC Theory​

ApproachBound TypeDepends On
VC TheoryUniform over hypothesis classVC dimension
StabilityAlgorithm-specificStability coefficient

Advantages of Stability:

  • Algorithm-specific bounds (often tighter)
  • Applies to non-ERM algorithms
  • Works for unbounded hypothesis classes

Impact on Machine Learning​

This paper:

  1. Unified framework: Connected stability to generalization
  2. Practical bounds: Provided tighter bounds for regularized methods
  3. Theoretical foundation: Enabled analysis of many learning algorithms

Citation​

@article{bousquet2002stability,
title={Stability and generalization},
author={Bousquet, Olivier and Elisseeff, Andr{\'e}},
journal={Journal of Machine Learning Research},
volume={2},
pages={499--526},
year={2002}
}

Further Reading​

  • Shalev-Shwartz, S., et al. (2010). Learnability, stability and uniform convergence
  • Hardt, M., et al. (2016). Train faster, generalize better: Stability of stochastic gradient descent
  • Feldman, V. & Vondrak, J. (2019). High probability generalization bounds for uniformly stable algorithms