Abstract: Complicated generative models often result in a situation where computing the likelihood of observed data is intractable, while simulating from the conditional density given a parameter value is relatively easy. Approximate Bayesian Computation (ABC) is a suite of methods for performing approximate inference in these models. Standard ABC methods require a choice of summary statistics, which are used to compare the observed and simulated data. The quality of the approximation depends on the choice of summary statistics, and finding good summary statistics can be difficult. We propose a new ABC method, K2-ABC, which uses kernel embeddings of distributions to compare the observed and simulated data. K2-ABC does not require the choice of summary statistics, and it can be used with any kernel. We show that K2-ABC outperforms standard ABC methods on a variety of problems.
1. Introduction
In many scientific fields—including genetics, ecology, and cosmology—researchers rely on complex simulators where the likelihood function is impossible to calculate. Approximate Bayesian Computation (ABC) addresses this by running simulations with varied parameters and retaining those that produce data "similar" to real-world observations.
Traditionally, the success of ABC hinges on the selection of summary statistics. Because raw datasets are often too large for direct comparison, researchers manually select features like mean or variance to represent the data. However, if these statistics are "insufficient"—meaning they fail to capture the full distribution of the data—the resulting posterior estimates become biased. Finding sufficient statistics for complex models remains a significant challenge requiring deep domain expertise.
2. The K2-ABC Framework
K2-ABC introduces a fully nonparametric approach that bypasses manual feature engineering by treating the entire dataset as an empirical distribution and embedding it into a Reproducing Kernel Hilbert Space (RKHS).
2.1 Maximum Mean Discrepancy (MMD)
Instead of comparing a few scalar statistics, K2-ABC utilizes Maximum Mean Discrepancy (MMD) to calculate the distance between observed and simulated data distributions. By employing a "characteristic" kernel (such as the Gaussian RBF), MMD acts as an infinite-dimensional sufficient statistic, capturing all statistical moments simultaneously. MMD is only zero if the two distributions are identical.
2.2 The "Double Kernel" Approach
The method is named "K2" because it employs two distinct kernels:
- Embedding Kernel ($k$): Embeds the data points into the RKHS to compute the MMD.
- Weighting Kernel ($\kappa$): A "soft" thresholding kernel that converts the MMD distance into a weight for each simulated parameter.
To ensure scalability for large datasets, the authors introduced K2-lin (a linear-time MMD estimator) and K2-rf (utilizing Random Fourier Features), which maintain performance while significantly reducing computational overhead.
3. Experimental Evaluation
The paper evaluates K2-ABC on two primary scenarios: a synthetic toy mixture model and real-world blowfly population dynamics.
3.1 Toy Mixture Model
This synthetic problem involves a mixture of five uniform distributions designed such that different parameter settings produce identical means and variances. This specific configuration causes traditional ABC methods, which rely on those basic statistics, to fail.
As illustrated in the figure above, while Rejection-ABC and Soft-ABC match the mean and variance of the observed data, their predicted distributions ($y$) do not match the ground truth. K2-ABC successfully recovers the correct distribution shape because it accounts for higher-order statistical differences that traditional summary statistics miss.
3.2 Blowfly Population Dynamics
On the challenging Blowfly population task—a noisy time-series dataset modeled by complex discretized differential equations—K2-ABC achieved nearly 50% lower error in reconstructing data characteristics compared to the next best method, Synthetic Likelihood ABC.
4. Discussion and Conclusion
K2-ABC demonstrates that sufficiency can be achieved without manual engineering. By using characteristic kernels, the model implicitly accounts for all moments of the distribution. While this shifts the "expert input" from summary statistic selection to kernel choice, it provides a more robust framework against information leakage.
Future work will focus on refining kernel hyperparameter tuning (currently handled via median heuristics) and designing specialized kernels for structured data types such as graphs, trees, or images. Empirically, K2-ABC provides a powerful, scalable alternative for inference in complex generative models where traditional ABC methods struggle.
Summary updated