Skip to content
AI360Xpert
Beta

Information-Theoretic Generalization Bounds

Generalisation costs information: the gap between test and train grows with how much the learned weights reveal about the training sample, measured by mutual information.

Weights holding 10 nats about the sample generalise within 0.10 while weights holding 100 nats allow gaps near 0.32
Weights holding 10 nats about the sample generalise within 0.10 while weights holding 100 nats allow gaps near 0.32

Why Does This Exist?

Stability and complexity bound the method or the class, but modern nets have huge classes yet leak little about training through noisy optimisation. What you want is a bound on the actual learned weights: if WW reveals almost nothing about sample SS beyond population structure, memorisation is impossible and the gap must be small. Mutual information I(W;S)I(W; S) measures exactly that leakage in nats.

Xu-Raginsky made it rigorous: expected gap bounded by 2σ2I(W;S)/n\sqrt{2\sigma^2 I(W; S)/n} for σ\sigma-sub-Gaussian loss. SGLD noise, compression and early stopping all shrink II and tighten the bound. It also explains the information bottleneck preference for minimal sufficient representations: less information, smaller gap.

Prerequisite in one paragraph. You need mutual information I(W;S)I(W;S), the nats of dependence between weights and sample, and sub-Gaussian loss tails. Data processing says post-processing cannot create information. Background is in mutual information and data processing inequality.

Think of It Like This

A student who saw the exam versus one who learned the subject

Two students score 9595 on practice exams. One memorised answer keys: their brain holds 100100 nats about those exact sheets and collapses on new questions. The other learned methods: 1010 nats about the sheets, mostly shared structure, and repeats on finals.

Mutual information is the memorisation count. The bound charges the gap by I/n\sqrt{I/n}: the memoriser pays triple at the same nn. Noisy study habits, like SGLD, blur exact answers and force the second student's strategy.

Where the analogy stops: students choose strategies consciously while I(W;S)I(W;S) is a property of the algorithm plus distribution. Estimating it for real nets needs bounds and proxies, not direct measurement.

How It Actually Works

Let WW be learned weights from sample SS of size nn and loss ℓ\ell be σ\sigma-sub-Gaussian in the relevant sense. Then ∣E[L(W)−L^(W)]∣≤2σ2I(W;S)/n|E[L(W) - \hat{L}(W)]| \le \sqrt{2\sigma^2 I(W; S)/n}, where LL is test risk, L^\hat{L} train risk and II mutual information. Chaining across samples sharpens constants; conditional and disintegrated versions handle single draws rather than averages.

For SGLD with noise variance σsgld2\sigma_{\text{sgld}}^2 over TT steps, II grows like (d/2)log⁡(1+Tη/dσsgld2)(d/2)\log(1 + T\eta/d\sigma_{\text{sgld}}^2)-style quantities: more steps leak more, more noise leaks less. Compression bounds replace II by description length: a 1010-nat compressed model generalises almost as if I=10I = 10.

Worked example

Take n=2000n = 2000, σ=1\sigma = 1. With I=10I = 10 nats the bound gives 20/2000=0.01=0.10\sqrt{20/2000} = \sqrt{0.01} = 0.10. Train 0.150.15 promises test below 0.250.25 in expectation. With I=100I = 100 nats it gives 200/2000=0.10≈0.316\sqrt{200/2000} = \sqrt{0.10} \approx 0.316, diagram 0.320.32: same training, triple the allowed gap.

Halve to n=500n = 500 with I=10I = 10: 20/500=0.04=0.20\sqrt{20/500} = \sqrt{0.04} = 0.20. Information budgets interact directly with sample size, which is why compression helps most on small data.

Watch Out For

Estimating MI on the same data and quoting the bound

Plug-in MI estimates from training data are themselves overfit: they understate leakage because the estimator shares the memorisation. The bound with an underestimated I=2I = 2 promises 0.0450.045 while true I=50I = 50 allows 0.220.22.

Fix: bound II analytically (SGLD, compression, VC-to-MI) or estimate on held-out randomization. Never plug a point estimate into its own bound.

Confusing representation MI with weights MI

I(X;Z)I(X; Z) for representations and I(W;S)I(W; S) for weights bound different gaps through different theorems. Swapping them applies bottleneck intuition to weight leakage or vice versa, with mismatched σ\sigma and nn scaling.

Fix: name both arguments of II every time. Weights-sample bounds generalisation; input-representation bounds compression.

The Quick Version

  • Test-train gap scales as I(W;S)/n\sqrt{I(W;S)/n}: leakage about the sample is the price.
  • Ten nats at 2000 samples hold the gap below 0.10; one hundred nats allow 0.32.
  • Noisy training, compression and early stopping shrink II and tighten the bound.
  • Bound II analytically; plug-in estimates on training understate it.
  • Weights-sample and input-representation informations answer different questions.