Introduction
A central mystery in deep learning is why overparameterized models, trained with Stochastic Gradient Descent (SGD), generalize so effectively. Traditional statistical theory suggests these models should overfit, yet they consistently find solutions that perform well on unseen data. This paper explores a deep mathematical connection between a model's training speed and its generalization capabilities through the lens of Bayesian inference. By demonstrating that training speed serves as a proxy for the Bayesian marginal likelihood, the authors provide a theoretical foundation for why SGD naturally favors models with strong inductive biases.
The Challenge of Model Selection
Model selection involves choosing the appropriate inductive bias—such as selecting a convolutional architecture over a fully connected one for image tasks. In Bayesian statistics, the ideal metric for this is the Marginal Likelihood (ML), or model evidence. The ML inherently implements "Occam's Razor," balancing a model's fit to the data against its complexity. However, for deep neural networks (DNNs), calculating the ML is computationally intractable.
Empirical observations have long suggested that models reaching low training error faster tend to generalize better. This research bridges the gap between these empirical observations and Bayesian theory, asking if training trajectories can be used to estimate the marginal likelihood.
Methodology: Estimating Evidence from Training
The authors propose a family of estimators for the log marginal likelihood based on a model's training trajectory.
- The SOTL Estimator: The core innovation is the Sum Over Training Losses (SOTL). The log marginal likelihood can be decomposed into a sum of predictive log-likelihoods for each data point, conditioned on previously seen points.
- Sample-then-Optimize: For linear models and infinite-width neural networks, the authors leverage the equivalence between running gradient descent from a random initialization and sampling from a Bayesian posterior.
- Estimator Variants: Several variants are developed, including $\hat{\mathcal{L}}_k$, which provides a tighter bound on the ML by using an ensemble of $k$ models, and $\hat{\mathcal{L}}_S$, a variance-based estimator for Gaussian posteriors.
- Ensemble Weighting: The paper proves that in a linear combination of models, gradient descent naturally assigns higher weights to the model with the highest estimated marginal likelihood.
Key Results and Insights
The paper validates these theories across synthetic data, MNIST, FashionMNIST, and CIFAR-10.
Training Speed as Evidence
The "aha moment" of the research is that the area under a training curve—the SOTL—is a physical manifestation of Bayesian model evidence. A model that learns "faster" (accumulating less total loss) is mathematically more likely to be the "correct" model for the given data.
Generalization Correlation
Experiments on finite DNNs using FashionMNIST reveal a remarkably high correlation (up to -0.96) between the ensemble weight assigned to a model and its eventual test loss. Models with lower SOTL values consistently achieved superior test performance.
Architecture and Feature Selection
The SOTL estimator successfully identifies superior inductive biases. For instance, it correctly ranks Convolutional Neural Networks (CNNs) as having higher marginal likelihoods than MLPs for image data, even in the infinite-width Neural Tangent Kernel (NTK) regime. Furthermore, within a single large network, SGD assigns higher weights to sub-networks that are more predictive early in the training process.
Discussion and Implications
This work suggests that SGD is more than just an optimizer; it acts as an implicit model selector. By biasing the learning process toward "simple" functions that explain data quickly, SGD explains why deep learning succeeds despite massive overparameterization.
While the strongest theoretical guarantees currently apply to linear and infinite-width models, the empirical success on finite-width networks is highly promising. Future work may lead to principled model selection procedures that bypass expensive cross-validation and deepen our understanding of how the Neural Tangent Kernel evolves during training.
Summary updated