Manuscript Offprint

arXiv:2611.12422

Two-Phase Rapid Simulation-Based Inference with Differentiable Simulators

Uros Zivanovic, Rahul Srinivasan, Roberto Trotta, Andre Scaffidi

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

We introduce Rapid Simulation Based Inference (RSBI), a diffusion-based variational approach to likelihood-free Bayesian inference that achieves high sampling efficiency under large prior-to-posterior volumes. RSBI builds on advances in Schrödinger Bridge (SB) diffusion sampling to handle multi-modal posteriors, with an initial likelihood supplied by a distance measure via a differentiable simulator. The key innovation of this initial surrogate likelihood is that it gives a highly efficient proposal distribution, replacing sequential rounds of other methods with an efficient one-shot proposal. Subsequent refinement then transports the proposal to the true posterior as specified by the simulator and the original prior. The SB sampler is warm-started from the proposal, and its energy is corrected by a neural likelihood ratio that is learned only where the proposal places mass. As a variational method, RSBI does not suffer from prior leakage commonly observed in standard sequential posterior estimation methods. To improve mode coverage we optionally utilize the well-tempered meta-dynamics framework, which also encourages exploration of the prior volume. We observe strong performance on standard SBI benchmarks, particularly when the prior volume is increased relative to the ground truth posterior, achieving a performance degradation of only ∼5%\sim 5\% on Two Moons under a highly constrained simulation budget. Additionally, we evaluate RSBI's performance for gravitational wave ring-down posterior estimation, in a real-world physics benchmark inspired by black hole spectroscopy.

1 Introduction

Many domains in science and engineering rely on stochastic simulators whose sampling distribution p(x∣θ)p(x \mid \theta) is intractable but from which data samples xx can be drawn given parameters θ\theta. Bayesian parameter inference in such settings is the subject of Simulation-Based Inference (SBI) [1]. Neural SBI methods have matured rapidly over the past five years. Sequential Neural Posterior Estimation [SNPE; 2, 3] targets the posterior, Sequential Neural Likelihood Estimation [SNLE; 4] the likelihood, and Sequential Neural Ratio Estimation [SNRE; 5, 6] the likelihood-to-evidence ratio. Sequential Neural Variational Inference [SNVI; 7] combines these with variational inference (VI).

A common difficulty arises when the prior-to-posterior volume ratio (Rp)(\mathcal{R}_p) is large: when p(θ)p(\theta) is broad compared to the posterior, most simulator calls fall in regions of negligible posterior density, and efficiency vanishes. Sequential variants can reduce this cost by retraining the proposal across

40th Conference on Neural Information Processing Systems (NeurIPS 2026).

rounds, but this comes at a price. SNPE with atomic proposals suffers from posterior leakage outside prior support [3], and naive implementations of variational approaches collapse onto a single mode of the posterior [7]. Truncation schemes [8–10] instead restrict the effective prior, so their result is exact only if the truncated region contains the posterior, or else must be corrected at inference time, for example by importance sampling [11].

A growing class of scientific simulators are differentiable: GPU-native models written within the JAX [12]/PyTorch [13] frameworks, learnable physical simulators, and neural emulators trained to mimic expensive codes all expose the gradient ∇θs(θ)\nabla_{\theta} s(\theta) of the parameters θ\theta under the simulator output, s(θ)s(\theta). This represents an opportunity for SBI: algorithms can exploit gradients directly rather than treating the simulator as a black box.

Figure

Figure 1: Actual diffusion trajectories from the RSBI pipeline on the Two Moons task detailed in Sec.5. RSBI is able to produce a high quality posterior despite the large prior size.

Recent advances in neural samplers, in particular the Adjoint Schrödinger Bridge Sampler (ASBS; 14), provide an opportunity to exploit such gradients. ASBS recasts sampling from an unnormalised target distribution as a Schrödinger bridge problem solved via stochastic optimal control: a controlled SDE transports a tractable source distribution to the target, with the control trained by adjoint matching and a learned corrector [15]. The recent Well-Tempered variant (WT-ASBS; 16) augments ASBS with a metadynamics-style bias [17], overcoming free-energy barriers between modes during training and enabling broad mode coverage at fixed simulation cost. Two properties make this family particularly well-suited to SBI. First, ASBS queries the target only through gradients of its energy (the negative log of the unnormalised target density), ∇θE\nabla_{\theta}E, which a differentiable simulator supplies. Second,

the well-tempered bias addresses the mode-seeking pathology that limits standard variational SBI [7] on multi-modal posteriors. To our knowledge, neither ASBS nor its well-tempered extension have previously been deployed for likelihood-free Bayesian inference.

We introduce RSBI, a two-phase SBI framework that leverages differentiable simulators while keeping the target posterior fixed as p(θ∣xo)p(\theta \mid x_o), where xox_o denotes the observed data. Phase 1 places posterior mass rapidly using a cheap surrogate likelihood, parameterized by bandwidth ϵ\epsilon and built from distance metric Dϵ(s,xo)\mathcal{D}_{\epsilon}(s, x_o) between observed and simulated data, plugged into a Well-Tempered Adjoint Schrödinger Bridge Sampler [14, 16] (WT-ASBS). Phase 2 refines the resulting Phase-1 proposal using WT-ASBS, augmented by an NRE trained on simulator samples drawn from the 'zoomed in' proposal. Figure. 1 outlines the process.

Our contributions are threefold:

  • A two-phase SBI method for differentiable simulators. We introduce RSBI (Sec. 4), a diffusion-based variational approach to likelihood-free Bayesian inference that achieves high sampling efficiency under large prior-to-posterior volume ratios.

  • First application of WT-ASBS to SBI. We adapt the well-tempered metadynamics extension of ASBS [16] to likelihood-free Bayesian inference, countering the mode-seeking pathology of reverse-KL variational SBI [7] on multimodal posteriors.

  • Benchmarking robustness at large prior-to-posterior volume ratio Rp\mathcal{R}_p. We benchmark RSBI and other methods on Two Moons [18], SLCP [18, 19], Lotka-Volterra [18], Bernoulli GLM [18], and a new differentiable gravitational-wave ringdown task (dim θ=6\theta = 6, dim x=820x = 820), sweeping prior-to-posterior volume ratios up to log⁡10Rp≈12\log_{10} \mathcal{R}_p \approx 12.

References (76)