Uniform Convergence and Generalization

Dive into Deep Learning · §36.10

Generalization Bounds, Symmetrization, and Rademacher Complexity
uniform convergence · union bound · ghost-sample symmetrization · Rademacher complexity · margin bounds · double descent & benign overfitting

The Best of 1,000 Fair Coins Shows 66 Heads

Motivation & Selection Bias

  • One coin named in advance (m = 100 flips): By Hoeffding’s inequality, a single fair coin lands within 50 \pm 13.6 heads ([37, 63]) with at least 95\% probability (99.3\% exact).
  • Selecting the winner of k = 1{,}000 fair coins: Although each individual coin exceeds 63 heads with probability only 0.0033, among 1{,}000 coins roughly 3.3 are expected to cross that threshold.
  • Pure fluctuation looks like signal: The winning coin typically shows 66 heads ([64, 69] in 90\% of trials) even though every coin is completely fair.

Simulating the Winner’s Curse in Model Selection

Empirical Verification

Repeating the 1{,}000-coin experiment 2{,}000 times shows that the single-coin 95\% confidence band fails almost every time (96\%\text{--}97\%) when applied to the post-hoc winner:

best of 1000 coins: median 0.66, 90% of experiments in [0.64, 0.69]
95% half-width: one coin 0.136, all 1000 coins 0.230
experiments in which the best coin leaves the one-coin band: 97%
  • Validation sets are coin-flip tournaments: Every hyperparameter configuration or training checkpoint is a coin, and every validation example is a flip.
  • Reversing the order of choice and sampling: When we pick \hat{f} = \operatorname{argmin}_{f \in \mathcal{F}} \hat{R}_S(f) after seeing the sample S, we systematically harvest the most favorable downward fluctuation.

From Pointwise Concentration to Uniform Convergence

The Supremum Over a Function Class

\bigl\lvert\hat{R}_S(\hat{f}) - R(\hat{f})\bigr\rvert \le \sup_{f \in \mathcal{F}} \bigl\lvert\hat{R}_S(f) - R(f)\bigr\rvert

  • Why pointwise bounds fail: Because \hat{f} = \operatorname{argmin}_{f \in \mathcal{F}} \hat{R}_S(f) depends on S, it systematically picks the largest downward dip in empirical risk.
  • Uniform convergence remedy: Bounding the supremum over all f \in \mathcal{F} simultaneously certifies every candidate, including \hat{f}(S).

Finite Function Classes and the Union Bound

Logarithmic Cost of Search

\sup_{f \in \mathcal{F}} \bigl\lvert\hat{R}_S(f) - R(f)\bigr\rvert \le \sqrt{\frac{\log(2\lvert\mathcal{F}\rvert/\delta)}{2n}}

  • Logarithmic penalty for search: Under Hoeffding’s exponential tail, searching \lvert\mathcal{F}\rvert fixed models on n = 10{,}000 examples widens the 95\% band gently from \pm 1.36\% (1 model) to \pm 2.38\% (2{,}000 models) and \pm 2.96\% (10^6 models).
  • Polynomial tails collapse: Under Chebyshev’s 1/n tail, a union bound over 2{,}000 models gives a vacuous \pm 100\% bound.

Pitfall: Adaptive Leaderboards Break the Union Bound

Non-Adaptive vs. Adaptive Queries

  • Non-adaptive pool (\sqrt{\log k / n}): Fixing all k candidates before seeing holdout scores preserves the logarithmic union bound even for k = 10^6.
  • Adaptive Blum–Hardt attack (\sqrt{k / n}): Inspecting the leaderboard after each query lets an attacker submit k random coin-flip vectors, keep those with error \le 1/2, and take their majority vote—driving holdout error to \frac{1}{2} - \Omega(\sqrt{k/n}) while true error stays 50\%.

Rademacher Complexity: Correlation with Coin-Flip Noise

Measuring Infinite Function Classes

\widehat{\mathfrak{R}}_S(\mathcal{F}) = \mathbb{E}_{\boldsymbol{\varepsilon}}\Biggl[\sup_{f \in \mathcal{F}} \frac{1}{n}\sum_{i=1}^n \varepsilon_i\,f(\mathbf{x}_i)\Biggr]

  • Operational richness measure: Measures how well \mathcal{F} can align with random coin-flip signs \varepsilon_i \in \{\pm 1\} on the observed inputs S.
  • Three capacity tiers: Singleton \{f\} has \widehat{\mathfrak{R}}_S = 0; two constants \{\pm 1\} have \mathbb{E}|\bar{\varepsilon}| \approx \sqrt{2/(\pi n)}; a shattering class in [-1, 1] has \widehat{\mathfrak{R}}_S = 1.0.

The Rademacher Complexity Spectrum Across Classes

From Singletons to Shattering Classes

Rademacher complexity scales smoothly from zero for a fixed function up to 1 for a class that memorizes arbitrary sign patterns on S = (\mathbf{x}_1, \dots, \mathbf{x}_n):

Function Class \mathcal{F} Empirical Rademacher Complexity \widehat{\mathfrak{R}}_S(\mathcal{F}) Scaling with Sample Size n
Singleton class \{f\} \mathbb{E}_{\boldsymbol{\varepsilon}}\bigl[\frac{1}{n}\sum_i \varepsilon_i f(\mathbf{x}_i)\bigr] = 0 Identically 0 (no selection)
Two constants \{+1, -1\} \mathbb{E}_{\boldsymbol{\varepsilon}}\bigl[\lvert\bar{\varepsilon}\rvert\bigr] \approx \sqrt{\frac{2}{\pi n}} Shrinks at rate O(n^{-1/2})
Finite class in [-1, 1] \le \sqrt{\frac{2\log\lvert\mathcal{F}\rvert}{n}} (Massart’s lemma) Logarithmic in \lvert\mathcal{F}\rvert, O(\sqrt{\log\lvert\mathcal{F}\rvert / n})
VC binary class in \{-1, +1\} \le C\sqrt{\frac{d_{\mathrm{VC}}\log n}{n}} Controlled by VC dimension d_{\mathrm{VC}}
All functions into [0, 1] \mathbb{E}_{\boldsymbol{\varepsilon}}\bigl[\frac{1}{n}\sum_i \mathbf{1}\{\varepsilon_i = +1\}\bigr] = \frac{1}{2} Constant \frac{1}{2} (no generalization)
All functions into [-1, 1] \mathbb{E}_{\boldsymbol{\varepsilon}}\bigl[\frac{1}{n}\sum_i \varepsilon_i^2\bigr] = 1 (on distinct \mathbf{x}_i) Constant 1 (complete memorization)

Theorem: Uniform Convergence via Rademacher Complexity

Generalization Bound for Infinite Classes

To bound generalization risk, we apply Rademacher complexity to the [0, 1]-valued loss class \mathcal{G} = \{z = (\mathbf{x}, y) \mapsto \ell(f(\mathbf{x}), y) : f \in \mathcal{F}\}. With probability at least 1 - \delta over an i.i.d. sample S of size n, simultaneously for every g \in \mathcal{G}:

R(g) \le \hat{R}_S(g) + 2\,\mathfrak{R}_n(\mathcal{G}) + \sqrt{\frac{\log(1/\delta)}{2n}}

  • Data-dependent empirical form: Applying McDiarmid’s inequality a second time replaces the population average \mathfrak{R}_n(\mathcal{G}) with the computable sample quantity \widehat{\mathfrak{R}}_S(\mathcal{G}) at the cost of widening the confidence term to 3\sqrt{\frac{\log(2/\delta)}{2n}}.
  • Exact relation for binary 0\text{--}1 classification: For predictors f(\mathbf{x}) \in \{-1, +1\} and labels y \in \{-1, +1\}, the 0\text{--}1 loss is g(\mathbf{x}, y) = \frac{1 - yf(\mathbf{x})}{2}. Since -\varepsilon_i y_i has the exact same distribution as \varepsilon_i, \widehat{\mathfrak{R}}_S(\mathcal{G}) = \frac{1}{2}\widehat{\mathfrak{R}}_S(\mathcal{F}) and 2\widehat{\mathfrak{R}}_S(\mathcal{G}) = \widehat{\mathfrak{R}}_S(\mathcal{F}).

Proof by Symmetrization: Ghost Sample and Sign Swaps

The Three-Step Symmetrization Argument

\mathbb{E}_S\Bigl[\sup_{g \in \mathcal{G}}\bigl(R(g) - \hat{R}_S(g)\bigr)\Bigr] \le 2\,\mathfrak{R}_n(\mathcal{G})

  • 1. Ghost sample S': Pull the expectation R(g) = \mathbb{E}_{S'}[\hat{R}_{S'}(g)] outside the supremum by Jensen’s inequality.
  • 2. Exchangeable sign swaps (z_i \leftrightarrow z'_i): Multiply each difference g(z'_i) - g(z_i) by an independent Rademacher sign \varepsilon_i \in \{\pm 1\} and split the supremum into 2\,\mathfrak{R}_n(\mathcal{G}).

Geometry of Rademacher Complexity for Linear Models

Norm-Bounded Linear Predictors

  • Norm-bounded linear class: Consider \mathcal{F} = \bigl\{\mathbf{x} \mapsto \langle\mathbf{w}, \mathbf{x}\rangle : \|\mathbf{w}\|_2 \le B\bigr\} on sample inputs satisfying \|\mathbf{x}_i\|_2 \le r.
  • Exact inner supremum via Cauchy–Schwarz: By linearity of the inner product, \frac{1}{n}\sum_{i=1}^n \varepsilon_i \langle\mathbf{w}, \mathbf{x}_i\rangle = \bigl\langle\mathbf{w},\, \frac{1}{n}\sum_{i=1}^n \varepsilon_i \mathbf{x}_i\bigr\rangle, which is maximized when \mathbf{w}^* points along the signed vector sum \mathbf{s} = \sum_{i=1}^n \varepsilon_i \mathbf{x}_i: \widehat{\mathfrak{R}}_S(\mathcal{F}) = \frac{B}{n}\,\mathbb{E}_{\boldsymbol{\varepsilon}}\Biggl[\Biggl\|\sum_{i=1}^n \varepsilon_i \mathbf{x}_i\Biggr\|_2\Biggr]

Dimension-Free Linear Rademacher Complexity

Proving R_S(F) <= B r / sqrt(n)

Bounding the expected Euclidean norm of \mathbf{s} = \sum_{i=1}^n \varepsilon_i \mathbf{x}_i by its root-mean-square norm via Jensen’s inequality (\mathbb{E}\|\mathbf{s}\|_2 \le \sqrt{\mathbb{E}\|\mathbf{s}\|_2^2}) yields a closed-form upper bound:

\mathbb{E}_{\boldsymbol{\varepsilon}}\Biggl[\Biggl\|\sum_{i=1}^n \varepsilon_i \mathbf{x}_i\Biggr\|_2\Biggr] \le \sqrt{\sum_{i=1}^n \sum_{j=1}^n \mathbb{E}[\varepsilon_i \varepsilon_j]\,\langle\mathbf{x}_i, \mathbf{x}_j\rangle} = \sqrt{\sum_{i=1}^n \|\mathbf{x}_i\|_2^2} \le r\sqrt{n} \implies \widehat{\mathfrak{R}}_S(\mathcal{F}) \le \frac{Br}{\sqrt{n}}

  • Orthogonality of independent signs: Every cross term i \neq j vanishes because \mathbb{E}[\varepsilon_i \varepsilon_j] = \mathbb{E}[\varepsilon_i]\mathbb{E}[\varepsilon_j] = 0, while \varepsilon_i^2 = 1.
  • Ambient dimension d is completely absent: Whether \mathbf{x}_i lives in \mathbb{R}^{10} or \mathbb{R}^{10^6}, the complexity is governed solely by the norm product Br, justifying L_2 weight decay.
  • Extension to two-layer ReLU networks: For f(\mathbf{x}) = \sum_{j=1}^h w_j \mathrm{ReLU}(\langle\mathbf{v}_j, \mathbf{x}\rangle) with \|\mathbf{w}\|_1 \le B_1 and \|\mathbf{v}_j\|_2 \le B_2, \widehat{\mathfrak{R}}_S \le \frac{2B_1 B_2 r}{\sqrt{n}} independent of hidden width h.

Talagrand’s Contraction Lemma and Margin Bounds

From Real-Valued Scores to Classification Risk

P\bigl(y\langle\mathbf{w}, \mathbf{x}\rangle \le 0\bigr) \le \hat{R}_\gamma(\mathbf{w}) + \frac{2Br}{\gamma\sqrt{n}} + \sqrt{\frac{\log(1/\delta)}{2n}}

  • Ramp loss \phi_\gamma(u): Upper-bounds the 0\text{--}1 step loss everywhere and is (1/\gamma)-Lipschitz on [0, \gamma].
  • Talagrand contraction: Multiplies linear Rademacher complexity Br/\sqrt{n} by 1/\gamma, proving that large margin \gamma / B certifies low test error in any dimension d.

Monte Carlo Verification of Dimension-Free Complexity

Empirical Rademacher Complexity in Code

Averaging the exact supremum \frac{B}{n}\bigl\|\sum_{i=1}^n \varepsilon_i \mathbf{x}_i\bigr\|_2 over 2{,}000 random sign vectors for n = 50 unit vectors (B = r = 1) across dimensions d \in \{2, 20, 1000\} confirms our theory:

d =    2: Monte-Carlo R_S = 0.123, bound B r / sqrt(n) = 0.141
d =   20: Monte-Carlo R_S = 0.141, bound B r / sqrt(n) = 0.141
d = 1000: Monte-Carlo R_S = 0.141, bound B r / sqrt(n) = 0.141
  • Why the bound becomes sharper in high dimensions: The only inequality in our proof was Jensen’s \mathbb{E}\|\mathbf{s}\|_2 \le \sqrt{\mathbb{E}\|\mathbf{s}\|_2^2}. In d = 2, a 2D Gaussian’s mean length is \frac{\sqrt{\pi}}{2} \approx 0.89 of its RMS length (0.125 vs 0.141); in d \ge 20, thin-shell norm concentration (§36.9) makes \|\mathbf{s}\|_2 nearly constant across sign patterns, reducing the slack to < 1\%.

Where Uniform Convergence Stops: Fitting Random Labels

The Interpolation Boundary

What happens when a model family is overparameterized (p = 2n = 100 standard Gaussian features on n = 50 points) and can interpolate every random sign vector \boldsymbol{\varepsilon} \in \{\pm 1\}^n via \mathbf{w} = \boldsymbol{\Phi}^+\boldsymbol{\varepsilon}?

mean ||w|| = 0.99 (predicted 1.01), largest 1.31
typical fit: mean ||w|| * mean row norm / sqrt(n) = 1.40
r = 12.4, B r / sqrt(n) with B = largest ||w||: 2.3
  • Interpolating noise forces Br/\sqrt{n} \ge 1: Because \boldsymbol{\Phi}\mathbf{w} = \boldsymbol{\varepsilon} achieves correlation 1 on every sign pattern, any weight ball \|\mathbf{w}\|_2 \le B containing these interpolants has \widehat{\mathfrak{R}}_S(\mathcal{F}) \ge 1 and Br/\sqrt{n} \approx 2.4 > 1.
  • The Zhang et al. (2017) random-label puzzle: Because deep neural networks can fit random labels with zero training error, 2\mathfrak{R}_n(\mathcal{G}) \approx 1 for the unconstrained architecture class, making uniform convergence bounds over the whole class vacuous: generalization depends on the specific solution the optimizer selects.

Minimum-Norm Interpolation and the SVD Spectrum

Analytical Mechanism of Double Descent

\mathbf{w} = \boldsymbol{\Phi}^+\mathbf{y} = \sum_{i=1}^{\min(n,p)} \frac{\langle\mathbf{u}_i, \mathbf{y}\rangle}{\sigma_i}\,\mathbf{v}_i

  • Why p = n explodes: At the interpolation threshold p = n, the residual vanishes and a square random matrix has a tiny singular value \sigma_n \ll 1, blowing up 1/\sigma_n and \|\mathbf{w}\|_2.
  • Why p \gg n recovers: Adding features lifts \sigma_n and monotonically shrinks the minimum-norm interpolant (\|\mathbf{w}_{p+1}\|_2 \le \|\mathbf{w}_p\|_2).

Simulating Double Descent on Random ReLU Features

The Three Regimes in Code

  • Setup (n = 40, d_{\mathrm{in}} = 15, \sigma_\xi = 0.1): Sweeping p \in [2, 400] nested random ReLU features across 20 trials traces the complete double-descent curve.
  • Underparameterized (p < 40): Classical U-curve dipping near p = 15 (\mathrm{MSE} \approx 0.7) before rising toward the threshold while \|\mathbf{w}\|_2 grows.
  • Interpolation peak (p = n = 40) & second descent (p > 40): Test MSE spikes by 10\text{--}50\times at p = 40, then drops monotonically to \approx 0.06 at p = 400 as \|\mathbf{w}\|_2 shrinks to 0.4.

Dissecting the Double-Descent Sweep Table

Singular Values, Norms, and Baselines

Inspecting all nine diagnostics across p \in \{15, 38, 40, 42, 50, 80, 400\} reveals three essential nuances:

   p     test    train     norm    s_min capacity    clean    noise  ratio_q    ratio
  15     0.65     0.28      1.9        1      1.3     0.67   0.0066      3.7      1.8
  38      3.3   0.0081      5.5     0.08        6      2.9     0.31  6.8e+02       32
  40       71  2.3e-28       29    0.016       34       58      4.2  1.5e+04  4.2e+02
  42      3.4  1.3e-29        6    0.076      6.5      2.9     0.26  5.8e+02       26
  50     0.74  6.6e-30      2.7     0.25      3.1     0.64    0.063       62      6.3
  80     0.22    7e-30      1.3     0.71      1.8     0.19    0.021       10      2.1
 400    0.049  5.3e-30      0.4      2.6      1.3     0.04   0.0095      2.3     0.95
least squares on the 15 raw inputs: test MSE 0.0066
  • Training error is blind past p = 40: For every p \ge 40, training MSE is floating-point zero (\sim 10^{-28}), yet test MSE drops over 100\times from p = 40 to 400, tracked by \sigma_{\min} (0.02 \to 2.8) and \|\mathbf{w}\|_2 (10–30 \to 0.4).
  • Target misspecification alone triggers the spike: Even at p = 40, the noise-free clean error exceeds the noise error because a linear teacher is poorly approximated by 40 ReLU ridges along \mathbf{u}_n.
  • Well-specified small models still win: While p = 400 beats every smaller ReLU model, ordinary least squares directly on the 15 raw inputs achieves \mathrm{MSE} \approx 0.006, another 10\times lower.

Bias–Variance Decomposition of Interpolating Fits

Clean Error vs. Noise Error

\mathbb{E}_{\boldsymbol{\xi}}\bigl[\mathrm{MSE}_{\mathrm{test}}\bigr] = \frac{1}{n_{\mathrm{te}}}\bigl\|\boldsymbol{\Phi}_{\mathrm{te}}\boldsymbol{\Phi}^+\mathbf{y}_0 - \mathbf{y}_{\mathrm{te}}\bigr\|_2^2 + \frac{\sigma_\xi^2}{n}\sum_{i=1}^n \frac{\|\boldsymbol{\Phi}_{\mathrm{te}}\mathbf{v}_i\|_2^2 / n_{\mathrm{te}}}{\|\boldsymbol{\Phi}\mathbf{v}_i\|_2^2 / n}

  • Linearity of \boldsymbol{\Phi}^+: Writing \mathbf{w} = \boldsymbol{\Phi}^+\mathbf{y}_0 + \boldsymbol{\Phi}^+\boldsymbol{\xi} separates noise-free target approximation error from label-noise amplification.
  • Average energy ratio: For p \ge n, the noise error equals \sigma_\xi^2 times the average test-to-train feature energy ratio across the n singular directions.

Why Overfitting Becomes Benign at Large Width (p >> n)

Test-to-Train Feature Energy Ratios

  • Threshold p = n = 40 (catastrophic): \mathbf{v}_n is an accidental pinch on the 40 training points (\sigma_{\min}^2/n \approx 10^{-5}) while test inputs carry O(1) energy, giving a \sim 10^4\times energy ratio.
  • Wide limit p = 400 (benign overfitting): Label noise is absorbed into low-variance directions where test inputs also have small projections, keeping the mean energy ratio \approx 0.9\times.

Diagnostic vs. Certificate: Limits of Uniform Bounds

What Theory Certifies and What Remains Open

How do we reconcile our Rademacher margin bound \frac{Br}{\gamma\sqrt{n}} with the empirical double-descent sweep?

  • Why B cannot simply be plugged in post-hoc: The linear Rademacher bound requires the norm radius B to be fixed before observing S. To cover a data-dependent norm \|\hat{\mathbf{w}}\|_2, structural risk minimization applies a union bound over a geometric ladder of radii B_j = 2^j with failure budgets \delta_j = \frac{\delta}{j(j+1)} (\sum_{j=1}^\infty \delta_j = \delta), paying at most a factor of 2 on \|\hat{\mathbf{w}}\|_2 plus an O\bigl(\sqrt{\frac{\log\log\|\hat{\mathbf{w}}\|_2}{n}}\bigr) confidence term.
  • When the capacity product is a diagnostic rather than a bound: In our regression sweep, \|\hat{\mathbf{w}}\|_2 r/\sqrt{n} tracks the test MSE peak and descent (15 \to 1.2), explaining which subclass the minimum-norm interpolant lands in, even though unbounded squared loss lies outside the [0, 1]-loss theorem.
  • The open frontier of deep learning theory: Uniform convergence bounds the worst function in a pre-specified class \mathcal{F}, whereas modern overparameterized training relies on the implicit bias of the optimizer (e.g., minimum norm or maximum margin) to select a benign solution from a class large enough to fit noise.

Comparing Generalization Frameworks

Single Model, Finite Pool, Linear Margin, Interpolating Regime

Setting Complexity Measure Generalization Gap Bound / Scaling Key Requirement or Limitation
Single Fixed Model \{f\} \mathfrak{R}_n = 0 \sqrt{\frac{\log(2/\delta)}{2n}} f must be fixed before drawing test set S
Finite Candidate Pool \mathcal{F} \log\lvert\mathcal{F}\rvert \sqrt{\frac{\log(2\lvert\mathcal{F}\rvert/\delta)}{2n}} Pool \mathcal{F} must be non-adaptive (no leaderboard feedback)
General Infinite Class \mathcal{G} 2\,\mathfrak{R}_n(\mathcal{G}) 2\,\mathfrak{R}_n(\mathcal{G}) + \sqrt{\frac{\log(1/\delta)}{2n}} Requires losses bounded in [0, 1] and i.i.d. data
Linear Margin Classifier \frac{Br}{\gamma\sqrt{n}} \hat{R}_\gamma(\mathbf{w}) + \frac{2Br}{\gamma\sqrt{n}} + \sqrt{\frac{\log(1/\delta)}{2n}} Dimension-free; vacuous once Br/\gamma \gtrsim \sqrt{n}
Two-Layer ReLU Network \frac{2B_1 B_2 r}{\sqrt{n}} Controlled by \ell_1 \times \ell_2 path norms Width-independent, but trained norms often exceed \sqrt{n}
Minimum-Norm Interpolant \sigma_{\min}(\boldsymbol{\Phi}) & effective ranks Noise error \frac{\sigma_\xi^2}{n}\sum_i \frac{\|\boldsymbol{\Phi}_{\mathrm{te}}\mathbf{v}_i\|^2/n_{\mathrm{te}}}{\|\boldsymbol{\Phi}\mathbf{v}_i\|^2/n} Algorithm-dependent; spikes at p = n, benign for p \gg n

Concept Check: Uniform Convergence and Double Descent

Check Your Understanding

  1. Sample cost of doubling a hyperparameter grid: Using the finite-class union bound n = \frac{\log(2/\delta) + \log\lvert\mathcal{F}\rvert}{2t^2}, how many extra validation examples are needed to maintain a tolerance of t = 0.01 whenever you double the number of candidate models \lvert\mathcal{F}\rvert?
  2. Rademacher complexity of an interpolating classifier: Suppose a binary classifier family \mathcal{F} \subseteq \{\pm 1\}^{\mathcal{X}} can shatter (fit every sign pattern \boldsymbol{\varepsilon} \in \{\pm 1\}^n on) the training set S. What are \widehat{\mathfrak{R}}_S(\mathcal{F}) and the resulting Rademacher 0\text{--}1 risk bound?
  3. Distinguishing two zero-training-error fits: In our random-features sweep, both p = 42 and p = 400 achieve training MSE \approx 10^{-28}. Name three quantities from the SVD analysis that separate their generalization behavior.

Answers:

  1. Doubling \lvert\mathcal{F}\rvert adds \log 2 \approx 0.693 to \log\lvert\mathcal{F}\rvert, requiring \frac{\log 2}{2(0.01)^2} \approx 3{,}466 additional validation examples regardless of the current pool size.
  2. Since \mathcal{F} matches every \boldsymbol{\varepsilon} exactly, \widehat{\mathfrak{R}}_S(\mathcal{F}) = 1. For the 0\text{--}1 loss class \mathcal{G}, \widehat{\mathfrak{R}}_S(\mathcal{G}) = \frac{1}{2}\widehat{\mathfrak{R}}_S(\mathcal{F}) = \frac{1}{2}, so the complexity penalty 2\widehat{\mathfrak{R}}_S(\mathcal{G}) = 1.0 (100\%) makes the bound vacuous.
  3. From p = 42 to p = 400: (1) the solution norm \|\mathbf{w}\|_2 drops from \sim 5 to 0.4; (2) the smallest singular value \sigma_{\min} rises from \sim 0.08 to 2.8; and (3) the test-to-train feature energy ratio along \mathbf{v}_{\min} drops from \sim 500–800 to \sim 2.

Summary: Generalization and Double Descent

Key Takeaways

Concept Mathematical Form Statistical & Deep Learning Role
Uniform Convergence \sup_{f \in \mathcal{F}} \lvert\hat{R}_S(f) - R(f)\rvert \le t Protects data-dependent model selection \hat{f} = \operatorname{argmin}_f \hat{R}_S(f)
Finite-Class Union Bound \lvert\hat{R}_S(f) - R(f)\rvert \le \sqrt{\frac{\log(2\lvert\mathcal{F}\rvert/\delta)}{2n}} Searching \lvert\mathcal{F}\rvert fixed models costs only \log\lvert\mathcal{F}\rvert thanks to exponential tails
Rademacher Complexity \widehat{\mathfrak{R}}_S(\mathcal{F}) = \mathbb{E}_{\boldsymbol{\varepsilon}}\bigl[\sup_{f \in \mathcal{F}} \frac{1}{n}\sum_i \varepsilon_i f(\mathbf{x}_i)\bigr] Ghost-sample symmetrization reduces generalization gap to fitting random signs
Linear & Margin Bounds \widehat{\mathfrak{R}}_S(\mathcal{F}) \le \frac{Br}{\sqrt{n}}; R_{0\text{--}1} \le \hat{R}_\gamma + \frac{2Br}{\gamma\sqrt{n}} + \sqrt{\frac{\log(1/\delta)}{2n}} Capacity depends on norm product Br/\gamma, not dimension d
SVD Interpolation Peak \mathbf{w} = \boldsymbol{\Phi}^+\mathbf{y} = \sum_{i=1}^q \frac{\langle\mathbf{u}_i, \mathbf{y}\rangle}{\sigma_i}\mathbf{v}_i Collapse of \sigma_{\min} at p = n explodes \|\mathbf{w}\|_2 and test error
Benign Overfitting \text{Noise MSE} = \frac{\sigma_\xi^2}{n}\sum_{i=1}^n \frac{\|\boldsymbol{\Phi}_{\mathrm{te}}\mathbf{v}_i\|^2/n_{\mathrm{te}}}{\|\boldsymbol{\Phi}\mathbf{v}_i\|^2/n} For p \gg n, noise is absorbed in low-energy directions where test features are also small