Tokenised Flow Matching for Hierarchical Simulation Based Inference
Giovanni Charles, Cosmo Santoni, Seth Flaxman, Elizaveta Semenova
Abstract
The cost of simulator evaluations is a key practical bottleneck for Simulation Based Inference (SBI). In hierarchical settings with shared global parameters and exchangeable site-level parameters and observations, this structure can be exploited to improve simulation efficiency. Existing hierarchical SBI approaches factorise the posterior yet still simulate across multiple sites per training sample; We instead explore likelihood factorisation (LF) to train from single-site simulations. In LF sampling we learn a per-site neural surrogate of the simulator and then assemble synthetic multi-site observations to amortise inference for the full hierarchical posterior. Building on this, we propose Tokenised Flow Matching for Posterior Estimation (TFMPE), a tokenised flow matching approach that supports function-valued observations through likelihood factorisation. To enable systematic evaluation, we introduce a benchmark for hierarchical SBI. We validate TFMPE on this benchmark and on realistic infectious disease and computational fluid dynamics models, finding well-calibrated posteriors while reducing computational cost. Compositional inference. Many posterior estimation workflows exploit the factorisation in Equation 2 to train estimators on datasets of parameter-observation pairs (θ, y s ), enabling inference over arbitrarily sized observation sets (Radev et al., 2023; Boelts et al., 2024; Geffner et al., 2023) . Summary networks. Some compositional methods use permutation-invariant summary networks, such as Deep Sets (Zaheer et al., 2017), to aggregate variable-sized observation sets into fixeddimensional representations for posterior estimation. These approaches typically train by uniformly sampling observation subsets up to size n s , requiring on average ns /2 simulations per training sample. Factorised score estimation. Alternative compositional approaches decompose the posterior score over observation subsets and compose individual scores during sampling via annealed Langevin dynamics (Geffner et al., 2023) . Fully-Factorised Neural Posterior Score Estimation (F-NPSE) trains on single observations, requiring one simulation per sample, while Partially-Factorised variants (PF-NPSE) train on subsets of size n max , requiring n max simulations per sample where 1 < n max < n s . Increasing n max reduces approximation error from score composition at the cost of sample efficiency. Hierarchical SBI. When applied to hierarchical models, recent methods have introduced separate estimators for global and local parameters to reduce the number of simulations required for posterior estimation (
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext e0affe46-8052-4d9e-98c6-ba36719dc844Builds on9
- Likelihood-free MCMC with Amortized Approximate Ratio EstimatorsJoeri Hermans, Volodimir Begy, Gilles LouppeICML 2020 · 246 citations
- Flow Matching for Scalable Simulation-Based InferenceJonas Wildberger, Maximilian Dax, Simon Buchholz, Stephen R. Green et al.NeurIPS 2023 · 153 citations
- Flow Matching for Generative ModelingYaron Lipman, Ricky T. Q. Chen, Heli Ben-Hamu, Maximilian Nickel et al.ICLR 2023 · 87 citations
- Truncated proposals for scalable and hassle-free simulation-based inferenceMichael Deistler, Pedro J. Gonçalves, Jakob H. MackeNeurIPS 2022 · 76 citations
- All-in-one simulation-based inferenceManuel Glöckler, Michael Deistler, Christian Dietrich Weilbach, Frank Wood et al.ICML 2024 · 74 citations
Related papers
- Compositional simulation-based inference for time seriesManuel Glöckler, Shoji Toyota, Kenji Fukumizu, Jakob H. MackeICLR 2025
- Flow Matching Calibration for Simulation-Based Inference under Model MisspecificationPierre-Louis Ruhlmann, Michael Arbel, Florence Forbes, Pedro Luiz Coelho RodriguesICML 2026 · 2 citations
- FNOPE: Simulation-based inference on function spaces with Fourier Neural OperatorsGuy Moss, Leah Sophie Muhle, Reinhard Drews, Jakob H. Macke et al.NeurIPS 2025 · 3 citations
- Generalized Bayesian Inference for Scientific Simulators via Amortized Cost EstimationRichard Gao, Michael Deistler, Jakob H. MackeNeurIPS 2023 · 19 citations
- Compositional amortized inference for large-scale hierarchical Bayesian modelsJonas Arruda, Vikas Pandey, Catherine Sherry, Margarida Barroso et al.ICLR 2026 · 10 citations
