Papers › Robust Neural Posterior Estimation and Statistical Model Criticism

Robust Neural Posterior Estimation and Statistical Model Criticism

12 Oct 2022arXiv:2210.06564archive 2025-07-28

Daniel Ward, Patrick Cannon, Mark Beaumont, Matteo Fasiolo, Sebastian M Schmon

Computer simulations have proven a valuable tool for understanding complex phenomena across the sciences. However, the utility of simulators for modelling and forecasting purposes is often restricted by low data quality, as well as practical limits to model fidelity. In order to circumvent these difficulties, we argue that modellers must treat simulators as idealistic representations of the true data generating process, and consequently should thoughtfully consider the risk of model misspecification. In this work we revisit neural posterior estimation (NPE), a class of algorithms that enable black-box parameter inference in simulation models, and consider the implication of a simulation-to-reality gap. While recent works have demonstrated reliable performance of these methods, the analyses have been performed using synthetic data generated by the simulator model itself, and have therefore only addressed the well-specified case. In this paper, we find that the presence of misspecification, in contrast, leads to unreliable inference when NPE is used naively. As a remedy we argue that principled scientific inquiry with simulators should incorporate a model criticism component, to facilitate interpretable identification of misspecification and a robust inference component, to fit 'wrong but useful' models. We propose robust neural posterior estimation (RNPE), an extension of NPE to simultaneously achieve both these aims, through explicitly modelling the discrepancies between simulations and the observed data. We assess the approach on a range of artificially misspecified examples, and find RNPE performs well across the tasks, whereas naively using NPE leads to misleading and erratic posteriors.

PaperPDFCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2210.06564")

Code

Syntology Ran 0 of 10 code samples harvested from 1 repository linked to this paper; 10 have no recorded run.

By repository: found in paper text by Syntology: 10 samples from 1 repository, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

danielward27/rnpe found in paper text by Syntology report
danielward27/flowjax found in paper text by SyntologyMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

10 samples harvested; 0 ran; 0 honoured the contract we drafted; 10 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

10unverified

Licence: 0 of the 10 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from danielward27/flowjax. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

arraylike_to_array danielward27/flowjax/flowjax/utils.py found in paper text by Syntology unverified MIT (permissive) · bc7da1b56f0084fe · report
block_diag_mask danielward27/flowjax/flowjax/masks.py found in paper text by Syntology unverified MIT (permissive) · ca34b754581d6b60 · report
block_tril_mask danielward27/flowjax/flowjax/masks.py found in paper text by Syntology unverified MIT (permissive) · c313bf672bf53b58 · report
get_ravelled_pytree_constructor danielward27/flowjax/flowjax/utils.py found in paper text by Syntology unverified MIT (permissive) · 247bf759a4548654 · report
logmatmulexp danielward27/flowjax/flowjax/bijections/block_autoregressive_network.py found in paper text by Syntology unverified MIT (permissive) · efa300dd757575bc · report
max_steps_while_loop danielward27/flowjax/flowjax/root_finding.py found in paper text by Syntology unverified MIT (permissive) · cff21ac0e654efbe · report
merge_cond_shapes danielward27/flowjax/flowjax/utils.py found in paper text by Syntology unverified MIT (permissive) · 4f28e523944baf36 · report
rank_based_mask danielward27/flowjax/flowjax/masks.py found in paper text by Syntology unverified MIT (permissive) · 3022a15994813faa · report
root_finder_to_inverter danielward27/flowjax/flowjax/root_finding.py found in paper text by Syntology unverified MIT (permissive) · 9036420ab972300b · report
two_moons danielward27/flowjax/flowjax/tasks.py found in paper text by Syntology unverified MIT (permissive) · f54515af38e6b7d9 · report

Tasks

model

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections