NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Constructing Summary Statistics for Approximate Bayesian Computation: Semi-automatic ABC

Paul Fearnhead, Dennis PranglearXiv 2010 · DOI

Abstract

Many modern statistical applications involve inference for complex stochastic models, where it is easy to simulate from the models, but impossible to calculate likelihoods. Approximate Bayesian computation (ABC) is a method of inference for such models. It replaces calculation of the likelihood by a step which involves simulating artificial data for different parameter values, and comparing summary statistics of the simulated data to summary statistics of the observed data. Here we show how to construct appropriate summary statistics for ABC in a semi-automatic manner. We aim for summary statistics which will enable inference about certain parameters of interest to be as accurate as possible. Theoretical results show that optimal summary statistics are the posterior means of the parameters. While these cannot be calculated analytically, we use an extra stage of simulation to estimate how the posterior means vary as a function of the data; and then use these estimates of our summary statistics within ABC. Empirical results show that our approach is a robust method for choosing summary statistics, that can result in substantially more accurate ABC analyses than the ad-hoc choices of summary statistics proposed in the literature. We also demonstrate advantages over two alternative methods of simulation-based inference.

Introduction

In fields ranging from population genetics to epidemiology, researchers frequently encounter complex stochastic models where simulating data is straightforward, but evaluating the likelihood function—the probability of observing the data given specific parameters—is mathematically intractable. Approximate Bayesian Computation (ABC) has emerged as a vital tool for performing inference in these "likelihood-free" scenarios.

The core mechanism of ABC involves simulating data for various parameter values and retaining those where the simulated data closely matches the observed data. However, defining "similarity" in high-dimensional data spaces is challenging. Traditionally, researchers condense data into a set of summary statistics. The success of ABC is critically dependent on this choice; poorly selected statistics lead to either inaccurate inferences or extreme computational inefficiency. Historically, this selection process has been largely ad-hoc, relying on domain-specific intuition.

The Semi-Automatic ABC Framework

This work introduces a systematic approach to constructing summary statistics, grounded in the theoretical insight that the mathematically optimal summary statistics (under quadratic loss) are the posterior means of the parameters. Since these means are unknown, the authors propose a "semi-automatic" pipeline to estimate them.

The implementation often utilizes an Importance Sampling framework to efficiently explore the parameter space. The general structure of such an algorithm is detailed below:

Algorithm for Importance Sampling ABC, a common implementation framework for the semi-automatic approach.

The semi-automatic method specifically addresses the choice of the function $S(\cdot)$ in the algorithm through a four-step process:

  1. Pilot Run: A preliminary ABC run identifies the relevant region of the parameter space.
  2. Training Simulation: A large set of parameter-data pairs $(\theta, y)$ is simulated from this region.
  3. Linear Regression: A linear model is fitted using the simulated data (or its transformations, such as $y^2, y^3$) as predictors and the parameters as responses. This regression provides a functional estimate of the posterior mean.
  4. Final ABC: A full ABC analysis is conducted using these estimated posterior means as the summary statistics $S(\cdot)$.

Additionally, the paper introduces "Noisy ABC," a variant that incorporates controlled noise into the observed statistics. This ensures the method remains "calibrated," meaning its probability statements remain statistically valid even when integrating multiple independent data sources.

Experimental Evaluation

The semi-automatic approach was benchmarked against several challenging models:

  • $g$-and-$k$ Distribution: A finance-oriented distribution lacking a closed-form density.
  • Stochastic Kinetic Networks: Predator-prey dynamics (Lotka-Volterra) common in biological modeling.
  • Ricker Model: A discrete population model known for chaotic, "nightmare" likelihood surfaces.
  • M/G/1 Queue: A fundamental model in queuing theory.
  • Tuberculosis Transmission: Real-world DNA genotype data from San Francisco used to estimate mutation and transmission rates.

Key Results and Insights

The empirical results demonstrate significant improvements over traditional methods. In the $g$-and-$k$ distribution case, the semi-automatic approach reduced mean quadratic loss by factors ranging from 2 to 100 compared to previously published ad-hoc statistics. For many models, the ABC estimates achieved accuracy levels comparable to the Maximum Likelihood Estimator (MLE), the theoretical upper bound for information extraction.

Furthermore, the method proved more robust than popular alternatives like the regression correction by Beaumont et al. (2002). For instance, in the Ricker model, while the Beaumont method degraded estimate quality, the semi-automatic approach maintained high accuracy.

Discussion and Limitations

While the semi-automatic method provides a "theoretical North Star" for statistic selection, it introduces some computational overhead due to the required pilot run and training simulations. Additionally, while the process is "semi-automatic," users must still decide which data transformations to include in the regression. If the underlying relationship is highly non-linear and the chosen transformations are inadequate, the resulting statistics may still be sub-optimal. Future work may focus on improving "Noisy ABC" through techniques like Rao-Blackwellisation to further enhance efficiency.

Summary updated

BibTeX
@misc{fearnhead2010constructing,
  author = {Paul Fearnhead and Dennis Prangle},
  title = {{Constructing Summary Statistics for Approximate Bayesian Computation: Semi-automatic ABC}},
  year = {2010},
  eprint = {1004.1112},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1004.1112},
}
Figure