# HNPE: Leveraging Global Parameters for Neural Posterior Estimation

arXiv: https://arxiv.org/abs/2102.06477 · HTML: https://mlsanity.com/paper/2102.06477/

## Key facts

- Cited by 19 papers in the map (data through 14 Oct 2026).
- Builds on 15 of its 45 references that are in the map.
- First posted on arXiv 12 Feb 2021.

## Builds on (most cited first, 15 of 15)

- [Adam: A Method for Stochastic Optimization](https://mlsanity.com/paper/1412.6980/) (2014)
- [PyTorch: An Imperative Style, High-Performance Deep Learning Library](https://mlsanity.com/paper/1912.01703/) (2019)
- [Deep Sets](https://mlsanity.com/paper/1703.06114/) (2017)
- [Normalizing Flows for Probabilistic Modeling and Inference](https://mlsanity.com/paper/1912.02762/) (2019)
- [Masked Autoregressive Flow for Density Estimation](https://mlsanity.com/paper/1705.07057/) (2017)
- [Neural Spline Flows](https://mlsanity.com/paper/1906.04032/) (2019)
- [The frontier of simulation-based inference](https://mlsanity.com/paper/1911.01429/) (2019)
- [Pyro: Deep Universal Probabilistic Programming](https://mlsanity.com/paper/1810.09538/) (2018)
- [MADE: Masked Autoencoder for Distribution Estimation](https://mlsanity.com/paper/1502.03509/) (2015)
- [Automatic Posterior Transformation for Likelihood-Free Inference](https://mlsanity.com/paper/1905.07488/) (2019)
- [On Contrastive Learning for Likelihood-free Inference](https://mlsanity.com/paper/2002.03712/) (2020)
- [Fast ε-free Inference of Simulation Models with Bayesian Conditional Density Estimation](https://mlsanity.com/paper/1605.06376/) (2016)
- [Mining for Dark Matter Substructure: Inferring subhalo population properties from strong lenses with machine learning](https://mlsanity.com/paper/1909.02005/) (2019)
- [Spectral Density-Based and Measure-Preserving ABC for partially observed diffusion processes. An illustration on Hamiltonian SDEs](https://mlsanity.com/paper/1903.01138/) (2019)
- [Learning summary features of time series for likelihood free inference](https://mlsanity.com/paper/2012.02807/) (2020)

## Built on by (most cited first, 19 of 19)

- [Diffusion posterior sampling for simulation-based inference in tall data settings](https://mlsanity.com/paper/2404.07593/) (2024)
- [L-C2ST: Local Diagnostics for Posterior Approximations in Simulation-Based Inference](https://mlsanity.com/paper/2306.03580/) (2023)
- [Amortized Bayesian Multilevel Models](https://mlsanity.com/paper/2408.13230/) (2024)
- [Hierarchical Neural Simulation-Based Inference Over Event Ensembles](https://mlsanity.com/paper/2306.12584/) (2023)
- [Validation Diagnostics for SBI algorithms based on Normalizing Flows](https://mlsanity.com/paper/2211.09602/) (2022)
- [Simulation-based Inference for High-dimensional Data using Surjective Sequential Neural Likelihood Estimation](https://mlsanity.com/paper/2308.01054/) (2023)
- [A Kernel-Based Conditional Two-Sample Test Using Nearest Neighbors (with Applications to Calibration, Regression Curves, and Simulation-Based Inference)](https://mlsanity.com/paper/2407.16550/) (2024)
- [Simulation-based Inference with the Python Package sbijax](https://mlsanity.com/paper/2409.19435/) (2024)
- [CP4SBI: Local Conformal Calibration of Credible Sets in Simulation-Based Inference](https://mlsanity.com/paper/2508.17077/) (2025)
- [Embed and Emulate: Contrastive representations for simulation-based inference](https://mlsanity.com/paper/2409.18402/) (2024)
- [metabeta -- A fast neural model for Bayesian mixed-effects regression](https://mlsanity.com/paper/2510.07473/) (2025)
- [Tokenised Flow Matching for Hierarchical Simulation Based Inference](https://mlsanity.com/paper/2604.20723/) (2026)
- [It Just Takes Two: Scaling Amortized Inference to Large Sets](https://mlsanity.com/paper/2605.07972/) (2026)
- [Theoretical guidelines for annealed Langevin dynamics in compositional simulation-based inference](https://mlsanity.com/paper/2605.21253/) (2026)
- [Amortized Bayesian Inference on Multilevel Models of Arbitrary Structure](https://mlsanity.com/paper/2609.40024/) (2026)
- [Mixed neural posterior estimation for simulators with discrete and continuous parameters](https://mlsanity.com/paper/2605.13551/) (2026)
- [GenSBI: Generative Methods for Simulation-Based Inference in JAX](https://mlsanity.com/paper/2605.27499/) (2026)
- [A Three-Way Testing Framework for Quantifying Epistemic Calibration Uncertainty in SBI](https://mlsanity.com/paper/2609.24419/) (2026)
- [Semi-Amortized Bayesian Inference with Reusable Local Posteriors](https://mlsanity.com/paper/2610.18945/) (2026)

## Abstract (arXiv)

Inferring the parameters of a stochastic model based on experimental observations is central to the scientific method. A particularly challenging setting is when the model is strongly indeterminate, i.e. when distinct sets of parameters yield identical observations. This arises in many practical situations, such as when inferring the distance and power of a radio source (is the source close and weak or far and strong?) or when estimating the amplifier gain and underlying brain activity of an electrophysiological experiment. In this work, we present hierarchical neural posterior estimation (HNPE), a novel method for cracking such indeterminacy by exploiting additional information conveyed by an auxiliary set of observations sharing global parameters. Our method extends recent developments in simulation-based inference (SBI) based on normalizing flows to Bayesian hierarchical models. We validate quantitatively our proposal on a motivating example amenable to analytical solutions and then apply it to invert a well known non-linear model from computational neuroscience, using both simulated and real EEG data.
