Saved in:
Bibliographic Details
Main Authors: Harvey, Ethan, Petrov, Mikhail, Hughes, Michael C.
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2502.01861
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866915904611155968
author Harvey, Ethan
Petrov, Mikhail
Hughes, Michael C.
author_facet Harvey, Ethan
Petrov, Mikhail
Hughes, Michael C.
contents When training large models on limited data, avoiding overfitting is paramount. Common grid search or smarter search methods rely on expensive separate runs for each candidate hyperparameter, while carving out a validation set that reduces available training data. In this paper, we study gradient-based learning of hyperparameters via the evidence lower bound (ELBO) objective from Bayesian variational methods. This avoids the need for any validation set. We focus on scenarios where the model is over-parameterized for flexibility and the approximate posterior is chosen to be Gaussian with isotropic covariance for tractability, even though it cannot match the true posterior. In such scenarios, we find the ELBO prioritizes posteriors that match the prior, leading to severe underfitting. Instead, we recommend a data-emphasized ELBO that upweights the likelihood but not the prior. In Bayesian transfer learning of image and text classifiers, our method reduces the 88+ hour grid search of past work to under 3 hours while delivering comparable accuracy. We further demonstrate how our approach enables efficient yet accurate approximations of Gaussian processes with learnable lengthscale kernels.
format Preprint
id arxiv_https___arxiv_org_abs_2502_01861
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Learning Hyperparameters via a Data-Emphasized Variational Objective
Harvey, Ethan
Petrov, Mikhail
Hughes, Michael C.
Machine Learning
When training large models on limited data, avoiding overfitting is paramount. Common grid search or smarter search methods rely on expensive separate runs for each candidate hyperparameter, while carving out a validation set that reduces available training data. In this paper, we study gradient-based learning of hyperparameters via the evidence lower bound (ELBO) objective from Bayesian variational methods. This avoids the need for any validation set. We focus on scenarios where the model is over-parameterized for flexibility and the approximate posterior is chosen to be Gaussian with isotropic covariance for tractability, even though it cannot match the true posterior. In such scenarios, we find the ELBO prioritizes posteriors that match the prior, leading to severe underfitting. Instead, we recommend a data-emphasized ELBO that upweights the likelihood but not the prior. In Bayesian transfer learning of image and text classifiers, our method reduces the 88+ hour grid search of past work to under 3 hours while delivering comparable accuracy. We further demonstrate how our approach enables efficient yet accurate approximations of Gaussian processes with learnable lengthscale kernels.
title Learning Hyperparameters via a Data-Emphasized Variational Objective
topic Machine Learning
url https://arxiv.org/abs/2502.01861