What is uniform stability of a learning algorithm , and how do you prove that a -uniformly stable algorithm has expected generalisation gap at most ? What is an example of a stable algorithm with its ?
Learning theory, Algorithmic stability
Level L4 Advanced. Length Long. Nature Th+Mat Both.
What's being asked
Whether you can use the replace-one trick to relate training and true error.
Key idea
by the replace-one trick.
Steps
- Definition: is -uniformly stable if for every sample of size , every index , and every replacement , the sample (with replaced by ) satisfies for all .
- Training term: .
- True-error term: . Here is a fresh example. For any fixed , swap the names of and (they are identically distributed). Then this equals .
- Average this over and subtract: .
- Each term in the sum is at most by stability, so the gap is at most .
- Example: regularised ERM, that is, minimise (average loss plus penalty), with a convex loss that is -Lipschitz in . It has . For , , this is . Stronger regularisation gives more stability, but a larger approximation error.
Common mistakes
- Treating the stability as a statement about the output of for a different sample size. It compares samples of the same size that differ in one point.
- Forgetting that this is an expectation bound. A high-probability bound needs a further concentration argument (McDiarmid).
- Thinking stability needs a finite hypothesis class. Stability is independent of the class's VC dimension, which is why it applies to large models.
How long your answer should be
One page; 6 minutes.
Last checked on 4 December 2026.
Read this
Previous in Learning theory: How do you derive the regret bound for the Hedge (exponential weights) algorithm, with experts, losses in and learning rate , so that , and what is the best ?
Next in Learning theory: How do you state and prove the representer theorem: for a kernel with RKHS , every minimiser of with strictly increasing has the form ?