↓ Skip to main content
  1. Engineering Notes & Articles/

Generalization, Bias–Variance Tradeoff & The Double Descent Phenomenon

Table of Contents
Machine Learning Fundamentals - This article is part of a series.
Part 4: This Article

1. The Core Problem: Why Driving Training Loss to Zero Is Not Enough
#

In Part 3, we engineered optimizers like Momentum and AdamW to drive empirical training loss $\hat{R}_n(w)$ downward quickly and reliably. That solves the optimization problem, yet it leaves the deeper generalization problem unresolved.

Suppose you train two models on the exact same dataset:

  • Model A has 5 parameters and reaches a training MSE of 0.15.
  • Model B has 50 parameters and reaches a training MSE of 0.00.

Which model performs better on unseen data? Classical statistical theory warns that Model B has likely memorized random noise—suffering catastrophic test error. Yet modern deep learning routinely trains neural networks with billions of parameters on far fewer training constraints, driving training loss near zero while achieving state-of-the-art generalization.

How can both facts be true at the same time?

Resolving this paradox requires dissecting the mathematical anatomy of expected prediction error (Bias–Variance Decomposition), understanding how explicit constraints reshape the parameter space ($L_1$ vs. $L_2$ Regularization), estimating out-of-sample risk reliably (Cross-Validation), and finally reconciling classical theory with the modern Double Descent regime.


2. Conceptual Intuition: The Archer, The Sculptor, and The Overparameterized Bridge
#

The Archer (Bias vs. Variance)
#

Imagine testing four archers shooting arrows at a bullseye. Each arrow represents a model trained on a different random sample $S$ drawn from the same underlying world:

  • High Bias, Low Variance (Underfitting): Arrows cluster tightly together, but far to the upper-left of the bullseye. The model is stubbornly consistent—its hypothesis space is too rigid to reach the true target.
  • Low Bias, High Variance (Overfitting): The average position of the arrows sits right on the bullseye, but individual arrows scatter wildly across the board. Tiny perturbations in the training sample cause dramatic swings in the learned function.

The Sculptor ($L_1$ vs. $L_2$ Regularization)
#

Regularization constrains how much freedom a model has to chase noise. Think of it as setting a budget on parameter norm:

  • $L_2$ (Ridge) distributes weight smoothly across all correlated features—like rounding off sharp edges so no single parameter dominates.
  • $L_1$ (Lasso) acts like a ruthless minimalist—forcing weak or redundant features all the way to exact zero, performing automatic feature selection while keeping only the strongest signals.

The Overparameterized Bridge (Double Descent)
#

Why does an absurdly complex model sometimes beat a moderately complex one? Imagine trying to build a smooth bridge passing through 40 noisy survey points:

  • With exactly 40 degrees of freedom, there is only one curve that hits every noisy point—forcing the bridge to twist violently into extreme peaks and valleys just to touch every dot.
  • With 1,000 degrees of freedom, there are infinitely many curves that pass through all 40 points. If your algorithm selects the smoothest (minimum-norm) curve among all exact interpolators, the extra degrees of freedom absorb the noise locally without creating massive global oscillations.

3. Mathematical Formulation: The Bias–Variance Decomposition
#

Formalized for neural networks and statistical estimators by Geman, Bienenstock, and Doursat (1992), the Bias–Variance Decomposition isolates the exact sources of expected squared prediction error.

Assume data is generated by an unknown deterministic function $f(x)$ plus zero-mean independent noise:

$$y = f(x) + \epsilon, \qquad \mathbb{E}[\epsilon] = 0, \qquad \operatorname{Var}(\epsilon) = \sigma^2$$

Let $\hat{f}_S(x)$ denote the model trained on a random dataset $S \sim P^n$. Because $S$ itself is random, $\hat{f}_S(x)$ is a random variable at any fixed test point $x$. Define its average prediction across all possible training sets of size $n$ as:

$$\bar{f}(x) = \mathbb{E}_S\big[\hat{f}_S(x)\big]$$

Now compute the expected squared test error at point $x$ by adding and subtracting $\bar{f}(x)$ inside the square:

$$\mathbb{E}_{S, \epsilon}\Big[\big(y - \hat{f}_S(x)\big)^2\Big] = \mathbb{E}_{S, \epsilon}\Big[\big((f(x) - \bar{f}(x)) + (\bar{f}(x) - \hat{f}_S(x)) + \epsilon\big)^2\Big]$$

Expanding the trinomial square produces three squared terms and three cross terms. Every cross term vanishes identically:

  1. Because $\epsilon$ has zero mean and is independent of $S$, both cross terms involving $\epsilon$ equal zero.
  2. Because $f(x) - \bar{f}(x)$ is deterministic with respect to $S$, it pulls out of the expectation:
$$2\big(f(x) - \bar{f}(x)\big) \cdot \mathbb{E}_S\big[\bar{f}(x) - \hat{f}_S(x)\big] = 2\big(f(x) - \bar{f}(x)\big) \cdot \big(\bar{f}(x) - \bar{f}(x)\big) = 0$$

What remains is one of the most foundational identities in statistical learning:

$$\mathbb{E}_{S, \epsilon}\Big[\big(y - \hat{f}_S(x)\big)^2\Big] = \underbrace{\big(f(x) - \mathbb{E}_S[\hat{f}_S(x)]\big)^2}_{\text{Bias}^2[\hat{f}_S(x)]} + \underbrace{\mathbb{E}_S\Big[\big(\hat{f}_S(x) - \mathbb{E}_S[\hat{f}_S(x)]\big)^2\Big]}_{\text{Variance}[\hat{f}_S(x)]} + \underbrace{\sigma^2}_{\text{Irreducible Noise}}$$
  • $\text{Bias}^2$: Systematic error caused by overly simplistic structural assumptions in $\mathcal{H}$.
  • $\text{Variance}$: Sensitivity of the learned predictor to random fluctuations in the specific training sample $S$.
  • $\sigma^2$: The Bayes error floor—intrinsic measurement or environmental randomness that no algorithm can remove.

The Classical U-Shaped Tradeoff
#

In classical low-dimensional statistics (where parameter count $p$ is less than sample count $n$), increasing model complexity shrinks $\text{Bias}^2$ while inflating $\text{Variance}$ at an accelerating rate. Summing the two curves yields the classic U-shaped test error curve, implying a single “sweet spot” of intermediate complexity.


4. Controlling Variance Explicitly: $L_1$ (Lasso) vs. $L_2$ (Ridge) Regularization
#

To prevent variance from exploding without throwing away potentially useful features, we deliberately inject a controlled amount of bias via norm-based regularization.

In Part 2, we derived $L_2$ and $L_1$ penalties as Bayesian MAP priors (Gaussian vs. Laplace). Here, we examine their optimization geometry and exact shrinkage behavior.

Constrained vs. Penalized Formulation
#

By Lagrange duality, minimizing a penalized objective is equivalent to minimizing unpenalized empirical risk inside a bounded norm ball of radius $t$:

  • Ridge Regression ($L_2$, Hoerl & Kennard, 1970):
$$\hat{w}_{\text{Ridge}} = \arg\min_{w} \left( \frac{1}{2n}\Vert{}Xw - y\Vert{}_2^2 + \frac{\lambda}{2}\Vert{}w\Vert{}_2^2 \right) \iff \min_{w} \Vert{}Xw - y\Vert{}_2^2 \quad \text{s.t.} \quad \Vert{}w\Vert{}_2^2 \le t$$
  • Lasso Regression ($L_1$, Tibshirani, 1996):
$$\hat{w}_{\text{Lasso}} = \arg\min_{w} \left( \frac{1}{2n}\Vert{}Xw - y\Vert{}_2^2 + \lambda\Vert{}w\Vert{}_1 \right) \iff \min_{w} \Vert{}Xw - y\Vert{}_2^2 \quad \text{s.t.} \quad \Vert{}w\Vert{}_1 \le t$$

Why $L_1$ Produces Exact Sparsity While $L_2$ Does Not
#

The difference becomes unmistakable from two angles—geometry and subgradient algebra:

  1. Geometric Intersection: The level sets of the squared loss $\Vert{}Xw - y\Vert{}_2^2$ are concentric ellipsoids centered at the unregularized OLS solution $\hat{w}_{\text{OLS}}$. The regularized solution occurs at the first point where an expanding ellipsoid touches the constraint region:
  • The $L_2$ constraint $\Vert{}w\Vert{}_2^2 \le t$ is a smooth hypersphere (circle in 2D). Because it has no corners, an ellipsoid almost never makes first contact directly on a coordinate axis. Weights shrink toward zero, yet rarely become exact zero.
  • The $L_1$ constraint $\Vert{}w\Vert{}_1 \le t$ is a cross-polytope (rotated diamond in 2D) with sharp vertices protruding along every coordinate axis. As the ellipsoid expands, it disproportionately strikes a corner or edge where one or more coordinates satisfy $w_j = 0$ identically.
  1. Exact Algebraic Mechanism (Orthonormal Design): Consider the clean case where columns of $X$ are orthonormal ($\frac{1}{n}X^\top X = I_d$), so the unregularized estimate is simply $\hat{w}_{\text{OLS}} = \frac{1}{n}X^\top y$. Both estimators decouple coordinate-by-coordinate into exact closed forms:
  • Ridge (Proportional Shrinkage): $$\hat{w}_j^{\text{Ridge}} = \frac{\hat{w}_j^{\text{OLS}}}{1 + \lambda}$$

Every coordinate is scaled down by a constant fraction $1 / (1 + \lambda)$. Even a tiny noisy weight of 0.001 shrinks to 0.0005—never exact zero.

  • Lasso (Soft-Thresholding): Because $\vert{}w_j\vert{}$ is non-differentiable at $w_j = 0$, we apply subgradient optimality $0 \in w_j - \hat{w}_j^{\text{OLS}} + \lambda\,\partial\vert{}w_j\vert{}$, yielding the soft-thresholding operator: $$\hat{w}_j^{\text{Lasso}} = \operatorname{sign}(\hat{w}_j^{\text{OLS}}) \max\big(0,\, \vert{}\hat{w}_j^{\text{OLS}}\vert{} - \lambda\big)$$

Any feature whose signal magnitude falls below the threshold ($\vert{}\hat{w}_j^{\text{OLS}}\vert{} \le \lambda$) is snapped to exact zero, eliminating irrelevant features automatically.

Property $L_2$ Regularization (Ridge) $L_1$ Regularization (Lasso) Elastic Net ($L_1 + L_2$)
Bayesian Prior Isotropic Gaussian $\mathcal{N}(0, \tau^2 I)$ Independent Laplace $\operatorname{Laplace}(0, b)$ Mixture of Gaussian & Laplace
Constraint Geometry Smooth hypersphere ($\Vert{}w\Vert{}_2^2 \le t$) Sharp cross-polytope ($\Vert{}w\Vert{}_1 \le t$) Rounded diamond (strictly convex with corners)
Effect on Weights Proportional shrinkage; dense solutions Soft-thresholding; exact sparsity ($w_j = 0$) Sparse solutions with grouped shrinkage
Correlated Features Shares weight evenly across correlated predictors Arbitrarily picks one feature and zeroes the rest Selects or drops correlated groups together
Optimization Smooth & strictly convex; closed-form $(X^\top X + \lambda I)^{-1}X^\top y$ Convex but non-smooth at 0; solved via coordinate descent / proximal GD Solved efficiently via coordinate descent

5. Estimating True Risk in Practice: $k$-Fold Cross-Validation
#

Selecting hyperparameters such as polynomial degree or regularization strength $\lambda$ requires estimating out-of-sample risk without touching the final held-out test set.

Splitting a limited dataset into a single train/validation split introduces high estimation noise—your choice of $\lambda$ might simply overfit that one validation slice. $k$-Fold Cross-Validation (Stone, 1974; Kohavi, 1995) partitions the training set $S$ into $k$ disjoint, equal-sized folds $S_1, \dots, S_k$. For each fold $j$:

  1. Train the model $\hat{f}^{(-j)}$ on the remaining $k - 1$ folds ($S \setminus S_j$).
  2. Evaluate its loss on the held-out fold $S_j$.

The cross-validation risk estimate averages across all $n$ samples:

$$\widehat{\text{CV}}_k = \frac{1}{k} \sum_{j=1}^{k} \frac{1}{\vert{}S_j\vert{}} \sum_{i \in S_j} L\big(\hat{f}^{(-j)}(x_i), y_i\big)$$

The Hidden Bias–Variance Tradeoff of $k$ Itself
#

Choosing $k$ is not merely a compute decision—it carries its own statistical tradeoff:

  • Small $k$ (e.g., $k = 2$): Each model trains on only 50% of the data. Because learning curves improve with sample size, $\widehat{\text{CV}}_2$ systematically overestimates the true risk of the final full-data model (high pessimistic bias).
  • Leave-One-Out CV ($k = n$): Each model trains on $n - 1$ points, making the risk estimate nearly unbiased. However, any two training folds share $n - 2$ identical samples, so the $n$ models are strongly positively correlated—which can inflate the variance of the CV estimate alongside an $n\times$ computational cost.
  • The Practical Sweet Spot ($k = 5$ or $k = 10$): Empirically validated by Kohavi (1995), 5-fold and 10-fold CV balance low bias, controlled variance, and reasonable compute across most tabular and scientific workloads.

6. The Modern Paradox: The Double Descent Phenomenon
#

For decades, the classical U-shaped Bias–Variance curve was taught as an iron law: never let model capacity exceed the number of training samples ($p \gt n$), or variance will explode and destroy generalization.

Modern deep learning shattered that rule. ResNets, Vision Transformers, and Large Language Models routinely contain orders of magnitude more parameters than training data points, interpolate training data to near-zero loss, and yet generalize remarkably well.

Belkin et al. (2019) unified classical statistics and modern deep learning under a single curve: Double Descent.

Anatomy of the Two Regimes
#

Instead of a single U-curve, plotting test risk as a function of model capacity $p$ (holding sample size $n$ fixed) reveals three distinct phases:

  1. Classical Underparameterized Regime ($p \lt n$): The traditional U-shaped Bias–Variance curve holds intact. As $p$ grows, bias falls and test error drops—until $p$ approaches $n$, where variance begins rising.
  2. The Interpolation Threshold ($p \approx n$): At the exact boundary where the model gains just enough parameters to achieve zero training error ($\hat{R}_n = 0$), test error spikes violently into a sharp peak.
  3. Modern Overparameterized (Interpolating) Regime ($p \gg n$): Beyond the threshold, training error stays pinned at zero, yet test error drops a second time—often falling below the best possible underparameterized model.

Why Does the Peak Spike and Then Collapse? (The Singular Value Mechanism)
#

This behavior is not mysterious “deep learning magic”—it appears cleanly in ordinary ridgeless linear regression solved via the minimum-norm Moore–Penrose pseudoinverse (Hastie et al., 2022):

$$\hat{w}_{\text{min-norm}} = \arg\min_{w} \Vert{}w\Vert{}_2 \quad \text{subject to} \quad Xw = y \implies \hat{w} = X^+ y$$

Consider a noisy target $y = X w^* + \epsilon$ with $\operatorname{Cov}(\epsilon) = \sigma^2 I_n$. Regardless of whether $p \lt n$ or $p \gt n$, the variance component of the parameter error driven by label noise $\epsilon$ scales directly with the inverse squared nonzero singular values of the feature matrix $X \in \mathbb{R}^{n \times p}$:

$$\mathbb{E}_\epsilon\Big[\Vert{}\hat{w} - \mathbb{E}[\hat{w}]\Vert{}_2^2\Big] = \sigma^2 \operatorname{tr}\big((X^\top X)^+\big) = \sigma^2 \sum_{i=1}^{\min(n, p)} \frac{1}{s_i^2}$$

By the Marchenko–Pastur Law from random matrix theory, the smallest nonzero singular value $s_{\min}(X)$ behaves dramatically differently across the aspect ratio $\gamma = p / n$:

$$s_{\min}(X) \propto \big\vert{}\sqrt{p} - \sqrt{n}\big\vert{}$$

Look directly at that expression:

  • Right at $p = n$ ($\gamma = 1$): $\sqrt{p} - \sqrt{n} = 0$. The matrix $X$ becomes nearly singular, $s_{\min}(X) \to 0$, and $1 / s_{\min}^2 \to \infty$. To force exact interpolation through noisy labels using barely enough parameters, the model must assign enormous, finely balanced positive and negative weights—exploding variance.
  • Far beyond $p \gg n$ ($\gamma \gg 1$): $\vert{}\sqrt{p} - \sqrt{n}\vert{}$ grows large again. The smallest nonzero singular value pulls safely away from zero, and $1 / s_{\min}^2$ shrinks back down. Meanwhile, because infinitely many interpolating solutions exist, selecting the minimum-norm solution spreads the absorption of label noise harmlessly across hundreds of extra dimensions, yielding a smoother function with lower test error.

Deep Double Descent & The Role of Explicit Regularization
#

Nakkiran et al. (2020) demonstrated that this phenomenon occurs across modern ResNets, CNNs, and Transformers not just as a function of model width, but also across training epochs (epoch-wise double descent) and even dataset size—defining a unified Effective Model Complexity (EMC) relative to dataset size.

Equally important is a crucial nuance proven by Hastie et al. (2022) and Nakkiran et al. (2021): optimal $L_2$ regularization ($\lambda \gt 0$) completely eliminates the interpolation peak. Adding $\lambda I$ shifts every denominator from $s_i^2$ to $(s_i^2 + \lambda)^2 / s_i^2$, preventing $s_{\min} \to 0$ from ever dividing by zero. The double descent spike is specifically a signature of unregularized or under-regularized models crossing the exact interpolation boundary.


L1 vs. L2 regularization geometry and the double descent curve

Figure 4. Left: the L1 diamond hits an axis (sparse solution) while the L2 circle shrinks all weights. Right: test risk peaks at the interpolation threshold and then descends again in the overparameterized regime.

7. Minimal Implementation: Verifying Bias–Variance & Double Descent in NumPy
#

The script below demonstrates both foundational results from scratch:

  1. Part A (Monte Carlo Bias–Variance Audit): Verifying the exact identity $\text{MSE} = \text{Bias}^2 + \text{Variance} + \sigma^2$ across polynomial degrees 1, 3, and 7.
  2. Part B (Double Descent in Random ReLU Features): Sweeping feature width $p$ across the interpolation threshold $p = n = 40$ using exact minimum-norm interpolation (np.linalg.pinv), contrasting unregularized Ridgeless Interpolation ($\lambda = 0$) against Ridge Regularization ($\lambda = 0.05$).
import numpy as np

# =====================================================================
# PART A: Monte Carlo Verification of MSE = Bias^2 + Variance + Noise
# =====================================================================
rng = np.random.default_rng(42)

def f_true(x: np.ndarray) -> np.ndarray:
    return np.sin(np.pi * x)

sigma = 0.30
n_train = 25
n_trials = 600
x_test = np.linspace(-0.85, 0.85, 50)
y_clean_test = f_true(x_test)

print("=== PART A: Exact Bias-Variance Decomposition (600 Monte Carlo trials) ===")
print(f"True Irreducible Noise Floor (sigma^2): {sigma**2:.4f}\n")
print(f"{'Deg':<4} | {'Bias^2':<8} | {'Variance':<8} | {'Sum+Noise':<9} | {'Empirical MSE'}")
print("-" * 55)

for deg in [1, 3, 7]:
    preds = np.zeros((n_trials, len(x_test)))
    noisy_targets = np.zeros((n_trials, len(x_test)))

    Phi_test = np.vander(x_test, N=deg + 1, increasing=True)

    for trial in range(n_trials):
        x_tr = rng.uniform(-1.0, 1.0, size=n_train)
        y_tr = f_true(x_tr) + rng.normal(0.0, sigma, size=n_train)

        Phi_tr = np.vander(x_tr, N=deg + 1, increasing=True)
        w_hat, *_ = np.linalg.lstsq(Phi_tr, y_tr, rcond=None)

        preds[trial] = Phi_test @ w_hat
        noisy_targets[trial] = y_clean_test + rng.normal(0.0, sigma, size=len(x_test))

    mean_pred = preds.mean(axis=0)
    bias_sq = float(np.mean((mean_pred - y_clean_test) ** 2))
    variance = float(np.mean(np.var(preds, axis=0)))
    emp_mse = float(np.mean((preds - noisy_targets) ** 2))
    theoretical_sum = bias_sq + variance + sigma ** 2

    print(
        f"{deg:<4} | {bias_sq:<8.4f} | {variance:<8.4f} | "
        f"{theoretical_sum:<9.4f} | {emp_mse:.4f}"
    )

# =====================================================================
# PART B: Double Descent via Minimum-Norm Random ReLU Features
# Fixed n_train = 40, sweeping hidden feature count p from 4 to 500
# =====================================================================
def ridge_fit(Z: np.ndarray, y: np.ndarray, lam: float) -> np.ndarray:
    n, p = Z.shape
    if lam == 0.0:
        # Exact minimum-norm interpolator / OLS via SVD pseudoinverse
        return np.linalg.pinv(Z, rcond=1e-12) @ y
    # Use primal form when p <= n, dual (Woodbury) form when p > n
    if p <= n:
        return np.linalg.solve(Z.T @ Z + lam * np.eye(p), Z.T @ y)
    return Z.T @ np.linalg.solve(Z @ Z.T + lam * np.eye(n), y)

d_in = 10
n_tr_dd = 40
n_te_dd = 400
noise_dd = 0.30
widths = [4, 12, 24, 36, 40, 44, 60, 100, 250, 500]
n_seeds = 35

print("\n=== PART B: Double Descent across Interpolation Threshold (n = 40) ===")
print(
    f"{'Width p':<8} | {'Train MSE (lam=0)':<17} | "
    f"{'Test MSE (lam=0)':<17} | {'Test MSE (lam=0.05)'}"
)
print("-" * 70)

for p in widths:
    tr_mses_0, te_mses_0, te_mses_reg = [], [], []

    for seed in range(n_seeds):
        r = np.random.default_rng(1000 + seed)
        w_true = r.normal(0.0, 1.0, size=d_in)
        w_true = 1.5 * w_true / np.linalg.norm(w_true)

        X_tr = r.normal(0.0, 1.0, size=(n_tr_dd, d_in))
        y_tr = X_tr @ w_true + r.normal(0.0, noise_dd, size=n_tr_dd)

        X_te = r.normal(0.0, 1.0, size=(n_te_dd, d_in))
        y_te = X_te @ w_true + r.normal(0.0, noise_dd, size=n_te_dd)

        # Random ReLU feature projection scaled by 1/sqrt(p) so Z Z^T stays O(1)
        W_rand = r.normal(0.0, 1.0, size=(p, d_in)) / np.sqrt(d_in)
        Z_tr = np.maximum(0.0, X_tr @ W_rand.T) / np.sqrt(p)
        Z_te = np.maximum(0.0, X_te @ W_rand.T) / np.sqrt(p)

        # 1. Unregularized minimum-norm solution (lam = 0)
        a_0 = ridge_fit(Z_tr, y_tr, lam=0.0)
        tr_mses_0.append(np.mean((Z_tr @ a_0 - y_tr) ** 2))
        te_mses_0.append(np.mean((Z_te @ a_0 - y_te) ** 2))

        # 2. Ridge-regularized solution (lam = 0.05)
        a_reg = ridge_fit(Z_tr, y_tr, lam=0.05)
        te_mses_reg.append(np.mean((Z_te @ a_reg - y_te) ** 2))

    marker = " <-- p = n (threshold)" if p == n_tr_dd else ""
    print(
        f"{p:<8} | {np.mean(tr_mses_0):<17.4f} | "
        f"{np.mean(te_mses_0):<17.4f} | {np.mean(te_mses_reg):.4f}{marker}"
    )

Interpreting the Behavior
#

Two deep theoretical results materialize directly in the terminal output:

  1. Exact Additive Identity (Part A): Across every polynomial degree, Bias^2 + Variance + sigma^2 matches the independently measured Empirical MSE to within Monte Carlo sampling precision. Degree 1 is dominated by Bias^2, degree 3 minimizes total error near the 0.09 noise floor, and degree 7 drives Bias^2 near zero while Variance surges.
  2. The Double Descent Spike & Ridge Smoothing (Part B):
  • For unregularized interpolation (lam=0), test MSE initially drops from $p = 4$ to $p = 12$, then climbs steeply and explodes right at $p = 40 = n$ precisely as Train MSE hits 0.0000. Moving past the threshold ($p = 100 \to 500$), Train MSE remains exact 0.0000 while Test MSE drops cleanly into a second descent, outperforming the best underparameterized models!
  • For Ridge (lam=0.05), the interpolation spike disappears completely—test MSE decreases monotonically as feature width increases, demonstrating empirically why regularization reconciles classical and overparameterized regimes.

8. Limitations & Bridge to Part 5
#

Look closely at one sneaky line inside ridge_fit() above:

return Z.T @ np.linalg.solve(Z @ Z.T + lam * np.eye(n), y)

When feature dimension $p$ became much larger than sample count $n$, we bypassed the massive $p \times p$ matrix $Z^\top Z$ entirely and solved the problem using only the tiny $n \times n$ matrix of inner products $Z Z^\top$.

That algebraic trick begs an extraordinary question: what if we push $p$ all the way to infinity—operating inside an infinite-dimensional nonlinear feature space—without ever computing the feature vectors $Z$ explicitly?

In Part 5: The Geometry of Decision Boundaries — Support Vector Machines & The Kernel Trick, we will explore how maximizing geometric margins via Lagrangian duality leads directly to Kernel Methods—enabling linear algorithms to carve arbitrarily complex nonlinear boundaries in infinite-dimensional Hilbert spaces at finite computational cost.


References
#

  1. Hoerl, A. E., & Kennard, R. W. (1970). “Ridge Regression: Biased Estimation for Nonorthogonal Problems.” Technometrics, 12(1), 55–67. (Original formulation of $L_2$ regularization).
  2. Stone, M. (1974). “Cross-Validatory Choice and Assessment of Statistical Predictions.” Journal of the Royal Statistical Society: Series B (Methodological), 36(2), 111–147. (Statistical foundations of cross-validation).
  3. Geman, S., Bienenstock, E., & Doursat, R. (1992). “Neural Networks and the Bias/Variance Dilemma.” Neural Computation, 4(1), 1–58. (Bias–variance decomposition in machine learning).
  4. Kohavi, R. (1995). “A Study of Cross-Validation and Bootstrap for Accuracy Estimation and Model Selection.” Proceedings of the 14th International Joint Conference on Artificial Intelligence (IJCAI 1995), 1137–1143.
  5. Tibshirani, R. (1996). “Regression Shrinkage and Selection via the Lasso.” Journal of the Royal Statistical Society: Series B (Methodological), 58(1), 267–288. (Original formulation of $L_1$ regularization and sparsity).
  6. Belkin, M., Hsu, D., Ma, S., & Mandal, S. (2019). “Reconciling Modern Machine-Learning Practice and the Classical Bias–Variance Trade-Off.” Proceedings of the National Academy of Sciences (PNAS), 116(32), 15849–15854. (Introduction of the Double Descent risk curve).
  7. Nakkiran, P., Kaplun, G., Bansal, Y., Yang, T., Barak, B., & Sutskever, I. (2020). “Deep Double Descent: Where Bigger Models and More Data Hurt.” International Conference on Learning Representations (ICLR 2020). arXiv:1912.02292.
  8. Hastie, T., Montanari, A., Rosset, S., & Tibshirani, R. J. (2022). “Surprises in High-Dimensional Ridgeless Least Squares Interpolation.” The Annals of Statistics, 50(2), 949–986. arXiv:1903.08560. (Random matrix theory proof of the interpolation peak and minimum-norm overparameterized descent).
Machine Learning Fundamentals - This article is part of a series.
Part 4: This Article