Manuscript Offprint
arXiv:2610.12850Two-way Guidance: Simultaneous Learning of Summary Statistics for Generative Bayes
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Bayesian simulation-based inference (SBI) can struggle to recover increasingly concentrated posteriors as observation size grows. We consider learning sufficient summary statistics jointly with the posterior as a general principle for scalable inference in various SBI methods. A common measure taken in SBI is dimension reduction through predetermined summaries, which may partially discard posterior information. Our approach instead imposes structure on how the posterior learner depends on a learned summary (e.g., affinity), and learns the summary simultaneously with the posterior. We identify an important mechanism named two-way guidance: under a structural restriction on the summary, the posterior sufficiency of the learned summary simplifies posterior learning, whereas a suitable posterior objective guides the learned summary towards posterior sufficiency. This mechanism explains a counterintuitive finding that the structural restriction on the summary statistics improves posterior learning, rather than limit its performance. We establish theoretical guarantees on both posterior estimation error and the learned summary's departure from sufficiency, thus identifying conditions on the simulation budget for recovering increasingly concentrated posteriors as observation size grows.
1 Introduction
Bayesian simulation-based inference (SBI) aims to recover the posterior distribution when data can be simulated from a parameter , but the likelihood is unavailable for evaluation. A challenging setting arises when the observation X is high-dimensional and only a handful of parameters govern its distribution. Such problems arise in dynamical systems and population models (Cranmer et al., 2020; Gloeckler et al., 2025). For instance, observing a time series for longer should improve inference about its governing parameters. In models where information accumulates, the posterior becomes increasingly concentrated as the observation size n grows. The goal is a posterior learner that recovers this improved precision and correctly describes the remaining uncertainty.
We consider learning summaries that retain posterior information simultaneously with the posterior. Our approach imposes structure on how the posterior learner depends on a summary , while allowing the summary itself to be learned. Affinity assumption is one example: the posterior-learning function is linear in the learned summary coordinates; see Kim et al. (2025). The summary statistics organize posterior learning, and the posterior objective guides the learned summary not to lose the information needed for inference. This two-way guidance is the mainline of this paper, and we study when this principle supports posterior accuracy even with a growing n.
Neural likelihood estimation, quantile learning, adversarial inference, and flow matching provide different ways to perform posterior inference from simulated data (Papamakarios et al., 2019; Kim et al., 2025; Wang and Ročková, 2026; Zhai et al., 2026). In these methods, an increasing observation dimension remains a challenge. Compositional methods address it by exploiting independence or Markov structure to combine local inference problems (Geffner et al., 2023; Gloeckler et al., 2025). On the theoretical side, Frazier et al. (2024) characterize simulation requirements for posterior accuracy with a specified summary statistic as the observation size grows. When the summary is learned, its information loss and learning cost must also enter this analysis.
The value of learning informative summaries has been discussed in the literature. In approximate Bayesian computation (ABC), prefixed summaries facilitate data comparisons, but require model knowledge and can discard posterior information (Hoffmann and Onnela, 2026). Automatic approaches instead learn summaries for an inferential objective. Semi-automatic ABC targets posterior means (Fearnhead and Prangle, 2012). BayesFlow jointly trains summary and posterior networks (Radev et al., 2022). Information-based methods learn representations that can be used in ABC and neural likelihood inference (Chen et al., 2021). BayesFlow also establishes an ideal-convergence result connecting joint learning to correct posterior sampling, while Hoffmann and Onnela (2026) organize summary selection through expected posterior entropy.
A particularly useful example is quantile learning. Building on affine dependence in learned coordinates (Rosenberg et al., 2023), Kim et al. (2025) jointly learn a summary and posterior quantiles under an affinity assumption, i.e., the true quantile map being linear to the summary statistic. A meaningful follow-up question is why an apparent restriction on the class of summary statistics can improve posterior learning compared with using the raw data. This question motivates a broader study of structured summary learning across SBI methods, an understudied topic in the literature. Our central contribution is to establish a connection between structured summary learning and SBI scalability. We explain when imposing a simple dependence on a learned summary can make posterior learning more efficient, and how the imposed structure can be automatically learned.
Throughout this paper, the notion posterior sufficiency of summary f means preservation of the posterior,
Note that classical definition of sufficiency is characterized by Neyman-Fisher factorization theorem. The definition in (1) is under one specified prior, whereas classical sufficiency implies posterior sufficiency for every prior. In this paper, an important property of such sufficient summary is what we call two-way guidance. On the one direction, sufficient summary simplifies posterior learning by preserving the information needed for inference and organizing it into low-dimensional coordinates in which the posterior-learning function has a simpler structure. A less intuitive finding is that the posterior objective, in turn, guides the summary towards sufficiency. To see this, note that simultaneous learning of summary and posterior incurs two extra components in posterior error: loss of information from replacing raw X by summary , and a posterior learning gap based on . We shall verify that the first gap vanishes exactly when (1) holds under mild conditions. Therefore, an insufficient summary incurs a penalty that cannot be removed by improving the posterior network alone. Joint learning can reduce that penalty by guiding the summary toward losing less information. We shall see that this two-way guidance intuition applies to multiple SBI methods.
At first sight, imposing a structural constraint (like aforementioned affinity assumption) appears to cause an additional limitation on summary learning. Note, however, that a sufficient summary is not unique. Sufficiency concerns the posterior information retained by the summary’s -algebra. Posterior learning also depends on how that information is represented. An invertible change of summary coordinates preserves the information but can change the difficulty of how it guides posterior learning. When the coordinates are learned jointly, nonlinear features of X can be absorbed into f, allowing a simpler dependence on observation via summary. We would like to point out that we do not need to recover a specific predetermined sufficient statistic, but rather any informative representation in which the posterior-learning function is simple with respect to the summary. This is exactly what explains the counterintuitive benefit of a structural restriction. The benefit of saving simulation budget can outweigh the cost of learning the summary and its structural error. We shall quantify these requirements relative to posterior uncertainty as n grows.
Our main contributions are as follows.
-
We establish a theoretical connection between structured summary learning and SBI scalability. We explain how the two-way guidance work, i.e., how the sufficiency of summary statistic and the accuracy of posterior learning reinforce each other. We also explain how jointly learned coordinates counterintuitively make structural restrictions such as affinity beneficial for posterior learning.
-
For Bayesian SBI objectives whose excess loss controls posterior error, we establish finite-simulation guarantees for both full-posterior accuracy and the learned summary’s departure from sufficiency. The bounds account for joint approximation, estimation, and optimization errors, quantifying how approximate sufficiency emerges under explicit conditions.
-
We identify sufficient simulation budgets for recovering increasingly concentrated posteriors. Comparing raw conditioning with our proposed method, we count the cost of summary learning and give sufficient conditions on the simulation budget needed to correctly recover the shrinking posterior, which exhibits the benefit of summary learning.
Thus, posterior sampling consists of evaluating G at independent source draws and the summary of the observed dataset. The fitted map approximates this equality; its accuracy depends on both the information retained by f and the posterior learned from it.
We describe how summary learning helps three SBI methods: Deep Generative Quantile Bayes (DGQB) (Kim et al., 2025), conditional flow matching (Zhai et al., 2026), and Bayesian GAN (Wang and Ročková, 2026). The summary statistics enter different functions: the quantile potential, the joint velocity, and the conditional generator, respectively. In each case, the summary is simultaneously learned through an objective involving the simulated parameter. We write when the encoder parameters need to be distinguished from those of the posterior learner. Appendix A introduces the original methods and their relation to the objectives below.
2.1 Deep Generative Quantile Bayes
DGQB represents a posterior sampler as , where the conditional potential is convex in its source argument (Kim et al., 2025). The dependence on the summary can be specified through the architecture of . Once the networks are trained, differentiating the potential at fresh source draws gives posterior samples without a Markov chain or numerical integration.
For a minibatch of m simulated pairs and independent source draws , the conditional quantile objective takes the form
This is a sample approximation of the conditional transport objective (Carlier et al., 2016; Sun et al., 2022), with its conjugate supremum replaced by a sample maximum. The first term averages over source–summary pairs, reflecting independence of U and X. The summary f and potential are learned simultaneously.
Specifically, Kim et al. (2025) use the affinity assumption
where is scalar-valued and takes values in . With centered batch summaries, , (3) reduces to their Equation (3.4),
Centering leaves only the intercept outside the maximizing term, and the encoder, intercept, and slope functions are updated together. Affinity is only one choice within (3). Other choices include nonnegative summary-dependent combinations of convex potentials and partially input-convex neural networks (Amos et al., 2017), which permit nonlinear summary dependence while preserving convexity in u. We use the affine special case to explain the two-way guidance and present its training procedure in Algorithm 1.
The two-way guidance intuition, taking affinity assumption as an example, can be seen directly in (5). Once we obtain a sufficient summary admitting this affine dependence, the task of learning jointly in reduces to learning and b as functions of u alone, without losing posterior information. In the reverse direction, the maximizing term compares the potential with the simulated parameter and sends its gradient to through . If f discards a feature of X that changes the posterior, this missing dependence incurs a population loss that cannot be eliminated by improving and b while keeping f fixed. To remove this part of the loss, joint optimization must change f so that the potential can distinguish those posterior differences. Thus, the objective guides the summary to sufficiency.
The earlier specification of Sun et al. (2022) uses a potential that is affine in centered X. When the true posterior quantile depends nonlinearly on X, this specification is violated. Learning f, on the contrary, allows nonlinear dependence on X to enter through the summary while retaining an affine dependence on the learned summary.
Algorithm 1 DGQB with a learned affine summary
1: Initialize , , and . 2: Draw a minibatch of and . 3: Evaluate and center the summaries . 4: Update jointly using (5). 5: Repeat Steps 2–4 until training ends. 6: Freeze the fitted normalization and compute for the observed dataset . 7: Draw fresh and return .
2.2 Conditional Flow Matching
Flow matching learns a velocity field that transports a source distribution at to a target distribution at through an ordinary differential equation (Lipman et al., 2023). For posterior inference, Zhai et al. (2026) construct a joint map in observation and parameter space. Replacing the observation block by , we aim to transport independent source variables and to the target joint law of . We learn the joint velocity
The block-triangular structure means that the summary trajectory evolves independently of the parameter state and guides the parameter trajectory.
To express the posterior map explicitly, let denote the summary flow, defined by
For a well-posed invertible flow, a target summary determines its source point by solving (7) backward. Along the corresponding trajectory , the parameter equation in (6) defines
Thus, is the parameter endpoint of a joint flow in parameter and summary space. If the joint endpoint transports the independent source to the target joint law, its triangular form implies for almost every target summary (Baptista et al., 2024). When is sufficient, this is the full-data posterior in (2).
For training, set for each simulated pair , and independently draw a source pair and . Training uses the straight-line interpolants
and the regression losses
(10)
Here is the stop-gradient operation: it returns but contributes zero gradient during back-propagation. The parameter loss updates together, whereas the summary loss updates only .
Algorithm 2 Summary flow matching
1: Initialize , and .
2: Draw simulated pairs, independent source noise and times; form (9).
3: Cache and update using .
4: Update using , cached summaries, and fresh summary noise and times.
5: Repeat Steps 2–4 until training ends.
6: Solve (7) backward from to and draw fresh .
7: Integrate (6) forward from and return the parameter endpoint.
To demonstrate the two-way guidance in conditional flow matching, we may assume, for example, that the velocity functions in (6) are affine to . Besides reducing dimension, this structure prescribes how the velocities depend on the summary, leaving the networks parametrized by and to learn the corresponding intercept and slope functions unrelated to observation, which is easier. Conversely, if discards any feature that improves the prediction of parameter displacement , adjusting the velocity coefficients alone cannot recover the missing information. Backpropagating the prediction error through allows joint optimization to reduce this loss by changing to retain such features, thereby directing summary learning toward sufficiency.
Note that in (10) the summary-flow loss is detached from the encoder. Since the summary-flow loss only asks how easily source noise can be transported to the summary distribution, allowing it to update the summary f could encourage the latter to discard information simply to make the distribution easier to transport, potentially collapsing the summary. Detaching this loss leaves the encoder updates to the parameter-displacement objective.
The raw-data method learns a joint velocity in dimension (Zhai et al., 2026). Even though its parameter velocity has only outputs, it remains a regression function of the full observation state and the parameter state. Increasing therefore increases the conditional input dimension and the size of the observation flow that must be learned and integrated. Errors in that observation trajectory can also affect the parameter trajectory used for posterior sampling. SFM learns the joint velocity in the summary and parameter space, whose dimension is . The encoder must still process the full dataset, and its information loss and learning cost remain part of the posterior-accuracy problem.
2.3 Bayesian GAN
B-GAN learns a conditional generator by distinguishing simulated pairs from generated pairs through an adversarial critic (Wang and Ročková, 2026). Once trained, the generator provides independent draws from its fitted conditional distribution by direct evaluation at fresh source noise. In SB-GAN, we introduce a learned summary through
where and . The encoder and the coefficient networks are learned together. A separate critic receives the original observation and may have its own encoder, with no parameters shared with .
The population objective is
Algorithm 3 SB-GAN with a learned affine summary
1: Initialize , and a separate critic . 2: Take several critic steps on simulated and generated pairs, keeping fixed. 3: Draw a fresh simulated minibatch and source draws; set . 4: Update jointly to decrease , keeping fixed. 5: Repeat Steps 2–4 until training ends. 6: Freeze the fitted normalization and compute . 7: Draw fresh and return .
For its ideal interpretation, D is the class of all jointly measurable critics that are 1-Lipschitz in for each fixed X. With finite first moments and the usual measurability conditions, the inner supremum equals the average conditional distance between the full posterior and the generated distribution. In practice, neural critic updates alternate with joint encoder and generator updates, using a gradient penalty in the parameter argument as described in Appendix A.3.
The two-way guidance also applies to this method. The affine generator lets the summary organize posterior sampling through learned coordinates. The critic supplies the reverse guidance by detecting discrepancies between simulated and generated parameters at the same observation. Its gradient passes through to the encoder, changing the summary according to errors in posterior generation. Note that retaining the full observation in the critic is essential for this interpretation. If the critic saw only the same learned summary, matching could achieve zero discrepancy even when the summary had discarded posterior information and collapsed to a point mass. With the ideal full-data critic, an insufficient summary cannot achieve zero discrepancy. A finite neural critic approximates this criterion, so the strength of this guidance depends on its ability to detect the relevant posterior differences.
For a raw-data generator , both generation and discrimination must resolve dependence on a growing observation vector. This can require greater network capacity and more simulated pairs, even when the parameter dimension is small. SB-GAN separates the generator's data processing from its source-dependent coefficients, allowing one learned statistic to be reused across posterior draws. The original B-GAN also considers DeepSets architectures; its pooled generator features can depend on both U and X, unlike the statistic used here. The critic must still process the full observation, and its learning cost must be counted when evaluating the benefit of the summary.
3 Posterior Accuracy and Learned Sufficiency
We study whether joint learning recovers both the posterior and the sufficiency of the summary. Let be the number of simulated training pairs and the fitted summary and posterior map. Here averages over the simulated training pairs and all training randomness, including auxiliary source draws and optimization. The expectation is over an independent observation from the prior predictive distribution. With the fitted networks held fixed, write and define
Here is the 2-Wasserstein distance, and the summary posterior also conditions on the fitted function held fixed. We assume measurability and finite integrated second moments throughout.
Thus, means posterior sufficiency almost surely; candidate summaries are not assumed sufficient.
Lemma 1 (Posterior error and summary insufficiency). For any fitted sampler depending on X only through ,
The first bound separates summary insufficiency from fitting the oracle posterior given the summary. The reverse bound is the cornerstone of two-way guidance: accurate posterior learning requires the summary to retain posterior information.
Let be the summary class and the admissible posterior learners for . Write and for their population and empirical objectives, and for the common full-data population optimum. Define the approximation error
For fixed and classes, is fixed; requires a summary and compatible posterior structure that approach the full-data optimum.
Write and assume the calibration condition
Here is a nondecreasing concave function on , continuous at zero with . It converts population loss error into posterior error under the method-specific conditions in Appendix C. Let the empirical optimization gap be
For adversarial objectives, uses the critic supremum.
Theorem 2 (Two-way guidance). Fix the classes before training, with in these classes, and suppose (17) holds uniformly. Assume the displayed suprema, infima and expectations are measurable and finite. Then
For fixed n and classes, if , , and
then and as .
Under calibration, a summary that discards posterior information cannot approach the full-data optimum by improving its posterior learner alone. Thus, sufficiency follows from successful learning. Appendix B gives the proofs; sufficient conditions for statistical and optimization consistency appear in Appendix B.3.
We now specialize to affinity: the function being learned has the form , where contains its arguments other than the observation or summary. For DGQB, and ; for SB-GAN, is the source dimension; for an affine SFM parameter velocity, and . The raw-data comparison learns a function of , with arguments. Let count the encoder and auxiliary-network parameters; the affine coefficient functions are counted separately through .
Assume bounded Lipschitz coefficient functions on bounded domains, bounded losses Lipschitz in the fitted functions, and bounded parameter ranges and uniform parameter sensitivity for the finite-dimensional networks. Let collect these regularity bounds and the output and summary dimensions, as specified in Appendix B.4. Write for the calibration function with its dependence on retained, after normalizing the loss contributions to a common interval of length one. The normalization scale remains in .
Corollary 3 (The learning cost under affinity). Under Theorem 2, assume , the complete loss-cover conditions of Appendix B.4, and the native reference-criterion conditions of Appendix C. Require and the total objective-approximation error in (35) each to be no larger than the sum in square brackets below. For ,
and . For the raw-data class, replace by and use that class's and .
The two terms represent learning the summary and auxiliary networks, and learning the coefficient functions of w. Affinity replaces the growing functional dimension by p, while retaining the summary-learning cost in and . These are sufficient bounds for the stated classes, not a lower bound for every raw-data architecture. For the implemented moving-summary SFM sampler, posterior calibration remains an additional requirement; regression convergence alone does not establish it.
4 Experiments
We examine whether jointly learning a summary and a posterior learner improves inference as the observation size n increases. We compare DGQB, SFM, and SB-GAN with their raw-data counterparts. Within each pair, we keep the simulation budget and training schedule fixed.
4.1 Gaussian Conjugate Model
We first consider a Gaussian conjugate model, whose closed-form posterior provides an explicit target for posterior learning. Following Kim et al. (2025), let , with priors
We set and generate observations at the fixed truth . We increase over and use a DeepSets summary with . As increases, the exact posterior becomes more concentrated, so we can examine whether the learned posterior follows this concentration.

Figure 1: Gaussian posterior draws and contours, with the oracle posterior in the first row and increasing n across columns. All panels use common axes.
Figure 1 displays the learned posterior contours as n increases. The summaries help the posterior learners follow the shrinking exact posterior, with a particularly visible improvement for DGQB and SFM. To quantify this comparison, we compute the sliced Wasserstein-2 distance between samples from the learned and exact posteriors in the parameter space ( , ). This distance averages squared one-dimensional Wasserstein-2 distances over random projection directions and takes the square root. Note that the exact posterior conditions on all n observations, so the comparison retains the full-data posterior as its target. We use 1,000 draws from each posterior and 256 projection directions.
Figure 2(a) shows that joint summary learning improves posterior approximation at larger observation sizes, with larger gains for DGQB and SFM and a smaller gain for SB-GAN. At n = 4096, the mean distances are 0.012, 0.017, and 0.022 for DGQB, SFM, and SB-GAN, compared with 0.170, 0.210, and 0.037 for their raw-data counterparts. The smaller improvement for SB-GAN
(a) DGQB, SFM and SB-GAN

(b) NPE and NRE

Figure 2: Gaussian posterior error: mean and SD across three seeds. Solid: summaries; dashed: raw data.
is accompanied by remaining errors in posterior spread and location: its learned posterior is overly concentrated and its center is displaced from that of the exact posterior. Thus, in this model, joint summary learning improves posterior approximation across different SBI methods and helps the learned posterior follow the concentration of the exact posterior as the observation size grows.
We demonstrate the wide applicability of joint summary learning mechanism by experiments on neural posterior estimation (NPE) and neural ratio estimation (NRE). Their details are described in Appendices A.4 and A.5. At larger observation sizes, joint summary learning also yields smaller posterior approximation errors for both methods; see Figure 2(b).
4.2 Brock-Hommes Model
The Brock–Hommes model describes asset-price dynamics generated by traders with heterogeneous forecasting strategies (Brock and Hommes, 1998). It provides a financial application in which the posterior is unavailable in closed form, and we train the posterior learners using simulations from the model. Following the setup in Kim et al. (2025), the price deviation from its fundamental value evolves as
(22)
where and are the trend and bias coefficients of strategy , measures its past performance, and is its share of traders. The constants and denote the gross risk-free return and the intensity of switching between strategies, respectively, and . We use , , , and , with and . The unknown parameter is , with independent uniform priors on for the first three coordinates and for .
We fix the truth at and consider series lengths , starting from . For these time-series observations, the encoder combines 48 DeepSets outputs computed from lag windows with 16 LSTM outputs, giving a summary of dimension . For the comparison in Figure 3, we use three series generated at this fixed truth

Figure 3: Brock–Hommes energy score: mean and SD across three seeds. Solid: summaries; dashed: raw data.
and three training seeds. For Raw DGQB, we directly learn a partially input-convex conditional potential , allowing nonlinear dependence on X while preserving convexity in u.
Since the posterior is unavailable in closed form, we evaluate the learned posterior draws against the fixed truth using the energy score (Gneiting and Raftery, 2007). For M posterior draws , its sample estimate is
where is the Euclidean norm and we use . The first term measures distance to the truth, while the second accounts for the spread of the posterior draws. Lower scores indicate better performance under this criterion. We first average scores over the three observed series for each training seed, then report the mean and standard deviation across all three seeds.
Figure 3 shows that all three methods with jointly learned summaries achieve lower mean energy scores than their raw-data counterparts at every observation size considered. The reductions are particularly pronounced for DGQB and SFM. At n = 2000, the mean scores are 0.032, 0.027, and 0.076 for DGQB, SFM, and SB-GAN, compared with 0.143, 0.382, and 0.124 for their raw-data counterparts. Thus, jointly learned summaries improve inference performance under the energy score across different posterior learners in the Brock–Hommes model. Jointly learned summaries also yield lower mean energy scores for NPE and NRE than their raw-data counterparts; see Appendix D.3.
5 Discussion
This paper studies joint summary and posterior learning as a general principle for scalable Bayesian SBI. The key mechanism is two-way guidance: a structured summary simplifies posterior learning, while a suitable posterior objective guides the summary toward posterior sufficiency. We explain how structural restrictions on learned summaries can counterintuitively improve posterior approximation. In practice, performance depends on tuning the summary dimension, network architecture, and training settings. These choices affect both learning complexity and how much posterior information the summary retains. An important direction for future research is to select the summary dimension adaptively according to the inference problem and available simulation budget.
Acknowledgements
The authors are grateful to Veronika Ročková for invaluable discussions and insightful suggestions that helped shape this work.
References
Brandon Amos, Lei Xu, and J. Zico Kolter. Input convex neural networks. In Proceedings of the 34th International Conference on Machine Learning, volume 70 of Proceedings of Machine Learning Research, pages 146–155. PMLR, 2017.
Ricardo Baptista, Bamdad Hosseini, Nikola B. Kovachki, and Youssef M. Marzouk. Conditional sampling with monotone GANs: From generative models to likelihood-free inference. SIAM/ASA Journal on Uncertainty Quantification, 12(3):868–900, 2024. doi: 10.1137/23M1581546.
William A. Brock and Cars H. Hommes. Heterogeneous beliefs and routes to chaos in a simple asset pricing model. Journal of Economic Dynamics and Control, 22(8–9):1235–1274, 1998. doi:10.1016/S0165-1889(98)00011-6.
Guillaume Carlier, Victor Chernozhukov, and Alfred Galichon. Vector quantile regression: An optimal transport approach. The Annals of Statistics, 44(3):1165–1192, 2016. doi: 10.1214/15-AOS1401.
Yanzhi Chen, Dinghuai Zhang, Michael U. Gutmann, Aaron Courville, and Zhanxing Zhu. Neural approximate sufficient statistics for implicit models. In International Conference on Learning Representations, 2021.
Kyle Cranmer, Johann Brehmer, and Gilles Louppe. The frontier of simulation-based inference. Proceedings of the National Academy of Sciences, 117(48):30055–30062, 2020. doi: 10.1073/pnas.1912789117.
Paul Fearnhead and Dennis Prangle. 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, 2012. doi: 10.1111/j.1467-9868.2011.01010.x.
David T. Frazier, Ryan Kelly, Christopher Drovandi, and David J. Warne. The statistical accuracy of neural posterior and likelihood estimation. arXiv preprint arXiv:2411.12068, 2024.
Tomas Geffner, George Papamakarios, and Andriy Mnih. Compositional score modeling for simulation-based inference. In Proceedings of the 40th International Conference on Machine Learning, volume 202 of Proceedings of Machine Learning Research, pages 11098–11116. PMLR, 2023.
Manuel Gloeckler, Shoji Toyota, Kenji Fukumizu, and Jakob H. Macke. Compositional simulation-based inference for time series. In International Conference on Learning Representations, 2025.
Tilmann Gneiting and Adrian E. Raftery. Strictly proper scoring rules, prediction, and estimation. Journal of the American Statistical Association, 102(477):359–378, 2007. doi:10.1198/016214506000001437.
David Greenberg, Marcel Nonnenmacher, and Jakob Macke. 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, 2019.
Joeri Hermans, Volodimir Begy, and Gilles Louppe. Likelihood-free MCMC with amortized approximate ratio estimators. In Proceedings of the 37th International Conference on Machine Learning, volume 119 of Proceedings of Machine Learning Research, pages 4239–4248. PMLR, 2020.
Till Hoffmann and Jukka-Pekka Onnela. Unifying summary statistic selection for approximate Bayesian computation. Statistics and Computing, 36(2):70, 2026. doi: 10.1007/s11222-025-10808-2.
Jungeum Kim, Percy S. Zhai, and Veronika Ročková. Deep generative quantile Bayes. In Proceedings of the 28th International Conference on Artificial Intelligence and Statistics, volume 258 of Proceedings of Machine Learning Research, pages 4141–4149. PMLR, 2025.
Yaron Lipman, Ricky T. Q. Chen, Heli Ben-Hamu, Maximilian Nickel, and Matt Le. Flow matching for generative modeling. In International Conference on Learning Representations, 2023.
George Papamakarios, Theo Pavlakou, and Iain Murray. Masked autoregressive flow for density estimation. In Advances in Neural Information Processing Systems, volume 30, pages 2338–2347, 2017.
George Papamakarios, David C. Sterratt, and Iain Murray. Sequential neural likelihood: Fast likelihood-free inference with autoregressive flows. In Proceedings of the Twenty-Second International Conference on Artificial Intelligence and Statistics, volume 89 of Proceedings of Machine Learning Research, pages 837–848. PMLR, 2019.
Stefan T. Radev, Ulf K. Mertens, Andreas Voss, Lynton Ardizzone, and Ullrich Köthe. BayesFlow: Learning complex stochastic models with invertible neural networks. IEEE Transactions on Neural Networks and Learning Systems, 33(4):1452–1466, 2022. doi: 10.1109/TNNLS.2020.3042395.
Aviv A. Rosenberg, Sanketh Vedula, Yaniv Romano, and Alex M. Bronstein. Fast nonlinear vector quantile regression. In International Conference on Learning Representations, 2023.
Jesse Sun, Dihong Jiang, and Yaoliang Yu. Conditional generative quantile networks via optimal transport. In ICLR Workshop on Deep Generative Models for Highly Structured Data, 2022.
Cédric Villani. Optimal Transport: Old and New, volume 338 of Grundlehren der mathematischen Wissenschaften. Springer, Berlin, Heidelberg, 2009. doi: 10.1007/978-3-540-71050-9.
Yuexi Wang and Veronika Ročková. Generative Bayesian inference with GANs. Journal of Machine Learning Research, 27(29):1–48, 2026.
Percy S. Zhai, Sowon Jeong, and Veronika Ročková. Conditional flow matching for Bayesian posterior inference. In Proceedings of the 29th International Conference on Artificial Intelligence and Statistics, volume 300 of Proceedings of Machine Learning Research, pages 2044–2052. PMLR, 2026.
A Methods and Implementation Details
We review the five methods used in this paper and describe how we incorporate learned summaries into their training and posterior sampling procedures. We retain the notation for the learned summary and U for independent source noise. The expectations in the training objectives average over the prior, simulator, and any auxiliary draws, with the candidate networks held fixed.
A.1 Deep Generative Quantile Bayes (DGQB)
Kim et al. (2025) learn a conditional vector quantile map for posterior sampling. In our notation, this map is , where the potential is convex in for each fixed . The conditional vector quantile transports the reference distribution to (Carlier et al., 2016). Their True Quantile Affinity assumption posits a sufficient summary for which the potential has the representation . The functions and are the functional coefficients of this representation. Their Equation (3.4), reproduced in (5), trains these functions and the summary network jointly, with batch normalization used to maintain centered summaries.
For the general formulation in Section 2.1, we use the conditional Monge–Kantorovich dual objective, corresponding to Equation (2.3) of Kim et al. (2025). For a reference domain U, define the conjugate in u and the population objective by
(24)
The empirical objective (3) averages the first term over all pairs of source draws and observations, and replaces the conjugate supremum by a maximum over the sampled source points. The finite maximum approximates the source supremum; its error is considered in Appendix C.1.3.
For the affine potential in (4), centered batch summaries cancel the summary-dependent part of the first term, reducing that term to the average of and giving (5). The functional coefficients determine the quantile map given the summary, while gradients of this same objective update the summary network through . The quantile representation requires the total potential to be convex in .
After training, we hold the encoder and its normalization fixed and compute once for the observed dataset. Each fresh source draw then gives a parameter draw . Algorithm 1 summarizes these steps.
Our nonlinear Raw DGQB baseline directly learns the conditional potential from raw observations using the general objective in (3). We use a partially input-convex neural network (Amos et al., 2017), which allows nonlinear dependence on X while preserving convexity in u for every fixed observation. This extends the affine specification of Kim et al. (2025) to a potential with nonlinear dependence on the raw observation. The affine-in-X specialization discussed in Section 2.1 is a separate choice of potential class.
A.2 Summary flow matching (SFM)
Zhai et al. (2026) construct a dynamic block-triangular map from a source distribution to the joint distribution of observations and parameters. At , the observation source and parameter source are independent; at , the target is the simulated joint law of . The corresponding block-triangular velocity field has the form
The observation velocity depends only on , whereas the parameter velocity depends on . They fit this velocity field using the conditional flow matching loss. For the straight-line interpolation paths in their Algorithm 1, the regression targets are and .
Let be the observation flow, so that . For a well-posed invertible flow and a fixed observation , first solve the observation ODE backward to obtain . Then draw and solve
If the joint flow transports the product source to the correct target joint law, this procedure samples the conditional distribution of given (Baptista et al., 2024). Note that the observation input follows its learned trajectory during sampling.
Our SFM modification replaces the observation block by and uses the summary and parameter ODEs in (6). During training, independent source and target pairs give the straight-line interpolants in (9). The parameter velocity is regressed on , and the summary velocity on , using (10). The parameter loss updates the encoder and parameter velocity together through . We apply the stop-gradient operation to the summary input and regression target in the summary loss, which updates only the summary velocity. Thus, the summary network is trained through the regression loss for the parameter velocity. The resulting summary is reused across posterior draws: solve its ODE backward once, then integrate the joint flow forward for fresh parameter sources, as in Algorithm 2. The conditions linking these regression objectives to the required conditional transport are discussed in Appendix C.2.
A.3 Summary Bayesian GAN (SB-GAN)
B-GAN trains a conditional generator and a critic through a Wasserstein minimax objective, comparing simulated pairs with generated pairs (Wang and Ročková, 2026). SB-GAN uses the affine-summary generator in (11), with the encoder and generator coefficients trained together. The critic receives the observation through its own network, with no parameters shared with the summary encoder.
Training alternates critic updates with joint encoder and generator updates. For a minibatch of size m, write and , where independently. With penalty weight , the losses are
(27)
The one-sided gradient penalty penalizes parameter-gradient norms above one at the interpolated parameters, with the observation held fixed, following Appendix E.1 of Wang and Ročková (2026). Critic updates hold the encoder and generator fixed; generator updates hold the critic fixed and change both and . During the joint encoder and generator updates, the gradient of the critic score passes through the generator to the summary network. The critic's input is X, so it is not restricted to the generator's learned summary . The ideal conditional Wasserstein interpretation and its approximation by a neural critic are given in Appendix C.3.
For posterior sampling, compute and evaluate the fitted generator at independent source draws, as in Algorithm 3. Our Raw B-GAN baseline supplies the observation directly to its conditional generator. In the DeepSets construction of Section 2.5 of Wang and Ročková (2026), the pooled generator features depend on both the noise draw and the individual observations. SB-GAN computes from the observation alone and reuses this statistic across source draws.
A.4 Neural posterior estimation (NPE)
Neural posterior estimation fits a conditional density estimator to simulated parameter-observation pairs (Greenberg et al., 2019). Greenberg et al. (2019) develop automatic posterior transformation for sequential proposals; our experiments use the prior-trained NPE formulation described in their Section 2.2. We draw parameters from the prior throughout training and simulate observations conditional on those parameters. In our summary-based implementation, the conditional density estimator is a masked autoregressive flow (Papamakarios et al., 2017). Here denotes the density-network parameters. This is a composition of invertible autoregressive transformations conditioned on the summary, so its density can be evaluated by change of variables. The summary network and conditional density estimator are trained together by minimizing the negative log-likelihood
The density estimator conditions on the learned summary, while backpropagation of the negative log-likelihood updates the summary network jointly with the density estimator. Appendix C.4 gives the corresponding information-loss decomposition.
For posterior sampling, compute the observed summary once, draw Gaussian base variables, and map them to parameter draws through the fitted conditional flow. Raw NPE conditions the density network on X. The summary-based implementation permits nonlinear dependence of the density network on S.
A.5 Neural ratio estimation (NRE)
Hermans et al. (2020) learn an amortized estimator of the likelihood-to-evidence ratio by distinguishing dependent parameter-observation pairs from independent pairs. By Bayes' rule, this ratio also equals the posterior-to-prior density ratio. The positive class consists of jointly simulated pairs , and the negative class pairs an observation with an independently drawn prior parameter . Let be the probability assigned to the positive class, with equal class probabilities. Here denotes the classifier parameters. The classifier and summary encoder minimize the binary cross-entropy
In our implementation, each minibatch constructs negative pairs by a random nonzero cyclic shift of the parameters, so each observation is paired with a parameter from another simulated pair. Both the classifier and encoder receive gradients from this objective.
For a fixed summary and wherever the density ratio is defined, the optimal classifier satisfies
Hermans et al. (2020) use the estimated ratio in MCMC samplers. In the Gaussian experiment, we use sampling–importance–resampling with the prior as the proposal distribution. We draw a finite pool of parameter candidates from the prior, evaluate their fitted classifier odds at the observed summary, and resample with replacement using the normalized weights to obtain approximate posterior draws. For Brock–Hommes, we use parallel Metropolis chains targeting the learned ratio times the known prior, as detailed in Appendix D.3.
The classifier uses the learned summary as its observation input, while gradients of the binary cross-entropy update that summary using the distinction between dependent and independent pairs. The population justification is given in Appendix C.5. Raw NRE supplies X to the classifier; the summary-based version allows nonlinear dependence on S.
B General Theory for Posterior Accuracy and Scalability
This appendix proves the general posterior-risk guarantees and explains when joint learning recovers a sufficient summary. We then quantify the learning cost of affine summary dependence and derive sufficient simulation budgets for recovering increasingly concentrated posteriors.
B.1 Proof of Lemma 1
Conditional distributions are regular conditional probabilities on Euclidean spaces, and all kernels, fitted maps, and displayed suprema are measurable. The evaluation pair and source noise are independent of training. A posterior conditional on the fitted summary always holds the fitted function fixed. The integrated second-moment assumptions in Section 3 ensure the finiteness of the transport costs below. The learner G also indexes its native representation and sampling rule when these are needed to specify the objective.
Fix a training realization for which the conditional second moments are integrable, and write . For almost every X, the triangle inequality gives
Squaring, applying , and averaging over and training gives the first inequality.
For the reverse inequality, keep training fixed and let . For each , choose an optimal coupling of and , measurably in . Such a choice exists for the continuous squared Euclidean cost; see Villani (2009, Corollary 5.22). Draw from its prior predictive distribution and from this coupling conditional on . This construction preserves the original joint law of and satisfies
Here and until the final averaging step, E averages over the fresh observation and the auxiliary coupling variables, with training held fixed. Since the conditional law of Y given X depends only on S, we have .
On an enlarged probability space, draw from , conditionally independently of given . The preceding conditional independence and the tower property imply
Thus conditional on X is a coupling of the full posterior and summary posterior. Also, and are conditionally independent copies given , so
The conditional-mean decomposition gives
Combining these identities yields
Averaging over training proves . This argument does not require a training objective or a calibration condition.
B.2 Proof of Theorem 2
For this proof, write
The classes are fixed before training, and the fitted pair belongs to them. For every admissible comparison pair , the definition of gives, for each training realization,
Taking the infimum over therefore yields
The left inequality follows from the definition of the common full-data optimum. Neither the population nor the empirical infimum needs to be attained. The assumed integrability of and also makes the population excess integrable.
Uniform calibration applies to the fitted pair with training held fixed. Taking the training expectation, applying Jensen's inequality to the concave function , and using its monotonicity gives
This proves (19), and Lemma 1 gives . For fixed and classes, , , and imply by continuity of at zero, and hence . Since squared Wasserstein distances are nonnegative, is equivalent to equality of the full and summary posteriors for almost every training realization and almost every fresh observation.
B.3 Sufficient conditions for statistical and optimization consistency
We give sufficient conditions for the statistical and optimization errors in Theorem 2 to vanish. The gap is fixed when the summary and posterior classes are fixed. Its being zero requires approximation of the full-data optimum in the native objective, including compatibility between the summary and posterior learner. If classes are enlarged with N, convergence of the resulting sequence requires a separate approximation argument.
For an ordinary empirical criterion, let and for independent identically distributed records. Fix the candidate class before training and suppose its losses have an integrable envelope and a finite admissible uniform -cover for every . Such a cover approximates every loss by one representative within on every possible record. For optimization, choose a deterministic sequence and select the first empirical minimizer over a finite uniform -cover of losses, using a fixed enumeration of its admissible representatives. Assume the displayed suprema are measurable.
Claim B.1 (Sufficient conditions for consistency). Under these conditions,
If and the calibration condition of Theorem 2 holds, then and for fixed n as .
This supplies concrete sufficient conditions for both learning errors in Theorem 2. The finite-set optimizer establishes attainability of the tolerance; practical neural training must establish its own optimization accuracy.
Proof. Fix a finite uniform -cover with representative losses . Write and . For every training realization, the supremum deviation is at most . The integrable envelope ensures the law of large numbers in for each representative, so
Take the limit superior as , then let .
The empirical minimizer over the finite candidate set is measurable. Compare it to a representative of an arbitrarily accurate empirical minimizer over the full class. This gives
and hence . Theorem 2 now gives both risk limits.
Exact global empirical minimization also suffices, since it gives . For product averages and adversarial objectives, the method-specific bounds in Appendix C supply the corresponding statistical controls. For an adversarial objective, the optimization gap is measured after maximizing over the critic, so errors in that inner optimization must also be controlled. An optimization error tending to zero at an unspecified rate suffices for fixed-n consistency but cannot be omitted from a finite-sample or growing-n bound. Corollary 3 requires the optimization error to be no larger than its displayed statistical rate.
B.4 Learning complexity and finite-sample bounds
B.4.1 Function class complexity under affinity
For the complexity comparison, we consider affine summary dependence as a concrete structural choice. This also includes dependence that is affine in a fixed finite set of features of a summary, by absorbing those features into the encoder, provided the resulting class satisfies the conditions below. We show how affinity reduces the complexity of posterior learning while accounting for the cost of learning the summary.
Work on bounded domains rescaled to and , retaining the rescaling in the regularity bounds. Here is the observation size, is the dimension of each observation, and is the dimension of the arguments other than the observation or summary. The affine class has the form
The function takes values in , and the learned summary takes values in . The raw class instead consists of functions of all inputs.
Let count the encoder and auxiliary-network parameters, collected in . The auxiliary networks include the critic for SB-GAN and the summary-velocity branch for SFM when these enter the learning objective. For the raw class, contains only auxiliary parameters, and when none are present. All candidate classes are fixed before training.
For each class, use a common regularity bound and restrict to . For a matrix , write for its maximum absolute row sum; the corresponding norm for a matrix-valued function also takes the supremum over . For the affine class, assume
Let denote the complete normalized loss contribution, including any auxiliary inputs, and assume these losses lie in a common interval of length one. Require the loss stability bound
where the norm on losses is uniform over all possible records. Thus includes the sensitivity of the complete objective to the encoder and auxiliary parameters, including their effects on targets, interpolation states, or critic evaluations. For the raw class, assume that each component of is bounded by and is -Lipschitz in under the input maximum norm. Require the same loss stability bound with replaced by and the matrix norm replaced by the componentwise uniform norm. The two classes may have different and . For DGQB, also require the same stability bound for the normalized potentials defined in Appendix C.1.3.
For , let be the smallest number of admissible representative losses needed to approximate every loss in the class uniformly within . In other words, every candidate loss differs from at least one representative by at most on every possible record. This count measures the complexity of the complete loss class at accuracy , including the jointly learned summary and auxiliary networks. For the DGQB product criterion, use the corresponding count of normalized-potential representatives; conjugate stability transfers this cover to the objective as shown in Appendix C.1.3. Define for the affine class and for the raw class; any larger values also suffice. These constants retain the output and summary dimensions and the regularity bounds, including the effects of rescaling. Put for the affine class and for the raw class.
Proposition B.2 (Loss complexity under affinity). Under these conditions, for every ,
The two terms account for learning the finite-dimensional networks and learning the coefficient functions, respectively, with the latter replaced by the full function h in the raw class. Affinity reduces the dimension governing the function approximation from to p. Note that the summary dimension q and the encoder's learning cost remain in and . Thus the bound explains the complexity reduction while retaining the cost of obtaining the summary. The comparison concerns upper bounds for these specified classes; further structure in a raw-data architecture can reduce its complexity.
Proof. First cover the finite-dimensional parameters. Partition into cells of maximum-norm diameter at most . There are at most cells, and parameters in the same cell differ by at most .
Next cover the coefficient functions of the affine class. Divide each coordinate interval of into equal parts and use the resulting tensor grid, including its endpoints. Its mesh is at most . The grid has at most points. At each grid point, quantize each of the entries of into bins of width . Each entry has at most bins. Two coefficient functions with the same code have row-sum discrepancy at most at the grid points. Their two Lipschitz errors between an input and its nearest grid point add at most , so their uniform row-sum discrepancy is at most .
For each nonempty combination of parameter cell and coefficient code, select one complete admissible candidate as representative. This selection preserves any convexity, flow, or critic restrictions that couple the candidate's components. Equation (31) then bounds the loss discrepancy within each combination by . The additional DGQB stability condition gives the same bound for its normalized-potential discrepancy. Counting these combinations gives
The stated choice of , together with and , yields (32) for .
For the raw class, apply the same grid construction to the component functions of on . The input dimension becomes , and there are output values to quantize at each grid point. The count therefore has in place of and in place of , with the same parameter-cell construction for any auxiliary networks. Using this class's proves (32) for the raw class.
B.4.2 Finite-dimensional networks
We also give a cover for a fixed network architecture, without imposing affine dependence. This covers the jointly trained density and classifier networks used by NPE and NRE. Let count all trainable parameters of the encoder and posterior learner, collected in . Unlike above, includes the entire posterior network. Assume for and that the complete normalized loss satisfies
Here the loss norm is uniform over all possible records, including all inputs to the encoder and posterior learner. For this class, put . Let be the smallest number of admissible loss representatives needed to approximate every candidate loss within , uniformly over these records.
Claim B.3 (Loss complexity of finite-dimensional networks). Under these conditions, for every ,
This bound counts the whole jointly trained architecture. Its dependence on observation and summary dimensions remains in and the uniform sensitivity bound entering .
Proof. Partition the parameter cube into cells of maximum-norm diameter at most . There are at most cells. Select one admissible parameter vector from each nonempty cell. The loss stability bound makes these losses a uniform -cover, and gives the displayed count.
B.4.3 Finite sample error
We next convert a covering bound into uniform error of the empirical objective. Write and for the normalized empirical and population criteria indexed by a candidate function . For ordinary averages, is the complete loss contribution; for DGQB, it is the normalized potential whose distance controls the product criterion. Fix the candidate class before training, and require both criteria to be 1-Lipschitz in the uniform distance between their indexing functions. Thus a uniform -cover with admissible representatives approximates every empirical and population criterion value within . Assume all suprema below are measurable. For a constant , require, for every fixed candidate and ,
This condition concerns deviation from the population criterion itself. For independent averages of losses in a common interval of length one, Hoeffding's lemma gives .
Claim B.4 (Uniform empirical error from a finite cover). Under these conditions, for every ,
The bound separates approximation by finitely many representatives from statistical error over those representatives. The constant c retains the sampling structure of each method, including dependence between terms of an empirical objective.
Proof. For the representatives , apply (33) to both signs. For , the exponential maximum bound gives
Minimizing over gives the square-root term. Approximating each candidate in its empirical and population criterion adds .
For an adversarial objective, apply this claim to the loss before taking the critic supremum. Indeed,
The critic belongs to the covered class; no unbiasedness of the maximized empirical objective is required.
To specialize to Proposition B.2, suppose also that the normalized reference discrepancy is uniformly at most one. This holds when the empirical and population reference criteria lie in the same interval of length one, including after a critic supremum.
Claim B.5 (Explicit rate under the affine and raw class bounds). Under Claim B.4 with , the cover bound (32), and the bounded-discrepancy condition above, for ,
If , the factor 7/2 can be replaced by 3.
The exponent uses for affine summary dependence and for the raw class, with each class's own and . The rate includes the cost of learning the summary and any auxiliary networks.
Proof. Choose when this is at most one. Since and , we have and . The covering bound gives
Substituting in Claim B.4 and separating the square root yields
For , both coefficients are at most 7/2; for , they are at most 3. If the proposed resolution exceeds one, the bound of one on the reference discrepancy proves both statements directly.
B.5 Proof of Corollary 3
We combine the preceding empirical bound with the general posterior guarantee. Let for the affine class and for the raw class, using each class's own and . For this proof and the simulation budgets below, write
This abbreviates the sum already displayed in (21) and its raw counterpart.
Let and be the reference empirical and population criteria before source discretization, critic approximation, or numerical errors are included. For independent-record losses in a common interval of length one, the hypotheses of Claim B.4 hold with . For an adversarial objective, apply that claim before the critic supremum and use the supremum inequality proved there. The DGQB product criterion has under Claim C.4; this uses its two independent samples and does not treat their combinations as independent. For NRE, the dependent negative-pair construction gives by the bounded-differences calculation in Claim C.19. The corollary assumes these native reference-criterion conditions and the complete class cover; applying it to a particular method requires that method to satisfy both. Claim B.5 therefore gives
All criteria, approximation errors, and optimization gaps use the same deterministic normalization. If the original loss scale is , the normalized calibration is ; a common additive constant cancels from the excess. The corollary's total objective-approximation condition is
This single allowance covers all source, critic, and numerical approximations together. The triangle inequality gives
With and , the empirical comparison in the proof of Theorem 2 yields
Conditional calibration, Jensen's inequality, and Lemma 1 now give
Substituting proves (21) and its raw-data counterpart.
B.6 Posterior-scale accuracy and simulation budgets
We now use Corollary 3 to determine sufficient simulation budgets for recovering increasingly concentrated posteriors. For posterior uncertainty of order , we require and . Assume the corollary's conditions at each observation size , and suppose
where and are fixed and the implicit constants are uniform in and . Keep and fixed.
Proposition B.6 (Sufficient budgets for posterior scalability). Under these conditions, affine summary dependence with
gives and . For the raw class, the same limits hold with
These budgets control approximation error relative to the posterior’s shrinking uncertainty. The comparison retains the encoder and auxiliary-network costs through and , and the posterior calibration through . The budgets are sufficient for the specified classes; the result does not assert that the raw-data budget is necessary.
Proof. Use defined in Appendix B.5. For affine conditioning, and give
The stated strict inequalities imply . Consequently eventually and
For raw conditioning, and make the finite-dimensional term smaller than every negative power of . For the remaining term,
Indeed, , , and . The stated condition again gives and hence . Finally, gives the summary-risk limit in both cases.
The corollary’s optimization and objective-approximation conditions must hold at the displayed statistical rate for each n. They remain part of the scalability conditions.
We also give an explicit budget for a general posterior uncertainty scale . Choose with , and define
This quantity collects the budgets for the two terms in the corollary. Use for affine dependence or for the raw class, with the corresponding class constants.
Claim B.7 (An explicit budget for a general posterior scale). Under Corollary 3, the choice
gives
The right-hand side of (36) depends only on the desired accuracy and class bounds, so it specifies a simulation budget without N appearing implicitly inside a logarithm.
Proof. For this calculation put and . At , we have . The function is increasing for , since . Thus every integer satisfies , and
Corollary 3 now gives and .
For example, if with and , then
satisfies . These explicit budgets use class bounds specified as functions of ; bounds that also grow with require deterministic envelopes before the budget is applied.
C Method-Specific Guarantees and Two-Way Guidance
We examine how the general theory applies to the five SBI methods and explain how two-way guidance works through their different objectives. To apply Theorem 2, its conditions must hold uniformly over the corresponding candidate class.
C.1 Deep Generative Quantile Bayes
DGQB learns a conditional vector quantile map through the conditional Monge–Kantorovich dual objective (Kim et al., 2025). We first show how this objective guides summary learning, then relate its excess loss to posterior error, and finally control the finite-source approximation used in training.
C.1.1 Two-way guidance
We examine how two-way guidance works in DGQB by separating the population objective into the cost of losing posterior information and the cost of fitting the posterior given the summary.
Fix a measurable encoder and write , with the observation and summary spaces standard Borel. Assume is independent of , is absolutely continuous on , and . The source domain is either or the closed unit ball , with in the latter case. For a potential convex in and differentiable -almost everywhere, define
The infimum is over all admissible measurable conditional convex potentials; their two dual terms are absolutely integrable. Let and be the quadratic-cost optimal transport maps from to and , respectively, and set . Assume jointly measurable versions of these maps and attained measurable conditional dual optimizers whose terms are absolutely integrable after additive normalization. Conditional Kantorovich duality identifies as the full-data optimum and gives (Carlier et al., 2016; Kim et al., 2025).
Proposition C.1 (Two-way guidance in DGQB). Under the preceding conditions,
where both gaps are nonnegative, and
This is the core of two-way guidance in DGQB. A posterior-sufficient summary allows the potential to depend on X through S without losing posterior information. In the reverse direction, an insufficient summary incurs a positive population penalty that cannot be eliminated by improving the potential while keeping the summary fixed. A structural restriction such as affinity determines the admissible potentials and can add to the potential-fitting gap; the information-loss penalty remains.
Proof. Since has the same law as , Fenchel's inequality gives
Conditional on , the law of is a coupling of and . Its expected inner product cannot exceed that of the optimal coupling , so . Equivalently, expanding the squared transport cost yields
If the information-loss gap is zero, the conditional mixture coupling is optimal for almost every s. Absolute continuity of makes this optimal coupling unique and concentrated on the graph of . Thus almost surely, and Fubini's theorem gives equality of their pushforward distributions for almost every X. Conversely, posterior sufficiency makes the unique optimal maps agree almost surely and therefore makes the information-loss gap zero.
C.1.2 Posterior accuracy
We now show that an objective close to its full-data optimum produces a posterior close to the true posterior in . The conjugate domain matters for this step, so we first treat a potential defined on and then the unit-ball source used by Kim et al. (2025).
Write and retain from Section 3. For the full-space case, take and assume the total potential is convex, continuously differentiable, and globally -smooth in , uniformly in , for .
Claim C.2 (Calibration for the full-space conjugate). Under these conditions,
The objective therefore controls posterior error with in Theorem 2, without assuming the candidate summary is sufficient. The smoothness condition concerns the total potential, including under affinity.
Proof. For , evaluate the conjugate at and apply the smoothness bound to obtain
Since has the same law as , the expected left side at equals . Coupling and through the same source draw then gives
28
☐
For the unit-ball case, use the restricted conjugate throughout the objective defining . Assume almost surely and the total potential is continuously differentiable on a neighborhood of , convex and -smooth on , with . Put and suppose for , where . The radius-uniform source of Kim et al. (2025) has ; a volume-uniform source on permits .
Claim C.3 (Calibration for the unit-ball conjugate). Under these conditions,
The right side gives the calibration function for the bounded-source objective used in DGQB. The additional square-root term accounts for source points near the boundary, where the full-space proof may evaluate the conjugate outside its domain. This function is continuous, nondecreasing, and concave, and vanishes at zero, as required by Theorem 2.
Proof. Fix and . For and , the step keeps in . Evaluating the restricted conjugate there gives
The inequality also holds when . Apply it with , and bound the squared error on the remaining boundary shell by . The expected Fenchel gap is , so
For , choose when this is at most one; otherwise the uniform bound already gives the claimed inequality. For , let . The same-source coupling completes the proof.
C.1.3 Finite sample error
The training algorithm replaces the conjugate supremum by a maximum over sampled source points. We control this approximation together with the statistical error, and use Proposition B.2 to make the dependence on simulation budget and function class explicit.
Use the unit-ball setting and uniform bounds of Claim C.3, and divide all objectives by , retaining their symbols. This normalization changes the calibration to . Take independent prior–simulator pairs and an independent bank of independent source draws in (3). Let be the resulting normalized sample-maximum criterion and the same criterion with each maximum replaced by the exact conjugate on . Then for each fixed candidate. Normalize the potentials by , which changes neither their gradients nor these objectives.
For , let be the smallest number of admissible representatives needed to approximate every normalized potential uniformly within . Thus this count measures the complexity of the potentials used by the complete posterior learner, including its encoder. Assume the class conditions of Proposition B.2, including its normalized-potential stability condition. For affine potentials, , , and counts the encoder and any auxiliary parameters; for directly learned raw potentials , put and count any auxiliary parameters in . Use the corresponding regularity constant from that proposition, retaining the summary dimension and encoder sensitivity in the affine case. Finally, assume for and , where is the Euclidean ball of radius centered at . The volume-uniform and radius-uniform sources permit and , respectively. Below, denotes a finite constant depending only on and .
Claim C.4 (Statistical and source-maximum errors). Under these conditions,
The actual training criterion satisfies
For the raw class, each supremum ranges over its admissible directly learned potentials.
The first two terms control learning the encoder and potential, while the last controls the sample maximum. Affinity changes the functional exponent from to under the stated classes. The source-observation combinations are formed from two independent samples of size and therefore do not provide independent observations.
Proof. Conditionally on the source bank, the unnormalized contribution of one simulator pair lies in , by Fenchel's inequality and the B-Lipschitz bound on . Replacing one simulator pair therefore changes by at most . Replacing one source draw changes only its product-average term, by at most . The bounded-differences exponential bound over these 2N independent inputs gives
Conjugation is 1-Lipschitz in potential values, so the normalized empirical and population objectives are each 1-Lipschitz in the covering metric. Proposition B.2 supplies the cover bound, and Claim B.5 gives (37). In particular, its proof balances the errors at when this is at most one; otherwise the bounded criterion gives the displayed bound directly.
For the source approximation, put . The conjugate integrand is -Lipschitz, hence uniformly over the candidate class. An -net of with at most points and the source small-ball condition give
Choose of order with a sufficiently large constant depending only on and . This tail bound and yield , proving the second bound. For the stated small-ball constants, the ball of radius centered at lies in , and the radius-uniform density is at least times the volume-uniform density.
Under affinity, centered summaries satisfy and hence . Thus the product-average term retains only , and the empirical criterion reduces to (5), the objective in Equation (3.4) of Kim et al. (2025), up to normalization. Fitted centering and normalization parameters may depend on the training data if their possible values are included in the fixed covered class.
Under the conditions of Theorem 2, the corresponding posterior and insufficiency risks satisfy
This bound retains the source-maximum error explicitly. Unbounded observation or parameter domains, a fixed number of source points per maximum, and changing minibatch normalization require additional control of the corresponding discrepancies.
C.2 Summary flow matching
In SFM, the parameter-displacement objective guides summary learning, and a block-triangular flow uses the learned summary for posterior sampling. We examine these two steps and then control the empirical regression error.
C.2.1 Two-way guidance
We first show how the parameter regression loss penalizes posterior information discarded by the summary. The comparison uses the best prediction of parameter displacement given the full observation as its benchmark.
Fix an encoder and let , where has the prior-simulator law. The sources and are independent of each other and of , and is independent of these variables. Use the straight-line interpolants in (9), with displacements and , and assume finite second moments for and the fitted velocities. Define the conditional displacement means and the associated benchmark and information loss by
The benchmark is independent of because neither the parameter path nor its displacement uses the summary. Write for the parameter loss in (10).
Proposition C.5 (Two-way guidance in SFM). Under the preceding conditions,
Both terms are nonnegative. If , then
This is the population basis of two-way guidance in SFM. The summary organizes velocity learning through , while an insufficient summary incurs a positive parameter-regression penalty that changing the velocity alone cannot remove. Note that the second term also reflects the source noise in : it does not necessarily vanish even when is sufficient. Thus, sufficiency removes the information-loss gap, while attaining the full-data benchmark additionally requires this second term to vanish.
Proof. Independence of gives the two orthogonality relations
The predictor is a function of either conditioning collection, since and . Expanding its squared residual first around and then around eliminates both cross terms and proves (38).
For the equivalence, suppose . At each , the conditional density of given is
where is the centered Gaussian density with covariance . Define by replacing the posterior in this integral with . Differentiating the Gaussian convolution and using yields
with the same identity for and . Gaussian smoothing justifies differentiation under the integral and gives strictly positive smooth densities.
If , Fubini's theorem supplies a deterministic for which for almost every and -almost every . By positivity and continuity, the scores in (39) agree everywhere in for almost every such . The two log densities therefore differ by a constant, which is zero because both densities integrate to one. Taking characteristic functions and canceling the nonzero Gaussian factor gives equality of the posterior characteristic functions at every frequency . Since , this proves posterior sufficiency. Conversely, posterior sufficiency gives the same conditional law of given and given , hence almost surely.
The training update makes this guidance explicit. Suppose and are differentiable and differentiation can be interchanged with expectation. Let , and write and for the corresponding Jacobian matrices. The chain rule gives
For an affine parameter velocity , the Jacobian is . Thus the fitted coefficient matrix passes the parameter-displacement residual to the encoder, and the encoder supplies the summary used to learn that matrix. The stop-gradient in (10) sends no encoder derivative from the summary loss, leaving summary learning to this parameter-directed update.
C.2.2 Posterior accuracy
We next show why the block-triangular joint transport produces posterior samples when conditioned on a learned summary. This is the conditional-sampling property of Baptista et al. (2024), applied to the dynamic construction of Zhai et al. (2026).
Let be the flow of (6) and write
Assume the joint velocity is continuous in , globally Lipschitz in uniformly in , and uniformly bounded at . These conditions give unique forward and backward flows; the summary component depends only on , and is invertible. Use independent sources as above and assume the joint endpoint is correct:
Draw fresh independently of .
Proposition C.6 (Posterior sampling from the joint flow). Under these conditions, for -almost every s,
Consequently,
Correct joint transport leaves precisely the posterior information lost by the summary. A posterior-sufficient summary therefore gives the full-data posterior through the backward-summary and forward-parameter sampling procedure in Algorithm 2.
Proof. Take independent of with the law of . By definition, , and has the law of under (41). For bounded measurable functions and , independence of the sources gives
Uniqueness of the conditional distribution proves (42), and substituting gives the risk identity.
The exact-joint-transport condition concerns the distribution generated by the flow. The unrestricted population optimum of the summary regression is , whereas the summary component of the unrestricted joint interpolation velocity is . Thus regression convergence alone does not establish (41); posterior calibration for the fitted sampler remains a condition when applying Theorem 2.
C.2.3 Finite sample error
We now control the finite-sample error of the two regression losses used in training. The encoder affects both the summary path and the summary-displacement target, so both changes enter the argument.
Take independent and identically distributed records generated as above. When the two losses use separate source and time draws for one simulated pair, include both sets of auxiliary draws in that pair's record. Fix the candidate class before training and assume uniformly bounded source and target variables, summary outputs, and velocities. Let and be common
Lipschitz constants in the summary argument for the parameter and summary velocities. Along with defined above, write , and let and bound their norms uniformly over records and candidates. Choose with and define the normalized regression loss and its averages by
where is evaluated on the ith record using the candidate encoder and velocities.
For , let be the smallest number of admissible representatives needed to approximate every normalized regression loss uniformly within over all records. This count includes changes in both fitted velocities, their summary inputs, and the summary-displacement target. Assume the class conditions of Proposition B.2 for these complete losses. For an affine parameter velocity, the coefficient functions depend on , so , , and counts the encoder and summary-velocity parameters. Use from that proposition, including the sensitivities of the moving summary and target. For a raw joint-flow regression satisfying the corresponding complete-class conditions, use and its own and , retaining the cost of its observation-velocity network.
Claim C.7 (Statistical error of the SFM regression objective). Under these conditions,
The same bound holds for the corresponding raw regression class with its own supremum and constants.
This controls the statistical error of the actual regression objective, including its learned inputs and targets. Affinity changes the functional exponent from to , while retaining the encoder and summary-velocity costs.
Proof. Consider two candidates whose uniform encoder and velocity distances are at most , , and , using Euclidean output norms. On each record, their summary paths and summary-displacement targets differ by at most , while their parameter paths and parameter-displacement targets coincide. Therefore,
and the uniform residual bounds give
These inequalities identify the moving-input and target terms included in the complete-loss stability condition of Proposition B.2. Since , Hoeffding's lemma gives for each candidate and every . Proposition B.2 and Claim B.5 give the result, with the balancing resolution when it is at most one. The bounded loss handles the remaining case. For the raw class, the observation path and displacement are fixed by each record, and the same argument applies to its complete velocity loss under the stated conditions.
This empirical result concerns the sum of both regression losses; Proposition C.5 concerns the parameter loss and its full-data benchmark. Applying Theorem 2 additionally requires posterior calibration and empirical optimization accuracy for the chosen complete criterion. The detached updates must satisfy that optimization requirement separately, since the summary loss contributes no encoder gradient. With these conditions, zero approximation gap, and the optimization and objective-approximation allowances in Corollary 3, the affine-summary posterior bound is
Here retains the regression-loss normalization in the calibration. For the raw class, replace by and use its own class constants and calibration. Unbounded inputs, including Gaussian sources, require separate tail or truncation control for the empirical rate.
C.3 Summary Bayesian GAN
SB-GAN learns an affine-summary generator through the Wasserstein minimax objective of Wang and Ročková (2026, Section 2.2). We show how the full-observation critic guides summary learning, then connect the adversarial objective to posterior accuracy and its empirical approximation.
C.3.1 Two-way guidance
We first show why the critic can detect posterior information discarded by the generator's summary. The key is that the critic receives the full observation X, even though the generator depends on X only through .
Fix and , and assume . Let range over all jointly measurable critics that are 1-Lipschitz in for every fixed , with . This normalization leaves the objective unchanged because the simulated and generated pairs have the same observation marginal. Define the ideal objective and its full-data benchmark by
Proposition C.8 (Two-way guidance in SB-GAN). Under these conditions,
and
This is the population basis of two-way guidance in SB-GAN. Affinity specifies how the learned summary enters posterior generation, while the full-observation critic penalizes posterior differences that this summary fails to retain. An insufficient summary incurs a strictly positive loss even after optimizing the generator. If the summary is posterior sufficient and its posterior is representable by the generator class, zero loss is attainable.
Proof. Conditional Kantorovich–Rubinstein duality bounds every admissible critic’s objective by the right side of (43). For the reverse inequality, take a countable family of normalized 1-Lipschitz functions on that is dense for uniform convergence on compact sets and contains zero. The bound and finite first moments ensure that this family determines . At each , select the smallest index maximizing the conditional integral difference among the first functions. This defines a jointly measurable critic whose objective increases to the conditional Wasserstein expectation as . Monotone convergence proves (43).
The summary posterior is the mixture of the full posteriors conditional on S. Since the generated law is fixed given S, mixing conditional optimal couplings gives
Such measurable couplings exist on Euclidean parameter spaces under the stated moments (Villani, 2009, Corollary 5.22). Averaging this inequality and applying the triangle inequality between the full posterior, generated law, and summary posterior yields (44).
The generator update passes this critic signal to the summary network. For the affine generator in (11), the chain rule at differentiability points gives
Backpropagating this derivative through updates the encoder according to discrepancies detected by the critic.
C.3.2 Posterior accuracy
The adversarial objective controls conditional error. We now give conditions that convert this control into the posterior guarantee used in Theorem 2.
First suppose that all true and generated parameter laws are supported on a common set of diameter .
Claim C.9 (Posterior error on bounded parameter spaces). Under this condition,
Thus the ideal adversarial loss gives a linear bound on posterior error, providing the calibration required by Theorem 2.
Proof. For each , take a measurable conditional -optimal coupling. The inequality on the common support bounds its squared transport cost by times its cost. The optimal cost is no larger; averaging and using (43) proves the claim.
For unbounded parameter laws, suppose instead that some and satisfy
Claim C.10 (Posterior error under a moment bound). Under this condition,
A uniform moment bound of order greater than two therefore gives posterior calibration on an unbounded parameter space. Both displayed bounds are continuous, nondecreasing, and concave functions of the loss, and vanish at zero.
Proof. Average measurable conditional -optimal couplings over , and let be the distance between their paired parameter draws. Under this coupling, and . Hölder's inequality gives
The same coupling bounds the average conditional error by .
C.3.3 Finite sample error
We next control the finite-sample error when the critic is a neural network. This requires a cover of the complete adversarial loss, including the encoder, generator, and critic.
Take independent and identically distributed records formed from prior-simulator pairs and independent source draws on a bounded source domain. Assume and uniformly over the generator class, for . In this subsection, ranges over a fixed neural critic class that is exactly 1-Lipschitz in and satisfies . Fix all candidate classes before drawing the training records and define
For , let be the smallest number of admissible representatives needed to approximate every normalized loss uniformly within over all records. This count includes the encoder, generator, and critic. Assume the class conditions of Proposition B.2 for these losses. For an affine generator, is the source dimension, , and counts the encoder and critic parameters. For directly learned raw generators , use and count the critic parameters in . Use the respective from that proposition, including critic sensitivity and, for the affine class, the summary dimension and encoder sensitivity.
Claim C.11 (Statistical error of the adversarial objective). Under these conditions,
For the raw class, the supremum ranges over its admissible directly learned generators.
Maximizing over the critic preserves the statistical bound when the critic is included in the loss cover. Affinity reduces the generator's functional dimension from to p, while the critic's learning cost remains because it receives the full observation needed to detect posterior information loss.
Proof. For two candidates, the Lipschitz property gives
Thus the class conditions in Proposition B.2 transfer the generator and critic covers to the complete loss. Write and for empirical and population averages over the independent records. Taking the critic supremum satisfies
Since , Hoeffding's lemma gives the centered exponential bound for each empirical loss average. Proposition B.2 and Claim B.5 then prove the claim. The balancing resolution is when this is at most one; otherwise the bounded objective gives the result directly.
To obtain posterior guarantees, the neural-critic approximation error and errors from the sampled gradient penalty, inner optimization, and numerical evaluation must satisfy the aggregate allowance (35), using the same normalization 4T. The optimization gap in Theorem 2 is measured against the empirical critic supremum; the loss against the last trained critic alone does not establish that gap. Suppose for the normalized ideal objective, and each of that aggregate allowance and is no larger than the sum in square brackets in the preceding claim. If is the diameter of the common parameter support, which is at most 2T, Claim C.9 and Corollary 3 give
Thus the complete learning conditions give an explicit bound on both posterior error and summary insufficiency. The moment-based calibration in Claim C.10 applies to unbounded parameter laws; unbounded source, observation, or parameter domains require additional tail control for the empirical rate.
C.4 Neural posterior estimation
C.4.1 Two-way guidance
We show how the conditional-density objective of NPE penalizes posterior information lost by the summary. We use the prior-simulation objective in Section 2.2 of Greenberg et al. (2019), with both the summary and the conditional density learned jointly. Assume that the full-data posterior, summary posterior, and fitted conditional law have measurable densities with respect to a common -finite measure on the parameter space. Suppose their log densities are absolutely integrable under the simulated joint law of , for every candidate under consideration. These conditions ensure that the loss differences below are finite. With natural logarithms, the population objective and its full-data optimum are
Write for Kullback–Leibler divergence.
Proposition C.12 (Information loss and posterior fitting). Under these conditions,
(45)
Both terms in the decomposition are nonnegative. The first is zero if and only if for prior-predictive almost every . The second is zero if and only if almost surely.
This decomposition explains two-way guidance in NPE. The summary supplies the conditioning information for posterior density estimation, while the negative log-likelihood penalizes posterior information that the summary discards. Note that improving the density estimator with the summary fixed cannot remove the first gap. Thus, approaching the full-data optimum requires both a summary with little information loss and an accurate conditional density given that summary.
Proof. Conditioning the log-density ratio on X gives the first equality in (45). Insert the summary posterior into that ratio to obtain
Condition the first term on and the second on . This yields the two divergences, since the conditional parameter law given is . Both outer expectations are written as because . Nonnegativity and the equality conditions for KL divergence prove the remaining statements.
The same objective supplies the encoder's training signal. At differentiability points, each simulated pair contributes
where is the encoder Jacobian. This derivative updates the summary according to how well the conditional density explains the simulated parameter. The population decomposition gives this training signal its information-preserving justification; no affine dependence on S is required.
C.4.2 Posterior accuracy
We next show when a small negative log-likelihood excess implies a small posterior error. Assume that the posterior sampler generates the fitted conditional density exactly, as a conditional normalizing flow does by transforming its base draws. First suppose the true and fitted conditional laws are supported on a common set of diameter , uniformly over the candidate class.
Claim C.13 (Posterior error on bounded parameter spaces). Under this condition,
Thus, the density-estimation objective controls the full posterior error, including the error caused by an insufficient summary.
Proof. Write for total variation distance. A maximal coupling and Pinsker's inequality give
Apply this inequality to and , then average over . Jensen's inequality and (45) give the claim.
For unbounded parameter laws, suppose instead that some and satisfy
This bounds the prior moment and the average fitted-posterior moment uniformly over the candidate class.
Claim C.14 (Posterior error under a moment bound). Under this condition,
This result allows unbounded posteriors, including Gaussian laws with the stated moment control. Both posterior bounds are continuous, nondecreasing, and concave functions of the loss excess, and vanish at zero. They therefore provide the calibration required by Theorem 2.
Proof. For each X, couple the true and fitted posterior maximally, using their common density minimum for the shared part. The measurable conditional densities make this a measurable coupling, which we average over X. Let Y be the distance between its paired parameter draws. Pinsker's and Jensen's inequalities, followed by (45), yield
The moment condition gives . Hölder's inequality on the event gives
The average conditional error is no larger than this coupling's squared cost , proving the claim.
C.4.3 Finite sample error
We now bound estimation of the NPE objective in terms of the total number of fitted parameters. Fix the candidate class before drawing independent prior–simulator pairs , and define
Assume that the negative log densities of all candidates lie in a common interval of length over all possible training pairs. Write for the complete parameter vector of the encoder and conditional density network, including any fitted normalization parameters, and let be its dimension. Thus counts all fitted parameters, whereas in Corollary 3 counts only the encoder and auxiliary-network parameters. Assume that the candidate parameter set is contained in for some and that the complete normalized losses
satisfy
for all candidates . For this class, set . These conditions bound the sensitivity of the entire loss to every fitted parameter and impose no affine dependence on the summary.
Claim C.15 (Statistical error of the density-estimation objective). Under these conditions,
The statistical term counts the encoder and density network together, including the cost of learning the summary. For fixed n and a fixed class, it decreases at order .
Proof. The normalized losses take values in an interval of length one. For each fixed candidate, Hoeffding's lemma bounds the moment generating function of its centered empirical mean by . Claim B.3 bounds the logarithm of the covering number by for . Apply Claim B.4 with concentration constant and choose . The two covering errors sum to , and the deviation over the representatives is at most . Multiplying by proves the claim.
Take and in Theorem 2 for the NPE population and empirical objectives above, with . Under the bounded-support condition of Claim C.13 and the other hypotheses of Theorem 2,
This follows by applying the posterior calibration to the expected loss excess and using concavity. Under Claim C.14, the same square bracket is raised to and multiplied by instead. For fixed and classes with finite , , and , the statistical term tends to zero as . Consequently, and imply and under the respective calibration conditions.
The bounded-loss and uniform-sensitivity assumptions are sufficient conditions for this rate and must be verified for the complete density architecture. A finite number of network parameters alone does not establish them. Normalizing flows with Gaussian tails generally have unbounded negative log densities, which require additional tail control for concentration beyond the posterior moment condition above.
C.5 Neural ratio estimation
C.5.1 Two-way guidance
We show how distinguishing dependent parameter-observation pairs from independent pairs guides the summary toward posterior sufficiency. This is the classification problem used by Hermans et al. (2020, Section 3.1 and Appendix B) to estimate the likelihood-to-evidence ratio. Hold the networks fixed and write . Let be the simulated joint law of , let be its observation marginal, and set and . Thus generates dependent pairs, generates independent pairs, and averages these two distributions with equal class probabilities. The notation , , and denotes expectation under these respective laws; retains its prior-predictive meaning.
Assume on standard Borel spaces. Write and let be the posterior-to-prior density ratio given the summary, so
The Bayes probabilities of the dependent class are
For , define the Bernoulli divergence with the usual endpoint conventions, and let be binary entropy. The population objective and its full-data optimum are
Assume and finite population binary cross-entropy for every candidate under consideration.
Proposition C.16 (Information loss and classifier fitting). Under these conditions,
(46)
Both terms in the decomposition are nonnegative. The first is zero if and only if for prior-predictive almost every . The second is zero if and only if -almost surely.
This is two-way guidance in NRE. The summary supplies the information used to distinguish dependent and independent pairs, while binary cross-entropy penalizes posterior information lost through the summary. An accurate classifier for a fixed insufficient summary cannot remove the first gap. In particular, collapsing the summary to a constant incurs a positive information-loss gap whenever the full posterior depends on X.
Proof. Conditioning under the independent-pair law gives . Since , it follows that
The cross-entropy equals . Subtracting proves the first equality in (46). Conditioning on replaces in the cross-entropy by . Subtracting and adding then yields the classifier-fitting term and the entropy difference
This identity also holds at the endpoints: conditional on or 1, the same conditional-expectation relation forces almost surely.
The equality condition for Bernoulli divergence makes the first gap zero exactly when M-almost surely. The measures and are equivalent, and is injective for finite . Hence this equality is equivalent to Q-almost surely, which is posterior sufficiency by the conditional-density identities and Fubini's theorem. The equality condition for the second divergence gives the remaining statement.
Both types of training pairs update the encoder. For class label , the derivative with respect to the summary at differentiability points is
Backpropagating through therefore teaches the summary to retain the parameter-observation dependence detected by the classifier. The population decomposition identifies exactly when that retained information is posterior sufficient.
C.5.2 Posterior accuracy
We next turn classification error into posterior error after normalizing the fitted likelihood-to-evidence ratio. Define the fitted odds, their prior normalizer, and the resulting posterior law by
At the summary Bayes classifier, these odds equal , the normalizer equals one, and this law equals . For the following bounds, assume uniformly over the candidate class, for some . This condition keeps the fitted odds bounded and ensures almost surely. First suppose the prior is supported on a set of diameter .
Claim C.17 (Posterior error on bounded parameter spaces). Under these conditions,
The classification objective therefore controls posterior error when conversion from classifier probabilities to odds is stable. The bound does not impose an upper bound on the true Bayes classifier; its constant controls the fitted classifier.
Proof. Using , we obtain
The last step uses , Cauchy-Schwarz, and (46). For each , and
Thus the average total variation distance is bounded by . Applying TV proves the claim.
For unbounded parameter laws, suppose instead that some and satisfy
This bounds the prior moment and the average moment of the normalized fitted posterior.
Claim C.18 (Posterior error under a moment bound). Under this moment condition and the same bound on the fitted classifier,
Both bounds supply the concave posterior calibration required by Theorem 2 for the normalized fitted law. Sampling from that law with a finite proposal pool introduces a further approximation error.
Proof. Take measurable conditional maximal couplings of the true and normalized fitted posteriors, and let Y be the distance between the paired draws after averaging over X. The preceding proof bounds the mismatch probability by
The moment condition gives . Hölder's inequality, , bounds the average conditional cost and proves the claim.
C.5.3 Finite sample error
We control both estimation of the classification objective and the finite proposal pool used for posterior sampling. For , assume uniformly, and write for the common range length of the positive and negative label losses. Take independent prior-simulator pairs and fix the candidate class before simulation. Let be a permutation with no fixed points, chosen independently of these pairs. It may act separately within disjoint batches, as in the implemented nonzero cyclic shifts of freshly simulated batches. Define the empirical objective
Write for the complete parameter vector of the encoder and classifier, including any fitted normalization parameters, and let be its dimension. This total parameter count is separate from the encoder and auxiliary-network count in Corollary 3. Assume the candidate parameter set is contained in for some . Define the complete normalized paired loss by
and assume
for all candidates . For this class, set . These conditions count the encoder and classifier together and impose no affine dependence on the summary. Here is the observation size, whereas is the number of simulated training pairs.
Claim C.19 (Statistical error of the classification objective). Under these conditions,
The statistical term includes the cost of learning the summary and the dependence introduced by reusing simulated records in negative pairs. For fixed n and a fixed class, it decreases at order .
Proof. Condition on . Since , each negative pair has law , so the empirical objective is unbiased for the population objective. Replacing one simulated record changes one positive contribution and at most two negative contributions. Each label loss has range length , so the change in the empirical average is at most . The exponential bounded-differences inequality therefore gives, for each fixed candidate and ,
Claim B.3 bounds the logarithm of the complete-loss covering number by for . Apply Claim B.4 with concentration constant and choose . The two covering errors sum to , and the deviation over the representatives is at most . Multiplying by and averaging over proves the claim.
We next bound the error of sampling–importance–resampling with a shared proposal pool. For fixed networks and summary s, draw K independent prior proposals , independently of training and the observation. Conditional on this pool, each resampled draw has law
where is the point mass at . Assume the prior support has diameter . For , let be the smallest number of nonempty measurable cells partitioning this support such that any two parameter values in the same cell are at most apart. Fix such a partition independently of the proposal pool. Thus counts the parameter regions needed to resolve the prior support at accuracy . Reducing requires at least as many cells, while whenever . The count also depends on the size and geometry of the support: for a support contained in , a regular grid gives , where is the parameter dimension. Write for expectation over the independent prior proposals.
Claim C.20 (Posterior error from a finite proposal pool). Under these conditions, for every ,
This bound controls the posterior distribution conditional on the shared pool, averaged over its generation. The term bounds transport within a cell, while controls the error in assigning probability mass across cells using K proposals. A finer partition reduces the first term but can increase the second, so resolving more parameter regions calls for a larger proposal pool. Increasing the number of resampled draws does not remove the approximation error caused by a fixed pool; the pool itself must grow.
Proof. Write and within this proof. The classifier bounds give , where and . For partition cells , let and . The empirical weight average is at least , and . Independence of the proposals and Cauchy–Schwarz give
For the last inequality, the sum is at most . Couple the common probability mass within each cell at squared cost at most and couple the remaining mass at squared cost at most . Substituting proves the claim.
We now choose the partition resolution to obtain an explicit rate in . For , the prior support lies in a box with side lengths at most , so a regular grid gives
Choose for . This choice balances the powers of in the within-cell transport and cell-mass errors. Since , Claim C.20 yields
If , the pool error is zero and this inequality holds directly.
Take and in Theorem 2 for the NRE population and empirical objectives above, with . Under the bounded-support conditions and the other hypotheses of that theorem, for the sampler with a pool of size ,
The first term follows by applying Claim C.17 to the expected loss excess from Theorem 2 and multiplying by two from the squared triangle inequality. The second term is twice the explicit pool error above. This also bounds the posterior error conditional on the shared pool, averaged over pool generation. Convexity of gives the same bound for the randomized sampler after averaging over that pool. For fixed and classes with finite and , and imply and as .
For unbounded parameter spaces, Claim C.18 converts the same explicit loss-excess bound into posterior error for exact sampling from the normalized fitted law . A finite proposal pool on an unbounded support additionally requires tail control for its sampling error. The empirical bounds require uniform classifier bounds and uniform sensitivity of the complete loss to all fitted parameters. A finite network with a sigmoid output alone does not ensure these conditions on unbounded inputs.
D Experimental Details and Additional Results
D.1 Training Settings
We generate fresh prior-predictive minibatches and train a separate model at each observation size, using training seeds 0, 1, 2. We use minibatches of size 256 and 20,000 training iterations. For SB-GAN and Raw B-GAN, each iteration consists of 15 critic updates and one generator update. We use Adam with initial learning rate for the non-adversarial methods and constant learning rate for the adversarial methods, whose one-sided gradient penalty has weight 10. The raw-data counterparts use the same minibatch size, number of training iterations, and learning rates as their summary-based counterparts.
DGQB uses a scalar input-convex network with three hidden layers of width 64 and Softplus activations; its coefficient network has three hidden layers of width 64 and LeakyReLU activations. The SB-GAN coefficient networks use the latter specification. Raw DGQB uses a three-layer partially input-convex network with width 64 in both its convex and observation branches. The flow-matching velocity networks use hidden widths for the observation or summary block and for the parameter block, with BatchNorm and ELU activations. The base widths are for Gaussian and for Brock-Hommes, in increasing order of . Raw B-GAN uses four hidden layers of width with ELU activations.
D.2 Gaussian Conjugate Experiment
We use the model and evaluation procedure in Section 4.1. The DeepSets encoder uses sum pooling, elementwise hidden width 64, post-pooling hidden width 16, and LeakyReLU activations. Preliminary experiments considered summary dimensions including in stages. Based on posterior approximation performance, we adopted and held it fixed across observation sizes and summary-based methods. Training uses standardized , and posterior draws are transformed back to for evaluation.
For the NPE and NRE results in Figure 2(b), we use the same DeepSets encoder. NPE uses five masked autoregressive flow transformations, each with three hidden layers of width 64 and tanh activations. NRE uses a classifier with three hidden layers of width 64 and ELU activations. Their objectives and posterior sampling procedures are given in Appendices A.4 and A.5.
D.3 Brock-Hommes Experiment
We use the model and initial values in Section 4.2, with no burn-in. Observations undergo an elementwise asinh transformation followed by scalar standardization using prior-predictive simulations; parameters are standardized using their prior means and standard deviations. The DeepSets branch applies mean pooling to four-entry lag windows and returns 48 outputs. The LSTM branch has one layer with 128 hidden units and a linear head returning 16 outputs. Preliminary comparisons of summary dimensions and branch allocations led to this configuration, which is shared by all five summary-based methods across observation sizes. For flow matching, we solve the ODEs using fourth-order Runge–Kutta on a 64-point time grid.
Figure 4 compares all five methods and their raw-data counterparts on the first observed series and training seed 0. The left and right panels show and , respectively. Solid and dashed curves bound highest-density regions containing 50% and 90% of each fitted bivariate marginal kernel density estimate (KDE).
Interpretation of posterior contours
We fit each Gaussian KDE using all 2,000 draws, with Scott's bandwidth multiplied by 1.35, and calibrate its probability-mass thresholds before restricting the display range. For visibility, we retain common axes based on the central 99.4% of pooled draws from DGQB, SFM, SB-GAN, and Raw B-GAN. Some wider distributions, particularly Raw FM and Raw NRE, extend substantially beyond these axes; the visible contour fragments alone do not enclose the stated probability masses.
The plots illustrate changes in posterior location and spread, with clear summary/raw differences for SFM and NPE. These changes are not uniform across methods, observation sizes, or parameter marginals. In particular, SB-GAN retains visible displacement from the generating parameter in several panels, DGQB produces very concentrated regions that sometimes exclude it, and NRE does not display monotone contraction as n increases. A single marginal region excluding the generating parameter does not establish miscalibration, and concentration alone does not establish accurate uncertainty quantification. The reported masses describe each fitted two-dimensional KDE. From this experiment alone, we do not intend to establish coverage or the accuracy of the full four-dimensional posterior, and the exact posterior is unavailable in closed form. We therefore use these visualizations as qualitative diagnostics, with conclusions about relative performance based on the energy-score summaries instead.
50% KDE mass ---- 90% KDE mass ★ Generating parameter
(a)
(b)

Figure 4: Brock–Hommes posterior draws and marginal KDE contours: (a) and (b) . Rows show the five summary-based learners followed by their raw-data counterparts; columns within each half increase n. All panels use the first observed series, training seed 0, and 2,000 posterior draws. Solid and dashed contours enclose 50% and 90% of the full fitted marginal KDE; stars mark the generating parameter. Axes are shared within each half, and some contours extend outside the displayed range.
Additional NPE and NRE results
We jointly train NPE and NRE with the same q = 64 DeepSets–LSTM encoder described above. NPE uses five masked autoregressive transformations, each with three hidden layers of width 128 and tanh activations; NRE uses a classifier with three hidden layers of width 128 and ELU activations. The raw versions use the full transformed observation vector as input. NPE generates posterior draws directly, whereas the reported NRE draws use 64 parallel Metropolis chains targeting the learned ratio times the known prior, with 1,500 warm-up iterations and 2,000 retained iterations per chain, followed by subsampling to 2,000 draws. Numerical convergence and effective-sample-size checks screen the NRE sampler and do not certify the accuracy of the learned posterior.
Figure 5 reports the energy score in (23) for both methods and their raw-data counterparts. For this additional comparison, all four learners are evaluated on the same first observed series, and we report the mean and sample standard deviation over training seeds 0, 1, 2. Thus, this figure uses one common test series, whereas Figure 3 first averages over three test series within each seed. Both NPE and NRE with jointly learned summaries achieve lower mean energy scores than their raw-data counterparts at every observation size considered. NRE exhibits substantial seed-to-seed variation at n = 500; all three seeds are retained in the summary. These results support relative improvements under the reported energy-score criterion, without establishing calibrated uncertainty or consistent posterior recovery for every learner.

Test series 0; mean ± SD over 3 training seeds.
Figure 5: Brock–Hommes energy scores for NPE and NRE on the same first observed series: mean and sample SD across three training seeds, using 2,000 posterior draws per run. Solid lines with filled markers denote learned summaries; dashed lines with hollow markers denote raw observations. Lower scores are better, and error bars show SD rather than confidence intervals.