[Paper Review] Bayesian Model Selection, the Marginal Likelihood, and Generalization
This paper challenges the use of the marginal likelihood as a proxy for model generalization, demonstrating it can be negatively correlated with test performance in neural networks. It proposes a conditional marginal likelihood (CLML) that better aligns with generalization, showing improved performance in hyperparameter learning and deep kernel learning across multiple datasets and settings.
How do we compare between hypotheses that are entirely consistent with observations? The marginal likelihood (aka Bayesian evidence), which represents the probability of generating our observations from a prior, provides a distinctive approach to this foundational question, automatically encoding Occam's razor. Although it has been observed that the marginal likelihood can overfit and is sensitive to prior assumptions, its limitations for hyperparameter learning and discrete model comparison have not been thoroughly investigated. We first revisit the appealing properties of the marginal likelihood for learning constraints and hypothesis testing. We then highlight the conceptual and practical issues in using the marginal likelihood as a proxy for generalization. Namely, we show how marginal likelihood can be negatively correlated with generalization, with implications for neural architecture search, and can lead to both underfitting and overfitting in hyperparameter learning. We also re-examine the connection between the marginal likelihood and PAC-Bayes bounds and use this connection to further elucidate the shortcomings of the marginal likelihood for model selection. We provide a partial remedy through a conditional marginal likelihood, which we show is more aligned with generalization, and practically valuable for large-scale hyperparameter learning, such as in deep kernel learning.
Motivation & Objective
- To re-evaluate the marginal likelihood's role in model selection and hyperparameter learning, especially in deep learning.
- To identify fundamental flaws in using the marginal likelihood as a proxy for generalization performance.
- To propose a conditional marginal likelihood (CLML) as a more reliable alternative for large-scale hyperparameter optimization.
- To demonstrate that the marginal likelihood can lead to both underfitting and overfitting in data space.
- To clarify the disconnect between marginal likelihood and generalization through theoretical and empirical analysis, including connections to PAC-Bayes bounds.
Proposed method
- Proposes a conditional marginal likelihood (CLML) that conditions on a subset of training data, improving alignment with generalization.
- Derives CLML as a generalization of the standard marginal likelihood, with m data points used for conditioning and the remainder for likelihood evaluation.
- Employs closed-form expressions for CLML in Gaussian process and deep kernel learning models, enabling efficient optimization.
- Uses Laplace approximation, variational inference (ELBO), and sampling-based methods to approximate the marginal likelihood in practice.
- Compares CLML with standard marginal likelihood (LML) and cross-validation in neural architecture search and transfer learning tasks.
- Validates CLML performance on UCI regression datasets and Omniglot/EMNIST transfer learning tasks using RMSE and NLL as metrics.
Experimental results
Research questions
- RQ1Why does the marginal likelihood often fail to predict generalization performance in deep neural networks?
- RQ2How does the marginal likelihood's sensitivity to prior assumptions affect hyperparameter learning and model selection?
- RQ3Can the conditional marginal likelihood (CLML) serve as a more reliable proxy for generalization than the standard marginal likelihood?
- RQ4What is the relationship between the marginal likelihood and PAC-Bayes bounds, and how does this inform model selection?
- RQ5In what settings does CLML outperform standard marginal likelihood in terms of test accuracy and likelihood?
Key findings
- The marginal likelihood can be negatively correlated with generalization performance, particularly in deep neural networks, where models with higher test accuracy often have lower marginal likelihoods.
- CLML optimization consistently outperforms standard marginal likelihood (LML) in deep kernel learning, achieving lower RMSE and NLL on UCI regression datasets, especially with limited training data.
- On the QMUL head pose trajectory task, CLML-optimized models achieved MSE of 0.066±0.08, significantly outperforming LML's 0.12±0.04 with the same architecture.
- In Omniglot-to-EMNIST transfer learning, CLML achieved 76.03±0.57% accuracy, surpassing LML's 75.06±1.10% and outperforming even the best LML model.
- Larger conditioning sets (higher m) in CLML lead to better performance, with results stable across m values, and CLML remains effective even when m << n.
- The marginal likelihood favors models that generalize well only on small datasets, but fails to do so as training set size increases, revealing a fundamental misalignment with generalization.
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.