Learning Theory
Learning theory asks when, why, and how an algorithm trained on finite data makes good predictions on new data. It has three central questions:
- generalization: how does performance on the training set relate to performance on the whole distribution?
- capacity: what functions can the model represent, and how does that richness affect generalization?
- optimization: what does the training algorithm actually find, and how fast?
Deep learning has reopened all three: models that classical theory says should fail badly often generalize remarkably well. This chapter first states the classical picture, then the phenomena that break it, then the modern explanations, which shift attention from what a model can represent to which function training actually produces.
12.1 The Classical Picture
Definition 12.1 (Risk and Empirical Risk Minimization) Data \((x,y)\) come from an unknown distribution \(\mathcal D\). For a predictor \(f\) and loss \(\ell\):
- the population risk is \(R(f)=\mathbb E_{(x,y)\sim\mathcal D}\,\ell(f(x),y)\), the quantity we care about, which cannot be computed;
- the empirical risk on a sample \(S=\{(x_i,y_i)\}_{i=1}^n\) is \(\hat R(f)=\frac1n\sum_{i=1}^n\ell(f(x_i),y_i)\);
- empirical risk minimization (ERM) picks \(f_S=\arg\min_{f\in\mathcal H}\hat R(f)\) from a hypothesis class \(\mathcal H\);
- the generalization gap is \(\mathrm{gen}(f)=R(f)-\hat R(f)\).
- Excess risk. Relative to the best possible risk \(R^\star\), \[ R(f_S)-R^\star=\underbrace{R(f_S)-\min_{f\in\mathcal H}R(f)}_{\text{estimation error (finite data)}}+\underbrace{\min_{f\in\mathcal H}R(f)-R^\star}_{\text{approximation error (limited }\mathcal H)}. \] A good learner makes both \(\hat R(f_S)\) and \(\mathrm{gen}(f_S)\) small.
- Low training loss is not enough. A model with enough capacity can memorize the training set, noise included, and predict randomly elsewhere. Two predictors with the same training loss can differ enormously on test data: what matters is what the model learned, not only how well it fits \(S\).
Classical bounds have the form \(R(f)\le\hat R(f)+O\Bigl(\sqrt{\mathrm{capacity}(\mathcal H)/n}\Bigr)\): a richer class allows a bigger gap, more data shrinks it. The simplest instance:
Theorem 12.1 (Generalization Bound for a Finite Class) Let \(\mathcal H\) be finite and the loss take values in \([0,1]\). With probability at least \(1-\delta\) over the sample, simultaneously for all \(f\in\mathcal H\),
\[ \bigl|R(f)-\hat R(f)\bigr|\le\sqrt{\frac{\log|\mathcal H|+\log(2/\delta)}{2n}}. \]
For a fixed \(f\), \(\hat R(f)\) is an average of \(n\) independent \([0,1]\)-valued variables with mean \(R(f)\), so Hoeffding’s inequality gives \(P\bigl(|\hat R(f)-R(f)|>\epsilon\bigr)\le2e^{-2n\epsilon^2}\). A union bound over the \(|\mathcal H|\) hypotheses gives failure probability at most \(2|\mathcal H|e^{-2n\epsilon^2}\); set it equal to \(\delta\) and solve for \(\epsilon\).
The bound holds for every \(f\) at once, in particular for \(f_S\), which is chosen after seeing the data. Here capacity is \(\log|\mathcal H|\). For infinite classes it is replaced by other measures of how many different behaviors \(\mathcal H\) can realize on data:
- VC dimension: the largest number of points that \(\mathcal H\) can label in every possible way;
- Rademacher complexity: how well \(\mathcal H\) can fit random signs, \(\mathfrak R_n(\mathcal H)=\mathbb E_{S,\sigma}\sup_{f\in\mathcal H}\frac1n\sum_i\sigma_if(x_i)\) with \(\sigma_i=\pm1\) uniformly at random;
- covering numbers: how many small balls are needed to approximate every function in \(\mathcal H\);
- PAC-Bayes and norm-based bounds: refined measures that depend on the learned weights, their norms, or a prior over models.
Capacity is not simply parameter count; it is the effective flexibility of the class.
Proposition 12.1 (Bias–Variance Decomposition) Let \(y=f^\star(x)+\varepsilon\) with \(\mathbb E\varepsilon=0\), \(\mathrm{Var}\,\varepsilon=\sigma^2\), and let \(\hat f\) be trained on a random sample independent of the test point. At a fixed \(x\), with \(\bar f(x)=\mathbb E_S\hat f(x)\),
\[ \mathbb E\bigl[(\hat f(x)-y)^2\bigr]=\underbrace{\bigl(\bar f(x)-f^\star(x)\bigr)^2}_{\text{bias}^2}+\underbrace{\mathbb E_S\bigl[(\hat f(x)-\bar f(x))^2\bigr]}_{\text{variance}}+\underbrace{\sigma^2}_{\text{noise}}. \]
Write \(\hat f-y=(\hat f-\bar f)+(\bar f-f^\star)-\varepsilon\) and square. The cross terms vanish in expectation: \(\mathbb E_S[\hat f-\bar f]=0\), and \(\varepsilon\) has mean zero and is independent of \(\hat f\).
- Bias is the systematic error of a class that is too simple; variance is the sensitivity to the particular sample. As complexity grows, bias usually falls and variance rises, so the test error is U-shaped, and the classical prescription is to pick the sweet spot.
- Controlling complexity, in two ways: restrict \(\mathcal H\) (fewer parameters, lower-degree polynomials, smaller trees), or penalize it with explicit regularization, \(\min_f\hat R(f)+\lambda\Omega(f)\), such as weight decay \(\Omega=\|w\|_2^2\), the sparsity penalty \(\|w\|_1\), dropout, or data augmentation. Larger \(\lambda\) gives simpler models that may underfit; smaller \(\lambda\) fits better and risks overfitting. Regularization does not just help optimization: it decides which of the well-fitting solutions is selected.
12.2 The Puzzle of Overparameterization
A model is overparameterized when it has far more parameters than training examples, \(p\gg n\): ResNet-50 has about \(2.5\times10^7\) parameters for \(1.2\times10^6\) ImageNet images, and frontier language models have hundreds of billions of parameters or more. Such models drive the training loss to essentially zero (they interpolate) and still test well, sometimes better as they grow. Worst-case capacity bounds for them exceed \(1\), i.e. say nothing.
Networks fit anything (Zhang et al., 2017). Train a standard image classifier on CIFAR-10 or ImageNet with the labels replaced by random ones, or the images replaced by noise, keeping the architecture, optimizer, and hyperparameters fixed.
- The training error still reaches zero in every case, only more slowly as the corruption grows.
- Weight decay, dropout, and data augmentation do not prevent the memorization; they change test error only modestly.
So the same network can reach 100% training accuracy with chance-level test accuracy on random labels, and 100% training accuracy with high test accuracy on real labels. Capacity cannot explain the difference: the network is always big enough to overfit. Both a memorizing solution (irregular, defined point by point) and a rule-like solution (smooth, capturing how the data was generated) minimize the training loss. Which one training reaches depends on things classical bounds cannot see:
- the optimizer: SGD, Adam, and full-batch GD reach different interpolating solutions with different test errors;
- the architecture: a CNN, a transformer, and an MLP of equal size have similar classical capacity but generalize very differently;
- training time: test error can fall, rise, and fall again, or stay at chance for a long time and then suddenly improve;
- the data: images, text, and audio occupy a tiny low-dimensional part of their input space, so counting functions over the whole space vastly overstates the effective complexity.
The question becomes: among the infinitely many zero-loss solutions, why does SGD on real data find one that generalizes? The answer must involve the architecture, the optimizer, and the data together. The rest of the chapter takes up four parts of it: interpolation, implicit bias, scale, and feature learning.
12.3 Interpolation and Double Descent
A predictor interpolates if \(f(x_i)=y_i\) for every training example. Classically this signals overfitting, since most interpolants oscillate wildly between data points. But if training is biased toward smooth, low-norm interpolants, the chosen one can still generalize. What matters is not whether the model interpolates, but which interpolant is selected.
Theorem 12.2 (Gradient Descent Finds the Minimum-Norm Interpolant) Let \(X\in\mathbb R^{n\times p}\) with \(p>n\) have full row rank. Gradient descent on \(\frac12\|Xw-y\|^2\) from \(w_0=0\), with a small enough step size, converges to
\[ w^\dagger=X^\top(XX^\top)^{-1}y=\arg\min\bigl\{\|w\|_2:\ Xw=y\bigr\}. \]
Every gradient \(X^\top(Xw-y)\) lies in the row space of \(X\), so every iterate does too. The loss is convex and an interpolant exists, so GD converges to some interpolant; there is exactly one interpolant in the row space, namely \(w^\dagger\) (any \(w=X^\top\alpha\) with \(XX^\top\alpha=y\)). Any other interpolant is \(w^\dagger+v\) with \(Xv=0\), i.e. \(v\perp\) row space, so \(\|w^\dagger+v\|^2=\|w^\dagger\|^2+\|v\|^2\ge\|w^\dagger\|^2\).
No penalty appears in the loss, yet the algorithm picks the smallest-norm solution: an implicit regularizer.
- Interpolation threshold. The smallest capacity at which the training set can be fit exactly: \(N=n\) features for a linear model on \(n\) points (roughly \(N\approx nK\) for a network with \(K\) outputs). Right at the threshold the linear system is square and nearly singular: the interpolant is unique, the optimizer has no freedom to choose, the coefficients blow up to thread every noisy point, and the test error peaks.
- Past the threshold (\(N>n\)), the interpolants form a whole subspace, and a larger model contains interpolants of smaller norm. The selected solution gets smoother as \(N\) grows, so the test error falls again. As \(N\to\infty\), minimum-norm random-feature interpolants approach minimum-norm kernel interpolation.
- Double descent (Belkin et al., 2019). The classical U-shaped curve is only the left half. Test risk falls, rises to a peak at the interpolation threshold, then descends through the overparameterized regime, sometimes below the classical sweet spot. It appears in linear models, random features, tree ensembles, and neural networks.
Take \(n=100\) training points \(x\in\mathbb R^{10}\) with Gaussian entries, a linear target plus noise of standard deviation \(0.5\), and \(N\) random ReLU features \(\phi(x)=\max(W^\top x,0)/\sqrt N\). Fit the minimum-norm least-squares solution and measure the test error (median over 30 random draws):
| features \(N\) | 10 | 25 | 50 | 75 | 100 | 125 | 200 | 2000 | 10000 |
|---|---|---|---|---|---|---|---|---|---|
| training MSE | 0.56 | 0.27 | 0.14 | 0.07 | 0 | 0 | 0 | 0 | 0 |
| test MSE | 0.55 | 0.25 | 0.37 | 0.95 | 34.3 | 1.76 | 0.69 | 0.38 | 0.36 |
| \(\|w\|_2\) | 5 | 10 | 24 | 58 | 508 | 110 | 62 | 43 | 41 |
The left half is the classical U, with its best value at \(N=25\). At \(N=n=100\) the model is forced to fit the noise exactly, the weight norm peaks, and the test error explodes. Past the threshold, the norm falls and the test error descends again. In this small example the second descent approaches but does not beat the classical sweet spot; with better-matched features, or less noise, it can.
Deep double descent (Nakkiran et al., 2020). The peak appears whenever training crosses the interpolation threshold, along any of three axes:
- model-wise: vary the width with data and training time fixed;
- epoch-wise: train longer; a large model’s test error can fall, rise near the epoch where it starts interpolating, and fall again, so early stopping is not always optimal;
- sample-wise: add data; this moves the threshold, and a model near the new threshold can get worse with more data.
They unify these with the effective model complexity (EMC) of a training procedure: the largest sample size on which it reaches about zero training error. EMC depends on architecture, optimizer, and training time. Test error behaves non-monotonically when \(\mathrm{EMC}\approx n\); away from that critical interval, more complexity reliably helps. Inside it, “bigger is better” and “more data is better” both fail: on CIFAR-10 with label noise, ResNet-18 test error rises as width grows from about 8 to 12 and then falls; on IWSLT’14 translation, increasing the data from 4k to 18k examples hurts a fixed transformer.
12.3.1 Benign Overfitting
An interpolating predictor fits noisy labels perfectly, yet can still predict well. Bartlett, Long, Lugosi, and Tsigler (2020) characterize when, for minimum-norm linear regression, in terms of the eigenvalues \(\lambda_1\ge\lambda_2\ge\dots\) of the data covariance \(\Sigma\) and two effective ranks of its tail:
\[ r_k(\Sigma)=\frac{\sum_{i>k}\lambda_i}{\lambda_{k+1}}, \qquad R_k(\Sigma)=\frac{\bigl(\sum_{i>k}\lambda_i\bigr)^2}{\sum_{i>k}\lambda_i^2}. \]
Overfitting is benign when there is a cutoff \(k^\star\ll n\) with \(r_{k^\star}(\Sigma)\) large and \(R_{k^\star}(\Sigma)\gg n\).
- Picture: the signal lives in a few large-eigenvalue directions; label noise has no preferred direction. If there are many more weak “junk” directions than training examples, with no single one dominating (a long, flat tail of the spectrum), the interpolant can hide the noise in them, where it barely affects predictions on new data.
- Overparameterization is essential here: there must be many more unimportant directions than samples. If signal and noise share the same few directions, overfitting is not benign. The feature spectra of trained deep networks show exactly this long-tail shape.
12.4 Implicit Bias and Algorithmic Regularization
The set of zero-loss solutions is a huge manifold, and its members can disagree wildly off the training data. Generalization therefore depends on the selection rule, and the selection rule is the training procedure: optimizer, learning rate, batch size, initialization, schedule, and architecture. The implicit bias of optimization is its preference for some solutions over others without any penalty in the loss.
- Max-margin bias (Soudry et al., 2018). Logistic regression trained by GD on linearly separable data has no minimizer (the loss keeps falling as \(\|w\|\to\infty\)), but the direction \(w_t/\|w_t\|\) converges to the hard-margin SVM separator, slowly, at rate \(O(1/\log t)\). Similar max-margin and minimum-norm biases hold for deep linear networks, homogeneous networks, and matrix factorization.
- Sources of implicit bias:
- architecture: convolutions encode translation equivariance, recurrence and state-space models encode sequential structure, attention encodes content-dependent global interactions, and ReLU networks favor piecewise-linear functions with few pieces; architecture often matters more than parameter count;
- optimizer dynamics: SGD, momentum, Adam, and natural gradient each act like a different regularizer;
- initialization scale: small initialization favors low-rank, sparse, feature-learning solutions; large initialization keeps the network near its linearization (the lazy regime, below);
- stochasticity and learning rate: minibatch noise and large steps cannot settle into sharp minima, which biases SGD toward flat minima that tend to generalize;
- data structure, which interacts with all of the above.
- Regularization without penalties. Many “regularizers” are properties of the training procedure: early stopping limits the trajectory in time; minibatch SGD injects gradient noise; data augmentation enlarges the dataset along known symmetries; dropout perturbs the forward pass; normalization layers reshape the loss surface (and with weight decay they act on the effective learning rate rather than as a plain norm penalty). Together they confine training to a part of the zero-loss manifold that generalizes.
Proposition 12.2 (Early Stopping Acts like Ridge Regression) For least squares with \(X^\top X=\sum_is_iu_iu_i^\top\), gradient descent from \(w_0=0\) with step \(\eta<1/s_1\) gives after \(t\) steps
\[ w_t=\sum_i\bigl[1-(1-\eta s_i)^t\bigr]\frac{u_i^\top X^\top y}{s_i}\,u_i, \qquad\text{while ridge gives}\qquad w_\lambda=\sum_i\frac{s_i}{s_i+\lambda}\cdot\frac{u_i^\top X^\top y}{s_i}\,u_i. \]
Both shrink each eigendirection by a filter that is \(\approx1\) for \(s_i\) large and \(\approx0\) for \(s_i\) small, with the cutoff at \(s_i\approx1/(\eta t)\) for GD and \(s_i\approx\lambda\) for ridge. Training for \(t\) steps behaves like ridge with \(\lambda\approx1/(\eta t)\).
The GD update is \(w_{t+1}=w_t-\eta X^\top(Xw_t-y)=(I-\eta X^\top X)w_t+\eta X^\top y\). In the eigenbasis, the coefficient \(c_t=u_i^\top w_t\) obeys \(c_{t+1}=(1-\eta s_i)c_t+\eta b_i\) with \(b_i=u_i^\top X^\top y\) and \(c_0=0\), so \(c_t=\eta b_i\sum_{k=0}^{t-1}(1-\eta s_i)^k=\frac{b_i}{s_i}\bigl[1-(1-\eta s_i)^t\bigr]\). Ridge solves \((X^\top X+\lambda I)w=X^\top y\), i.e. \(c=b_i/(s_i+\lambda)\). For small \(\eta s_i t\), the GD filter is \(\approx\eta ts_i\); the ridge filter is \(\approx s_i/\lambda\); they match when \(\lambda=1/(\eta t)\).
- In deep networks the parallel is empirical but consistent: shorter training acts like stronger regularization. Deep double descent adds a caveat: training past the apparent overfitting peak can make test error fall again.
- Easy examples first (Arpit et al., 2017). On real data, networks fit easy examples before hard ones, and learn the clean signal before memorizing label noise; on random labels there is no such ordering. Under label noise, generalization first rises with training accuracy, then degrades as the noise is memorized, which is why early stopping helps there. When something is learned reveals what is learned.
12.5 Scale
Test loss of language models falls as a power law in parameters, data, and compute, with architecture details (depth, width, heads) mattering much less than overall scale (Def. 10.1). Given a compute budget, scaling laws turn model design into a resource-allocation problem: how to split compute between parameters \(N\) and tokens \(D\), with \(C\approx6ND\).
- Bigger is not always better if the data does not grow with it. Kaplan et al. (2020) recommended growing \(N\) faster than \(D\). Chinchilla (Hoffmann et al., 2022) trained over 400 models (70M to 16B parameters, 5B to 500B tokens) and found that \(N\) and \(D\) should grow in equal proportion, about 20 tokens per parameter. Many earlier large models (Gopher, GPT-3, MT-NLG) were badly undertrained.
- Demonstration: Chinchilla (70B parameters, 1.4T tokens) uses the same compute as Gopher (280B, 300B tokens) and outperforms it, GPT-3 (175B), and MT-NLG (530B) on a wide range of benchmarks.
- Caveat: this optimizes training loss for fixed training compute. When inference cost matters, smaller models trained much longer win; current frontier models use hundreds to thousands of tokens per parameter.
12.6 Features and Training Dynamics
The training loss often reaches zero early, while test loss keeps improving for much longer. Generalization is a process, shaped by which features are learned and when, how the optimizer moves along the zero-loss manifold, and whether the data rewards memorizing or finding rules.
12.6.1 Lazy Learning and the Neural Tangent Kernel
Do networks learn features at all? There are two contrasting pictures.
- Lazy (kernel) regime, at large width or large initialization: weights move by \(O(1/\sqrt{\text{width}})\), hidden features barely change, and the network behaves like its first-order Taylor expansion around initialization.
- Feature-learning (rich) regime, at small initialization or finite width: hidden representations realign with the task and can solve problems no fixed kernel solves efficiently, such as finding a single useful direction in a high-dimensional input.
Definition 12.2 (Neural Tangent Kernel) For a network \(f(x;\theta)\), the neural tangent kernel is
\[ \Theta(x,x')=\nabla_\theta f(x;\theta)^\top\nabla_\theta f(x';\theta). \]
Under gradient flow on the squared loss over training inputs \(X\), the outputs evolve as \(\frac{\mathrm d}{\mathrm dt}f_t(X)=-\Theta_t(X,X)\bigl(f_t(X)-y\bigr)\). Jacot, Gabriel, and Hongler (2018) showed that as width \(\to\infty\) (with suitable scaling) \(\Theta_t\) stays equal to a deterministic kernel \(\Theta\) throughout training, so training is kernel regression with the NTK.
- What it explains: why very wide networks reliably reach zero training loss, why non-convex optimization behaves well, and how architecture determines the induced kernel. Training becomes a convex problem in function space.
- What it misses: feature learning (by construction, features are frozen); why finite networks beat their own NTK on tasks like image classification; and pretraining and transfer, whose whole premise is that features change usefully. The NTK is best seen as a null model of “no feature learning”: any gain beyond it is attributable to feature learning, and real performance depends on being near the feature-learning regime.
12.6.2 Pretraining and Transfer
Self-supervised pretraining (masked and autoregressive language modeling, contrastive learning, masked image modeling; Ch. 9) learns representations from unlabeled data. Predicting parts of the input from other parts forces the model to discover the structure that generated the data, and minimizing prediction loss over a huge corpus implicitly learns many subtasks. Pretrained features encode broadly shared regularities (syntax, object parts, low-level statistics), so a downstream linear probe needs far less labeled data, and they are much more robust to distribution shift than features trained from scratch for one task.
12.6.3 The Geometry of Learned Features
Learning transforms the input space into a representation space where the task becomes simple. Early layers capture local statistics (edges, colors; tokens and morphology), middle layers parts and motifs (syntactic phrases), and late layers objects, concepts, and semantic roles. In trained classifiers, same-class samples compress together, class centroids spread apart symmetrically, and late-layer features become linearly separable.
Definition 12.3 (Neural Collapse) In the terminal phase of training (after the training error reaches zero, while the loss keeps falling), Papyan, Han, and Donoho (2020) observed across architectures and datasets:
- NC1: within-class variability of last-layer features collapses: features approach their class means;
- NC2: the centered class means converge to a simplex equiangular tight frame (ETF): equal norms and equal, maximally negative pairwise angles;
- NC3: the classifier weights converge to the same simplex ETF, up to scale;
- NC4: the classifier acts as a nearest-class-mean rule in feature space.
\(K\) unit vectors \(m_1,\dots,m_K\) with \(\sum_km_k=0\) and equal pairwise inner products \(c\) satisfy
\[ 0=\Bigl\|\sum_km_k\Bigr\|^2=K+K(K-1)c\quad\Longrightarrow\quad c=-\frac1{K-1}. \]
For \(K=2\) the two means are antipodal (\(c=-1\)); for \(K=3\) they are \(120^\circ\) apart in a plane (\(c=-\frac12\)); for \(K=10\) classes, \(\cos\theta=-\frac19\), about \(96.4^\circ\). This is the most spread-out configuration of \(K\) points around their center, which maximizes the margin between every pair of classes at once.
- Neural collapse is a strong geometric bias that appears nowhere in the loss. In simplified “unconstrained feature” models it is provably optimal, and it explains why nearest-mean classifiers on deep features work well; it has motivated fixed ETF classifier heads. It is clearest for balanced classification trained well past zero error, and breaks down under class imbalance.
12.6.4 Simplicity Bias and Its Failures
- Simplicity bias. Networks trained with SGD fit simple patterns (linear, low-frequency, sparse) before complex ones, even when both are expressible: the spectral bias of fitting low frequencies first, the easy-then-hard learning curves, and the frequency-dependent convergence rates predicted by NTK analysis. Real tasks tend to have simple solutions, so defaulting to the simplest interpolant often lands on the right one.
- Shortcut learning (Geirhos et al., 2020) is the other edge of the same sword: if a spurious cue is simpler than the true rule and fits the training data, SGD prefers it. Examples: “cow versus camel” decided by the background (grass versus sand), ImageNet CNNs relying on texture rather than shape, pneumonia classifiers keying on hospital-specific markers in the X-ray rather than the lungs, and entailment models exploiting word overlap.
12.6.5 Grokking
Power et al. (2022) trained small transformers on modular arithmetic with limited data. Training accuracy reached 100% quickly while validation accuracy stayed at chance; then, \(10^3\) to \(10^4\) times more steps later, validation accuracy suddenly jumped to near perfect. This delayed generalization is grokking. It is most pronounced when the data fraction is near a critical threshold and with weight decay, which pushes the network from a memorizing solution toward a structured one.
- Grokking decouples fitting from generalizing in time: the network has both behaviors available and switches long after the training loss is essentially zero. Opening the network up shows circuits implementing modular arithmetic (using Fourier features) forming gradually (Nanda et al., 2023).
- Hidden progress. Before generalization shows in the loss, internal representations can already be moving toward the solution, as revealed by probes on hidden layers, mechanistic interpretability, and spectra of weights and features. Stopping when the training loss is small can miss later generalization; the right object of study is the trajectory of training, not just its endpoint.
12.7 When Generalization Fails
Even very capable networks generalize poorly when the test distribution differs from training:
- distribution shift: covariate, label, or concept shift between training and test;
- out-of-distribution inputs: corruptions, adversarial examples, new domains;
- spurious correlations: shortcuts that track the label in training but break elsewhere;
- underspecification: many models fit the training data equally well but disagree at test time.
Open problems. A non-vacuous, predictive generalization bound for modern networks; a theory of feature learning beyond the NTK at realistic widths and depths; a quantitative theory of emergence (when new capabilities appear with scale, and whether they are truly discontinuous); a mechanistic understanding of in-context learning and reasoning; and guarantees beyond i.i.d. data, under distribution shift and adversarial inputs.
12.8 Supplementary Notes
12.8.1 Key Results
- Definition 12.1: \(R(f_S)-R^\star\) = estimation error + approximation error.
- Theorem 12.1: \(|R-\hat R|\le\sqrt{(\log|\mathcal H|+\log(2/\delta))/(2n)}\) uniformly over a finite class.
- Proposition 12.1: test error = bias\(^2\) + variance + noise.
- Theorem 12.2: GD from zero on underdetermined least squares finds \(w^\dagger=X^\top(XX^\top)^{-1}y\), the minimum-norm interpolant.
- Double descent: test error peaks at the interpolation threshold \(N\approx n\), then falls as the selected norm shrinks.
- Benign overfitting: needs \(k^\star\ll n\) with \(r_{k^\star}(\Sigma)\) large and \(R_{k^\star}(\Sigma)\gg n\).
- Proposition 12.2: early stopping after \(t\) steps \(\approx\) ridge with \(\lambda\approx1/(\eta t)\).
- Definition 12.2: NTK \(\Theta(x,x')=\nabla_\theta f(x)^\top\nabla_\theta f(x')\), constant at infinite width.
- Definition 12.3: neural collapse; simplex ETF with pairwise cosine \(-1/(K-1)\).