Temperature Optimization for Bayesian Deep Learning
<|reference_start|>Temperature Optimization for Bayesian Deep Learning: The Cold Posterior Effect (CPE) is a phenomenon in Bayesian Deep Learning (BDL), where tempering the posterior to a cold temperature often improves the predictive performance of the posterior predictive distribution (PPD). Although the term `CPE' suggests colder temperatures are inherently better, the BDL community increasingly recognizes that this is not always the case. Despite this, there remains no systematic method for finding the optimal temperature beyond grid search. In this work, we propose a data-driven approach to select the temperature that maximizes test log-predictive density, treating the temperature as a model parameter and estimating it directly from the data. We empirically demonstrate that our method performs comparably to grid search, at a fraction of the cost, across both regression and classification tasks. Finally, we highlight the differing perspectives on CPE between the BDL and Generalized Bayes communities: while the former primarily focuses on predictive performance of the PPD, the latter emphasizes calibrated uncertainty and robustness to model misspecification; these distinct objectives lead to different temperature preferences.<|reference_end|>
@article{ng2024temperature,
    title={Temperature Optimization for Bayesian Deep Learning},
    author={Kenyon Ng, Chris van der Heide, Liam Hodgkinson, Susan Wei},
    journal={arXiv preprint arXiv:2410.05757},
    year={2024},
    archivePrefix={arXiv},
    eprint={2410.05757},
    primaryClass={stat.ML cs.LG stat.CO stat.ME}
}