TL;DR
This paper investigates why overparameterized deep neural networks (DNNs) generalize so well. The authors find that the probability distribution of functions learned by SGD is remarkably similar to the Bayesian posterior distribution of functions. This suggests that the strong inductive bias of the DNN architecture itself, rather than SGD's optimization process, is the primary driver of good generalization.
What Problem Does This Paper Address?
Deep neural networks (DNNs) have achieved remarkable success, particularly in the "overparameterized regime" where they have more parameters than data points. Classical learning theory would predict severe overfitting and poor generalization in such scenarios. However, DNNs consistently generalize well. This paper tackles the fundamental question: Why do DNNs generalize so well, especially in the overparameterized regime? The authors hypothesize that the answer lies in the inductive bias of DNNs – the inherent preferences they have for certain types of functions. They aim to understand if this bias comes from the optimization algorithm (like Stochastic Gradient Descent, SGD) or from the architecture of the network itself.
Methods
The core of this research involves comparing two probability distributions over functions:
- $P_{SGD}(f|S)$: The probability that a DNN trained with SGD (or its variants like Adam, Adagrad, etc.) converges to a specific function $f$, given a training dataset $S$. This is estimated by training many DNNs and observing which functions they learn.
- $P_B(f|S)$: The Bayesian posterior probability of a function $f$ given the training data $S$. This represents the probability of a function if we were to randomly sample parameters from a prior distribution and condition on the data. The authors use Gaussian Processes (GPs) as an approximation to Bayesian DNNs to estimate this.
By comparing these two distributions across various architectures and datasets, the authors aim to understand the source of the inductive bias. They also explore how hyperparameters (like batch size, learning rate) and optimizers affect these distributions.
Datasets
The paper uses several standard benchmark datasets for their experiments:
- MNIST: Handwritten digit recognition.
- Fashion-MNIST: Clothing item recognition.
- IMDb movie review dataset: Sentiment analysis of movie reviews.
- Ionosphere Dataset: A smaller dataset for identifying structure in the ionosphere.
Key Insights and Ideas
- SGD as a Bayesian Sampler: The most striking finding is that $P_{SGD}(f|S)$ closely matches $P_B(f|S)$. This implies that SGD, in the overparameterized regime, acts much like a Bayesian sampler, effectively drawing functions from the posterior distribution.
- Bias is in the Architecture, Not Just SGD: The strong correlation between $P_{SGD}(f|S)$ and $P_B(f|S)$ suggests that the inductive bias is primarily determined by the prior distribution of functions that an untrained DNN can express ($P(f)$), which is approximated by $P_B(f|S)$. This bias is strongly towards simple, low-error functions.
- Low-Error Functions Dominate: The Bayesian posterior $P_B(f|S)$ is exponentially biased towards functions that achieve low training error and have low complexity. This tiny fraction of high-probability functions is what SGD also tends to find.
- Second-Order Effects Matter: While the first-order agreement is strong, variations in hyperparameters (batch size, learning rate) and optimizer choice do lead to measurable differences in $P_{SGD}(f|S)$, offering insights into fine-tuning generalization.
- Function Probability Landscape: Viewing DNNs through the lens of function probability distributions provides a more nuanced understanding than just looking at average test error, revealing how architectural choices and training settings influence the learned function space.
Key Results
- For various architectures (FCNs, CNNs, LSTMs) and datasets (MNIST, Fashion-MNIST, IMDb, Ionosphere), the authors found that $P_{SGD}(f|S) \approx P_B(f|S)$. This agreement held across different SGD variants (Adam, Adagrad, etc.).
- The Bayesian posterior $P_B(f|S)$ showed a strong bias towards low-error and low-complexity functions, with probabilities varying over many orders of magnitude.
- Experiments with different batch sizes and learning rates showed that while these hyperparameters influence $P_{SGD}(f|S)$, the overall correlation with $P_B(f|S)$ remained strong.
- Architectural changes, like adding max-pooling to a CNN, demonstrably increased the probability of the lowest-error function in both $P_B(f|S)$ and $P_{SGD}(f|S)$, indicating an enhanced inductive bias.
Limitations and Future Work
- Approximations: The use of Gaussian Processes as an approximation for Bayesian DNNs and the Expectation Propagation (EP) approximation for cross-entropy loss introduce some inaccuracies, particularly in estimating absolute probabilities.
- Computational Cost: Directly measuring $P_{SGD}(f|S)$ becomes computationally infeasible for larger test sets, necessitating approximations or sampling strategies.
- Hyperparameter Tuning: While the paper explores hyperparameter effects, the parameter space is vast, and a complete understanding of their interactions with the loss landscape remains an open challenge.
- Future Directions: The authors suggest exploring regression tasks, studying systems with intrinsically larger generalization errors, and investigating Bayesian approaches that include averaging over training sets. They also highlight the potential of using this function probability perspective to aid in architecture search and the design of new optimizers.
Summary updated