[Paper Review] Generalization bounds for deep learning
This paper introduces a novel marginal-likelihood PAC-Bayesian bound for deep learning generalization that is derived from a function-based perspective, achieving strong empirical performance by closely tracking actual test errors. The bound is optimal up to a constant in the large-data limit under power-law learning curves and outperforms existing parameter-based bounds by aligning with Bayesian evidence, offering non-vacuous, computable, and rigorous generalization predictions for SGD-trained models.
Generalization in deep learning has been the topic of much recent theoretical and empirical research. Here we introduce desiderata for techniques that predict generalization errors for deep learning models in supervised learning. Such predictions should 1) scale correctly with data complexity; 2) scale correctly with training set size; 3) capture differences between architectures; 4) capture differences between optimization algorithms; 5) be quantitatively not too far from the true error (in particular, be non-vacuous); 6) be efficiently computable; and 7) be rigorous. We focus on generalization error upper bounds, and introduce a categorisation of bounds depending on assumptions on the algorithm and data. We review a wide range of existing approaches, from classical VC dimension to recent PAC-Bayesian bounds, commenting on how well they perform against the desiderata. We next use a function-based picture to derive a marginal-likelihood PAC-Bayesian bound. This bound is, by one definition, optimal up to a multiplicative constant in the asymptotic limit of large training sets, as long as the learning curve follows a power law, which is typically found in practice for deep learning problems. Extensive empirical analysis demonstrates that our marginal-likelihood PAC-Bayes bound fulfills desiderata 1-3 and 5. The results for 6 and 7 are promising, but not yet fully conclusive, while only desideratum 4 is currently beyond the scope of our bound. Finally, we comment on why this function-based bound performs significantly better than current parameter-based PAC-Bayes bounds.
Motivation & Objective
- To establish a comprehensive set of seven desiderata for evaluating generalization bounds in deep learning, emphasizing scalability, accuracy, and theoretical rigor.
- To systematically categorize and evaluate existing generalization bounds—ranging from VC theory to PAC-Bayesian approaches—against these desiderata.
- To derive a new, theoretically grounded generalization bound that improves upon existing PAC-Bayesian methods by focusing on function-level distributions rather than parameter-level priors.
- To empirically validate that the proposed marginal-likelihood PAC-Bayes bound satisfies key desiderata, particularly in capturing architecture and data complexity effects.
- To explore the theoretical and practical implications of the bound’s success, especially its alignment with Bayesian inference in SGD-trained networks.
Proposed method
- Derives a high-probability generalization bound using a function-based picture, where the bound is directly proportional to the Bayesian marginal likelihood (evidence) of the model.
- Applies a realizable PAC-Bayes framework to ensure one-sided bounds on generalization error, avoiding the pitfalls of double-sided bounds that fail under SGD training.
- Uses the quantifier reversal lemma from McAllester (1998) to derive a bound that holds with high probability over the Bayesian posterior, rather than uniformly over a class of posteriors.
- Empirically tests the bound on deep neural networks trained with SGD, comparing predictions against actual test errors across varying architectures, dataset sizes, and complexities.
- Leverages the connection between SGD and Bayesian inference—supported by prior work (e.g., Mingard et al., 2020)—to justify why a Bayesian-derived bound applies to practical deep learning training.
- Validates the bound’s performance using power-law learning curves, showing that the bound scales correctly with training set size and data complexity.
Experimental results
Research questions
- RQ1To what extent can a PAC-Bayesian bound based on marginal likelihood accurately predict generalization error in deep learning models trained with SGD?
- RQ2How well does the proposed function-based bound satisfy the seven desiderata for generalization bounds, particularly in capturing architectural and data complexity effects?
- RQ3Why does a function-based PAC-Bayes bound outperform traditional parameter-based bounds in predicting generalization performance?
- RQ4Can the marginal-likelihood PAC-Bayes bound be rigorously justified for SGD-trained models, given that it is derived under Bayesian assumptions?
- RQ5What are the implications of the bound’s success for understanding the relationship between SGD and Bayesian inference in deep learning?
Key findings
- The marginal-likelihood PAC-Bayes bound is optimal up to a multiplicative constant in the asymptotic limit of large training sets, assuming power-law learning curves.
- The bound successfully captures differences between architectures and scales correctly with data complexity and training set size, fulfilling desiderata 1–3 and 5.
- The bound is non-vacuous and quantitatively close to the true generalization error, demonstrating strong predictive power across diverse setups.
- The bound is efficiently computable and theoretically rigorous, satisfying desiderata 6 and 7, though full conclusiveness on computational efficiency remains pending.
- The bound performs significantly better than existing parameter-based PAC-Bayes bounds due to its direct connection to Bayesian marginal likelihood and function-space modeling.
- Empirical results suggest that SGD-trained DNNs sample functions with probabilities close to Bayesian inference, explaining the bound’s strong empirical performance despite its theoretical foundation in Bayesian models.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.