Abstract
The BSL R package provides a unified and efficient framework for parameter estimation in complex models where the likelihood function is intractable. By approximating the likelihood through model simulations and summary statistics, it offers a scalable and easier-to-tune alternative to traditional Approximate Bayesian Computation (ABC). This paper details the package's implementation of standard Bayesian Synthetic Likelihood (BSL) alongside advanced extensions such as unbiased, semi-parametric, and robust estimators, as well as shrinkage and whitening techniques for high-dimensional data.
Introduction
In fields ranging from cell biology to cosmology, researchers often encounter "likelihood-free" scenarios. These are models where data can be easily simulated given parameters, but the mathematical formula for the probability of observing the data (the likelihood) is impossible or too expensive to calculate. For years, Approximate Bayesian Computation (ABC) was the primary solution. However, ABC requires extensive manual tuning and suffers from the "curse of dimensionality," becoming inefficient as the number of data summaries increases. Bayesian Synthetic Likelihood (BSL) addresses these issues by assuming summary statistics follow a multivariate normal distribution. The BSL package provides a comprehensive software implementation of these methods, bridging the gap between theoretical advancements and practical application.
Methodology
The BSL package implements a suite of algorithms designed to move beyond simple normal approximations and handle various modeling challenges:
- Standard BSL: Approximates the likelihood of summary statistics using a multivariate normal distribution.
- uBSL: An unbiased version of the likelihood estimator that improves accuracy when the number of simulations is small.
- semiBSL: A semi-parametric approach using Kernel Density Estimation (KDE) for individual statistics and a Gaussian copula for their correlation. This relaxes strict normality assumptions while maintaining efficiency.
- rBSL (Robust BSL): Specifically designed for "misspecified" models where the model is fundamentally incapable of reproducing certain observed statistics. It employs mean adjustment or variance inflation to prevent inference failure.
- Shrinkage & Whitening: Implements techniques like the graphical lasso and Warton’s shrinkage to handle high-dimensional statistics with fewer simulations. "Whitening" transformations are used to de-correlate statistics, enhancing the effectiveness of these shrinkage methods.
Applications and Benchmarks
The authors demonstrate the package's utility using several benchmarks that represent common challenges in simulation-based inference:
- MA(2) Model: A second-order moving average time series model used as a "toy" example for direct accuracy checks against a known true likelihood.
- Fowler’s Toads: A real-world dataset tracking amphibian movement. The model utilizes a complex Lévy-alpha stable distribution where the likelihood is intractable.
- Stochastic Cell Biology Model: Included to showcase the package's performance in high-dimensional biological modeling scenarios.
- Multivariate g-and-k Quantile Distribution: Used to evaluate the package's handling of complex, non-standard distributions.
Results and Key Insights
A primary advantage of the BSL package is its efficiency via shrinkage. By using penalized estimators like the graphical lasso, the package can produce stable results with significantly fewer model runs. In the Fowler’s Toad example, BSL methods produced posterior estimates consistent with previous ABC studies but with tighter credible intervals, indicating more precise parameter estimation.
Furthermore, the use of shrinkage methods (e.g., BSLasso) allowed for a reduction in simulations per step—from 500 down to 300—while simultaneously increasing MCMC efficiency, as evidenced by a higher Effective Sample Size (ESS). The package also automates the selection of penalty parameters for shrinkage, removing a significant "trial and error" hurdle for practitioners.
Conclusion and Future Work
While the BSL package offers significant improvements over traditional ABC, some challenges remain. The reliance on MCMC means that total computation time is still tied to the speed of the underlying simulation model. Additionally, BSL performs best when summary statistics are at least unimodal and somewhat symmetric. Future development of the package aims to incorporate Variational Bayesian Synthetic Likelihood (VBSL), which could potentially scale to models with even more parameters and summary statistics by replacing MCMC with optimization techniques.
Summary updated