Introduction: The Generalization Conundrum
In classical statistical learning theory, the relationship between model complexity and generalization is well-defined: as a model's capacity increases, its training error decreases, but its risk of overfitting—memorizing noise rather than learning underlying patterns—increases. Deep Neural Networks (DNNs), however, famously defy this logic. Modern architectures are often massively overparameterized, possessing far more parameters than training examples. By all traditional accounts, these models should overfit catastrophically. Yet, they generalize remarkably well to unseen data.
This "generalization conundrum" has sparked a fierce debate in the machine learning community. Is the secret to generalization hidden in the "implicit bias" of the optimizer, specifically Stochastic Gradient Descent (SGD)? Does SGD steer the model toward "flat minima" that generalize better? Or is there something more fundamental about the architecture itself? This paper investigates these questions by asking whether the functions found by SGD are essentially the same ones a perfect Bayesian reasoner would select.
Theoretical Framework: SGD vs. Bayesian Inference
To understand the source of generalization, the authors compare two distinct probability distributions over the space of functions:
- $P_{SGD}(f|S)$: This represents the probability that a DNN, trained using SGD (or its variants like Adam), converges to a specific function $f$ given a training set $S$. This is an empirical measure of the optimizer's behavior.
- $P_B(f|S)$: This is the Bayesian posterior probability, often considered the "gold standard" of statistical inference. It represents the probability that the DNN expresses function $f$ when its parameters are sampled randomly, conditioned on the training data.
If $P_{SGD}(f|S) \approx P_B(f|S)$, it would suggest that the optimizer isn't doing anything "magical." Instead, it would imply that SGD is simply acting as a "Bayesian sampler," discovering the functions that are already highly probable under the model's prior and the given data.
Methodology
Comparing these two distributions is computationally daunting. To bridge the gap, the authors employed several sophisticated techniques:
- Neural Network Gaussian Processes (NNGP): For infinitely wide networks, the Bayesian posterior can be calculated exactly using NNGP. This provides a rigorous baseline for comparison.
- Empirical Sampling: For finite networks, the authors estimated $P_{SGD}$ by training thousands of networks from different random initializations and recording the resulting functions.
- Complexity Measures: To test the hypothesis that models prefer simpler functions (a manifestation of Occam’s Razor), they utilized the Critical Sample Ratio (CSR). This metric quantifies the "complexity" of a function based on how it handles perturbations to the input data.
The study spanned multiple datasets, including binarized versions of MNIST and Fashion-MNIST, the IMDb movie review dataset for NLP, and the Ionosphere dataset for tabular data. This variety ensured that the findings were not specific to a single domain or architecture.
Key Insights: The Architecture is the Map
The central finding of the paper is that the primary source of generalization is the parameter-function map. The way neural network architectures are constructed naturally biases them toward "simple" functions. In the high-dimensional space of parameters, the regions corresponding to simple, high-performing functions are vastly larger than those corresponding to complex, overfitted ones.
SGD as a Follower
The authors argue that SGD is a "follower, not a leader." To a first-order approximation, SGD does not possess a unique bias that overrides the architecture's preferences. Instead, it efficiently navigates the parameter space to find the high-probability functions that the architecture already favors. This suggests that the "implicit bias" of SGD is largely a reflection of the underlying Bayesian prior of the network.
The 90% Rule and Simplicity Bias
One of the most striking observations was the concentration of probability. In many experiments, a tiny fraction of possible functions—sometimes just a few dozen out of a theoretical space of $10^{30}$—accounted for over 90% of the probability mass. Furthermore, the Bayesian posterior was found to be exponentially biased toward low-complexity functions. This provides a strong theoretical link to the principle of Occam’s Razor: the simplest explanation that fits the data is not just preferred; it is overwhelmingly more likely to be found.
Results: High Correlation
The empirical results showed a remarkably high correlation between $P_{SGD}(f|S)$ and $P_B(f|S)$ across various architectures (Fully Connected Networks, CNNs, LSTMs) and optimizers (Adam, Adagrad, RMSprop).
In MNIST benchmarks, the "average" error of the Bayesian posterior (via NNGP) and the average error of SGD-trained models were nearly identical—1.61% versus 1.88%, respectively. This close alignment supports the view that SGD's performance is fundamentally bounded and guided by the Bayesian properties of the architecture.
Second-Order Effects
While the architecture does the heavy lifting, the authors acknowledge that hyperparameters like batch size and learning rate introduce "second-order" effects. For example, smaller batch sizes tend to steer the model toward even higher-probability (and thus simpler) functions. This helps explain why certain tuning choices lead to better generalization, even if the primary driver remains the parameter-function map.
Limitations and Future Work
Despite the robustness of the findings, several challenges remain. The computational cost of calculating function frequencies limited the study to relatively small test sets ($|E|=100$). Scaling these measurements to massive, real-world datasets is a significant hurdle. Additionally, the focus on binary classification, while rigorous, leaves room for exploration into multi-class problems and complex regression tasks.
Finally, while the paper identifies the parameter-function map as the source of simplicity bias, it does not fully explain why the geometry of high-dimensional parameter spaces favors simplicity. Unlocking this geometric secret remains a key frontier for future research.
Conclusion
This research shifts the focus of the generalization debate from the optimizer to the architecture. By demonstrating that SGD behaves largely as a Bayesian sampler, the authors provide a compelling argument that deep learning's success is rooted in the inherent "Occam's Razor" bias of neural network structures. The "secret sauce" of AI may not be how we train the models, but how we build them.
Summary updated