Applying statistical learning theory to deep learning

Cédric Gerbelot, Avetik Karagulyan, Stefani Karp, Kavya Ravichandran, Menachem Stern, Nathan Srebro

This document provides a summary of the lecture notes "Applying statistical learning theory to deep learning," which synthesize recent theoretical breakthroughs aimed at demystifying why deep neural networks generalize so well despite their massive complexity.

TL;DR

This paper explores the "implicit bias" of optimization algorithms, explaining how the choice of gradient descent, network architecture, and initialization scale forces deep learning models toward simple, generalizable solutions. It specifically highlights the transition between "lazy" kernel-based learning and "rich" feature learning, showing how depth and small initializations are key to the latter.

What Problem Does This Paper Address?

Classical statistical learning theory (SLT) suggests a fundamental trade-off: as a model's capacity (e.g., number of parameters) increases, its ability to fit training data improves, but its risk of overfitting grows. Deep neural networks seem to break this rule. They are often "overparameterized," meaning they have far more parameters than data points and can easily fit random noise with 100% accuracy. Yet, when trained on real data, they generalize remarkably well.

The authors tackle the gap between classical theory and deep learning practice. They ask: What is the "hidden" mechanism that prevents these giant models from overfitting? The answer lies in implicit bias—the tendency of optimization algorithms like Gradient Descent (GD) to prefer certain types of solutions (e.g., those with small norms or specific structures) over others, even when both could fit the data perfectly.

Methods

The paper is structured as a series of lectures that build a mathematical bridge from classical SLT to modern deep learning theory. Key methodologies include:

  • Mirror Descent Framework: The authors use Mirror Descent to show how optimization in parameter space (where we update weights) corresponds to optimization in function space (what the model actually computes). This is linked via a metric tensor that defines the "geometry" of the search.
  • KKT Conditions: They employ Karush-Kuhn-Tucker (KKT) optimality conditions to derive the exact "implicit regularizers" that different algorithms minimize.
  • Linear Diagonal Networks: To make the math tractable while capturing the essence of deep learning, the authors focus on "diagonal linear networks." These are simplified models where weights are squared or raised to higher powers, allowing for an analytical study of how depth and initialization affect learning regimes.
A standard feed-forward neural network architecture, which the paper uses as a starting point for discussing inductive bias.

Datasets

As a theoretical work, the paper does not benchmark on standard large-scale datasets like ImageNet. Instead, it uses:

  • Synthetic Sparse Regression: Used to demonstrate the transition between $\ell_2$ (dense) and $\ell_1$ (sparse) regimes.
  • Matrix Completion: Used to illustrate how reparameterization (e.g., $X = UV^\top$) induces a low-rank (nuclear norm) bias.

Key Insights and Ideas

  • Architecture as Geometry: The network architecture isn't just a set of constraints on what functions can be learned; it defines the mapping from parameters to functions. This mapping determines the geometry of the optimization landscape, effectively acting as a regularizer.
  • The "Lazy" vs. "Rich" Regimes:
    • Lazy (Kernel) Regime: When initialized with large weights, the network behaves like a linear model with a fixed kernel (the Neural Tangent Kernel). It finds the "closest" solution to the start, which is often a simple $\ell_2$-norm minimizer.
  • Rich (Feature Learning) Regime: When initialized with very small weights, the network can learn complex features. In diagonal networks, this manifests as a transition from $\ell_2$ bias to $\ell_1$ (sparsity-inducing) bias.
  • The Power of Depth: Increasing the depth of a network makes it easier to enter the "rich" regime. While a 2-layer network might require an exponentially small initialization to learn sparse features, a deeper network only needs a polynomially small one.
  • Loss Function Matters: The choice of loss function changes the bias. For example, under the square loss, initialization remains critical. However, under the logistic loss (used for classification), the model tends to converge toward a "max-margin" separator regardless of where it started, because the weights eventually grow so large that the starting point becomes irrelevant.

Key Results

  • Implicit Regularization of GD: The authors prove that for underdetermined linear regression, GD initialized at zero converges to the minimum $\ell_2$-norm solution.
  • Diagonal Network Potential: They derive an analytical form for the potential $Q_\alpha(\beta)$ minimized by diagonal networks. They show that as the initialization scale $\alpha \to 0$, the model effectively minimizes the $\ell_1$ norm, promoting sparsity.
  • Benign Overfitting: The notes discuss the "double descent" phenomenon, where increasing parameters beyond the interpolation threshold actually decreases test error, a concept known as benign overfitting.

Limitations and Future Work

  • Simplification: Most of the rigorous results are derived for linear or diagonal models. While these provide deep intuition, the authors acknowledge that extending these proofs to non-linear, non-diagonal architectures (like standard CNNs or Transformers) remains a major challenge.
  • Stochasticity: While the role of initialization and depth is covered extensively, the specific implicit bias introduced by the noise in Stochastic Gradient Descent (SGD) versus full-batch GD is identified as an area needing more research.
  • Practical Thresholds: The authors note that while some results are asymptotic (e.g., requiring training error $\epsilon$ to be as small as $10^{-1700}$), real-world deep learning operates in a much noisier, finite-time regime. Bridging this gap is essential for a complete theory.

Summary updated

BibTeX
@article{gerbelot2024applying,
  author = {Cédric Gerbelot and Avetik Karagulyan and Stefani Karp and Kavya Ravichandran and Menachem Stern and Nathan Srebro},
  title = {{Applying statistical learning theory to deep learning}},
  journal = {Journal of Statistical Mechanics Theory and Experiment},
  year = {2024},
  doi = {10.1088/1742-5468/ad3a5f},
}
Figure