Diffusion posterior sampling for simulation-based inference in tall data settings
Julia Linhart, Gabriel Victorino Cardoso, Alexandre Gramfort, Sylvain Le Corff, Pedro L. C. Rodrigues
TL;DR
This work tackles inference for complex simulators in tall data settings by marrying score-based diffusion modeling with compositional posterior scores. It introduces exact and second-order approximations to the diffusion of the tall posterior, enabling deterministic score-based samplers (e.g., DDIM) to replace Langevin steps used in prior tall-data SBI methods. The proposed GAUSS and JAC algorithms demonstrate speedups, improved stability, and robust performance across Gaussian toys, SBI benchmarks, and a real neural mass model, highlighting the practical impact of diffusion-based tall-data inference. Overall, the method enhances simulation-based inference by providing scalable, amortized, and compositionally accurate posterior sampling without costly Langevin dynamics.
Abstract
Identifying the parameters of a non-linear model that best explain observed data is a core task across scientific fields. When such models rely on complex simulators, evaluating the likelihood is typically intractable, making traditional inference methods such as MCMC inapplicable. Simulation-based inference (SBI) addresses this by training deep generative models to approximate the posterior distribution over parameters using simulated data. In this work, we consider the tall data setting, where multiple independent observations provide additional information, allowing sharper posteriors and improved parameter identifiability. Building on the flourishing score-based diffusion literature, F-NPSE (Geffner et al., 2023) estimates the tall data posterior by composing individual scores from a neural network trained only for a single context observation. This enables more flexible and simulation-efficient inference than alternative approaches for tall datasets in SBI. However, it relies on costly Langevin dynamics during sampling. We propose a new algorithm that eliminates the need for Langevin steps by explicitly approximating the diffusion process of the tall data posterior. Our method retains the advantages of compositional score-based inference while being significantly faster and more stable than F-NPSE. We demonstrate its improved performance on toy problems and standard SBI benchmarks, and showcase its scalability by applying it to a complex real-world model from computational neuroscience.
