Bayesian Model Selection, the Marginal Likelihood, and Generalization

Sanae Lotfi, Pavel Izmailov, Gregory Benton, Micah Goldblum, Andrew Gordon Wilson
2/23/2022
cs.LGstat.ML
bayesian

Official code: Sanaelotfi/Bayesian_model_comparison (38 stars, Jupyter Notebook, MIT, last commit 2022-06-16).

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

MIT

Supporing code for the paper "Bayesian Model Selection, the Marginal Likelihood, and Generalization".

384Jupyter Notebook, PythonFeb 24, 20224 years agoMIT
deep-learningmachine-learningmarginal-likelihoodmodel-comparisonmodel-comparison-and-selection

Similar Papers

Cite this paper

@article{lotfi2022bayesian,
  title  = {Bayesian Model Selection, the Marginal Likelihood, and Generalization},
  author = {Sanae Lotfi and Pavel Izmailov and Gregory Benton and Micah Goldblum and Andrew Gordon Wilson},
  year   = {2022},
  eprint = {2202.11678},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2202.11678}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2202.11678.svg)](https://codeofpaper.com/paper/2202.11678)

Discussion