Information-Theoretic Analysis of Generalization Capability of Learning Algorithms I: The Expected Generalization Error Is at Most √(2σ²I(S;W)/n) (Theorem 1)Research Paper
Motivation
A learning algorithm trained on a finite sample generalizes when its empirical risk on that sample is close to its risk on fresh data. Classical guarantees come from uniform convergence over the hypothesis class (VC dimension, Rademacher complexity) or from algorithmic stability, such as uniform stability (Bousquet and Elisseeff, 2002) and on-average stability (Shalev-Shwartz et al., 2010). Both families look at the class or at the algorithm's worst-case sensitivity, not at how much the trained hypothesis actually depends on the data it was trained on.
Russo and Zou (arXiv:1511.05219, 2016) bounded the bias of adaptive data analysis by mutual information, and Xu and Raginsky (arXiv:1705.07809, NIPS 2017) turned this into a generalization bound for learning algorithms: the expected generalization error is at most , where is the mutual information between the training sample and the output hypothesis. This bound started the line of information-theoretic generalization bounds, later refined to individual-sample mutual information (Bu, Zou and Veeravalli, 2020), conditional mutual information (Steinke and Zakynthinou, 2020) and chaining variants (Asadi, Abbe and Verdú, 2018).
Timeline:
- 2016, Russo and Zou: bias of adaptive analysis bounded by , the information carried by the vector of empirical risks, for a finite hypothesis space.
- 2017, Xu and Raginsky: the bound with the input–output mutual information , for arbitrary hypothesis spaces (Theorem 1); high-probability versions and an analysis of the Gibbs algorithm.
- 2018–2020: chaining, individual-sample and conditional mutual information refinements.
Setting
There is an instance space , a hypothesis space and a nonnegative loss , written ℓ : W → Z → ℝ in Lean. Data are drawn from an unknown probability measure on ; a dataset of size is an i.i.d. sample (sampleLaw μ n).
A learning algorithm is a Markov kernel (κ : Kernel (Fin n → Z) W): given the dataset, it outputs a random hypothesis . The pair has joint law (sampleLaw μ n ⊗ₘ κ), with marginals and .
The population risk and the empirical risk of a hypothesis are
(risk ℓ μ w, empRisk ℓ s w). The expected generalization error is
the expectation taken under (genError ℓ μ κ).
The mutual information of a pair with joint law is the relative entropy (mutualInfo). A real random variable is -subgaussian if for all .
Formalization targets
Goal: Theorem 1 (p. 4)
If is -subgaussian under for every , then
The statement fixes no structure on (it may be uncountable) and no bound on the loss beyond subgaussianity.
Milestones
- (A.1), Donsker–Varadhan (p. 11), the inequality . Already proved on the platform and referenced.
- Lemma 1 (p. 3), the decoupling estimate: if is -subgaussian under , then
- Subgaussianity of the empirical risk (§3.2, p. 4): for every , is -subgaussian under .
- The mixture step (§3.2, p. 4, corrected): under , is -subgaussian with mean .
Significance
The result. Theorem 1 makes generalization a property of the dependence between data and output rather than of the size of the hypothesis class. It applies to randomized algorithms on uncountable or infinite-dimensional hypothesis spaces, where uniform convergence gives nothing, and to unbounded subgaussian losses. Any mechanism that limits , such as noise injection, differential privacy, compression or relative-entropy regularization, inherits a generalization guarantee. A loss with values in is -subgaussian for every , so the theorem covers all bounded losses. The bound is also the template for the later refinements listed above, which share Lemma 1's decoupling argument.
Formalizing it. The result is proved on paper; no machine-checked proof is known. A formalization supplies a reusable statement of mutual information as a relative entropy of a joint law on general measurable spaces, a decoupling lemma for subgaussian functions, and the mixture argument for subgaussian families, all of which recur in the later literature. It also settles a point the paper leaves loose: the printed proof applies Lemma 1 to the uncentred empirical risk, which is not subgaussian in general; the milestones state the corrected step.
Difficulty
The two halves of the proof are short on paper, but each step that "follows" uses a fact the page does not state. The decoupling estimate needs to be finite, which holds only because finite relative entropy and exponential integrability under the product together force integrability under the joint law. The mixture step needs the moment-generating-function bound of each section to integrate over , which requires joint measurability and the centring of every section at its own mean: the uncentred empirical risk mixes laws with different means and is not subgaussian.
A natural first attempt applies Lemma 1 directly to as printed; it fails on the example with uniform on and independent of .
Formalization scope
- Objects. The sample law, and are reused from the published
LearnStability.Characterization.Setting. This mission definesmutualInfo P := klDiv P (P.fst.prod P.snd)(values in ) andgenError, the integral of the pointwise difference undersampleLaw μ n ⊗ₘ κ. Samples areFin n → Z; the algorithm is a Markov kernel. - Subgaussianity is Mathlib's
HasSubgaussianMGFof the centred variable, whose parameter is the variance proxy: for the loss, for the empirical risk. - Added hypotheses, all implicit on the page: (the bound divides by ); joint measurability of (so that and are random variables); and in Lemma 1 and Theorem 1, because Lean's conversion of to a real number gives , which would turn the page's vacuous bound into a false claim. The page's nonnegativity of is kept. No integrability hypothesis on or on the losses is assumed beyond subgaussianity.
- Correction of the print. The page says that is -subgaussian; milestone 4 states it for the centred , together with its mean being . Equation (9) is not posed separately.
- Ruled out. The goal is stated for
genErrorand the mutual information of the algorithm's own joint law; a version through Lemma 1's abstract pair , through (Theorem 2, out of scope), or with truncated to a real number would not be this theorem. - Infrastructure. Integrability transfer from to under finite relative entropy; sums of independent subgaussian variables on
Measure.pi(Mathlib hasHasSubgaussianMGF.sum_of_iIndepFun); mixtures of mean-zero subgaussian families under a product measure. These are reusable beyond this mission, and contributions of each are welcome.
Selected references
- A. Xu, M. Raginsky, Information-theoretic analysis of generalization capability of learning algorithms, NIPS 2017; arXiv:1705.07809v2. https://arxiv.org/abs/1705.07809
- D. Russo, J. Zou, Controlling bias in adaptive data analysis using information theory, AISTATS 2016. https://arxiv.org/abs/1511.05219
- S. Shalev-Shwartz, O. Shamir, N. Srebro, K. Sridharan, Learnability, stability and uniform convergence, JMLR 11, 2010. https://jmlr.org/papers/v11/shalev-shwartz10a.html
- O. Bousquet, A. Elisseeff, Stability and generalization, JMLR 2, 2002. https://www.jmlr.org/papers/v2/bousquet02a.html
- S. Boucheron, G. Lugosi, P. Massart, Concentration Inequalities, Oxford University Press, 2013 (Donsker–Varadhan, Cor. 4.15). https://doi.org/10.1093/acprof:oso/9780199535255.001.0001
- A. Asadi, E. Abbe, S. Verdú, Chaining mutual information and tightening generalization bounds, NeurIPS 2018. https://arxiv.org/abs/1806.03803
- Y. Bu, S. Zou, V. Veeravalli, Tightening mutual information based bounds on generalization error, IEEE JSAIT 2020. https://arxiv.org/abs/1901.04609
- T. Steinke, L. Zakynthinou, Reasoning about generalization via conditional mutual information, COLT 2020. https://arxiv.org/abs/2001.09122