Simulation-Based Inference with Quantile Regression

He Jia

Abstract

Neural Quantile Estimation (NQE) is a novel approach to Simulation-Based Inference (SBI) that leverages quantile regression to bypass the need for tractable likelihood functions. By learning the conditional quantiles of a posterior distribution autoregressively, NQE provides a robust, fast, and easily calibratable framework for Bayesian inference in complex scientific models. This method matches state-of-the-art performance on standard benchmarks while offering a significantly more efficient way to calibrate results, ensuring unbiased posterior estimates even with limited simulation budgets or model misspecification.

Introduction

In many scientific fields—from cosmology to epidemiology—researchers rely on "black box" simulators that generate data but lack an explicit likelihood function $p(x|\theta)$. Simulation-Based Inference (SBI) aims to perform Bayesian inference using only these simulations. Current state-of-the-art methods, such as Neural Posterior Estimation (NPE), often rely on complex architectures like Normalizing Flows, which can be difficult to train and validate. A major challenge in SBI is posterior bias; if training data is limited or the simulator is slightly inaccurate, the resulting posterior may be overconfident or shifted. Validating and calibrating these models typically requires computationally prohibitive MCMC sampling.

Neural Quantile Estimation (NQE)

NQE addresses these challenges by decomposing the posterior estimation problem. Instead of modeling the entire density at once, it learns 1D conditional quantiles for each parameter dimension sequentially.

NQE Architecture: The model autoregressively estimates quantiles for each parameter $\theta^{(i)}$ given the data $x$ and previously estimated parameters $\theta^{(<i)}$.

The NQE framework consists of several key innovations:

  1. Autoregressive Learning: It estimates parameters one by one (e.g., $\theta_1$ given $x$, then $\theta_2$ given $x$ and $\theta_1$).
  2. Quantile Regression: A standard Multi-Layer Perceptron (MLP) with a pinball loss predicts these quantiles, avoiding the constraints of Normalizing Flows.
  3. PCHIP-ET Interpolation: Discrete quantiles are converted into a continuous distribution using Piecewise Cubic Hermite Interpolating Polynomials with Exponential Tails, ensuring a monotonic Cumulative Distribution Function (CDF).
  4. Efficient Calibration: NQE introduces a "broadening" step that uses a small validation set to automatically adjust the posterior width, ensuring statistical unbiasedness.

Performance and Calibration

NQE was evaluated on the standard SBI Benchmark (sbibm), including models like Two Moons, SLCP, and Lotka-Volterra. It achieved accuracy comparable to or better than NPE and NLE across all benchmarks. A critical advantage of NQE is its efficiency in calibration. Because it predicts quantiles directly, calculating coverage is analytically simple, making NQE orders of magnitude faster to validate than methods requiring MCMC.

Impact of Calibration: NQE's post-processing step corrects overconfident, biased posteriors to ensure they accurately reflect the ground truth.

In a real-world application to cosmology, NQE successfully inferred matter density parameters from simulated dark matter maps. Through its "quantile shifting" calibration, it corrected for systematic biases introduced by simplified physics in the training set, demonstrating its utility for complex scientific discovery.

Conclusion

NQE provides a scalable and robust alternative for SBI. By focusing on quantiles, it simplifies model architecture and makes rigorous statistical calibration computationally feasible. Future work will explore sequential versions of NQE to further refine posteriors for specific observations and more localized bias correction techniques.

Summary updated

BibTeX
@inproceedings{jia2024simulation,
  author = {He Jia},
  title = {{Simulation-Based Inference with Quantile Regression}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=vGHOFeUQi8},
}
Figure