Statistical Inference of Intractable Generative Models via Classification

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

Abstract: Increasingly complex generative models are being used across the disciplines as they allow for realistic characterization of data, but a common difficulty with them is the prohibitively large computational cost to perform likelihood-based statistical inference. We consider here a likelihood-free framework where inference is done by identifying parameter values which generate simulated data adequately resembling the observed data. A major difficulty is how to measure the discrepancy between the simulated and observed data. Transforming the original problem into a problem of classifying the data into simulated versus observed, we find that classification accuracy can be used to assess the discrepancy. The complete arsenal of classification methods becomes thereby available for inference of intractable generative models.

Introduction

Many scientific fields—ranging from genetics to economics—rely on generative models or simulators to describe complex processes. While these models are excellent for capturing realistic data dynamics, they often lack a tractable likelihood function. This means that while researchers can easily generate data from the model, they cannot mathematically calculate the probability of observing a specific set of real-world results.

Traditionally, this challenge is met using Approximate Bayesian Computation (ABC), which compares simulated data to observed data using manually selected "summary statistics." However, choosing these statistics is notoriously difficult and subjective; poor choices lead to biased or inefficient inference. This paper proposes a "likelihood-free" framework that automates this process by reframing inference as a machine learning classification task.

The Classifier ABC Framework

The core innovation is Classifier ABC. Instead of calculating a distance between hand-crafted summary statistics, the problem is treated as a binary classification task. The process follows five key steps:

  1. Data Generation: For a given parameter set $\theta$, generate simulated data $Y_\theta$.
  2. Labeling: Label observed data $X$ as "Class 0" and simulated data $Y_\theta$ as "Class 1."
  3. Training: Train a classifier (e.g., Logistic Regression, SVM, or LDA) to distinguish between the two classes.
  4. Measuring Discrepancy: The Classification Accuracy (CA) serves as the discrepancy measure. If CA is high (near 100%), the simulated data is easily distinguishable from the real data. If CA is low (near 50%, or chance level), the simulated data is a good match for the observed data.
  5. Inference: This accuracy measure is then used for point estimation (minimizing accuracy) or within Bayesian frameworks like Sequential Monte Carlo.
Figure 1: Visualizing high vs. low discriminability between observed and simulated data. When the model parameters are far from the truth (a), the datasets are easily separated. When they match (b), the datasets overlap, and discriminability drops.

Theoretical Insights and the "Max-Rule"

A key theoretical contribution of this work is proving that classification accuracy is not merely a heuristic; it is directly related to the Total Variation (TV) distance between the true data distribution and the model distribution.

To ensure the discrepancy measure is as sensitive as possible, the authors introduce the "Max-Rule" ensemble. This approach involves training multiple classifiers and selecting the one with the highest accuracy. This ensures that if any classifier can find a difference between the real and simulated data, the discrepancy is recorded, preventing the model from appearing more accurate than it truly is.

Figure 4: Discriminability as a function of parameter deviation across different data types and classifiers. The Max-Rule (black line) effectively tracks the most sensitive classifier for each scenario.

Empirical Validation

The authors validated the framework across several domains:

  • Synthetic Benchmarks: The method proved consistent for univariate Gaussian, Bernoulli, and Poisson distributions, with estimators converging to true values as sample sizes increased.
  • Time Series: Successful application to Moving Average (MA(1)) and ARCH(1) models demonstrated the framework's ability to handle temporal dependencies.
  • Epidemiology: In a study of Streptococcus pneumoniae transmission in Norwegian child care centers, Classifier ABC produced results comparable to an "expert" solution that required months of manual tuning, but with significantly less human intervention.

Conclusion

By bridging statistical inference and machine learning, Classifier ABC offers a robust, automated alternative to traditional ABC. While users still need to define a feature space for complex data like time series, the method significantly reduces the reliance on subjective summary statistics. Future work may involve using deep learning (CNNs/RNNs) to automate feature extraction entirely, further streamlining the inference of complex generative models.

Reference: Gutmann, M. U., Dutta, R., Kaski, S., & Corander, J. (2018). Likelihood-free inference via classification. Statistics and Computing, 28(2), 411-425.

Summary updated

Abstract

Increasingly complex generative models are being used across the disciplines as they allow for realistic characterization of data, but a common difficulty with them is the prohibitively large computational cost to perform likelihood-based statistical inference. We consider here a likelihood-free framework where inference is done by identifying parameter values which generate simulated data adequately resembling the observed data. A major difficulty is how to measure the discrepancy between the simulated and observed data. Transforming the original problem into a problem of classifying the data into simulated versus observed, we find that classification accuracy can be used to assess the discrepancy. The complete arsenal of classification methods becomes thereby available for inference of intractable generative models.
BibTeX
@article{gutmann2018statistical,
  author = {Michael U. Gutmann and Ritabrata Dutta and Samuel Kaski and Jukka Corander},
  title = {{Statistical Inference of Intractable Generative Models via Classification}},
  journal = {Stat. Comput.},
  year = {2018},
  doi = {10.1007/s11222-017-9738-6},
}
Figure