Research
Fast and Robust Simulation-Based Inference With Optimization Monte Carlo
Fast and Robust Simulation-Based Inference With Optimization Monte Carlo Overview Research area: Simulation-Based Inference (SBI) / Likelihood-Free Inference (LFI) for Bayesian parameter estimation in
- arXiv
- 2511.13394
- Published
- 2025-11-17
- Authors
- Vasilis Gkolemis, Christos Diou, Michael U. Gutmann
AI summary
Fast and Robust Simulation-Based Inference With Optimization Monte CarloOverview
Research area: Simulation-Based Inference (SBI) / Likelihood-Free Inference (LFI) for Bayesian parameter estimation in stochastic simulator models, with connections to Monte Carlo methods, gradient-based optimization, and probabilistic machine learning.
Technical level: Advanced. The paper assumes familiarity with Bayesian inference, approximate Bayesian computation, importance sampling, and gradient-based optimization.
Scope: The paper introduces R2OMC, a gradient-based method that recasts likelihood-free posterior inference as a set of deterministic optimization problems, and benchmarks it against neural SBI baselines on synthetic and applied tasks.
What This Paper Is About
Complex stochastic simulators (in biology, physics, health sciences, and elsewhere) have intractable likelihoods, so standard Bayesian inference cannot be applied directly. Existing simulation-based inference methods work, but they are data-hungry: they need large simulated datasets and long neural-network training, which makes them expensive in high-dimensional parameter spaces or when part of the simulator output carries no information about the parameters. The paper's goal is a method for differentiable simulators that produces accurate posteriors in a fraction of the runtime.
Key Contributions
-
Gradient-based reformulation of ROMC (R2OMC). Building on the Robust Optimization Monte Carlo (ROMC) framework of Ikonomov and Gutmann (2020), the authors replace gradient-free optimization (e.g., Bayesian optimization) with gradient descent, which scales to higher parameter dimensions and avoids wasteful simulation in low-probability regions.
-
Automatic filtering of uninformative ("distractor") output dimensions. R2OMC measures the average norm of each output dimension's derivative with respect to the parameters, and masks out dimensions whose sensitivity falls below a threshold. In the experiments the threshold is set to machine precision and the expectation is approximated with 50 samples from the prior and 50 from the noise distribution.
-
A principled treatment of multiple iid observations. Instead of averaging pairwise distances or concatenating observations (which breaks permutation invariance and inflates the tolerance), R2OMC builds a separate set of proposal distributions per observation, combines them into a mixture, and weights samples by whether they land in the acceptance regions of all observations.
-
An efficient JAX implementation. Automatic differentiation (
grad), vectorization (vmap), and just-in-time compilation (jit) reduce the total cost of obtaining proposal distributions and posterior samples to roughly on the order of N * S unique vectorized simulator calls, where N is the number of observations and S the number of seeds.
Main Findings
-
MoG benchmark (accuracy vs. runtime). On the mixture-of-Gaussians benchmark with parameter dimension D ranging from 2 to 20 and budgets from 1,000 to 100,000 simulations, all neural baselines (NPE, BayesFlow, FMPE) required rapidly growing budgets as D increased — often exceeding 100,000 simulations and over an hour of runtime — while R2OMC achieved successful inference (mean C2ST ≤ 0.75) in a few seconds across all D and simulator variants. Runtimes grew more steeply for the bimodal simulator than the unimodal one, and more in the distractor settings than in the simple ones.
-
Distractor robustness. In the MoG benchmark, distractor settings append 18 uninformative dimensions drawn from U(-3,3) to the output (so D_y = D + 18). On the SLCP task with distractors (T.4, which appends 23 non-informative dimensions to each observation), most competing methods failed to reach C2ST below 0.8 regardless of budget, while R2OMC remained accurate.
-
SLCP with multiple observations (T.3). R2OMC reached C2ST scores of 0.7–0.8 in a few seconds, whereas other methods required budgets of at least 10^4 (often 10^5) samples and often hours. The authors note that all proposed samples satisfied ϵ < 1 per observation, yet the maximum distance across all observations reached ϵ = 5, which they speculate explains why C2ST scores flatten out rather than reaching the optimum of 0.5.
-
Two-moons (T.8). R2OMC achieved a near-optimal C2ST score of approximately 0.5 in a few seconds, capturing both crescent-shaped modes, while competing methods needed minutes to hours (budgets of 10^5 samples) to reach comparable performance.
-
Image-based inference at 784 dimensions. On MNIST-based camera models (pixel-wise intensity distortion and edge-detection filtering, with Gaussian noise N(0, 0.1² I) and an uninformative U(0,1)^{28×28} prior over 784 parameters), R2OMC recovered posterior means that visually matched the clean images, achieving this with just 100 simulations and a few seconds of runtime. No direct baseline comparison was run for these tasks.
-
Lotka-Volterra calibration. Using Simulation-Based Calibration with 150 independent repetitions and a budget of 1,000 simulator calls, all four parameters (α, β, γ, δ) passed a χ²_100 uniformity test with p-values of 0.544, 0.870, 0.910, and 0.760 respectively. Empirical coverage at the 50%, 90%, and 95% levels was close to nominal for all parameters (for example, α: 0.500, 0.900, 0.953; δ: 0.480, 0.907, 0.987). The true parameter fell well within the posterior mass for all four parameters.
-
Reported limitations. R2OMC requires differentiable simulators, so it is a gray-box rather than fully black-box method. Its accuracy depends on the optimization succeeding: if optimization fails, increasing the simulation budget does not necessarily improve accuracy, unlike most neural methods. Because optimization is performed per observation, samples are ϵ-close to at least one observation but not necessarily to all, which can broaden the posterior. The optimization also does not explicitly incorporate the prior, so proposal regions can occasionally land in low-prior-support areas.
Methodology in Plain English
The method starts from the observation that if you fix the random seed of a stochastic simulator, the simulator becomes a deterministic function of the parameters. Repeating this for many seeds turns the likelihood — normally an intractable probability — into a collection of deterministic "distance" functions that measure how far a simulated output is from the observed data.
For each seed, R2OMC uses gradient descent to find the parameter values that minimize that distance. Those minimizing points anchor small boxes in parameter space (acceptance regions) inside which the parameters are consistent with the data up to a tolerance. Drawing uniformly from those boxes, and reweighting the draws by the prior and by how many boxes they fall into, yields posterior samples.
Two additions handle common failure modes. First, to deal with output dimensions that ignore the parameters entirely, the method computes the average gradient magnitude of every output dimension and discards dimensions whose sensitivity is essentially zero, so those "distractor" dimensions cannot inflate the tolerance. Second, to handle several independent observations, the method constructs a separate set of proposal boxes for each observation and mixes them; only samples that fall inside the boxes of all observations receive positive weight. The whole procedure is written in JAX, so gradients, batched evaluations, and compilation are used to keep the number of simulator calls low.
Why This Matters
Impact on research. The paper challenges the assumption that accurate likelihood-free inference necessarily requires training a large neural estimator on tens or hundreds of thousands of simulations. For the class of differentiable simulators, it shows that gradient-based optimization can deliver comparable or better posterior accuracy with far fewer simulations and much shorter runtimes, which makes experimental iteration and hyperparameter exploration practical rather than prohibitively expensive. It also supplies a concrete mechanism (gradient-based sensitivity masking) for the long-standing problem of uninformative output dimensions, and a permutation-respecting way to aggregate multiple iid observations.
Real-world applications (illustrative, based on the modeling settings discussed in the paper):
- Neuroscience: aggregating several recordings of the same neural response to a stimulus, the multiple-observation scenario the authors cite explicitly.
- Graphics and rendering: inferring scene parameters in a renderer where most pixels are unrelated to the parameter of interest (the vase example given in the paper).
- Systems biology and ecology: fitting parameters of dynamical models such as the Lotka-Volterra predator-prey ODE system.
- Image-based camera models: recovering brightness/contrast or edge-filter parameters from noisy MNIST images at 784 parameters.
Industry relevance. Simulators with differentiable implementations are common in engineering, vision, and scientific computing. A method that returns calibrated posteriors in seconds on a laptop (the experiments were run on a 12-core Dell XPS laptop at 2.60GHz) lowers the compute barrier for deploying Bayesian inference inside design loops, calibration pipelines, and uncertainty-aware products. The public code at github.com/givasile/lfi (branch aistats2026 for exact reproduction) makes adoption straightforward.
Future Directions
- Extending beyond differentiable simulators. The method requires gradients, which excludes fully black-box simulators; gradient-free or surrogate-gradient variants would broaden applicability.
- Improving multi-observation accuracy. R2OMC optimizes each observation separately, so samples are ϵ-close to one observation but not jointly close to all; the authors report this as the likely cause of C2ST scores flattening above 0.5 on SLCP, and improving the joint treatment is an open problem.
- Making optimization failure less consequential. Unlike neural methods, R2OMC cannot simply be rescued by increasing the budget when optimization fails. Better diagnostics or fallback strategies would address this.
- Incorporating the prior into optimization. Since optimization ignores the prior, proposal regions can fall in low- or zero-prior-support areas; folding prior information into the optimization while retaining the cheap prior-sensitivity analysis is a natural next step.
Target Audience
Researchers and practitioners in simulation-based inference, approximate Bayesian computation, and probabilistic machine learning who work with stochastic simulators and need fast, calibrated posteriors. It is especially relevant to those already using or considering neural SBI frameworks (NPE, BayesFlow, FMPE, Simformer, or tabular-foundation-model SBI) and looking for a lower-runtime alternative, and to applied scientists in neuroscience, ecology, physics, and computer graphics whose simulators are differentiable or can be implemented in JAX. The gradient-based machinery and the JAX implementation details make it more accessible to readers with an intermediate-to-advanced background in Bayesian inference and optimization than to beginners.
Note on the source text: the paper content provided was truncated within the Conclusion section (it ends mid-sentence at "Building"), so the full concluding discussion is not reflected above.
Authors’ abstract
Bayesian parameter inference for complex stochastic simulators is challenging due to intractable likelihood functions. Existing simulation-based inference methods often require large number of simulations and become costly to use in high-dimensional parameter spaces or in problems with partially uninformative outputs. We propose a new method for differentiable simulators that delivers accurate posterior inference with substantially reduced runtimes. Building on the Optimization Monte Carlo framework, our approach reformulates inference for stochastic simulators in terms of deterministic optimization problems. Gradient-based methods are then applied to efficiently navigate toward high-density posterior regions and avoid wasteful simulations in low-probability areas. A JAX-based implementation further enhances the performance through vectorization of key method components. Extensive experiments, including high-dimensional parameter spaces, uninformative outputs, multiple observations and multimodal posteriors show that our method consistently matches, and often exceeds, the accuracy of state-of-the-art approaches, while reducing the runtime by a substantial margin.