Likelihood-free inference via classification

Michael U. Gutmann, Ritabrata Dutta, Samuel Kaski, Jukka Corander · DOI

This paper, published in Statistics and Computing, presents a clever bridge between machine learning and statistical inference. It offers a way to perform "likelihood-free" inference by reframing a statistical estimation problem as a simple classification task.

Abstract

In many scientific fields, generative models are used to describe complex data-producing processes. However, these models often lack a tractable likelihood function, making standard statistical inference difficult. This paper introduces "Classifier ABC," a method that uses classification accuracy as a discrepancy measure to compare simulated data against real-world observations. By training a machine learning model to distinguish between observed and simulated datasets, researchers can perform accurate parameter estimation without the need for hand-crafted summary statistics.

The Challenge of Likelihood-Free Inference

In fields ranging from epidemiology to economics, researchers rely on complex simulators to model reality. These "black box" models can generate data, but calculating the likelihood—the probability of observing specific data given certain parameters—is often mathematically impossible.

Standard techniques like Approximate Bayesian Computation (ABC) address this by comparing simulated data to observed data using "summary statistics" (e.g., means or variances). However, selecting these statistics is a major bottleneck: choosing the wrong ones leads to information loss, while choosing too many makes computation intractable. This paper aims to automate this comparison process.

Methods: Classification as a Discrepancy Measure

The core innovation is treating parameter estimation as a binary classification task. The process follows three main steps:

  1. Labeling: Observed data points are assigned Label 0, and simulated data points (generated with a specific parameter set) are assigned Label 1.
  2. Training: A classifier (such as Logistic Regression, SVM, or LDA) is trained to distinguish between the two sets.
  3. The Metric: The classification accuracy (or discriminability) serves as the discrepancy measure.

If the classifier is highly accurate, the simulated data is easily distinguishable from the real data, indicating poor parameter choices. Conversely, if the classifier performs at chance level (50% accuracy), the simulated data is indistinguishable from the real data, suggesting the parameters are likely correct.

Discriminability is minimized at the true parameter value across various data types.

As shown in the figure above, the discriminability forms a characteristic "V-shape" centered at the true parameter value (zero relative deviation). The goal of the inference is to find the parameters that make the classifier "fail" most effectively.

Key Insights

  • Universal Proxy: Classification accuracy is a "plug-and-play" measure. Any classifier can be used depending on data complexity, from simple linear models to deep neural networks.
  • Automated Feature Discovery: Powerful classifiers can automatically detect subtle patterns in high-dimensional data that human experts might overlook when designing manual summary statistics.
  • Theoretical Grounding: The authors provide a proof that minimizing classification accuracy is equivalent to minimizing the "Total Variation" distance between the true and simulated distributions, ensuring statistical consistency.

Key Results

The authors validated their approach on synthetic benchmarks (Gaussian, Bernoulli, Poisson, and ARCH models) and real-world epidemiological data tracking bacterial strains in Norway.

Consistency and Convergence

A critical requirement for any statistical estimator is consistency—the property that estimates converge to the true value as more data is collected. The authors demonstrated empirically that the mean squared error of their estimates follows a predictable linear trend on a log-log scale as sample size increases.

Log-log plot showing the decrease in mean squared error as sample size increases for different data distributions.

Real-world Application

On high-dimensional epidemiological data, Classifier ABC produced parameter estimates for bacterial transmission rates that were equivalent to those derived by experts using specialized domain knowledge. Furthermore, they showed that if an expert provides "insufficient" statistics, a classifier can often compensate for the missing information to recover accurate parameters.

Limitations and Future Work

While powerful, the method has trade-offs. Training a classifier at every iteration of an ABC algorithm can be computationally expensive, especially with complex models like deep neural networks. Additionally, the method requires enough data points per simulation to effectively train a classifier, which may be challenging in "small $n$" regimes. Future research may explore transfer learning to speed up the process by fine-tuning classifiers across different parameter sets.

Summary updated

BibTeX
@article{gutmann2018likelihood,
  author = {Michael U. Gutmann and Ritabrata Dutta and Samuel Kaski and Jukka Corander},
  title = {{Likelihood-free inference via classification}},
  journal = {Stat. Comput.},
  year = {2018},
  doi = {10.1007/s11222-017-9738-6},
}
Figure