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

AIDE: An algorithm for measuring the accuracy of probabilistic inference algorithms

Marco F. Cusumano-Towner, Vikash K. Mansinghka

The Challenge of Evaluating Approximate Inference

Probabilistic inference—the process of calculating the probability of hidden variables given observed data—is a cornerstone of modern AI, from robotics to machine learning. However, most real-world problems are too complex for exact solutions, necessitating "approximate" algorithms like Sequential Monte Carlo (SMC), Markov chain Monte Carlo (MCMC), or Variational Inference (VI).

The primary challenge for practitioners is determining whether an approximation is actually accurate on a specific dataset. Currently, researchers rely on brittle heuristics, such as checking if the log marginal likelihood is high or if certain probe functions look reasonable. Unfortunately, an algorithm can produce a high likelihood while completely missing a massive mode (a peak of probability) in the posterior distribution. Until now, there hasn't been a general-purpose, mathematically rigorous way to measure the total approximation error.

The AIDE Framework

To address this gap, researchers introduce the Auxiliary Inference Divergence Estimator (AIDE). AIDE provides a framework for estimating the divergence between a target algorithm's output and a "gold standard," successfully catching failure modes that traditional heuristics miss.

The methodology relies on two novel concepts:

  1. Generative Inference Models: Instead of treating an algorithm as a black box, AIDE treats it as a probabilistic model. Every random choice the algorithm makes (the "internal noise") is treated as a latent variable called a "trace." The final output is the observed result of that trace.
  2. Meta-Inference: To measure accuracy, we need to know the probability of the algorithm producing a specific output. Because this is usually impossible to calculate directly, AIDE uses "meta-inference"—running inference on the inference algorithm itself. It asks: "Given this output, what internal random choices could have led to it?"
AIDE Architecture

Using these concepts, AIDE estimates the symmetrized Kullback-Leibler (KL) divergence between a fast "target" algorithm and a slow, high-quality "gold standard." Unlike previous methods, AIDE provides an upper bound on this error and works directly on real-world, non-simulated data.

Experimental Validation and Key Results

The paper evaluates AIDE across several classic probabilistic modeling tasks, including Bayesian Linear Regression, Hidden Markov Models (HMM), and Dirichlet Process Mixture Models (DPMM).

A profound insight from the research is that if we can define the "trace" of an algorithm, we can apply the entire toolkit of Bayesian statistics to evaluate the algorithm itself. AIDE proved significantly better at detecting "missing modes" than traditional metrics. If an algorithm ignores a likely explanation for the data, AIDE’s KL divergence estimate spikes, whereas log-likelihood metrics might remain deceptively stable.

AIDE Estimates across SMC, MH, and VI

Key experimental findings include:

  • SMC and VI Success: For Sequential Monte Carlo, AIDE estimates correctly converged toward zero as the number of particles increased. For Variational Inference, AIDE correctly identified the "approximation gap"—the inherent error caused by the simplified distributional shapes used in VI.
  • Superiority over Heuristics: In the DPMM experiment (using real-world galaxy velocity data), a common heuristic suggested that a simple likelihood weighting algorithm was performing well. AIDE correctly flagged it as highly inaccurate, revealing that the heuristic was only looking at a narrow projection of the data.
  • Gold Standard Flexibility: The HMM experiments demonstrated that a "perfect" mathematical truth isn't strictly necessary. Comparing a fast algorithm to a "best-in-class" approximate algorithm yielded nearly identical results to comparing it against the exact truth.

Limitations and Future Directions

While highly effective for SMC and VI, AIDE faces challenges with MCMC algorithms like Metropolis-Hastings. MCMC algorithms do not "anneal" their way to a solution in the same way SMC does, making the meta-inference step (reconstructing the path to the output) extremely difficult and leading to biased estimates. Furthermore, AIDE's reliance on a gold standard makes it ideal for offline evaluation (e.g., determining required particle counts before production) but less applicable when no reference algorithm exists.

Ultimately, AIDE paves the way for more rigorous evaluation in probabilistic modeling. Future work may leverage AIDE to automatically tune algorithms or develop Monte Carlo program analyses for probabilistic programming languages.

Summary updated

BibTeX
@inproceedings{cusumanotowner2017aide,
  author = {Marco F. Cusumano-Towner and Vikash K. Mansinghka},
  title = {{AIDE: An algorithm for measuring the accuracy of probabilistic inference algorithms}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2017},
  url = {https://openreview.net/forum?id=BkVwF_-dbH},
}
Figure