arXiv:2609.02622cs.LGSep 2026

Manuscript Offprint

arXiv:2609.02622

Source Distribution Estimation by Posterior Averaging

Trung-Dung Hoang, Lisa M. Koch

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

Abstract

Simulation-based science often requires a distribution over simulator parameters whose push-forward reproduces a set of real observations: this is the source distribution estimation (SDE) problem. Existing methods fit the source against a likelihood surrogate trained once from a fixed proposal prior. Their objective is therefore stated only in terms of the surrogate instead of the true simulator, which may fail for inaccurate areas in parameter space where the surrogate was never trained. We instead solve SDE by expectation maximization: an E-step trains an amortized posterior on fresh simulations from the current source estimate, and an M-step refits the source to the average of that posterior over the observed data. We give two parameterizations, (1) separate source and posterior flows and (2) a single shared conditional flow. We evaluate our method on three benchmark tasks under both broad and misspecified initial priors. Both improve on existing fixed surrogate approaches and on iterated variants of each, most clearly on Lotka–Volterra, where no baseline falls below 0.96 data-space C2ST while our methods reach 0.64-0.68 in three of four initial-prior settings.

1 Introduction

Researchers often encode their knowledge of a system as a simulator in many domains such as astrophysics, epidemiology, or neuroscience: given parameters, one can generate synthetic observations and study how the system works internally [Cranmer et al., 2020]. However, what is typically available is not the distribution of parameters but a distribution of real observations. Therefore, to run the simulator consistently with reality, one must infer a distribution over parameters that is compatible with the data. This identification problem is known as Source Distribution Estimation (SDE) [Vandegar et al., 2021, Vetter et al., 2024]. Formally, the simulator is represented as p(x∣θ)p(x \mid \theta), where, given parameter θ\theta, we can sample x∼p(x∣θ)x \sim p(x \mid \theta) via simulation, but the density p(x∣θ)p(x \mid \theta) itself is intractable. Given a dataset D={x1,…,xn}\mathcal{D} = \{x_1, \ldots, x_n\} of real observations with empirical distribution po(x)p_o(x), we need to find the source distribution q(θ)q(\theta) such that q(x)=∫p(x∣θ)q(θ) dθq(x) = \int p(x \mid \theta) q(\theta) \, d\theta matches po(x)p_o(x). Throughout this paper we assume the simulator p(x∣θ)p(x \mid \theta) is a black box: we can draw forward samples x∼p(x∣θ)x \sim p(x \mid \theta) for any θ\theta, but we have no access to the simulator's implementation or gradients

Preprint.

∇θp(x∣θ)\nabla_{\theta} p(x \mid \theta). This is the common setting for licensed, proprietary scientific simulators [Yao et al., 2026], and for simulators with discrete or combinatorial internal stochasticity [Warne et al., 2019].

Existing methods [Vandegar et al., 2021, Vetter et al., 2024] often build a differentiable surrogate of the simulator by sampling θ\theta from a distribution π(θ)\pi(\theta) (we call this initial prior) and running the simulator forward to generate training data. The prior is then optimized so that the resulting marginal matches po(x)p_o(x) under the surrogate. However, when the surrogate is inaccurate in regions explored by the learned source, agreement under the surrogate need not imply agreement under the true simulator. Here, we instead propose an iterative approach Posterior Averaging (PA) where, at each round, we learn the posterior from data simulated under the current source estimate and construct the next source as the posterior averaged over the observed data. We show that this procedure implements an Expectation-Maximization scheme [Dempster et al., 1977] whose induced-data KL decreases monotonically at every iteration in the idealized setting. If the iteration converges, the resulting source necessarily satisfies a self-consistency condition with respect to the true likelihood: the source equals the average of the true posteriors it induces over real data. Since multiple source distributions can induce the same marginal, q(θ)q(\theta) is generally not identifiable from po(x)p_o(x). We therefore evaluate methods by how well the recovered q(θ)q(\theta) reproduces the push-forwarded observation distribution, rather than by recovery of a single "true" source.

References (25)