NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Pooled Geometry for Zeroth-Order MMD Posterior Bootstrap

Many scientific simulators, such as queueing models, stochastic gene networks, spiking neurons and discrete-event population models, can be run forward but not differentiated. For these models the probability of the observed data under a given parameter setting (the likelihood) cannot be computed. One robust way to do Bayesian-style inference for such models is the MMD posterior bootstrap of Robust Bayesian Inference for Simulator-based Models via the MMD Posterior Bootstrap. It draws many randomly reweighted copies of the observed data. For each copy, it finds the simulator parameters whose output distribution best matches that copy under the maximum mean discrepancy (MMD), a kernel distance between sample sets. The collection of solutions is the posterior. Each of these hundreds of independent optimizations needs gradients the simulator cannot provide. The paper hands them to generic black-box optimizers and never analyzes how noisy those gradient substitutes are.

This proposal makes one idea concrete. The bootstrap replicates are not independent problems. Their spread is the posterior's shape, and that shape is the right geometry for the random perturbations used by zeroth-order gradient estimators. Zeroth-order estimators approximate a gradient from the difference of two function values at randomly perturbed parameters. We propose to run all bootstrap optimizers in lockstep and estimate the covariance of their current iterates. Each replicate then perturbs its parameters along the top directions of that shared covariance, with a small isotropic floor. Together these steps yield a preconditioned gradient whose noise scales with the posterior's effective dimension rather than the raw parameter dimension. The approach also stays unbiased across simulator discontinuities that break autodiff.

Core Claim

For a replicate $b$ with bootstrap-weighted target $\tilde P_b$, let $L_b(\theta)=\widehat{\mathrm{MMD}}^2(P_\theta,\tilde P_b)$. Here $P_\theta$ is the simulator's output distribution at parameters $\theta\in\mathbb{R}^d$. Let $\Sigma$ be a low-rank-plus-floor covariance estimated from the $B$ current replicate iterates, $\Sigma = U_r\Lambda_r U_r^\top + \epsilon I$, where $U_r$ holds the top $r$ eigenvectors. Draw $u\sim\mathcal N(0,I)$, set $v=\Sigma^{1/2}u$, and use the two-point estimator

$$ \hat g_b=\frac{L_b(\theta_b+\mu v;\omega)-L_b(\theta_b-\mu v;\omega)}{2\mu}\,v , $$

where $\mu$ is the perturbation size and $\omega$ is a shared simulator random seed (common random numbers). For small $\mu$, the expectation of $\hat g_b$ is $\Sigma\nabla L_b$. The estimator is therefore a preconditioned gradient. Its second moment is governed by $\mathrm{tr}(\Sigma)\,\|\Sigma^{1/2}\nabla L_b\|^2$ instead of $d\,\|\nabla L_b\|^2$; this follows from the standard Gaussian-smoothing second-moment identity. The claim to test is the following. On simulators with $d$ from about 4 to about 100, pooled-geometry zeroth-order descent reaches a high-budget reference bootstrap posterior with several times fewer simulator calls than isotropic zeroth-order descent or per-replicate derivative-free optimizers. It keeps this advantage on discontinuous simulators, where pathwise gradients are biased.

The low-rank idea comes from subspace zeroth-order methods for language models. SubZero uses random layer-wise subspaces to cut estimator variance from $\mathcal O(d)$ to $\mathcal O(r)$. LOZO uses low-rank $UV^\top$ perturbations and a basis held fixed across several steps. Both choose subspaces at random or from gradient structure inside one optimization. Here the subspace comes from a population of related optimizations whose spread is the quantity of scientific interest. The basis is refreshed every step at negligible cost, because it is estimated from $B$ low-dimensional vectors. That addresses LOZO's reported late-stage oscillations from fixed bases. Ensemble-spread preconditioning is closest to EnKSGD. EnKSGD estimates gradients and Hessian preconditioners from particle spread via Stein's identity, but for a single point estimate, and it fights ensemble collapse with isotropic noise. In our setting the ensemble is the posterior, so collapse is a measured quantity rather than an artifact. The bootstrap's own resampling keeps the spread honest.

Research Program

The first piece is analysis. We will bound the estimator's variance under shared seeds, separating three terms: dimension, simulator noise, and misalignment between the true gradient and the pooled subspace (the floor $\epsilon$ controls the last). We will also characterize when the replicate covariance approximates the inverse curvature of $L_b$. Asymptotically, the bootstrap covariance has a sandwich form around the inverse Hessian, which motivates using it as a preconditioner. The simulator-noise term deserves separate attention. With common random numbers it vanishes for simulators that are smooth in $\theta$ for a fixed seed. It does not vanish for discrete-event simulators, where a tiny parameter change flips an event. That is exactly the regime Does "Do Differentiable Simulators Give Better Policy Gradients?" Give Better Policy Gradients? identifies as making pathwise gradients biased and zeroth-order ones merely noisy. We will measure, rather than assume, how much of the variance the MMD's averaging over simulated samples absorbs there.

The second piece is the algorithm. $B$ replicates (100 to 1000) advance synchronously. At each step we compute the iterate covariance, take its top-$r$ eigenvectors, and form one or a few perturbation pairs per replicate with shared seeds. The update is a plain step or a momentum step. The rank $r$ is chosen adaptively from the eigenvalue decay, and $\epsilon$ is annealed. Early in optimization all replicates start near a common initialization and the covariance is uninformative. We therefore begin isotropic and switch on pooling once the iterate spread stabilizes. This schedule is itself an ablation.

Baselines

The naive reference is isotropic two-point zeroth-order descent per replicate, with shared seeds, at the same step-size tuning budget. This is the "do nothing clever" estimator whose $\mathcal O(d)$ variance the SubZero analysis describes. It isolates whether pooled geometry matters at all.

The strongest existing competitor for the optimization subproblem is per-replicate covariance-adaptive derivative-free search. We take CMA-ES as the representative and also run Nelder–Mead, since the MMD bootstrap paper relies on generic black-box routines and reports no gradient scheme. CMA-ES learns a covariance too, but separately per replicate, from that replicate's own evaluations. It is the most direct threat to the claim. Each method gets the same number of simulator calls per replicate and the same samples per MMD evaluation. Hyperparameters (population size, step sizes) are tuned on one task with an equal budget of tuning runs and then frozen. Beating it means reaching a fixed C2ST threshold against the reference bootstrap posterior with at least twice fewer total simulator calls, consistently across tasks. C2ST is the classifier two-sample test, where 0.5 means indistinguishable.

For the end-to-end inference question we compare against neural posterior estimation with Automatic Posterior Transformation and neural likelihood estimation with Sequential Neural Likelihood, both run through sbibm from Benchmarking Simulation-Based Inference at matched simulation budgets. That benchmark reports that "sequential neural methods achieved near-perfect C2ST scores (0.5) with $10^5$ simulations" on Two Moons. That is the bar for well-specified accuracy, against the standard Bayes posterior. For robustness, the bar is the MMD posterior bootstrap's own reported behavior: "centered on the true parameters even when 10% of the data were extreme outliers," and about 30 times faster than Wasserstein ABC (109 s vs 3,340 s) on a Gaussian model. Neither paper reports a simulator-call count for the bootstrap's inner optimizer on toggle-switch or g-and-k; no reported result was found on Lacuna for that. The original method will therefore be rerun with its generic optimizer as the reference.

Where a differentiable implementation exists, we also run autodiff-through-simulator gradients, with and without the discontinuity-gated fallback of the Onoda et al. paper.

The key ablations isolate the pooled ingredient in three ways. First, a random rank-$r$ subspace (SubZero-style) at equal $r$ tests whether the geometry or the low rank does the work. Second, removing common random numbers tests the seed-sharing term. Third, removing the floor $\epsilon$ tests subspace collapse.

Why not just…?

Why not just run CMA-ES on each bootstrap replicate? This is a real threat. CMA-ES already adapts a search covariance and is reliable at $d\le 10$. Its weakness is that it must learn that covariance from scratch for every replicate, spending on the order of $d^2$ evaluations per replicate. Pooling amortizes that learning across $B$ replicates that share almost the same curvature. The decisive experiment sweeps $d$ on the generalized Lotka–Volterra family described below. If per-replicate CMA-ES matches pooled zeroth-order descent at equal budget for $d\ge 30$, the pooling claim fails. We would then fall back to the weaker contribution of a pooled-covariance CMA-ES, which we will also run.

Why not just use neural posterior estimation and skip per-observation optimization? Amortized methods like APT are excellent when the simulator is well specified, and they reuse simulations across observations. The MMD bootstrap exists because these methods become overconfident under misspecification and outliers. Generalized-Bayes variants such as β-amortized NPE address this only by tempering, not by robust discrepancies. Our contamination experiments compare APT, SNL and our method on the same contaminated data, so readers can see where each wins. We expect neural methods to win on clean low-dimensional tasks, and we will report that honestly.

Why not just differentiate through the simulator? For smooth simulators, autodiff with common random numbers will likely beat any zeroth-order method, and we include it as an upper bound there. Onoda et al. show that contact, threshold and event-driven dynamics make pathwise gradients biased. Spiking in Hodgkin–Huxley, event ordering in Gillespie Lotka–Volterra and max operations in the M/G/1 queue all belong to this class. Many such simulators are also legacy black-box code. The experiment that settles it measures the bootstrap posterior's bias under autodiff versus our estimator on those simulators.

Proposed Experiments

The tasks are those of the MMD bootstrap paper (g-and-k with and without 10% outliers, the 7-parameter toggle switch), plus M/G/1 and stochastic Lotka–Volterra from the SNL and LFVI literature and the 12-parameter Hodgkin–Huxley model. For the dimension sweep, we add a generalized Lotka–Volterra network with $k$ species, simulated by Gillespie, whose interaction matrix gives $d$ from 4 to about 100. The primary metric is simulator calls needed to reach C2ST ≤ 0.55 against a reference bootstrap posterior computed with a 50× budget. C2ST is not taken against the Bayes posterior, because the MMD bootstrap targets a different, robust posterior. This choice isolates optimizer efficiency. Secondary metrics are posterior-mean error under contamination, simulation-based calibration, and per-observation diagnostics with L-C2ST to catch failures near prior boundaries.

Three checks decide the proposal. First, a log-log plot of calls-to-threshold against $d$: isotropic zeroth-order descent should grow roughly linearly in $d$, and pooled descent should track the effective rank of the reference posterior covariance. Second, on discontinuous simulators, the measured gradient variance with shared seeds should stay bounded, and posterior bias should stay below autodiff's. Third, the random-subspace ablation must be clearly worse than the pooled subspace at equal rank. Otherwise the gain comes from low rank alone, and the proposal reduces to applying SubZero to simulators.