Automated Model Tuning via Marginal Likelihood Maximization

This direction is split into other directions: marginal likelihood optimization. Its last version stays readable and citable here.

Version 1 of 1125 papers145 conceptsfrozen 2026-10-04

In machine learning, we often face a "hidden" optimization problem: choosing hyperparameters. Whether it is the kernel width in a Support Vector Machine, the weight decay in a neural network, or the regularization strength in a robotics controller, these values are typically tuned via exhaustive grid search or cross-validation. This process is not only computationally expensive but often requires a separate "held-out" validation set, which is a luxury in data-scarce domains.

A recurring direction across recent research is the move toward automated model selection by treating hyperparameters as part of a hierarchical Bayesian inference problem. Instead of searching for parameters that minimize a loss function on a validation set, these methods maximize the marginal likelihood (also known as the "evidence") of the training data itself.

The Intuition: Occam’s Razor in Probability

To understand why this works, we must distinguish between the parameters (the weights of a model) and the hyperparameters (the rules that govern those weights).

Standard training finds the best weights for a fixed set of rules. However, Peter Sollich demonstrated in Probabilistic Methods for Support Vector Machines that if we treat the model as a Gaussian Process, we can calculate the probability of the data appearing at all under a specific set of hyperparameters. This is the marginal likelihood.

The marginal likelihood acts as a mathematical implementation of Occam’s Razor. A model that is too simple cannot explain the data (low likelihood). A model that is too complex can explain many possible datasets, but because its probability mass is spread so thin across all those possibilities, the probability of seeing your specific dataset is also low. The marginal likelihood is maximized at the "just right" level of complexity.

Eliminating the Validation Set

One of the most immediate benefits of this approach is the ability to tune models using only training data. This is critical in fields like genetics or clinical research where every sample is precious.

Reinterpreting Classical Heuristics

Perhaps the most surprising insight from this research direction is that many "heuristic" tricks used by practitioners are actually approximations of marginal likelihood maximization in disguise.

In Early Stopping is Nonparametric Variational Inference, David Duvenaud, Dougal Maclaurin, and Ryan P Adams show that the common practice of "early stopping" in neural network training can be viewed as a form of Bayesian inference. By tracking how the entropy of the parameter distribution changes during SGD, they derive an estimate of the marginal likelihood that can tune hyperparameters without a validation set.

Similarly, Philipp Hennig and Martin Kiefel argue in Quasi-Newton Methods: A New Direction that standard optimizers like BFGS are actually performing probabilistic inference about the objective function's curvature.

Scaling to Modern Deep Learning

Historically, calculating the marginal likelihood was computationally prohibitive for large models because it required integrating over millions of parameters. Recent work has focused on making this "Type-II Maximum Likelihood" approach practical for deep learning.

Erik A. Daxberger and others have revitalized the Laplace Approximation, showing it can be used to turn standard neural networks into Bayesian ones "after the fact," using the marginal likelihood to tune weight decay and prior precision effortlessly.

To handle truly massive datasets, Alexander Immer and Mark van der Wilk introduced Stochastic Marginal Likelihood Gradients. By using Neural Tangent Kernels (NTK) to create a lower bound that decomposes across mini-batches, they allow hyperparameters to be optimized alongside weights using standard gradient descent, achieving massive speedups.

Real-World Robustness

The shift from manual tuning to marginal likelihood optimization is particularly visible in high-stakes engineering:

  1. Robotics: In learning robot dynamics, Diego Romeres and Alessandro Chiuso found that marginal likelihood is more effective than cross-validation for balancing physical laws with noisy data Derivative-Free Online Learning of Inverse Dynamics Models.
  2. Aviation: For aircraft wind estimation, Daniel Kiehn and colleagues use an empirical Bayesian approach to tune sensors on-the-fly, outperforming traditional "engineering guesses" Adaptive Wind Field Estimation Using an Empirical Bayesian Approach.
  3. Biology: Gerhard Gompper and Benedikt Sabass automated the denoising of cellular force measurements by maximizing the evidence, removing subjective bias from biological imaging A Bayesian traction force microscopy method.

By treating the "meta-parameters" of a model as objects of inference rather than arbitrary choices, this research direction provides a path toward machine learning systems that are self-tuning, statistically rigorous, and more efficient with data.

Papers in this version

Showing 60 of 125 papers.

History & citationVersion 1 · 2026-10-04

Split into other directions · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_automated_model_tuning_via_marginal_like_a9b438c1,
  title = {Automated Model Tuning via Marginal Likelihood Maximization},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/automated-model-tuning-via-marginal-likelihood-maximization/rdr_a9b438c123b04360812b1bad433432f8},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-23},
}

This exact version (version 1, frozen text):

@misc{lacuna_automated_model_tuning_via_marginal_like_a9b438c1_v1,
  title = {Automated Model Tuning via Marginal Likelihood Maximization},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/automated-model-tuning-via-marginal-likelihood-maximization/rdr_a9b438c123b04360812b1bad433432f8/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-23},
}