Learning Hyperparameters via a Data-Emphasized Variational Objective

Ethan Harvey, Mikhail Petrov, Michael C. Hughes
2/3/2025
cs.LGstat.ML

No official code found. Best implementation: tufts-ml/data-emphasized-ELBo (4 stars, last commit 2025-10-28).

Abstract

When training large flexible models on limited data, avoiding overfitting is a practical concern. Common grid search or smarter search methods rely on expensive separate runs at each candidate hyperparameter while carving out a validation set that reduces available training data. In this paper, we consider direct gradient-based learning of regularization hyperparameters on the full training set via the evidence lower bound ("ELBo") objective from Bayesian variational methods. We focus on scenarios where the model is over-parameterized for flexibility while the approximate posterior is chosen to be Gaussian with isotropic covariance for tractability, even though it cannot match the true posterior exactly. In such scenarios, we find the ELBo prioritizes posteriors that match the prior variance, which leads to severely underfitting the data. Instead, we recommend a data-emphasized ELBo that upweights the influence of the data likelihood relative to the prior. In Bayesian transfer learning of classifiers for text and images, our method reduces 88+ hour grid searches 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 length-scale kernels.

View on arXivView PDF

Code Implementations(1)

Code for FITML 2024 workshop paper on data-emphasized evidence lower bound for learning regularization parameters

40Shell, PythonOct 10, 202411 months ago

Similar Papers

Cite this paper

@article{harvey2025learning,
  title  = {Learning Hyperparameters via a Data-Emphasized Variational Objective},
  author = {Ethan Harvey and Mikhail Petrov and Michael C. Hughes},
  year   = {2025},
  eprint = {2502.01861},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.01861v2}
}

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/2502.01861.svg)](https://codeofpaper.com/paper/2502.01861)

Discussion