BSL: Bayesian Synthetic Likelihood

Ziwen An, Leah F South, Christopher DrovandiOpenalex Unknown 2018 · OpenAlex

Abstract

Bayesian synthetic likelihood (BSL) is an alternative to standard, non-parametric approximate Bayesian computation (ABC). BSL assumes a multivariate normal distribution for the summary statistic likelihood and it is suitable when the distribution of the model summary statistics is sufficiently regular. This package provides a Metropolis Hastings Markov chain Monte Carlo implementation of four methods (BSL, uBSL, semiBSL and BSLmisspec) and two shrinkage estimators (graphical lasso and Warton's estimator). uBSL uses an unbiased estimator to the normal density. A semi-parametric version of BSL (semiBSL) is more robust to non-normal summary statistics. BSLmisspec estimates the Gaussian synthetic likelihood whilst acknowledging that there may be incompatibility between the model and the observed summary statistic. Shrinkage estimation can help to decrease the number of model simulations when the dimension of the summary statistic is high. Extensions to this package are planned.

Introduction

In fields such as biology, ecology, and economics, researchers often work with "likelihood-free" models. These are complex, simulation-based models where it is easy to generate data but mathematically impossible to define the probability of observing a specific dataset (the likelihood).

Standard Approximate Bayesian Computation (ABC) addresses this by comparing simulated summary statistics to observed ones. However, ABC often requires a massive number of simulations to achieve accuracy and struggles significantly as the number of summary statistics increases. The 'BSL' R package provides a comprehensive toolkit for Bayesian Synthetic Likelihood (BSL), which addresses these inefficiencies by using a parametric approximation—specifically, a multivariate normal distribution—for the summary statistics. This approach often leads to faster convergence and better performance in higher dimensions.

Methodology and Implementation

The package implements a Metropolis-Hastings Markov chain Monte Carlo (MCMC) framework featuring several advanced BSL variants designed for different modeling challenges:

  • Standard BSL & uBSL: The baseline methods assuming multivariate normality. uBSL employs an unbiased estimator for the normal density to improve accuracy.
  • semiBSL: A semi-parametric approach that uses kernel density estimation for marginal distributions and a Gaussian copula for dependence, making it robust to non-normal summary statistics.
  • BSLmisspec: Accounts for "model misspecification," where the model is fundamentally unable to reproduce the observed summary statistics.
  • Shrinkage Estimators: Includes BSLasso (graphical lasso) and Warton’s estimator to regularize the covariance matrix, allowing the method to scale to high-dimensional problems.
Core parameters of the BSL function, illustrating the primary inputs for MCMC iterations, simulation counts, and method selection.

Beyond basic parameter estimation, the package includes advanced features like Whitening Transformations to decorrelate summary statistics and support for Parallel Computing via the foreach package to distribute model simulations across multiple CPU cores.

Advanced configuration options for the BSL package, including whitening transformations, model misspecification handling, and parallel computing settings.

Key Applications

The package's versatility is demonstrated through several real-world benchmarking datasets:

  • Cell Biology (Scratch Assay): Successfully estimates parameters using 145 summary statistics, showcasing the power of the BSLasso approach in high dimensions.
  • Toad Movement: Implements a complex ecological model simulating the dispersal patterns of Fowler’s toads (Anaxyrus fowleri).
  • Multivariate G&K: Evaluates performance on complex, high-dimensional summary statistics using flexible distributions.

Conclusion and Future Work

The BSL package offers a robust, scalable alternative to ABC for complex simulation-based models. By leveraging parametric efficiency and regularization, it enables stable inference in regimes where standard methods fail. While it relies on the assumption of approximate normality for summary statistics, variants like semiBSL provide necessary robustness. Future extensions are planned to further automate tuning and expand the suite of available likelihood-free methods.

Summary updated

Abstract

Bayesian synthetic likelihood (BSL, Price et al. (2018) &lt;<a href="https://doi.org/10.1080%2F10618600.2017.1302882" target="_top">doi:10.1080/10618600.2017.1302882</a>&gt;) is an alternative to standard, non-parametric approximate Bayesian computation (ABC). BSL assumes a multivariate normal distribution for the summary statistic likelihood and it is suitable when the distribution of the model summary statistics is sufficiently regular. This package provides a Metropolis Hastings Markov chain Monte Carlo implementation of four methods (BSL, uBSL, semiBSL and BSLmisspec) and two shrinkage estimators (graphical lasso and Warton's estimator). uBSL (Price et al. (2018) &lt;<a href="https://doi.org/10.1080%2F10618600.2017.1302882" target="_top">doi:10.1080/10618600.2017.1302882</a>&gt;) uses an unbiased estimator to the normal density. A semi-parametric version of BSL (semiBSL, An et al. (2018) &lt;<a href="https://doi.org/10.48550/arXiv.1809.05800" target="_top">doi:10.48550/arXiv.1809.05800</a>&gt;) is more robust to non-normal summary statistics. BSLmisspec (Frazier et al. 2019 &lt;<a href="https://doi.org/10.48550/arXiv.1904.04551" target="_top">doi:10.48550/arXiv.1904.04551</a>&gt;) estimates the Gaussian synthetic likelihood whilst acknowledging that there may be incompatibility between the model and the observed summary statistic. Shrinkage estimation can help to decrease the number of model simulations when the dimension of the summary statistic is high (e.g., BSLasso, An et al. (2019) &lt;<a href="https://doi.org/10.1080%2F10618600.2018.1537928" target="_top">doi:10.1080/10618600.2018.1537928</a>&gt;). Extensions to this package are planned. For a journal article describing how to use this package, see An et al. (2022) &lt;<a href="https://doi.org/10.18637%2Fjss.v101.i11" target="_top">doi:10.18637/jss.v101.i11</a>&gt;.
BibTeX
@inproceedings{an2018bsl,
  author = {Ziwen An and Leah F South and Christopher Drovandi},
  title = {{BSL: Bayesian Synthetic Likelihood}},
  booktitle = {Openalex Unknown},
  year = {2018},
  doi = {10.32614/cran.package.bsl},
}
Figure