Manuscript Offprint
arXiv:2610.35442Simulation-Efficient Double-Flow Neural Posterior Estimation for Agent-Based Models
Abstract
Neural posterior estimation (NPE) enables Bayesian inference of the posterior parameter in agent-based models (ABMs) with intractable likelihoods, but simulating training data can be computationally expensive. We propose Double-Flow Neural Posterior Estimation (DF-NPE), which combines learned time-series summaries with two conditional normalizing flows for synthetic-data generation and posterior estimation. The framework supplements direct simulations with synthetic training pairs and supports both pooled and ordered training strategies. Experiments in two settings of the Brock-Hommes asset-pricing model show that DF-NPE can reduce direct simulations by 90 percent while achieving lower mean posterior discrepancies and runtime than standard NPE. Performance varies with the allocation of directly simulated and synthetic data and the training strategy. These results establish learned summary augmentation as a practical approach to reducing simulation costs for Bayesian posterior inference of parameters in ABMs.
Keywords: Agent-based models; Bayesian inference; Simulation-based inference; Neural posterior estimation; Normalising flows; Synthetic data; Latent-surrogate augmentation
1 Introduction
Agent-based models (ABMs) are able to describe macroscopic phenomena through the heterogeneous decisions and their interactions of individual agents. Applying these models in realistic analysis requires inference about their behavioural parameters (Windrum et al., 2007; Grazzini et al., 2017). Bayesian inference describes plausible parameter values and uncertainty about them through a posterior distribution. For many ABMs, however, the likelihood is intractable or expensive to evaluate. Simulation-based inference (SBI) uses model-simulated data to estimate the posterior, which requires the number and cost of simulator calls a practical constraint on calibration (Beaumont et al., 2009; Lux, 2018).
With the rapid development of machine learning, the neural posterior estimation (NPE) has been widely used in posterior inference in ABMs, which learns a conditional density from simulated parameter-data pairs (Cranmer et al., 2020). Its sequential variant directs later simulations towards parameter regions relevant to a particular observation (Greenberg et al., 2019). Once fitted, the estimator generates posterior draws without further simulator calls. For ABMs, Shiono (2021) applied BayesFlow to Bayesian parameter estimation, and Dyer et al. (2024) studied neural inference with learned time-series summaries and evaluated recovery of the full posterior distribution. The remaining simulation cost lies in producing the training pairs, whose number must be weighed against the quality of the resulting posterior.
Nowadays, there has been more and more studies in SBI investigating approaches to reduce the cost of obtaining these simulated pairs or the need for them. Sequential proposals concentrate simulator calls in relevant parameter regions. When simulators at several fidelity levels are available, multilevel neural inference can improve accuracy under a fixed computational budget (Hikida et al., 2025). Surrogates approximate parts of the simulation or inference procedure: Lamperti et al. (2018) use machine-learning surrogates to explore ABM parameter spaces, while Barde (2024) uses Gaussian-process surrogates for Bayesian estimation. Neural emulators approximate simulator likelihoods (Lueckmann et al., 2019), and sequential methods can jointly learn likelihood and posterior approximations (Wiqvist et al., 2021). Additionally, for posterior training itself, Refaeli et al. (2025) use a neural density surrogate to replace simulator calls in later sequential rounds. Generated pairs can enlarge a training set, but they follow the learned surrogate distribution. Their contribution to posterior recovery therefore depends on the surrogate approximation and on how they are combined with direct simulations. We examine this question when the surrogate generates learned summaries and the representation changes across rounds.
In this paper, we investigate our Double-Flow neural posterior estimation (DF-NPE) framework using a recurrent encoder to map simulated trajectories to parameter-predictive summaries. The first conditional flow generates summaries given model parameters, and then the second estimates the parameter posterior given a summary. Generation takes place in this learned space rather than the full trajectory space. Similar to the sequential variants of NPE, at each sequential round, direct simulations update the encoder and surrogate. We then re-encode stored trajectories and regenerate synthetic summaries so that both data sources use the current representation. Within this procedure, we vary the allocation between directly-simulated and synthetic pairs and their order during posterior training. Mixed training pools the two sources, Synthetic-to-Simulation and Simulation-to-Synthetic use them in successive stages. Two settings of the Brock–Hommes model allow us to assess posterior recovery for heterogeneous forecasting parameters against approximate ground-truth posteriors obtained from tractable transition likelihoods. These comparisons extend the simulation-efficiency question studied by Dyer et al. (2024) to the use of generated training data in sequential neural posterior estimation.
The contributions of this article are to provide:
-
a sequential DF-NPE procedure that combines learned time-series summaries, conditional latent generation and posterior estimation;
-
an evaluation of directly-simulated and synthetic data allocations through full-posterior discrepancies, predictive checks and recorded computational cost;
-
a comparison of posterior-training strategies and frozen-component controls that characterise when augmentation improves posterior recovery.
NPE learns this conditional relationship from simulated parameter-data pairs, using summary statistics to represent time-series observations (Papamakarios and Murray, 2016). For prior draws and trajectories , its training objective is
Conditioning the fitted estimator on then yields posterior samples without further simulator calls. Sequential neural posterior estimation (SNPE) concentrates simulations in parameter regions relevant to the observation over successive rounds. Starting from , round generates pairs by sampling and . The fitted posterior then supplies the proposal for the next round. We use automatic posterior transformation, also known as SNPE-C, to account for the resulting non-prior proposals (Greenberg et al., 2019).
In our study, we propose a Double-Flow NPE (DF-NPE) framework which extends this procedure by learning a second conditional density that supplies additional training summaries. At round , the recurrent encoder produces the learned summary statistics and . We refer to as a latent summary, which the surrogate learns to generate. A latent-surrogate flow generates summaries given parameters, while a posterior flow learns the reverse conditional relationship, which are both based on masked autoregressive flows (MAFs) (Papamakarios et al., 2017). Normalising flows transform a simple base distribution through invertible mappings and evaluate the resulting density (Rezende and Mohamed, 2015; Cai et al., 2024). Specifically, let , where and , according to the change-of-variables formula, we can obtain that
where the Jacobian determinant accounts for the local volume change induced by the transformation.
Additionally, we also propose three strategies using the same sequence of simulation, summary learning, latent generation and sequential proposal updates for our DF-NPE framework. The choice of strategy enters at posterior training, where it determines the data-source order and stopping rule. We call simulator-generated trajectories and their encoded summaries directly-simulated, and surrogate-generated latent pairs synthetic. We also present the resulting sequential procedure in Figure 1.
2.1 Flow 1: Learning summaries and generating synthetic data
In our DF-NPE, the first normalising flows are able to generate statistical summaries which avoids modelling complete trajectories, but the encoder must retain information about the parameters. We learn summaries by parameter regression, following the semi-automatic construction of Fearnhead and Prangle (2012) and its neural-network implementation in Jiang et al. (2017). The recurrent embedding network in this work learns summary statistics from the temporal structure of the trajectories. The resulting posterior inference depends on the parameter information retained in these summaries (Blum et al., 2013). Although we can obtain summarizing statistic cheaper than directly calling the model simulator in this approach, more summary information does not automatically improve inference. For example, previous study in a Schelling segregation ABM showed that adding spatial or temporal summaries alone did not consistently help (Dignum et al., 2025).
Let be the parameter proposal used in round , with . The accumulated directly-simulated data comprise
The round index identifies the proposal used to generate each data block. A gated recurrent unit (GRU) encoder (Cho et al., 2014) and an auxiliary head predict standardised parameters. Architecture and optimisation settings are given in Appendix A. At round k, the encoder and head
A Shared data generation

Final posterior becomes the next proposal ; repeat for
Figure 1: DF-NPE with three posterior-training strategies. (A) Direct simulations train the encoder and latent-surrogate flow; stored trajectories are re-encoded, and the current surrogate generates synthetic summaries from retained parameter proposals. (B) The posterior flow is trained using Mixed, Synthetic-to-Simulation or Simulation-to-Synthetic, with the encoder and surrogate held fixed. Blue and teal denote directly-simulated and synthetic data, respectively. The dashed arrow indicates that the fitted posterior, conditioned on the observed summary, supplies the proposal for the next round.
minimise
where and standardises parameters using the accumulated directly-simulated training set. After each encoder update, every stored trajectory is re-encoded. The resulting bank
expresses all directly-simulated summaries in the current representation. The observed trajectory is encoded with the same encoder. This shared representation provides the training space for the latent surrogate and the posterior flow.
We then fit the latent-surrogate MAF to the re-encoded directly-simulated bank by conditional maximum likelihood:
The latent surrogate depends on the current encoder and on the parameter regions covered by direct simulations. Whenever either fitted component changes, we regenerate the synthetic summaries to keep them in the current representation. For each retained proposal , synthetic pairs are generated as , . Their union forms , with each block retaining its proposal identity. We use these synthetic pairs only to train the posterior flow. The encoder and latent surrogate are fitted exclusively to direct simulator output.
2.2 Flow 2: Posterior learning with directly-simulated and synthetic data
In our DF-NPE, we obtain the directly-simulated and synthetic summary banks after the first flow, which supply the training pairs for the posterior MAF. Training uses sequential neural posterior estimation with automatic posterior transformation (Greenberg et al., 2019), implemented with the sbi toolkit (Tejero-Cantero et al., 2020). In the prior round, a minibatch B has loss
Later rounds use the atomic loss. For each , the candidate set contains the paired parameter and contrasting parameters drawn from the minibatch. Defining the log score gives
The prior-density adjustment distinguishes this objective from uncorrected conditional likelihood on non-prior simulations. Each data block retains its generating proposal when the training source changes. This correction addresses parameter sampling; representation loss and surrogate error require the separate diagnostics reported below.
Directly-simulated pairs anchor training to simulator output, while synthetic pairs add draws from the learned conditional summary distribution. Their allocation determines bank composition; their training schedule determines how the posterior estimator encounters each source. Appendix A characterises the resulting augmented distribution. Let and denote the empirical distributions over directly-simulated and synthetic pairs, including their proposal provenance. At posterior update , a source weight specifies
This equation specifies source sampling rather than a decomposition of the atomic loss: pooled minibatches can contain contrastive parameters from both sources. With , the direct fraction is
Mixed training shuffles the pooled bank throughout optimisation, so
where U is determined by validation-based early stopping. Individual minibatches need not reproduce the exact global source ratio.
For ordered training, let and denote the directly-simulated and synthetic update budgets. Synthetic-to-Simulation first uses generated pairs and then continues from the resulting weights using directly-simulated pairs:
Simulation-to-Synthetic reverses the stages while retaining their source-specific update budgets:
Both stages are repeated within every round, with in the ordered experiments. We also provide more implementation details in Appendix A.2.
2.3 Sequential inference and simulation budgets
The training strategies of DF-NPE operate within the same sequential loop. Each round updates the encoder, re-encodes stored trajectories and regenerates the synthetic bank. During posterior training, the encoder and surrogate remain fixed. In the ordered implementation, posterior weights continue between stages, but each stage resets Adam. A fresh posterior flow is initialised in the next round because the encoder changes. After posterior training, the final estimate determines the next proposal
We retain each proposal together with its conditioning summary and normalisation. The training strategy consequently affects later proposals and training data as well as the current posterior. Comparisons between strategies therefore evaluate complete sequential procedures.
These repeated updates also determine the computational budget. With K rounds and final bank sizes , each round adds direct simulations. At round k, the bank sizes are
These expressions assume that the budgets are divisible by K and count only valid accepted pairs. The final bank has pairs and direct fraction . Because synthetic banks are regenerated, the total accepted synthetic generation is
For ten rounds this equals , rather than . Direct simulator calls, final bank sizes, regenerated pairs and optimisation updates therefore measure different aspects of computational cost. Here, each round also updates the encoder and latent surrogate before posterior training. The encoder is then held fixed, whereas the embedding network in their algorithm is learned jointly with the posterior estimator. The three branches in Algorithm 1 specify the data source and stopping rule for each posterior-training stage. In the algorithm, for Mixed and for ordered training. The stage lists are rebuilt in every round, and the proposal is updated only after all stages finish. More details are provided in Appendix A.
Algorithm 1: Sequential DF-NPE with three training strategies
Input: Prior , simulator , observation , rounds , final bank sizes , strategy , minibatch size and ordered-stage budgets .
Output: Posterior estimate .
Set and
for do
Draw pairs , ; set
Update by parameter regression; re-encode all stored trajectories as and set
Fit by conditional maximum likelihood on only
Rebuild : for each , draw pairs , ; retain the source-proposal label
Initialise a posterior flow with pooled-bank normalisation; keep the encoder, surrogate and normalisation fixed during posterior training
if
Set the stage list ; shuffle the pooled bank and use validation-based early stopping
else if
Set ; use synthetic updates followed by direct updates
else
Set for Simulation-to-Synthetic; use direct updates followed by synthetic updates
foreach bank , in the listed order do
Attach retained proposals to the data blocks in ; shuffle the bank and initialise Adam for this stage
repeat
Draw a minibatch of size from
if then
Compute the conditional negative log-likelihood:
else
For each , form from and contrasting parameters sampled from the other minibatch entries
Evaluate for , with
Compute the atomic classification loss:
Take an Adam update of using
until the selected stopping rule is met for this stage
Carry into the next stage without reinitialising the posterior flow, if a second stage remains
Condition the final posterior on and set ; retain the proposal with its conditioning, prior support and normalisation
3 Numerical Experiments
In this section, we evaluate DF-NPE in two settings of the Brock–Hommes model, following the benchmark studied by Dyer et al. (2024). Because the model has a tractable transition likelihood, we can obtain its approximate ground-truth posteriors allowing us to assess how well DF-NPE recovers parameter uncertainty. We first vary the proportion of directly-simulated and synthetic pairs to examine posterior recovery under different simulation budgets. We then compare the three posterior-training strategies at shared allocations and assess their computational cost. Posterior plots illustrate the recovered distributions, and boxplots show how discrepancies and runtime vary across repeated fits. Supplementary equal-budget comparisons, predictive checks and frozen-component controls also help interpret these results.
3.1 Performance metrics
Assessing Bayesian calibration requires comparing posterior distributions as well as parameter estimates. We therefore use joint Wasserstein distance (WASS) and squared maximum mean discrepancy (MMD ) to evaluate posterior recovery. Both metrics compare the estimated posterior Q with the approximate ground-truth posterior as reference for the same observed trajectory . We compute them using reference draws and estimated draws , with . The resulting scores are empirical comparisons and retain Monte Carlo error from both samples. Posterior-mean error and posterior-predictive checks provide additional assessments, which will be further discussed in Appendix B.1.
Wasserstein distance
Wasserstein distance measures the minimum cost of transporting mass between the two empirical posterior distributions (Bernton et al., 2019). We use first-order Wasserstein distance with Euclidean transport cost,
where contains non-negative transport matrices with row sums 1/n and column sums 1/m. The transport cost is computed in the joint parameter space, so it responds to differences in location, spread and dependence. This distinguishes it from distances based only on posterior means or averaged univariate marginals. A lower value indicates closer agreement with the reference posterior.
Squared maximum mean discrepancy
MMD compares kernel mean embeddings of probability distributions in a reproducing kernel Hilbert space (Gretton et al., 2012). Its population squared form is
We estimate squared MMD by excluding the within-sample diagonal terms,
For a fixed kernel and independent draws, this is the usual unbiased estimator of squared MMD. We use a Gaussian kernel with a reference-based scale,
Here c is based on median Euclidean distance, rather than the squared-distance convention used in some Gaussian kernels. Under this common kernel, a lower MMD indicates closer posterior agreement, although the finite-sample estimate can be slightly negative. We retain the squared statistic throughout and report results separately for each setting and diagnostic kernel because their scales differ.
Computational cost
We assess computational efficiency through direct simulator calls and recorded end-to-end runtime. The latter includes simulation, neural training, synthetic generation, posterior sampling, input/output and plotting, but excludes separate sampling for posterior displays. We calculate speed-up by dividing the mean SNPE runtime by the corresponding workflow mean. For the smooth setting, accuracy and runtime were measured in separate runs, and timing comparisons were not interleaved. The recorded speed-ups consequently describe the implemented workflows under these execution conditions.
3.2 Brock-Hommes model
The Brock–Hommes (BH) model describes an asset market in which agents choose among heterogeneous forecasting strategies (Brock and Hommes, 1998). Each strategy h has a trend coefficient and bias , and its performance determines the fraction of agents using it. Writing the price deviation from fundamental value as , the dynamics are
(22)
Here is the fraction using strategy h, R is the gross risk-free return and controls choice intensity. We use four strategies and infer . These parameters describe the trend responses and forecasting biases of two strategies; the remaining coefficients are fixed at , and (Brock and Hommes, 1998; Dyer et al., 2024). The resulting posterior describes which combinations of these behavioural coefficients are compatible with the observed price dynamics.
We consider two settings. In the smooth setting, and the generating parameter is ; the independent priors are and . In the noisy setting, and the generating parameter is ; the independent priors are and . Both settings use , so “noisy” names the regime rather than an increase in innovation variance. Each simulator allocates 100 time steps and discards three deterministic initial values. Each setting is a separate inference task with its own fixed simulated observation, prior and reference posterior.
The Gaussian innovation in the price equation gives the conditional transition density
We use this transition density to construct an approximate ground-truth posterior by likelihood-based MCMC. The neural procedures are trained on simulated parameter–data pairs without evaluating the likelihood, so the approximate ground-truth posterior provides a reference for assessing posterior recovery.
3.2.1 Experimental setup
Throughout the experiments, SNPE denotes the baseline method, and DF-NPE denotes the proposed framework. Mixed, Synthetic-to-Simulation and Simulation-to-Synthetic denote its three posterior-training strategies; thus, Mixed 3:7 denotes DF-NPE with Mixed training at a directly-simulated:synthetic ratio of 3:7. The approximate ground-truth posterior is obtained by likelihood-based MCMC and is subsequently called the reference posterior. In the boxplots, Mixed and the ordered-strategy labels identify DF-NPE configurations, while the label “Standard SNPE” denotes SNPE.
For each BH setting, we evaluate each main configuration across ten training seeds using a fixed simulated observation and 1,000 likelihood-based MCMC reference draws. Further experimental details are provided in Appendix B. All primary comparisons use ten sequential rounds and a final posterior-training bank of 10,000 pairs. Within this bank, Mixed allocates directly-simulated and synthetic pairs in ratios of 1:9, 3:7, 5:5, 7:3 or 9:1. These allocations require 1,000–9,000 direct simulations, compared with 10,000 for SNPE. The procedures also differ in representation learning, that is, SNPE learns its recurrent embedding jointly with the posterior, whereas DF-NPE uses the supervised encoder in Section 2. Their comparison therefore evaluates both the training-data allocation and the representation-learning procedure.
To compare the procedures at equal direct simulation budgets, we conduct a separate experiment in the smooth setting with five paired seeds. In this experiment, SNPE uses 1,000–9,000 directly-simulated pairs, matching the direct component of each Mixed bank. We compare the ordered strategies at ratios 1:9, 3:7 and 5:5, giving 120 ordered fits across two settings and ten seeds. Each strategy uses 500 updates per source per round, with batch size . This fixed update budget differs from the validation-based early stopping used by Mixed. Moreover, each fitted posterior supplies the next proposal, so a change in training strategy also changes the subsequent training banks.
We summarise the ten fits with boxplots of the discrepancies and runtime, using their medians, interquartile ranges and outliers to describe performance across seeds. Appendix C reports the corresponding means and sample standard deviations, whose rankings can differ from those of the medians. We also report descriptive paired-seed comparisons, while allowing each procedure to retain its own learned representation and subsequent proposals.
3.2.2 Results
Smooth setting
In the smooth BH setting, the approximate ground-truth posterior concentrates and near their upper prior boundaries and has narrow marginals for and . Figure 2 compares this structure with SNPE and DF-NPE using Mixed training at a directly-simulated:synthetic ratio of 3:7. The most visible difference concerns : the SNPE marginal extends towards smaller values, while Mixed places more mass near the upper boundary. Mixed nevertheless retains a broader marginal than the reference. These differences also appear in the bivariate distributions, where the concentration of posterior mass reflects the corresponding marginal shapes.
The repeated-fit results extend this comparison across all five allocations (Figure 3). Every Mixed allocation had lower median WASS and MMD than SNPE, including 1:9, which used 1,000 rather than 10,000 direct simulations. Increasing the direct fraction to 3:7 and then 5:5 lowered both

(a) Approximate ground truth
(b) SNPE
(c) DF-NPE
Figure 2: Posterior samples from the approximate ground truth, SNPE and DF-NPE for the smooth Brock–Hommes setting. DF-NPE uses Mixed training at a directly-simulated:synthetic ratio of 3:7. Diagonal panels show marginal posterior distributions as count histograms; upper-triangular panels show bivariate joint distributions as two-dimensional count histograms. Red lines and points denote the mean of the likelihood-based reference posterior. Darker and lighter colours indicate lower and higher sample counts, respectively, in the off-diagonal plots.
medians further. However, the boxes overlapped and showed substantial variation across fits, so the improvement in median performance did not separate all allocations clearly.
Beyond 5:5, increasing the direct fraction produced no further reduction in either median. The 7:3 and 9:1 allocations also contained high-discrepancy outliers, indicating that a larger directly-simulated bank did not consistently improve recovery. The mean scores give a slightly different ranking: 9:1 had the lowest mean WASS, while 5:5 had the lowest mean MMD (Table C.2). Thus, although all allocations improved on the baseline in both means and medians, their relative ranking depended on the metric and summary statistic.
The comparisons above hold the total bank size fixed while changing the number of direct simulations. When we instead matched the directly-simulated budget, Mixed reduced WASS in all 25 paired comparisons and MMD in 23 (Appendix C.2). This supports the complete DF-NPE procedure under the second budget comparison, including its different approach to representation learning.
Posterior agreement does not by itself determine how closely simulated trajectories reproduce the observation. We therefore also performed posterior-predictive checks in the smooth setting (Appendix B.1.2). SNPE had the lowest median-trajectory RMSE, whereas Mixed 5:5 had the lowest summary error, showing that these predictive criteria ranked the procedures differently.
Noisy setting
In the noisy setting, the reference posterior has broad marginals for and but concentrated marginals for and (Figure 4). Both displayed estimators reproduce this contrast, which appears as narrow bands in the joint distributions of trend coefficients and biases. They differ more visibly in , where Mixed places more mass towards the lower end of the support than SNPE. The bias marginals remain concentrated in both fits, although their locations and spreads differ from the reference. Recovery in this setting therefore involves reproducing both the broad trend-coefficient distributions and the narrow bias distributions.
Across repeated fits, the Mixed and SNPE discrepancy distributions overlapped more than in the smooth setting (Figure 5). Mixed 9:1 had the lowest median for both metrics, while 3:7 and 5:5

(a) Wasserstein distance.

(b) Squared maximum mean discrepancy.
Figure 3: Posterior discrepancies of SNPE and DF-NPE with Mixed training for the smooth Brock–Hommes setting. Results show WASS and MMD over ten fits per configuration using one fixed observation. Ratios denote directly-simulated:synthetic allocations; SNPE uses only direct simulations. White lines denote medians, boxes show the interquartile range, and whiskers extend to the most extreme values within 1.5 interquartile ranges.

(a) Approximate ground truth
(b) SNPE
(c) DF-NPE
Figure 4: Posterior samples from the approximate ground truth, SNPE and DF-NPE for the noisy Brock–Hommes setting. DF-NPE uses Mixed training at a directly-simulated:synthetic ratio of 3:7. Diagonal panels show marginal posterior distributions as count histograms; upper-triangular panels show bivariate joint distributions as two-dimensional count histograms. Red lines and points denote the mean of the likelihood-based reference posterior. Darker and lighter colours indicate lower and higher sample counts, respectively, in the off-diagonal plots.
also had lower medians than SNPE. The strongest simulation saving occurred at 1:9, but neither median improved on the baseline. Its mean discrepancies were nevertheless lower (Table C.2), so the 90% reduction in direct simulations was accompanied by improved average scores rather than lower median scores.
A different mean–median contrast appeared at 7:3. Its central scores were comparable to those of the other intermediate allocations, but both discrepancy distributions contained high-discrepancy outliers. In particular, its median MMD was lower than that of SNPE, while its mean was higher. These results explain why increasing the directly-simulated fraction cannot be interpreted as a steady improvement in posterior recovery.
Taken together, the allocation experiments identify 1:9 as the largest saving in direct simulations among the tested configurations, with lower mean discrepancies in both settings. The allocations giving the lowest median discrepancies differed, however: 5:5 in the smooth setting and 9:1 in the noisy setting. The choice of allocation therefore depends on the simulation budget and the posterior accuracy required for the task.

(a) Wasserstein distance.

(b) Squared maximum mean discrepancy.
Figure 5: Posterior discrepancies of SNPE and DF-NPE with Mixed training for the noisy Brock–Hommes setting. Results show WASS and MMD over ten fits per configuration using one fixed observation. Ratios denote directly-simulated:synthetic allocations; SNPE uses only direct simulations. White lines denote medians, boxes show the interquartile range, and whiskers extend to the most extreme values within 1.5 interquartile ranges.
3.3 Further analysis
3.3.1 Comparison of posterior-training strategies
The allocation experiments used Mixed training throughout, leaving open whether the same banks are better used in successive stages. We examine this question by comparing Mixed with Synthetic-to-Simulation and Simulation-to-Synthetic at the shared allocations. Figures 6 and 7 show the resulting discrepancy distributions for the two settings.
In the smooth setting, Mixed had lower median discrepancies than either ordered strategy at 1:9 and 3:7. This separation became less clear at 5:5, where the boxes overlapped substantially and WASS and MMD gave different median rankings. Across these allocations, Synthetic-to-Simulation moved towards lower discrepancies as the directly-simulated fraction increased, whereas Simulation-to-Synthetic retained broad score distributions. Although ending with directly-simulated data improved some comparisons, it provided no consistent advantage across allocations.
The noisy setting showed a different pattern. Both ordered strategies had lower median discrepancies than Mixed at 1:9, and Synthetic-to-Simulation at 3:7 achieved the lowest medians for both metrics. Its WASS interquartile range was also compact, and WASS was lower than for the reverse order in all ten paired-seed comparisons (Appendix C.5). This advantage did not extend uniformly to 5:5: Synthetic-to-Simulation retained a low median but also contained high-discrepancy outliers, giving a less favourable mean ranking.
The posterior figure in Appendix C show how the ordered fits differ at 3:7. In the smooth setting, both spread more broadly than the reference, while keeping the other marginals concentrated. In the noisy setting, both reproduced the contrast between broad trend-coefficient marginals and narrow bias marginals, with differences in location and tail behaviour. These individual fits illustrate the posterior shapes underlying the discrepancy comparisons, without replacing the evidence across seeds.
The preferred strategy consequently depended on the setting and allocation. This comparison also includes differences beyond source order: Mixed uses early stopping, while each ordered stage uses 500 updates. Since the resulting posterior determines the next proposal, these training choices propagate into later data banks. The results therefore compare complete sequential procedures rather than isolate the effect of the final training source.
3.3.2 Computational cost
The discrepancy improvements must also be considered alongside the time required to obtain them. Figure 8 shows that Mixed 1:9 had the lowest median runtime in both settings, with all displayed Mixed configurations below the SNPE median. The mean runtimes followed the same comparison with the baseline across all five allocations (Table C.2). At 1:9, Mixed averaged 10.15 minutes for smooth BH and 15.97 minutes for noisy BH, compared with 65.45 and 67.60 minutes for SNPE.
Ordered training generally required more time and showed greater variation, particularly for Synthetic-to-Simulation at noisy 1:9. At this allocation, its broad runtime distribution contrasted with the shorter Mixed runs despite an identical direct simulation budget. Thus, the lower noisy-setting discrepancies obtained by ordered training came with additional computational cost.
The difference at a shared directly-simulated budget reflects the other costs included in each workflow, including encoder fitting, surrogate fitting and posterior training. Synthetic generation also recurs after every encoder update, producing accepted pairs over ten rounds rather than only the final pairs. Together with the neural-training costs shown in Figure C.2, this repeated generation contributes to the measured runtime. A 90% reduction in direct simulations at 1:9 therefore need not produce a proportional reduction in total time.
3.3.3 Surrogate and augmentation diagnostics
The preceding comparisons establish the performance of DF-NPE as a complete procedure, but several components change together. To examine the contribution of augmentation under a fixed

(a) Wasserstein distance.

(b) Squared maximum mean discrepancy.
Figure 6: Posterior discrepancies of the three DF-NPE training strategies and SNPE for the smooth Brock–Hommes setting. Results show WASS and MMD over ten fits at directly-simulated:synthetic ratios of 1:9, 3:7 and 5:5. Syn.→Sim. and Sim.→Syn. denote Synthetic-to-Simulation and Simulation-to-Synthetic, respectively. White lines denote medians, boxes show the interquartile range, and whiskers extend to the most extreme values within 1.5 interquartile ranges.

(a) Wasserstein distance.

(b) Squared maximum mean discrepancy.
Figure 7: Posterior discrepancies of the three DF-NPE training strategies and SNPE for the noisy Brock–Hommes setting. Results show WASS and MMD over ten fits at directly-simulated:synthetic ratios of 1:9, 3:7 and 5:5. Syn.→Sim. and Sim.→Syn. denote Synthetic-to-Simulation and Simulation-to-Synthetic, respectively. White lines denote medians, boxes show the interquartile range, and whiskers extend to the most extreme values within 1.5 interquartile ranges.

(a) Smooth Brock-Hommes.

(b) Noisy Brock-Hommes.
Figure 8: End-to-end runtime of SNPE and the three DF-NPE training strategies for the smooth and noisy Brock–Hommes settings. Results show ten runs per configuration at directly-simulated:synthetic ratios of 1:9, 3:7 and 5:5, with runtime measured in minutes. White lines denote medians, boxes show the interquartile range, and whiskers extend to the most extreme values within 1.5 interquartile ranges.
representation, we held the encoder, surrogate, directly-simulated bank and posterior initialisation fixed. Both control arms used 1,000 posterior updates; the augmented arm additionally received synthetic pairs. Because these pairs replaced some directly-simulated data exposure within that budget, the comparison measures the effect of augmentation under a fixed update budget.
Under these controls, augmentation affected posterior recovery differently across settings. With Synthetic-to-Simulation sources at 1:9, it lowered diagnostic MMD in nine of ten smooth-setting pairs but worsened eight noisy-setting pairs. The surrogate checks also found positive mean excess discrepancies in every tested source configuration, indicating remaining differences between generated and directly encoded summaries. These findings help explain why the benefits of the complete procedure cannot be attributed to synthetic pairs alone. Appendix D reports the full control and surrogate results; predictive checks are reported in Appendix B.1.2.
4 Discussion and Conclusion
DF-NPE reduces the demand for direct simulations by generating additional training pairs in a learned summary space. Direct simulations update this space through the encoder and train the conditional surrogate, which then supplies synthetic summaries for posterior estimation. In the two Brock–Hommes settings, this procedure recovered posterior structure with fewer direct simulations and lower recorded runtimes than SNPE. These experiments extend the simulation-efficiency comparisons of Dyer et al. (2024) to the composition of the data used for neural posterior training.
The clearest saving occurred with Mixed 1:9, which used 1,000 direct simulations against 10,000 for SNPE. Its mean WASS and MMD were lower in both settings, although its noisy-setting medians did not improve on the baseline. Other allocations achieved lower discrepancies, so the largest simulation saving and the best posterior agreement occurred at different allocations. This distinction matters when selecting a budget: the repeated-fit distributions show the accuracy and variability associated with each choice, while the posterior figures reveal the corresponding distributional structure.
The way these pairs were used also affected recovery. Mixed performed favourably in the smooth setting, whereas Synthetic-to-Simulation at noisy 3:7 achieved the lowest median discrepancies among the tested strategies. A strategy that works well for one setting therefore need not be preferred in another. Moreover, each fitted posterior determines the next proposal, allowing training choices to affect subsequent data as well as the current fit. Together with the different stopping rules, this feedback explains why the strategy comparisons concern complete inference procedures.
The frozen-component controls provide a narrower view of synthetic augmentation within those procedures. Once the representation and surrogate were fixed, adding generated pairs improved some configurations and worsened others. This dependence on the fitted components is consistent with the augmented distribution in Appendix A, which contains both encoded simulator output and surrogate-generated summaries. Proposal correction adjusts for parameter sampling but does not remove differences between these conditional distributions. The observed gains therefore support evaluating augmentation as part of DF-NPE, with its allocation chosen according to posterior recovery.
That choice also determines computational cost. Mixed 1:9 had the lowest recorded runtime in both settings, while ordered training could take substantially longer at the same directly-simulated budget. The additional time includes re-encoding, surrogate fitting, repeated synthetic generation and posterior training. Evaluating direct calls together with total runtime consequently shows whether a reduction in simulation demand translates into a faster calibration procedure.
The present evidence comes from repeated fits to one simulated observation per setting, assessed against finite MCMC reference samples. Extending the evaluation to independent observations would allow simulation-based calibration to assess uncertainty more broadly (Talts et al., 2018; Hermans et al., 2022). Further ABM families would test the transfer of the allocation and strategy results, while applications to market data would also require checks for simulator misspecification (Ward et al., 2022; Schmitt et al., 2024).
Within the tested Brock–Hommes settings, DF-NPE shows that generated latent summaries can supplement a limited directly-simulated training set while retaining useful posterior information. Its practical value lies in making that substitution available within sequential posterior estimation, with the allocation and training strategy assessed through posterior recovery and computational cost.
References
Barde, S. (2024). Bayesian estimation of large-scale simulation models with Gaussian process regression surrogates. Computational Statistics & Data Analysis, 196:107972.
Beaumont, M. A., Cornuet, J.-M., Marin, J.-M., and Robert, C. P. (2009). Adaptive approximate Bayesian computation. Biometrika, 96(4):983–990.
Bernton, E., Jacob, P. E., Gerber, M., and Robert, C. P. (2019). Approximate bayesian computation with the wasserstein distance. Journal of the Royal Statistical Society: Series B (Statistical Methodology), 81(2):235–269.
Blum, M. G. B., Nunes, M. A., Prangle, D., and Sisson, S. A. (2013). A comparative review of dimension reduction methods in approximate Bayesian computation. Statistical Science, 28(2):189–208.
Brock, W. A. and Hommes, C. H. (1998). Heterogeneous beliefs and routes to chaos in a simple asset pricing model. Journal of Economic Dynamics and Control, 22(8–9):1235–1274.
Cai, Z., Tang, J., Mukherjee, S., Li, J., Schönlieb, C.-B., and Zhang, X. (2024). Nf-ula: Normalizing flow-based unadjusted langevin algorithm for imaging inverse problems. SIAM Journal on Imaging Sciences, 17(2):820–860.
Cho, K., van Merriënboer, B., Gulcehre, C., Bahdanau, D., Bougares, F., Schwenk, H., and Bengio, Y. (2014). Learning phrase representations using RNN encoder-decoder for statistical machine translation. In Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP), pages 1724–1734. Association for Computational Linguistics.
Cranmer, K., Brehmer, J., and Louppe, G. (2020). The frontier of simulation-based inference. Proceedings of the National Academy of Sciences, 117(48):30055–30062.
Dignum, E., Choudhary, H., and Lees, M. (2025). Simulation-based inference in agent-based models using spatio-temporal summary statistics. In Computational Science – ICCS 2025 Workshops, volume 15908 of Lecture Notes in Computer Science, pages 239–254. Springer.
Dyer, J., Cannon, P., Farmer, J. D., and Schmon, S. M. (2024). Black-box bayesian inference for agent-based models. Journal of Economic Dynamics and Control, 161:104827.
Fearnhead, P. and Prangle, D. (2012). Constructing summary statistics for approximate bayesian computation: semi-automatic approximate bayesian computation. Journal of the Royal Statistical Society: Series B (Statistical Methodology), 74(3):419–474.
Gelman, A., Meng, X.-L., and Stern, H. (1996). Posterior predictive assessment of model fitness via realized discrepancies. Statistica Sinica, 6(4):733–760.
Grazzini, J., Richiardi, M. G., and Tsionas, M. (2017). Bayesian estimation of agent-based models. Journal of Economic Dynamics and Control, 77:26–47.
Greenberg, D. S., Nonnenmacher, M., and Macke, J. H. (2019). Automatic posterior transformation for likelihood-free inference. In Proceedings of the 36th International Conference on Machine Learning, volume 97 of Proceedings of Machine Learning Research, pages 2404–2414. PMLR.
Gretton, A., Borgwardt, K. M., Rasch, M. J., Schölkopf, B., and Smola, A. (2012). A kernel two-sample test. Journal of Machine Learning Research, 13(25):723–773.
Hermans, J., Delaunoy, A., Rozet, F., Wehenkel, A., Begy, V., and Louppe, G. (2022). A trust crisis in simulation-based inference? your posterior approximations can be unfaithful. Transactions on Machine Learning Research.
Hikida, Y., Bharti, A., Jeffrey, N., and Briol, F.-X. (2025). Multilevel neural simulation-based inference. In Advances in Neural Information Processing Systems, volume 38, pages 52468–52502. Curran Associates, Inc.
Jiang, B., Wu, T.-Y., Zheng, C., and Wong, W. H. (2017). Learning summary statistic for approximate bayesian computation via deep neural network. Statistica Sinica, 27(4):1595–1618.
Kingma, D. P. and Ba, J. (2015). Adam: A method for stochastic optimization. In Proceedings of the 3rd International Conference on Learning Representations.
Lamperti, F., Roventini, A., and Sani, A. (2018). Agent-based model calibration using machine learning surrogates. Journal of Economic Dynamics and Control, 90:366–389.
Lueckmann, J.-M., Bassetto, G., Karaletsos, T., and Macke, J. H. (2019). Likelihood-free inference with emulator networks. In Proceedings of The 1st Symposium on Advances in Approximate Bayesian Inference, volume 96 of Proceedings of Machine Learning Research, pages 32–53. PMLR.
Lueckmann, J.-M., Boelts, J., Greenberg, D. S., Gonçalves, P. J., and Macke, J. H. (2021). Benchmarking simulation-based inference. In Proceedings of the 24th International Conference on Artificial Intelligence and Statistics, volume 130 of Proceedings of Machine Learning Research, pages 343–351. PMLR.
Lux, T. (2018). Estimation of agent-based models using sequential monte carlo methods. Journal of Economic Dynamics and Control, 91:391–408.
Papamakarios, G. and Murray, I. (2016). Fast epsilon-free inference of simulation models with bayesian conditional density estimation. In Advances in Neural Information Processing Systems, volume 29, pages 1028–1036.
Papamakarios, G., Pavlakou, T., and Murray, I. (2017). Masked autoregressive flow for density estimation. In Advances in Neural Information Processing Systems, volume 30, pages 2338–2347.
Refaeli, D., Marcus-Kalish, M., and Steinberg, D. M. (2025). Reducing calls to the simulator in simulation based inference (SBI). arXiv preprint arXiv:2504.11925.
Rezende, D. and Mohamed, S. (2015). Variational inference with normalizing flows. In Proceedings of the 32nd International Conference on Machine Learning, volume 37 of Proceedings of Machine Learning Research, pages 1530–1538. PMLR.
Schmitt, M., Bürkner, P.-C., Köthe, U., and Radev, S. T. (2024). Detecting model misspecification in amortized Bayesian inference with neural networks. In Pattern Recognition, volume 14264 of Lecture Notes in Computer Science, pages 541–557. Springer.
Shiono, T. (2021). Estimation of agent-based models using bayesian deep learning approach of BayesFlow. Journal of Economic Dynamics and Control, 125:104082.
Talts, S., Betancourt, M., Simpson, D., Vehtari, A., and Gelman, A. (2018). Validating Bayesian inference algorithms with simulation-based calibration. arXiv preprint arXiv:1804.06788. Revised 2020.
Tejero-Cantero, A., Boelts, J., Deistler, M., Lueckmann, J.-M., Durkan, C., Gonçalves, P. J., Greenberg, D. S., and Macke, J. H. (2020). sbi: A toolkit for simulation-based inference. Journal of Open Source Software, 5(52):2505.
Ward, D., Cannon, P., Beaumont, M., Fasiolo, M., and Schmon, S. M. (2022). Robust neural posterior estimation and statistical model criticism. In Advances in Neural Information Processing Systems, volume 35, pages 33845–33859.
Windrum, P., Fagiolo, G., and Moneta, A. (2007). Empirical validation of agent-based models: Alternatives and prospects. Journal of Artificial Societies and Social Simulation, 10(2):8.
Wiqvist, S., Frellsen, J., and Picchini, U. (2021). Sequential neural posterior and likelihood approximation. arXiv preprint arXiv:2102.06522.
A Implementation details of DF-NPE
A.1 Architecture and optimisation
Table A.1 gives the shared architecture and Mixed optimisation settings. Neural network parameters are updated with Adam (Kingma and Ba, 2015).
Table A.1: Architecture and optimisation settings for Mixed and SNPE. Sequential budgets and allocations are specified in Section 3.2.1.
| Component | Setting |
|---|---|
| Supervised encoder | Two-layer GRU, hidden width 32 and latent dimension 8; parameter-regression head with one 32-unit hidden layer |
| Encoder fit | Adam, learning rate , batch size 100, at most 100 epochs; latent extraction batch size 256 |
| Conditional latent surrogate | Five-transform MAF with 50 hidden features; learning rate , batch size 100, 10% validation and early stopping after 10 validation epochs |
| Latent posterior estimator | Five-transform SNPE-C MAF with 50 hidden features; learning rate , batch size 200, 10% validation and early stopping after 20 validation epochs |
| SNPE comparator | Jointly trained two-layer GRU embedding and MAF posterior through the project defaults |
| Execution | Timing runs capped neural fits at 500 epochs |
For ordered training, the surrogate settings in Table A.1 use a maximum of 100 epochs. Posterior stages use Adam at and the update counts and batch size in Section 3.2.1. Incomplete minibatches are dropped, and shuffled data loaders are cycled until the required number of updates is reached. Post-sequential fine-tuning is disabled.
Timing runs use one simulator worker on macOS 15.6.1 ARM64 with Python 3.12.7; timing boundaries follow Section 3.1.
A.2 Source sampling and comparison controls
The source-sampling distribution is defined in Equation (10), with the three schedules in Equations (12)–(14). Mixed uses throughout; ordered training switches from 0 to 1 or from 1 to 0 after 500 updates. This specifies source sampling, not a decomposition of the atomic SNPE-C loss: pooled minibatches can contain contrastive atoms from both sources.
A.3 Meaning of the augmented distribution
Proposal correction does not correct surrogate error. If is the encoded simulator distribution, a constant directly-simulated fraction gives the population mixture
Under adequate proposal support and ideal density estimation, the target is proportional to . This expression characterises the training target, without establishing convergence or eliminating representation, surrogate and density-estimation errors.
B Further experimental details
B.1 Scoring details and predictive checks
Each configuration uses seeds 123, 456, 789, 101, 202, 303, 404, 505, 606 and 707 for the same observation. Budgets and allocations are specified in Section 3.2.1.
The six historical smooth-regime seed-123 configurations contain 10,000 draws: distributional scoring uses the archived 1,000-draw subsample, while MAE retains the full mean. Other numerical sample sets contain 1,000 draws. The MAE estimates therefore have unequal Monte Carlo precision in this historical subset.
B.1.1 Posterior-mean parameter error
For the known generating parameter , we report the mean absolute error of the estimated posterior mean,
where and is the number of draws used to estimate the mean. Appendix B.1 documents the historical sample-count exception for this statistic. Lower MAE indicates a posterior mean closer to the generating coefficients. It does not establish accurate posterior uncertainty: the reference posterior mean itself need not equal for a finite observed trajectory. Accordingly, MAE is secondary to the two distributional discrepancies when assessing posterior recovery (Lueckmann et al., 2021).
B.1.2 Posterior predictive scores
Posterior predictive checks assess model fit by comparing observations with replicated data drawn under the posterior (Gelman et al., 1996). For smooth Brock–Hommes, let , , denote trajectories simulated from posterior draws per fit. For the observed trajectory , let be the empirical a-quantile of the simulated values at time . The reported pointwise-median RMSE and observed-point coverage are
(B.2)
where is the stored trajectory length. The six-summary error uses containing the trajectory mean, standard deviation, minimum, maximum, last-minus-first value and correlation with a linear time index. The standard deviation uses divisor ; the time correlation is set to zero for a constant trajectory. For each component, we compute the median across predictive trajectories and report
These summaries are not rescaled before averaging, so their contributions depend on their numerical scales. This trajectory-summary error is distinct from , which concerns parameter means.
Lower RMSE and summary MAE indicate closer predictive agreement under these particular losses. Coverage is the fraction of observed time points inside pointwise bands, not repeated-observation parameter coverage or simultaneous trajectory coverage. Because interval widths are unavailable, larger coverage alone cannot establish better predictive performance.
Table B.1 gives the complete predictive scores. Some errors are larger for the finite reference sample than for fitted estimators; this unresolved discrepancy does not establish superior posterior recovery by a fitted method.
Table B.1: Smooth Brock–Hommes: posterior-predictive checks over ten fits, using 200 posterior draws per fit returned to the simulator. Entries report mean ± sample standard deviation.
| Workflow | 90% coverage | Median RMSE | Summary MAE |
|---|---|---|---|
| 1:9 | |||
| 3:7 | |||
| 5:5 | |||
| 7:3 | |||
| 9:1 | |||
| SNPE | |||
| Reference sample |
B.1.3 Posterior display conventions
Posterior displays use the pairplot implementation of Dyer et al. (2024), with 50-bin marginals, bivariate bins over task-specific prior ranges and blank lower triangles. Sample counts, scaling and seed selection follow Section 3.2.1.
B.2 Score harmonisation and provenance
The original ordered-suite diagnostics use mean marginal Wasserstein distances, a biased MMD estimator with a squared-distance kernel scale, and posterior-mean error relative to the reference mean. For comparison with Mixed, all 120 ordered final sample sets are rescored with the joint Euclidean Wasserstein cost, unbiased MMD and error relative to the generating parameter defined in Section 3.1. With equally weighted sample sets of the same size, joint Wasserstein is computed as the minimum-cost assignment divided by the sample count, which is equivalent to the empirical optimal-transport definition here.
For the six smooth Brock–Hommes seed-123 exceptions described above, seed 20260828 + 123 selects the 1,000-draw WASS and MMD subsample. Ordered provenance retains source paths, run fingerprints and sample hashes.
C Supplementary posterior and computational results
This appendix brings together posterior geometry, complete numerical comparisons and runtime breakdowns for the workflows evaluated in Section 3.
C.1 Posterior geometry
The ordered-strategy figure complements the approximate ground truth, SNPE and DF-NPE (Mixed, 3:7) displays in Figures 2 and 4.

(a) Smooth BH: Syn.→Sim.

(c) Noisy BH: Syn.→Sim.

(b) Smooth BH: Sim.→Syn.

(d) Noisy BH: Sim.→Syn.
Figure C.1: Posterior samples from the two ordered DF-NPE training strategies for the smooth and noisy Brock–Hommes settings at a directly-simulated:synthetic ratio of 3:7. Syn.→Sim. and Sim.→Syn. denote Synthetic-to-Simulation and Simulation-to-Synthetic, respectively. Diagonal panels show marginal posterior distributions as count histograms; upper-triangular panels show bivariate joint distributions as two-dimensional count histograms. Red lines and points denote the mean of the likelihood-based reference posterior. Darker and lighter colours indicate lower and higher sample counts, respectively, in the off-diagonal plots.
C.2 Comparisons at equal direct simulation budgets
Table C.1 compares Mixed with SNPE using the same direct simulation budget in the smooth setting. Five paired seeds are available for each allocation. The two procedures retain their respective representation-learning and training protocols.
Table C.1: Smooth Brock–Hommes: same-direct-budget comparisons over five paired seeds. Entries report mean ± sample standard deviation of SNPE-minus-Mixed discrepancies; positive values favour Mixed. Parentheses give improving seeds out of five.
| Ratio | Direct/round | WASS gain | gain | MAE gain |
|---|---|---|---|---|
| 1:9 | 100 | (5/5) | (3/5) | (5/5) |
| 3:7 | 300 | (5/5) | (5/5) | (5/5) |
| 5:5 | 500 | (5/5) | (5/5) | (5/5) |
| 7:3 | 700 | (5/5) | (5/5) | (5/5) |
| 9:1 | 900 | (5/5) | (5/5) | (5/5) |
C.3 Mixed allocations and SNPE
Table C.2: Mixed workflows and SNPE across the two Brock–Hommes settings. Entries are mean ± sample standard deviation over ten seeds. Scores and timing conventions follow Section 3.1. Ratios are directly-simulated: synthetic allocations; time is in minutes.
| Workflow | WASS | MAE to | Time (min) | Speed-up | |
|---|---|---|---|---|---|
| Smooth Brock–Hommes | |||||
| 1:9 | |||||
| 3:7 | |||||
| 5:5 | |||||
| 7:3 | |||||
| 9:1 | |||||
| SNPE | |||||
| Noisy Brock–Hommes | |||||
| 1:9 | |||||
| 3:7 | |||||
| 5:5 | |||||
| 7:3 | |||||
| 9:1 | |||||
| SNPE | |||||
C.4 Runtime phase breakdown

Figure C.2: Computational cost of SNPE and DF-NPE with Mixed training for the Brock–Hommes model, broken down by workflow phase. Stacked segments show median phase times in minutes over ten seeds; ratios denote directly-simulated:synthetic allocations. Colours identify the computational phases. The setup / I/O / plotting segment contains costs not assigned to the other phases. Segment medians need not sum to the median end-to-end runtime.
C.5 Complete ordered-workflow results
Table C.3: Complete ordered-workflow results across ten seeds (mean ± sample standard deviation). Syn.→Sim. denotes Synthetic-to-Simulation and Sim.→Syn. denotes Simulation-to-Synthetic. Scores follow Section 3.1; time is recorded end-to-end minutes. Mixed and SNPE results are in Table C.2.
| Ratio | Schedule | WASS | MAE to | Time (min) | |
|---|---|---|---|---|---|
| Smooth Brock-Hommes | |||||
| 1:9 | Syn.→Sim. | 0.4182 ± 0.1407 | 0.76124 ± 0.24726 | 0.1223 ± 0.0406 | 27.71 ± 26.66 |
| 1:9 | Sim.→Syn. | 0.3696 ± 0.1209 | 0.67745 ± 0.27146 | 0.1017 ± 0.0376 | 17.70 ± 9.69 |
| 3:7 | Syn.→Sim. | 0.2993 ± 0.0888 | 0.55649 ± 0.23965 | 0.0804 ± 0.0258 | 15.39 ± 7.99 |
| 3:7 | Sim.→Syn. | 0.3822 ± 0.1739 | 0.76860 ± 0.47356 | 0.1011 ± 0.0463 | 17.22 ± 5.87 |
| 5:5 | Syn.→Sim. | 0.2612 ± 0.1182 | 0.44882 ± 0.31734 | 0.0676 ± 0.0336 | 25.23 ± 20.61 |
| 5:5 | Sim.→Syn. | 0.2932 ± 0.1624 | 0.54872 ± 0.41960 | 0.0812 ± 0.0516 | 20.31 ± 7.55 |
| Noisy Brock-Hommes | |||||
| 1:9 | Syn.→Sim. | 0.1232 ± 0.0342 | 0.02215 ± 0.01545 | 0.0656 ± 0.0165 | 84.23 ± 62.70 |
| 1:9 | Sim.→Syn. | 0.1323 ± 0.0170 | 0.02316 ± 0.00657 | 0.0586 ± 0.0134 | 33.52 ± 10.96 |
| 3:7 | Syn.→Sim. | 0.1020 ± 0.0178 | 0.01095 ± 0.00460 | 0.0824 ± 0.0156 | 30.20 ± 13.38 |
| 3:7 | Sim.→Syn. | 0.1388 ± 0.0223 | 0.02357 ± 0.01175 | 0.0815 ± 0.0127 | 24.06 ± 12.54 |
| 5:5 | Syn.→Sim. | 0.1326 ± 0.0573 | 0.02663 ± 0.03196 | 0.0910 ± 0.0339 | 26.06 ± 10.55 |
| 5:5 | Sim.→Syn. | 0.1341 ± 0.0310 | 0.02353 ± 0.01277 | 0.0849 ± 0.0346 | 22.35 ± 7.11 |
Figures 6 and 7 in the main text show the corresponding repeated-fit distributions. The paired comparisons favoured Synthetic-to-Simulation most consistently at noisy 3:7, where WASS improved in all ten pairs and MMD in eight. The mean differences (Synthetic-to-Simulation minus Simulation-to-Synthetic) were for WASS and for MMD (mean sample standard deviation). At noisy 1:9 and 5:5, WASS improved in six and seven pairs, respectively. In the smooth setting, WASS improved in only four or five pairs per allocation, with both mean discrepancies favouring the reverse order at 1:9. At noisy 5:5, the mean differences favoured
Synthetic-to-Simulation for WASS but the reverse order for MMD. These descriptive comparisons do not identify a uniformly preferred order.
D Further diagnostic details and results
The diagnostics use the 120 final encoder–surrogate pairs from the ordered runs in Section 3.2.1. Historical Mixed sources are excluded because their protocols and replication differ.
Source seeds are the replication unit; sites and trajectories are nested measurements. The diagnostics use final fitted components, shared data banks and one observation per setting.
D.1 Conditional surrogate fidelity
For each task, ten parameter sites were drawn from the prior and ten from the finite reference posterior. Reference-posterior sites are used only for offline evaluation; they are unavailable during inference when the reference posterior is unknown. At each site, three independent batches of 100 trajectories supplied calibration, evaluation and direct–direct baseline summaries. The frozen encoder mapped all trajectories to its eight-dimensional representation; the frozen conditional surrogate generated 100 summaries at the same parameter.
Let and be coordinate means and sample standard deviations in the direct calibration batch, with floor . We standardise all summaries at that site as . The diagnostic kernel is
where the bandwidth uses the calibration batch; the degenerate all-zero case uses . The same unbiased MMD estimator is used for direct–synthetic and direct–direct samples. Excess discrepancy is their difference,
Values are averaged over ten sites within each region and then summarised across ten source fits. Subtracting a finite-sample baseline is descriptive, not a calibrated hypothesis test, and can produce negative values.
Table D.1: Conditional surrogate diagnostics over ten source fits (mean source-seed standard deviation). Prior and reference excess MMD average ten parameter sites per region, with source-specific standardisation.
| Task | Source | Ratio | Prior excess MMD | Ref. excess MMD |
|---|---|---|---|---|
| Smooth BH | 1:9 | |||
| Smooth BH | 3:7 | |||
| Smooth BH | 5:5 | |||
| Smooth BH | 1:9 | |||
| Smooth BH | 3:7 | |||
| Smooth BH | 5:5 | |||
| Noisy BH | 1:9 | |||
| Noisy BH | 3:7 | |||
| Noisy BH | 5:5 | |||
| Noisy BH | 1:9 | |||
| Noisy BH | 3:7 | |||
| Noisy BH | 5:5 |
Site distributions and local standardisation differ between prior and reference regions, so the contrast summarised in Section 3.3.3 has no causal interpretation. Raw and scale-adjusted density, moment and correlation diagnostics are retained in the source records; density scores do not measure information preservation across representations.
D.2 Fresh prior-only augmentation controls
Table D.2: Frozen-component prior-only controls: augmented-minus-direct differences over ten source fits (mean sample standard deviation). Parentheses give improvements out of ten; negative values favour augmentation. uses the standardised diagnostic kernel, is prior-width-scaled marginal Wasserstein distance, and is reference-mean error. Source labels identify the encoder-surrogate origin (: Synthetic-to-Simulation; : Simulation-to-Synthetic). Both augmented arms use pooled training. Both arms share the directly-simulated bank, initialisation and 1,000-update budget, but direct exposure differs. Diagnostic scores use different definitions from the main scores.
| Task | Source | Ratio | |||
|---|---|---|---|---|---|
| Smooth BH | 1:9 | ||||
| Smooth BH | 3:7 | ||||
| Smooth BH | 5:5 | ||||
| Smooth BH | 1:9 | ||||
| Smooth BH | 3:7 | ||||
| Smooth BH | 5:5 | ||||
| Noisy BH | 1:9 | ||||
| Noisy BH | 3:7 | ||||
| Noisy BH | 5:5 | ||||
| Noisy BH | 1:9 | ||||
| Noisy BH | 3:7 | ||||
| Noisy BH | 5:5 |
The paired controls in Section 3.3.3 draw new prior-only training banks independently of the sequential banks. Direct/synthetic bank sizes are 1,000/9,000, 3,000/7,000 or 5,000/5,000, according to the source ratio. Both arms fit normalisation on the shared directly-simulated subset and use Adam with batch size 200 and learning rate ; no sequential-proposal correction is needed. Direct exposure is 1 in direct-only batches and in augmented batches.
Each arm retains 1,000 posterior draws restricted to prior support using a finite rejection budget. Diagnostic posterior MMD uses the kernel above with coordinate scales and bandwidth estimated from the task's finite reference posterior. The mean marginal Wasserstein distance first divides each parameter coordinate by its prior width. Reference-mean error is the mean absolute coordinate difference between posterior and reference means. These definitions differ from the joint Wasserstein, legacy kernel and generating-parameter MAE used in Section 3.1; their numerical values must not be merged with the earlier workflow tables.
The full diagnostic data collection used 15,512 extra direct calls per task: 6,000 site trajectories, 9,000 prior-bank trajectories and 512 additional validation trajectories not used in the surrogate and augmentation checks reported here. The total 31,024 calls, diagnostic training and sampling costs are excluded from workflow speed-ups. Source records, bank identities, timings, acceptance rates and 420 posterior sample sets are retained in the evidence archive; weights and full simulation banks remain in the original experiment directories.