Improved Nested Sampling and Surrogate‐Enabled Comparison With Other Marginal Likelihood Estimators

Xiankui Zeng, Ming Ye, Jichun Wu, Dong Wang, Xiaobin ZhuWater 2018

Abstract

Estimating marginal likelihood is of central importance to Bayesian model selection and/or model averaging. The nested sampling method has been recently used together with the Metropolis‐Hasting (M‐H) sampling algorithm for estimating marginal likelihood. This study develops a new implementation of nested sampling by using the DiffeRential Evolution Adaptive Metropolis (DREAMzs) sampling algorithm. The two implementations of nested sampling are evaluated for four models of a synthetic groundwater flow modeling. The DREAMzs‐based nested sampling outperforms the M‐H‐based nested sampling in terms of their accuracy, convergence, efficiency, and stability, which is attributed to the fact that DREAMzs is more robust than M‐H for parameter sampling. The nested sampling method is also compared with four other methods (arithmetic mean, harmonic mean, stabilized harmonic mean, and thermodynamic integration) commonly used for estimating marginal likelihood and posterior probability of the four groundwater models. The comparative study requires hundreds of millions of model executions, which would not be possible without using surrogate models to replace the original models. Using the arithmetic mean estimator as the reference, the comparison reveals that thermodynamic integration outperforms nested sampling in terms of accuracy and stability, whereas nested sampling is more computationally efficient to reach to convergence. The harmonic mean and stabilized harmonic mean methods give the worst marginal likelihood estimation. Accurate marginal likelihood estimation is important for accurate estimation of posterior model probability and better predictive performance of Bayesian model averaging.

Introduction

In Bayesian statistics, selecting the optimal model or performing model averaging requires the calculation of the marginal likelihood (also known as Bayesian evidence). This value quantifies how well a model explains observed data across its entire parameter space. However, calculating marginal likelihood involves solving high-dimensional integrals, a task that is notoriously difficult for complex, non-linear environmental models, such as those used in hydrology.

Traditional Nested Sampling (NSE) implementations often rely on the Metropolis-Hastings (M-H) algorithm to explore parameter spaces. In complex, non-linear models, M-H can become trapped in local optima or fail to find high-likelihood regions effectively, leading to unstable and inaccurate results. Furthermore, benchmarking different estimation methods is often computationally prohibitive, requiring millions or even billions of model simulations.

Methodology

This research introduces two primary innovations to address these computational hurdles:

  1. DREAMzs-based Nested Sampling (NSE_D): The authors replaced the standard M-H sampler within the NSE framework with the DiffeRential Evolution Adaptive Metropolis (DREAMzs) algorithm. DREAMzs is specifically designed to handle complex, multimodal, and high-dimensional parameter spaces more robustly than traditional M-H.
  2. Surrogate-Enabled Benchmarking: To facilitate a rigorous comparison between NSE_D and four other common estimators—Arithmetic Mean (AME), Harmonic Mean (HME), Stabilized Harmonic Mean (SHME), and Thermodynamic Integration (TIE)—the authors utilized Sparse Grid (SG) surrogate models. These surrogates serve as high-fidelity, fast-running approximations of the original groundwater models, enabling over a billion model executions that would otherwise be impossible to compute.

Experimental Setup

The study utilizes a synthetic 3D groundwater flow model as a benchmark. To account for conceptual uncertainty, four alternative models (M1, M2, M3, and M4) were developed, differing in their assumptions regarding the thickness and permeability of a confining layer. These models were calibrated and evaluated against 32 hydraulic head observations and 40 hydraulic conductivity measurements.

Results and Discussion

Efficiency and Stability of NSE_D

The integration of DREAMzs significantly enhanced the performance of Nested Sampling. NSE_D was found to be 14 to 22 times more efficient than the M-H-based version (NSE_M) in terms of the number of model executions required for convergence. Furthermore, NSE_D reduced computational costs by 93% to 96% while maintaining superior stability, evidenced by a lower coefficient of variation. This improvement is particularly evident in the later stages of sampling, where finding points with higher likelihood becomes increasingly difficult for standard samplers.

Comparative Analysis of Estimators

The surrogate-enabled comparison provided a clear hierarchy of marginal likelihood estimators:

  • Thermodynamic Integration (TIE): Identified as the "gold standard" for accuracy and stability, yielding relative errors of only ~1-2% compared to the reference AME value. However, it remains computationally intensive.
  • Nested Sampling (NSE_D): Emerged as the most computationally efficient method to reach convergence, with relative errors typically under 6%. It represents an ideal balance for resource-constrained applications.
  • Harmonic Means (HME and SHME): Both the standard and stabilized harmonic mean methods performed poorly, with relative errors often exceeding 70%. These results suggest that HME-based methods are unreliable for complex environmental models and may lead to incorrect model selection.

Conclusion

The study demonstrates that the choice of the "inner" sampler is critical for the success of Nested Sampling. By adopting DREAMzs, researchers can achieve more robust and efficient Bayesian evidence estimation. Additionally, the use of surrogate models is highlighted as an essential tool for meta-scientific comparisons in computationally demanding fields. While the approach depends on surrogate accuracy ($R^2 > 0.999$ in this study), it opens doors for more rigorous model selection in hydrology. Future research will focus on testing these methods against real-world datasets with higher dimensionality and noise.

Summary updated

BibTeX
@inproceedings{zeng2018improved,
  author = {Xiankui Zeng and Ming Ye and Jichun Wu and Dong Wang and Xiaobin Zhu},
  title = {{Improved Nested Sampling and Surrogate‐Enabled Comparison With Other Marginal Likelihood Estimators}},
  booktitle = {Water},
  year = {2018},
  doi = {10.1002/2017wr020782},
}
Figure