Bayesian Model Comparison by Monte Carlo Chaining

David Barber, Christopher M. BishopNeurIPS 1996

Introduction

In Bayesian statistics, comparing two models—such as neural networks with different numbers of hidden units—requires calculating the model evidence (or marginal likelihood). This value indicates how well the model as a whole explains the data. However, calculating it is notoriously difficult because it requires integrating over a high-dimensional parameter space.

For years, researchers relied on the Gaussian approximation (Laplace’s method), which assumes the posterior distribution resembles a bell curve around its peak. While computationally cheap, this approximation often fails for complex models like neural networks. Specifically, it often suggests that models become "too complex" and start to overfit after a certain point, exhibiting a sharp drop in model evidence. This phenomenon is commonly referred to as the "Occam hill."

This paper introduces "chaining"—a technique known today as thermodynamic integration—to accurately calculate model evidence in Bayesian neural networks. The authors set out to determine if the Occam hill drop in evidence is a fundamental property of Bayesian inference or merely a side effect of a poor mathematical approximation.

Methodology: Monte Carlo Chaining

The authors propose Chaining, an extended form of Markov Chain Monte Carlo (MCMC), to bridge the gap between the prior and the posterior.

  • The Chain: Instead of jumping straight to the complex posterior, the method defines a chain of $K$ intermediate models that interpolate between the simple prior (where evidence is easy to calculate) and the full posterior. This is controlled by a schedule of $\lambda$ values.
  • Ratio Estimation: The algorithm calculates the ratio of evidence between each successive link in the chain using Monte Carlo sampling. By multiplying these ratios together, it arrives at an accurate estimate of the total evidence.
  • Hybrid Monte Carlo (HMC): To sample effectively from the high-dimensional weight space of neural networks, the authors utilize HMC. This approach uses physics-inspired "momentum" variables to explore the distribution much more efficiently than standard random-walk MCMC.
  • Analytical Integration: To keep the computational process manageable, "hyper-parameters" (like weight decay constants) are integrated out analytically using conjugate Gamma priors. This focuses the MCMC sampling strictly on the network weights.

Experimental Setup

The primary evaluation is performed on the Robot Arm Problem, a benchmark introduced by David MacKay in 1992. The task involves learning the forward kinematics (mapping joint angles to 2D coordinates) of a two-link robot arm. The training data consists of 200 input-output pairs corrupted by Gaussian noise ($\sigma = 0.05$). A separate test set of 1,000 points was used to compare the predicted model evidence against actual generalization performance.

Key Insights and Results

The most striking insight from the paper is that the "Occam Hill" is largely a mirage. When using the more accurate chaining method, the model evidence does not decline as the number of hidden units increases; instead, it plateaus or continues to rise.

Log-evidence (a) and test error (b) as a function of the number of hidden units ($h$). Notice the absence of an "Occam hill" decline in evidence as complexity increases.

Previously, the Gaussian approximation showed a peak at 12 hidden units followed by a sharp decline. Chaining revealed that this decline was an error in the approximation, not a reflection of the model's actual performance. For the robot arm task, chaining showed that both the log-evidence and the test error remained stable as the number of hidden units increased from 10 to 24 (and even up to 64).

These results strongly support the theoretical idea—championed by researchers like Radford Neal—that in a true Bayesian framework, you do not need to strictly limit the number of parameters to prevent overfitting. As long as the prior is sensible, "more is better," or at the very least, "more is not worse."

To verify their implementation, the authors also tested chaining on a mixture of Gaussians, achieving results within 10% of the analytical solution.

Limitations and Future Work

While highly accurate, this robustness comes at a steep computational price. The primary limitation of chaining is the massive CPU time required. While the Gaussian approximation is nearly instantaneous after training, a single chaining run for a 24-hidden-unit network took 48 hours on a Silicon Graphics Challenge L workstation. This makes it difficult to scale to very large modern architectures without significant optimization.

Additionally, the choice of intermediate distributions (the schedule of $\lambda$ values) was done heuristically, with more points clustered near the prior. The authors note that developing a more principled way to choose these interpolation points is a necessary area for future work. Finally, while the paper focuses on hidden unit counts, the authors suggest that chaining could be broadly useful for comparing entirely different architectures, such as Radial Basis Function (RBF) networks versus Multi-Layer Perceptrons (MLPs).

Summary updated

BibTeX
@inproceedings{barber1996bayesian,
  author = {David Barber and Christopher M. Bishop},
  title = {{Bayesian Model Comparison by Monte Carlo Chaining}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {1996},
}
Figure