In Bayesian statistics, selecting the best model isn't just about finding the parameters that maximize the likelihood of the data. True Bayesian model comparison requires evaluating how well an entire model architecture or hypothesis fits the data. This is quantified by the marginal likelihood (also known as the model evidence), a foundational metric that naturally embodies Occam's razor by penalizing over-complex models (Kevin H. Knuth et al.).
However, calculating the marginal likelihood is one of the most notorious bottlenecks in computational statistics. To understand why it works, why it fails in practice, and how modern research overcomes its intractability, we must look at the geometry of high-dimensional integration.
The Intractability Problem: Shapes vs. Volumes
Mathematically, the marginal likelihood $p(D|M)$ is the normalizing constant of the posterior distribution, obtained by integrating the likelihood over the entire prior parameter space:
$$p(D|M) = \int p(D|\theta, M) p(\theta|M) d\theta$$
Standard Markov Chain Monte Carlo (MCMC) methods are excellent at sampling from the posterior distribution because they only need to know the relative probabilities of different parameter states. They can map out the shape of the posterior mountain quite well.
However, MCMC algorithms do not inherently know the volume of that mountain relative to the rest of the parameter space. Because they spend all their time exploring regions of high posterior probability, they remain blind to how much total prior mass those regions represent. In high-dimensional spaces, the prior volume is vast, and the posterior typically occupies a tiny, hyper-concentrated needle in a haystack. Standard sampling cannot reliably determine the fraction of the haystack that the needle represents.
To solve this, researchers have developed several distinct geometric and probabilistic strategies to compute this elusive integral.
Strategy 1: Bridging Distributions via Thermodynamic Paths
Imagine trying to measure the volume of a steep mountain peak rising out of a flat plain. Instead of trying to calculate the entire volume at once, you can construct a smooth path of intermediate landscapes that gradually "temper" the plain into the mountain.
This is the intuition behind Thermodynamic Integration (TI) and Annealed Importance Sampling (AIS). By introducing a temperature parameter $\beta \in [0, 1]$, we define a continuous path of intermediate distributions:
$$p_c(\theta) \propto p(D|\theta)^\beta p(\theta)$$
When $\beta = 0$, the distribution is simply the prior, which is easy to integrate. When $\beta = 1$, it is the unnormalized posterior. By sampling from a sequence of these intermediate "power posteriors," we can calculate the rate of change of the log-normalizing constant with respect to $\beta$, effectively integrating along the path to find the total evidence.
Early work by David Barber et al. demonstrated that using these intermediate chains allows for accurate model evidence calculation in neural networks, proving that traditional "Occam hills" are often artifacts of crude Gaussian approximations rather than fundamental limitations. To make this process more efficient, Iwona Hawryluk demonstrated that anchoring this thermodynamic path to a simple, analytically solvable reference density drastically reduces the number of intermediate steps required.
While powerful, these path-based methods face challenges when optimized using modern gradient-based techniques. As explored by Guodong Zhang et al., stochastic gradient noise can severely degrade the accuracy of differentiable AIS implementations, requiring careful step-size tuning to maintain reliable evidence estimates.
Strategy 2: Slicing the Prior via Nested Sampling
Instead of changing the "temperature" of the distribution, what if we sorted the parameter space by likelihood contours? This is the core mechanism of Nested Sampling.
Nested Sampling transforms a difficult, high-dimensional integral into a simple, one-dimensional integral over the element of prior mass. The algorithm maintains a set of "live points" sampled from the prior. At each step, it identifies the point with the lowest likelihood, records its position, and replaces it with a new point drawn from the prior that is strictly constrained to have a higher likelihood than the discarded point.
By systematically discarding the lowest-likelihood regions, the live points compress inward, mapping out the contours of the posterior. Iain Murray et al. showed that this approach allows nested sampling to successfully navigate complex, multimodal landscapes and first-order phase transitions (such as those in Potts models) where traditional annealing methods get trapped. Furthermore, Xiankui Zeng et al. demonstrated that integrating nested sampling with data-driven surrogate models can bypass the massive computational cost of evaluating complex simulators, making high-dimensional evidence calculation practical for environmental and physical sciences.
Strategy 3: Active Learning via Bayesian Quadrature
A third paradigm treats the integration problem itself as an inference task. If evaluating the likelihood function is expensive, we shouldn't waste evaluations randomly sampling points. Instead, we can model the unnormalized posterior as an unknown function using a Gaussian Process (GP). This framework is known as Bayesian Quadrature (BQ).
Because the GP provides a probabilistic estimate of the integrand, it tells us not only our current estimate of the marginal likelihood but also our uncertainty about that estimate. We can then use active learning to strategically select the next evaluation point—specifically choosing parameters where the model is highly uncertain or where the integrand's volume is expected to be large.
Michael A Osborne et al. pioneered this active learning perspective, showing that modeling the log-likelihood with a GP yields highly sample-efficient integral estimates. Building on this, Luigi Acerbi introduced Variational Bayesian Monte Carlo (VBMC), which elegantly combines variational inference with BQ to simultaneously reconstruct the posterior shape and estimate the marginal likelihood using a fraction of the evaluations required by traditional MCMC. To further accelerate model selection, Henry Chai et al. designed acquisition functions that bypass calculating the exact evidence altogether, instead directly targeting the posterior model probability to pick the best model architecture with minimal evaluations.
Strategy 4: Local and Variational Approximations
When models scale to millions of parameters—such as in modern deep learning—evaluating paths, contours, or Gaussian processes across the entire parameter space becomes computationally impossible. In these regimes, researchers trade global completeness for local tractability.
The most common approach is the Laplace approximation, which fits a local Gaussian distribution around the Maximum A Posteriori (MAP) estimate of the parameters. The volume of this local Gaussian can be computed analytically using the determinant of the Hessian matrix of the log-posterior. Alexander Immer et al. demonstrated that by leveraging scalable curvature approximations, this local evidence estimation can be applied to deep neural networks, allowing for automated hyperparameter tuning and prior selection directly on the training data without cross-validation.
Alternatively, Variational Gaussian (VG) bounds optimize a lower bound on the marginal likelihood by minimizing the divergence between a tractable family of distributions and the true posterior. Edward Challis proved that for a large class of models, these variational bounds form a concave optimization problem, providing a provably tighter and more scalable alternative to traditional local approximations in high-dimensional spaces.
Key Foundational Work
Bayesian Model Comparison by Monte Carlo Chaining (1996) — contributed 1 concept elements to this direction.
Occam's Razor (2000) — contributed 1 concept elements to this direction.