In this paper
AbstractIntroductionRelated workThe TARP-CvM loss: A strict divergenceThe TARP constructionCredible regions and expected coverageThe population objectiveMaking the objective trainableThe closed form estimatorReference pointsRelaxation of the indicatorExperimentsTARP-CvM as training signalImaging inverse problemsSBI benchmarkConclusionAI use statementAcknowledgmentsProofsRules, their topology and the support of ConventionsPreliminary factsFrom zero loss to calibration on the supportFrom calibration to invariance to the reference pointFrom invariance to the reference point to equal densitiesProof of Theorem 1Training algorithmUnbiased estimator of the Cramér–von Mises statisticScoring rules and loss landscapesDefinitionsStrict propriety and trainingLoss landscapesExperimentsToy modelSimulation Based InferenceImaging inverse problemsReferencesWorksComputer Science
Training Calibrated Conditional Generative Models with a Sample-Only Coverage Loss
Abstract
Conditional generative models have become the tool of choice for sampling posteriors in scientific inverse problems, where we seek to sample images or signals conditioned on a set of indirect and noisy measurements. Yet they are often overconfident, which is a critical failure in scientific applications where accurate uncertainty quantification is essential. Existing regularizers fall short in complementary ways: differentiable coverage objectives require the model's density and do not identify the posterior, while strictly proper scoring rules such as the energy score need only samples but do not directly enforce coverage. We close this gap by introducing a differentiable loss function based on the expected coverage probability, estimated from samples alone. It applies to any conditional generative model, with no need for tractable densities or architectural changes. We prove that it is a strict divergence, vanishing if and only if the model equals the true posterior. On simulation-based inference benchmarks, it matches a density-based coverage loss without evaluating the density. On high-dimensional imaging inverse problems, it yields better-calibrated posteriors than scoring-rule regularizers, with little change in the reconstruction quality of point estimates.
Introduction
Inverse problems are ubiquitous across scientific domains, including medical imaging ([28]), astrophysics ([1, 36]), engineering ([30]), and economics ([20]). Measurements of the signal of interest are typically acquired indirectly, only partially, and corrupted by noise, making the recovery of the underlying parameters ill-posed. Many different parameters can explain the same observations, so we seek to sample from the full range of admissible signals; such samples enable uncertainty quantification.
Bayesian inference provides a principled framework for this, modeling the set of all plausible solutions through the posterior distribution of the parameters given the observations. Deep generative models have made it possible to learn this posterior from pairs of parameters and corresponding measurements. Normalizing Flows (NF, [37, 35]), generative adversarial networks (GANs, [15]), and more recently diffusion ([39, 41] (Ho et al. 2020)) and flow ([27, 2]) models have all been successful at conditional sampling. However, each of these models has known failure modes that produce unreliable posteriors. GANs are prone to mode collapse ([31]), and NFs have been shown to be frequently overconfident for posteriors ([17]). Diffusion models, while achieving remarkable sample quality, have also been found to under-represent the uncertainty of the true posterior ([44]). We seek models with valid conditional coverage: for every measurement and every level , whenever the model assigns probability to a region of signals, the true signal should fall in that region with probability under the posterior , that is, of the time over hypothetical draws of the true signal conditioned on that measurement. Requiring conditional coverage for all regions is equivalent to the learned posterior estimate equaling the true posterior , but it cannot be checked directly, since a dataset typically contains a single ground-truth signal per measurement.
Two families of training objectives address this problem, each with a complementary weakness. Coverage objectives ([10, 13]) add to the training loss a differentiable measure of the estimator’s coverage, typically computed on its highest probability density (HPD) regions, or a constraint favoring conservative estimators. They target coverage directly, but they have two limitations. Computing HPD regions requires evaluating the estimator density, which restricts these methods to architectures with tractable likelihoods, such as NFs, and excludes diffusion models and GANs. Moreover, they enforce marginal coverage, which does not identify the posterior: many distributions, including the prior, have valid marginal coverage. Strictly proper scoring rules, such as the continuous ranked probability score (CRPS) or the energy score, require only samples and are uniquely minimized at the posterior, but they do not target coverage, and in practice they can yield poorly calibrated models due to finite-sample effects, model misspecification and the geometry of the loss landscape (§ 2).
The basic idea is to assess a conditional generative model by asking how much of its probability mass lies closer to a reference point than the true signal does. For a given measurement , choose a reference point and consider balls centered at this point. The model assigns a probability mass to each ball, and we can check how often the true signal falls inside it. If the model is correct, the two agree at every probability level, and we measure departures from this agreement with a Cramér–von Mises (CvM) discrepancy. This construction builds on TARP (Tests of Accuracy with Random Points, [26]), and we call the resulting loss TARP-CvM. The converse depends on how reference points are chosen. A reference rule assigns a reference point to every measurement, and a single rule is not enough, even one that depends on the measurement. Its coverage is averaged over measurements, so over-coverage at some measurements can balance under-coverage at others. We therefore compute the discrepancy separately for many rules and average the discrepancies, rather than pooling their coverage. Our main theoretical result shows that if the rules can place reference points anywhere and can differ across regions of measurement space, this average vanishes only when the model equals the true posterior. Our contributions are:
Theory: a sufficient condition on the distribution of measurement-dependent reference rules under which our TARP-CvM loss vanishes if and only if the model equals the true posterior.
Algorithm: a sample-only, differentiable estimator of TARP-CvM that applies to any conditional generative model, together with a practical construction of reference rules that satisfies this condition.
Experiments: on simulation-based inference, TARP-CvM matches a density-based coverage loss without evaluating the density; on high-dimensional imaging inverse problems, it is the only regularizer we tested that brings the posterior into the Mira null band on all three problems, with little change in the quality of point estimates.
Problem formulation. We seek to recover parameters from indirect measurements . Knowledge of the data likelihood may be used to generate training samples but is not otherwise required. There may exist a forward model such that , where is a noise vector, and together and the distribution of control the data likelihood . This setting encompasses a wide range of problems: in inverse problems, may be a high-dimensional medical image of a patient’s anatomy, the raw measurements collected by an MRI scanner, and a model of the scanner’s measurement process; in simulation-based inference, may be the parameters of a physics simulation, with the simulator itself; in which case we seek to infer from observations . We seek to sample from the posterior distribution , but cannot evaluate the prior density . We have only samples, a training set of pairs drawn from the joint distribution , so that the are samples from the prior. Our strategy is to train a conditional generative model, denoted , which takes as input a measurement vector and a random seed and generates a sample , where is the vector of generative model parameters (e.g., neural network weights) to be learned.
Related work
Generative models for inverse problems Model-agnostic methods train a conditional generative model on paired samples , without using the forward model . Model-adaptive methods instead combine a generative prior over , pre-trained without measurements, with knowledge of at sampling time, as in Diffusion Posterior Sampling [6]. We focus on the model-agnostic setting, but the core ideas translate naturally to model-adaptive samplers.
Coverage tests Two standard approaches for empirically testing coverage of are Highest Posterior Density (HPD, Hermans et al., [17]) testing and Tests of Accuracy with Random Points (TARP, Lemos et al., [26]). HPD testing constructs, for each test point , the smallest region under that contains probability mass, and then checks whether the true falls inside that region at the expected rate. However, HPD requires evaluating the density of , which is often unavailable for generative models, and valid HPD coverage is not a sufficient condition for accuracy: a model can pass the HPD test while still differing from the posterior. Figure 1 illustrates the limitations of using HPD to train a conditional generative model vis-à-vis our proposed measure, TARP-CvM; details on this experiment are in § 5.1.
Figure 1. Gaussian linear inverse problem, . (a) 2-d slice of 68% level sets of the prior, the true posterior, and models trained with the HPD loss and with TARP-CvM alone. (b) Expected KL to the true posterior during training. (c) HPD coverage error during training: it cannot distinguish the two models, although their KL differs strongly. Setup and details in § 5.1 and Appendix § 13.§ 1.
TARP instead constructs regions as balls centered at randomly chosen reference points, measuring coverage by the fraction of samples from that fall closer to the reference point than the true does. Lemos et al. [26] show that correct TARP coverage for every assignment of reference points to measurements is necessary and sufficient for the estimator to equal the posterior, so TARP can detect errors that HPD-based tests miss, while requiring only samples from rather than density evaluations. The key distinction is that HPD regions are implicitly centered by the geometry of the estimated density, whereas TARP regions can be centered at arbitrary reference points. This flexibility lets TARP probe aspects of the posterior that HPD coverage cannot capture. Which assignments are needed in practice is left open; we make this precise in § 3. The output of TARP is a coverage curve that plots the empirical coverage rate against the nominal credibility level , with a perfectly calibrated model lying on the diagonal. Although correct TARP coverage for every possible assignment of reference points characterizes the posterior, this does not immediately provide a practical training objective. In particular, averaging coverage over randomly chosen reference points can conceal errors, because overcoverage and undercoverage may cancel. Our contribution is to identify a tractable family of reference rules whose individual coverage discrepancies can be averaged without losing the ability to identify the posterior.
Because TARP produces a coverage curve rather than a scalar, it does not directly support quantitative comparisons between models. Mira [38] provides such a scalar. Over many randomly drawn regions and joint samples , it estimates the probability that the true falls in a region given the fraction of samples from that fall in it. Under calibration, the Mira score equals 2/3, and values below this level indicate overconfidence. Since our loss is built on TARP, evaluating it with TARP coverage alone would be partly circular. We therefore use Mira as an independent metric: it relies on its own random regions, is not optimized by any of the methods we compare, and provides a calibrated reference value with a null band that accounts for sampling noise.
Energy Score and CRPS Using MSE as a loss function assesses a model’s ability to correctly estimate the conditional mean, but it does not reward modeling the spread of possibilities correctly and can prefer overconfident generators. The Energy Score (ES, Gneiting and Raftery, [14])
addresses this by penalizing samples far from the true while rewarding spread. It is strictly proper on distributions with finite first moment, with expectation under uniquely minimized at , and it can be estimated from samples alone. Its univariate case is the continuous ranked probability score (CRPS). In high dimension, the CRPS is often summed over coordinates (pCRPS), which parallelizes across pixels, but only identifies the marginals of the posterior. Strict propriety says that the population objective has the true posterior as its unique global minimizer. It does not guarantee that training finds this minimizer. The loss is estimated on finite batches and minimized by gradient descent, which can stop at local minima, and if the model class does not contain the posterior, the guarantee says nothing about which approximation is found. Training with a strictly proper scoring rule therefore need not produce a calibrated model.
Two objectives can share the same global minimizer but have very different landscapes. In a Gaussian toy model, the energy score is much flatter than TARP-CvM in the direction of the posterior spread when the mean is biased, so that noisy gradients are less likely to correct the spread, whereas TARP-CvM penalizes miscoverage directly (Appendix § 12.§ 3). Our experiments reflect this difference; on most of our imaging inverse problems, ES and pCRPS improve coverage but remain overconfident, whereas TARP-CvM reaches calibration (§ 5.2).
Calibration objectives Several works have proposed training objectives that encourage calibration directly, including the HPD objective of Falkiewicz et al. [13], the rank-based statistics of Yao et al. [45], and the balanced NRE approach of Delaunoy et al. [10], which favors conservative rather than exactly calibrated estimators. These methods target marginal calibration, which does not ensure calibration conditionally on the measurement (Kuleshov et al., [25]). Conformal prediction (Angelopoulos and Bates, [3]) instead acts after training: using a held-out calibration set, it turns the predictions of any trained model into sets that contain the true value with a chosen probability, without assumptions on the data distribution and for any calibration set size. This guarantee is also marginal, since conditional coverage is unattainable in this distribution-free setting, and the procedure does not provide a loss or score that can be used to train the model. Conditioning the calibration statistic on gives a stronger notion of calibration, explored both as a diagnostic (Zhao et al., [47]) and for post-hoc recalibration (Dey et al., [11]). Our loss enforces it during training, at the population level.
The TARP-CvM loss: A strict divergence
This section builds the TARP-CvM loss in three stages. We first describe how the TARP coverage test of Lemos et al. [26] assesses a conditional generative model: it centers a ball at a reference point chosen from the measurement, measures how much of the estimator’s mass lies closer to the reference point than the true parameter does, and checks whether these masses are uniformly distributed (§ 3.1). We then relate this test to credible regions and to the expected coverage probability, which places TARP alongside HPD-based tests (§ 3.2). Finally, we turn the test into a population objective and give conditions under which it vanishes only at the true posterior (§ 3.3).
The TARP construction
TARP replaces the HPD level sets of the density (§ 2) by balls, whose mass can be estimated from samples alone. Given a pair drawn from the joint distribution , for instance a training pair , the construction proceeds in four steps.
Step 1: choose a reference point. For the measurement , choose a reference point . Since this choice must be made for every measurement, we formalize it as a rule.
Definition 1 (Reference rule). A reference rule is a measurable map that assigns to each measurement a single reference point . A rule is deterministic and specifies the reference points of all measurements jointly. Randomness over reference points enters only through a distribution over rules (Definition 4).
Step 2: construct a ball. Center a ball at , with radius chosen so that the ball just contains the true , that is, the ball , where is a distance on and is the closed ball.
Step 3: evaluate its mass under the estimator. Define the credibility value as the probability mass of this ball, where the probability is with respect to the distribution :
In practice, it is the fraction of draws that fall inside the ball (see Figure 2b).
Figure 2. The reference sampler. (a) In measurement space, a hyperplane with random direction through a random measurement splits the batch: measurements on the shaded side (●) receive the displacement , those on the other side (○) receive . (b) In signal space, for one measurement on the side. The adjoint reconstruction (+), the reference (×), the truth (★), and the ball centered at with radius . Estimator draws inside the ball are filled (●), draws outside are hollow (○); the credibility value is the filled fraction. Grey ellipses are the posterior, the dotted ellipse the overconfident estimator.
Step 4: evaluate coverage. Repeating Steps 1–3 over pairs , with the same rule , gives a distribution of credibility values. The conditional coverage of rule at measurement and the marginal coverage, its average over measurements, are
(conditional coverage), (1)
(marginal coverage). (2)
Since depends on only through the reference point , we also write for the coverage at of balls centered at a point , so that . If the estimated posterior is correct, the credibility values of the true parameters are uniformly distributed on at every measurement, (Lemma 1 below). The original TARP test pools the credibility values over randomly drawn reference points. We instead compare them to the uniform distribution separately for each rule and average the resulting discrepancies (§ 3.3).
Credible regions and expected coverage
To relate TARP to HPD-based tests, we view the balls of § 3.1 as credible regions of the estimator and their marginal coverage as expected coverage probability.
Definition 2 (Adapted from Lemos et al. [26]). A credible region map of the estimator assigns to each level and measurement , a set , such that .
In this paper, we compare two credible region maps. The HPD region is the level set of (also the region with the smallest volume) with mass ([5, 21]). Given a rule , the TARP region is a ball centered at reference point , with radius ensuring the ball has mass :
The credibility value is the level at which enters the TARP region: .
Definition 3 (Adapted from Lemos et al. [26]). For any credible region map , the expected coverage probability at level is the probability that the true parameter falls in the region:
We say is calibrated for if for all .
By construction, . So is calibrated for the TARP region given by , when is the identity, i.e., when the credibility values are uniformly distributed.
Assumption 1. is open, and for every , and have continuous densities that are strictly positive on .
Lemma 1. Under Assumption 1, if for every , then for every rule , for every level and every , and hence .
In other words, a correct estimator is always calibrated, no matter how the regions are chosen (Proof in Appendix A). However the converse, calibration for a map implies , depends on the choice of the map, and is the central question of § 3.3.
The population objective
Definition 4. For a distribution over reference rules, we introduce the loss function
iff the estimator is calibrated for every rule in the support of . For a single rule, the integrand compares each credibility level with the frequency at which the true parameter falls in the corresponding region. The inner integral is thus a continuous analogue of the expected calibration error used in classification ([33]), and closely resembles the calibration error of Kuleshov et al. [25] for regression. The outer expectation over rules is what distinguishes it from these per-model calibration scores, and the choice of determines the properties of . We motivate the requirements on below and formalize them in Definition 6.
For a fixed rule , the integral is the Cramér–von Mises distance ([7]) , where , the credibility of the true parameters, whose CDF is , and is the uniform distribution. is non-negative and, under Assumption 1 and for any admissible (Definition 6), vanishes if and only if (Theorem 1); in this sense it is a divergence between conditional distributions. It is not a metric, since it is not symmetric in and does not satisfy the triangle inequality, and it is not a scoring rule, since it is quadratic in the distribution of rather than an average of per-example scores.
Constant reference points cannot identify the posterior. A rule that ignores the measurement lets the prior pass the coverage test. Let us consider a constant rule . If our estimator returns the prior, , the TARP region no longer depends on , since both its center and the distribution defining its radius are fixed. Then . Since and by definition of a credible region, we get , which evaluates the estimator as calibrated.
A single measurement-dependent rule is still insufficient. Reference points must depend on the measurement, but this alone does not guarantee that the loss identifies the posterior. A single rule gives each measurement its own reference point, but its coverage is an average over measurements, and errors at different measurements can cancel. Suppose there are two measurements and , each with probability , and an estimator that is too wide at and too narrow at , with for and . The coverage curves at and deviate from the diagonal in opposite directions and average to it, so at every level: the estimator is calibrated under yet wrong at both measurements. Choosing a better single rule does not help, since the counterexample holds for any .
Comparing rules requires local differences. For a wrong estimator, the conditional coverage (Equation 1) depends on where the ball is centered, so errors can be revealed by comparing different reference points at the same measurement. The loss, however, only sees marginal coverages , so this comparison must be made across several rules. It isolates a subset of measurements only if the collection contains pairs of rules that agree on most measurements and differ on that subset: the difference between their marginal coverages then depends only on the subset. If every pair of rules differs at all measurements, errors can still cancel within each marginal average.
For instance, a simpler reference would add noise to a point estimate at scale (see § 4.2 for definitions), , with drawn either independently for each example or once for the whole batch. Neither is sufficient. With independent draws, the batch yields a single coverage curve, , and a single statistic . The expectation over reference points then sits inside the square of Equation 4, and the examples where can balance those where , so that even if for every example. If instead a single displacement is shared by the batch, each draw is a rule giving a statistic , and the rules satisfy (R1) below. But each constrains only through an average over all measurements, so nothing prevents over-coverage at some measurements from balancing under-coverage at others for every at once, and Theorem 1 does not apply to these rules.
Patching rules resolves the problem. Given two reference rules, a patched rule uses the first rule for measurements on one side of a hyperplane and the second rule for measurements on the other side. Thus, we can change the reference points for one subset of measurements while leaving the rest unchanged. In the example above, with and , the coverages are 0.7 and 0.3 under ; take a second calibrated rule , centered elsewhere, with coverages 0.6 and 0.4. Switching rules across measurements, at and at , gives , and the miscalibration appears.
Definition 5. For rules , and a measurable set , the patched rule uses on and elsewhere, .
Patching along all half-spaces is enough (Lemma 5), which is condition (R2) below. The reference rules must have two properties. First, at every measurement, the available reference points must be sufficiently rich to probe the entire parameter space. Second, the collection of rules must allow reference points to be changed on arbitrary half-spaces of measurement space while remaining unchanged elsewhere. These two properties ensure that coverage errors cannot be hidden by averaging, and that the resulting coverage tests distinguish different conditional distributions.
Definition 6. A distribution over rules is admissible if there exists a countable family of rules (Appendix § 9.§ 1) such that
(R1) For every , the centers are dense in .
(R2) For all and every half-space , with a unit vector of and , the patched rule is in .
With (R1), the loss can place reference points anywhere near the posterior mass at each measurement. With (R2), they may be used on the two sides of a hyperplane in measurement space, which is enough to tell measurements apart.
The switch rule of Equation 8 avoids both problems of the noisy point estimate above. Because each side of the hyperplane shares one displacement, each draw is a rule with its own statistic. Using one displacement on and another on its complement changes the reference points of the measurements in only, so errors inside can no longer be balanced by errors outside it. Calibration of every such rule, for every , forces the coverage at almost every measurement to be the same for every displacement (condition (R2) and Lemma 5).
Definition 7. The TARP-CvM loss is (1) for an admissible .
Theorem 1 (TARP-CvM is a strict divergence). Under Assumption 1 and for any admissible , if and only if for almost all .
Proof in Appendix § 9. The direction follows from Lemma 1. The converse proceeds in three steps. First, zero loss implies calibration for every rule in the support of . Second, patching (R2) implies that the conditional coverage at almost every measurement does not depend on the reference point. Third, since reference points are dense (R1), this invariance holds only if the estimated and true posteriors agree.
Lemos et al. [26] show that a posterior estimator is exact if its expected coverage is correct for every function assigning reference points to measurements. Their argument relies on a functional derivative with respect to this function. They do not specify how reference points should be selected from the measurement, and in their experiments reference points are drawn independently of it, a setting in which the prior also passes the test. Moreover, the original TARP pools coverage over randomly drawn reference points, and the pooled coverage can match the nominal level even when a distribution is miscalibrated with respect to an individual rule, because their errors can cancel in the average. Theorem 1 shows how our TARP-CvM addresses both issues. It gives an explicit sufficient condition on how reference points depend on the measurement (Definition 6). Our loss averages the miscalibration of a distribution with respect to each rule rather than pooling, so that zero loss implies calibration for every rule in the support.
Making the objective trainable
At each training iteration, we draw a batch of paired observations and ground-truth signals , generate samples for each observation , and construct several reference rules. For each rule, we compute the credibility of every ground-truth signal relative to the corresponding generated samples. We then calculate a Cramér–von Mises discrepancy between the empirical distribution of these credibility values and the uniform distribution. The average discrepancy over reference rules is added to the base generative-model training loss.
The closed form estimator
The objective term in Equation (1) is the squared area between the cumulative distribution function of the credibility values and the diagonal. is empirically estimated with credibility values from pairs of the batch, , computed with the same rule . is a Cramér–von Mises statistic, and its derivative admits a closed-form expression ([45]). The statistic measures the squared discrepancy between the empirical distribution of the credibility values and the uniform distribution. The usual integral representation involves indicator functions and is not convenient for gradient-based optimization. By integrating analytically over the credibility levels, we obtain the following expression in terms of the sorted credibility values. See Appendix § 11 for details on deriving this empirical estimator:
where are the sorted credibility values. Writing for the position of in this ordering, so that , the gradient is
The closed form expression is what makes the statistic differentiable, by turning evaluation on a grid of levels , where most indicator counts would have zero gradient, into a polynomial of the sorted values. Integrating over first removes the indicators, and the resulting expression depends on values and rank. It was used by Yao et al. [45] to turn a rank-uniformity test into a differentiable objective for simulation-based inference. We differ in the choice of the statistic. Coordinate-wise ranks constrain only the one-dimensional marginals of the estimator, so the prior estimator also passes the test, whereas uniformity of the credibility value across admissible rules forces the estimator to equal the posterior as stated in Theorem 1.
Unbiased estimator. Equation Equation (2) is the plug-in estimate of the inner integral of Equation (1). Written as an average over all pairs of credibility values, it includes the diagonal pairs , so its expectation exceeds it by , a term that does not vanish at the posterior. Excluding the diagonal pairs gives an unbiased U-statistic (Hoeffding, [19]),
Equation Equation (4) is therefore preferable when an unbiased estimate of the population discrepancy is desired (Proposition 2, see Appendix § 11 for derivation). In our experiments, however, we use the simpler plug-in statistic in Equation (2). Its finite-sample bias is not removed, but the same estimator is used consistently throughout training.
Reference points
The objective Equation (1) is an average over reference rules. Each optimization step draws rules and applies each one to every pair in the batch. It then computes the CvM statistic of Equation (2) separately for each rule and averages the statistics. This keeps the expectation over rules outside the squared deviation, as in Equation (1). The rules are drawn from a mixture of three groups: switch rules, prior rules and posterior rules.
Switch rules. Figure 2 illustrates the construction. A switch rule needs a point estimate with nontrivial posterior likelihood. For a linear forward model , we take the adjoint reconstruction , or the pseudo-inverse . Without an adjoint, can be a regressor of the posterior mean, trained beforehand on the same pairs (§ 5.3). A switch rule splits the measurements of the batch with a hyperplane and displaces the point estimate by one displacement on one side and by another on the other side, so that it is a single rule patched across a half-space (Definition 5). It is determined by two displacements , a unit vector in measurement space that orients the hyperplane, and an example of the batch through which it passes, and assigns to every example the reference point
where is a fixed reference scale, applied component-wise and treated as a constant. Drawing , a random unit vector and a random example chooses a switch rule at random; once drawn, it is a fixed rule in the sense of Definition 1. In our experiments, we set to the root-mean-square residual of on a held-out tenth of the training simulations,
with the square and root taken element-wise, so that the reference displacements match the average posterior scale. and are both frozen before the posterior estimator is trained.
The hyperplane splits the batch into two groups that receive different displacements, so within a rule each measurement receives one reference point. Across the rules of a step, each measurement receives reference points. The switch rules satisfy both admissibility conditions in Definition 6: their reference points are dense in parameter space, and they can implement arbitrary half-space patches. The displacements have positive densities, so reference points come arbitrarily close to every point of (R1). Every rule is a patch of two rules across a half-space, and every patch can be drawn, since the displacements, the direction and the position of the hyperplane are all drawn from distributions with full support (R2).
Prior and posterior rules. Admissibility guarantees that the true posterior is the unique minimizer of the loss, but we observe that adding other rules helps training. A prior rule uses a single reference point drawn from the prior and shared by the batch. A posterior rule uses the posterior draws of each pair as reference points, detached from the computational graph. For the reference , the credibility of is computed from the other draws. When a generated posterior sample is used as the reference point, that same sample must be excluded from the set of samples used to estimate the credibility value. Otherwise, the reference point would contribute a guaranteed zero-distance sample, changing the distribution of credibility values even when the estimator is correct.
Theorem 1 still applies. Every term of the loss is nonnegative, and the switch rules keep a fixed share of the mixture, so the loss can only vanish if the loss restricted to switch rules vanishes, which forces . The switch rules are essential for the theoretical guarantee, and the other two are supplementary choices intended to help optimization.
Relaxation of the indicator
To differentiate the loss with respect to , we backpropagate through the sampler. For a diffusion model, we draw all the noises of the sampler in advance and hold them fixed, so that the sampler becomes a deterministic function of . This is the reparameterization trick [24]. The exact credibility value is the fraction of generated samples whose distance from the reference point is no greater than the distance of the true signal. The indicator in this definition is nondifferentiable, so we replace it with a sigmoid approximation at temperature , for ,
Algorithm 1 summarizes one training step, and Appendix B details its complexity.
Experiments
TARP-CvM as training signal
We first consider a setting in which the true posterior is known analytically. This experiment isolates the distinction between marginal coverage and posterior accuracy, allowing us to directly compare the minimizers of the HPD and TARP-CvM objectives. We illustrate Theorem 1 on a Gaussian linear inverse problem , with a Gaussian prior and fewer measurements than parameters (Appendix E.1). The posterior is Gaussian, , and we fit a Gaussian estimator by gradient Algorithm 1 One training step with the TARP-CvM regularizer
Require: batch , posterior point estimator , reference scale ((6)), base loss of the generative model, weight , number of draws , numbers of switch, prior and posterior rules with , temperature
for do
Draw with the reparameterization trick
end for
for do
Let be the group of rule
Draw a rule :
if then
Draw , a unit vector and an index
else if then
Draw and set
else
Draw an index and set
end if
for do
end for
▷ (2)
end for
Compute on its own batch ▷ e.g. DSM or NLL
Update with a gradient step on
descent on either an HPD-loss or TARP-CvM. The estimator is HPD-calibrated for every , provided that , where is the covariance of the measurements. Thus, an estimator with a biased conditional mean can still achieve correct HPD coverage if its covariance is sufficiently inflated. The HPD objective therefore admits a family of minimizers, including the prior, even though most of these distributions do not equal the true posterior. This manifold of minimizers contains the prior, at , and every point of it other than the posterior has a biased mean and a covariance wider than the posterior’s. Gradient descent on HPD coverage can therefore stop at any point of this manifold, not only at the posterior. With measurement-dependent references, TARP-CvM instead has the posterior as its unique minimizer (Theorem 1). In Figure 1, TARP-CvM recovers the posterior contours, whereas the HPD fit is biased and too conservative. The HPD coverage error cannot distinguish the two models, although their KL divergence to the posterior differs strongly.
Imaging inverse problems
We study posterior coverage calibration in high-dimensional posteriors on three inverse problems from InverseBench Zheng et al. [48]. Each has the form . These are linear inverse scattering (IS) and compressed-sensing MRI (MRI), whose forward operators are linear, and Navier–Stokes (NS), whose forward operator is nonlinear and only available as a black-box solver (Appendix § 13.§ 3). For IS, is additive Gaussian noise. For MRI and NS, , so the posterior has no density on the full signal space. On MRI, TARP-CvM therefore measures distances in the null space of , where Theorem 1 applies (Appendix § 13.§ 3). Unlike the plug-and-play methods InverseBench was designed for, we train fully amortized conditional models on pairs . The measurement is concatenated to the network input, as its adjoint reconstruction for IS and MRI, and at its native resolution for NS, which matches the resolution of the signal after patching. All models are pretrained with denoising score matching (DSM, Song et al. [41]). They are then fine-tuned for 24k steps with one of four objectives, DSM alone (), a control that isolates the effect of additional training, or DSM plus a calibration regularizer, which is the energy score (ES), the pixel-wise CRPS (pCRPS), or TARP-CvM. All three regularizers use the same calibration batch, the same number of posterior samples per measurement, and the same -step DDIM sampler (Song et al. [40]), through which gradients are backpropagated (see Appendix § 13.§ 3 for details).
We measure coverage with the TARP coverage error, . We compute the coverage using standard binary indicators rather than the sigmoid relaxations used during training, and use the distance to define the TARP balls. We also use the Mira score (Sharief et al. [38]), which equals 2/3 for a calibrated model; values below the null band indicate overconfidence. For quality, we report in Table 3 the PSNR, SSIM, and relative error of the posterior mean over samples, the PSNR of a single draw, and the posterior spread (the per-pixel standard deviation across the samples, in physical units), all computed on 64 held-out observations, together with the DSM loss on the full validation split, averaged over three seeds.
| Problem | Stage | Posterior mean (MMSE) | Draw | ||||
| PSNR↑ | SSIM↑ | rel. ↓ | PSNR | spread | DSM↓ | ||
| NS | DSM | 27.83 | 0.7851 | 0.2368 | 24.58 | 1.1169 | 0.0595 |
| + ∅ | 28.22 ± 0.02 | 0.7969 ± 0.0004 | 0.2280 ± 0.0005 | 25.01 ± 0.01 | 1.0606 ± 0.0025 | 0.0594 ± 0.0000 | |
| + ES | 29.26 ± 0.03 | 0.8246 ± 0.0009 | 0.2061 ± 0.0008 | 25.81 ± 0.04 | 0.9847 ± 0.0032 | 0.0590 ± 0.0000 | |
| + pCRPS | 29.23 ± 0.04 | 0.8257 ± 0.0010 | 0.2067 ± 0.0008 | 25.79 ± 0.04 | 0.9843 ± 0.0037 | 0.0590 ± 0.0000 | |
| + TCvM | 27.88 ± 0.05 | 0.7874 ± 0.0011 | 0.2354 ± 0.0013 | 24.22 ± 0.05 | 1.2178 ± 0.0101 | 0.0597 ± 0.0000 | |
| IS | DSM | 29.62 | 0.9221 | 0.0906 | 27.93 | 0.0142 | 0.1159 |
| + ∅ | 29.79 ± 0.01 | 0.9229 ± 0.0002 | 0.0898 ± 0.0000 | 28.23 ± 0.01 | 0.0131 ± 0.0000 | 0.1182 ± 0.0001 | |
| + ES | 29.72 ± 0.02 | 0.9217 ± 0.0003 | 0.0908 ± 0.0002 | 28.21 ± 0.01 | 0.0128 ± 0.0000 | 0.1190 ± 0.0001 | |
| + pCRPS | 29.71 ± 0.02 | 0.9216 ± 0.0004 | 0.0909 ± 0.0003 | 28.18 ± 0.01 | 0.0129 ± 0.0000 | 0.1194 ± 0.0002 | |
| + TCvM | 29.64 ± 0.04 | 0.9224 ± 0.0001 | 0.0905 ± 0.0001 | 27.88 ± 0.11 | 0.0179 ± 0.0008 | 0.1186 ± 0.0000 | |
| MRI | DSM | 37.11 | 0.8825 | 0.1232 | 35.10 | 0.0285 | 0.1916 |
| + ∅ | 37.47 ± 0.00 | 0.8872 ± 0.0000 | 0.1186 ± 0.0000 | 35.41 ± 0.00 | 0.0280 ± 0.0000 | 0.1901 ± 0.0000 | |
| + ES | 37.79 ± 0.01 | 0.8902 ± 0.0003 | 0.1150 ± 0.0001 | 34.71 ± 0.06 | 0.0320 ± 0.0003 | 0.1902 ± 0.0000 | |
| + pCRPS | 37.75 ± 0.07 | 0.8905 ± 0.0007 | 0.1153 ± 0.0007 | 34.93 ± 0.34 | 0.0331 ± 0.0030 | 0.1902 ± 0.0000 | |
| + TCvM | 36.68 ± 0.07 | 0.8751 ± 0.0017 | 0.1291 ± 0.0010 | 33.49 ± 0.37 | 0.0443 ± 0.0054 | 0.1910 ± 0.0001 |
Table 3. Quality metrics before and after calibration. Metrics on 64 held-out measurements with 32 posterior draws each (). PSNR, SSIM and relative of the posterior mean (the MMSE reconstruction) and PSNR of a single posterior draw, each against the ground truth. Spread is the standard deviation of the 32 draws at each pixel, averaged over pixels, in physical units.
All pretrained models are strongly overconfident (Mira between 0.51 and 0.61, Figure 3). Additional DSM training does not fix this, so the gains below come from the regularizers. On NS and IS, TARP-CvM gives the lowest coverage error (0.11 and 0.28, against 0.17 and 0.35 for the best scoring rule). On NS all three regularizers reach the Mira null band, but on IS only TARP-CvM does (0.68, against 0.53 for ES and 0.57 for pCRPS). On MRI, the two metrics disagree. ES has the lowest coverage error, but remains overconfident according to Mira, while TARP-CvM is the only method inside the band.
Figure 3. Coverage before and after calibration.
Increasing posterior variance can reduce the PSNR of individual posterior draws even when the posterior mean remains unchanged. This is not necessarily a deterioration in reconstruction accuracy: it can reflect the fact that the model is representing uncertainty that was previously missing. Calibration has little effect on the quality of generated samples. The validation DSM loss stays within 1% of the control for every method. Posterior-mean PSNR is unchanged on IS and NS and drops by 0.8 dB on MRI. Per-draw PSNR drops more, by 0.35 to 1.9 dB, but this reflects the metric rather than accuracy. The expected squared error of a draw decomposes as , where denotes the total variance, so a model that collapses its variance gains per-draw PSNR without improving its mean. Correct coverage requires nonzero variance, and TARP-CvM widens the posterior by 15 to 58% relative to the control, which lowers per-draw PSNR accordingly. On NS, the scoring rules instead improve the posterior mean by about 1 dB while slightly reducing the spread. This suggests that the pretrained model had errors due to both a biased mean, which the scoring rules correct, and insufficient spread, which TARP-CvM corrects. The wider spread of TARP-CvM may also partly compensate for residual error in the posterior mean.
Sampler depth. Because the calibration term backpropagates through the sampler, training fixes the sampler depth, but any depth can be used at inference. We train with and evaluate at (Figure 4). On NS and IS, Mira stays inside the null band at all depths, so calibration learned with a short chain survives at longer ones. On MRI, however, Mira decreases and leaves the null band at higher . At and 500 it even falls below the DSM-only model, whose Mira improves with . This suggests that on MRI part of the learned calibration compensates for the discretization error of the 20-step sampler rather than correcting the underlying score, so the correction no longer matches a finer discretization. In practice, the model should be sampled at the depth it was calibrated for, or calibrated at the depth used for inference, at a training cost that grows linearly with .
Figure 4. Coverage under varying sampler depth. TARP-CvM was trained at .
SBI benchmark
In contrast to the imaging experiments, the SBI benchmarks are low-dimensional problems for which standard NPE is already relatively well calibrated. Our objective is to establish that TARP-CvM can match a density-based calibration method while requiring only posterior samples. We evaluate our method on four problems from the SBI benchmark introduced in Hermans et al. [17], namely SLCP, Weinberg, Spatial SIR and Lotka–Volterra, each at three simulation budgets . We compare conditional normalizing flows trained with Neural Posterior Estimation (NPE, Papamakarios and Murray, [34]; Lueckmann et al., [29]; Deistler et al., [9]; Greenberg et al., [16]), with the HPD-based regularizer of CalNPE (Falkiewicz et al., [13]), and with TARP-CvM. In SBI, we usually only have access to samples from the simulator, and cannot evaluate the adjoint operator of the forward model. In order to get a point estimate close to the posterior for reference points when only pairs of are available, we train a multilayer perceptron (MLP) network targeting the posterior mean , with a mean-square-error loss, and freeze it during calibration of the posterior generative model. All methods share the same training protocol, with the same simulation budgets, validation set and checkpoint selection (Appendix § 13.§ 2).
Under this matched protocol, NPE is already nearly calibrated on these low-dimensional problems. On the two TARP coverage maps, log posterior density and joint MMD on , a single method is significantly better than the other two in only two of the 48 comparisons: TARP-CvM on the switch map for Weinberg at , and CalNPE on log density for Spatial SIR at (Table 1, Appendix § 13.§ 2).
| Problem | HPD error NPE | HPD error CalNPE | HPD error Ours | TARP error, -indep. NPE | TARP error, -indep. CalNPE | TARP error, -indep. Ours | TARP error, switch NPE | TARP error, switch CalNPE | TARP error, switch Ours | |
| SLCP | .096.017 | .086.014 | .101.018 | .015.004 | .012.002 | .015.005 | .013.003 | .012.002 | .014.004 | |
| .047.013 | .029.007 | .038.013 | .010.003 | .010.004 | .013.004 | .009.003 | .009.003 | .013.004 | ||
| .013.007 | .006.004 | .018.007 | .007.002 | .008.002 | .006.002 | .007.002 | .008.002 | .006.001 | ||
| Weinberg | .021.005 | .010.004 | .031.011 | .011.003 | .010.003 | .014.004 | .047.003 | .050.004 | .041.004 | |
| .034.005 | .007.005 | .031.007 | .012.002 | .012.004 | .013.003 | .015.002 | .019.004 | .016.003 | ||
| .016.006 | .008.003 | .013.005 | .009.003 | .008.003 | .009.002 | .009.003 | .011.002 | .008.002 | ||
| Spatial SIR | .081.024 | .045.021 | .093.012 | .029.008 | .027.006 | .034.003 | .041.010 | .041.016 | .027.003 | |
| .053.021 | .017.006 | .041.016 | .025.006 | .020.006 | .027.004 | .021.004 | .022.005 | .021.005 | ||
| .031.009 | .026.014 | .031.013 | .020.007 | .011.003 | .016.006 | .015.003 | .011.003 | .015.005 | ||
| Lotka–Volterra | .082.016 | .064.008 | .081.008 | .016.003 | .015.005 | .013.006 | .067.004 | .067.005 | .067.003 | |
| .024.014 | .014.006 | .015.008 | .017.005 | .011.005 | .012.005 | .030.005 | .032.006 | .033.004 | ||
| .014.007 | .010.004 | .013.010 | .014.008 | .014.005 | .012.004 | .014.007 | .017.002 | .013.003 | ||
| Problem | NPE | CalNPE | Ours | MMD , NPE | MMD , CalNPE | MMD , Ours | NPE | CalNPE | Ours | |
| SLCP | -2.34.05 | -2.32.08 | -2.32.03 | 11.14.1 | 12.23.8 | 14.06.2 | .0017.0009 | .0033.0010 | .0022.0013 | |
| -1.41.08 | -1.38.02 | -1.35.06 | 5.52.7 | 6.33.0 | 5.62.4 | .0034.0010 | .0040.0014 | .0027.0016 | ||
| -0.87.03 | -0.88.01 | -0.86.02 | 1.31.0 | 1.9.6 | 2.11.1 | .0045.0004 | .0051.0008 | .0048.0006 | ||
| Weinberg | -0.11.01 | -0.10.01 | -0.11.01 | 56.36.2 | 59.313.6 | 58.28.9 | .0050.0017 | .0068.0015 | .0028.0015 | |
| 0.02.01 | 0.02.01 | 0.01.01 | 8.04.8 | 14.99.1 | 8.14.3 | .0014.0008 | .0039.0010 | .0013.0008 | ||
| 0.10.00 | 0.09.01 | 0.09.01 | 3.83.1 | 7.15.3 | 5.33.4 | .0034.0012 | .0071.0009 | .0043.0006 | ||
| Spatial SIR | 0.82.02 | 0.86.03 | 0.77.05 | 114.211.6 | 106.426.1 | 115.514.9 | .0023.0019 | .0055.0030 | .0059.0019 | |
| 1.31.03 | 1.33.02 | 1.26.04 | 43.815.2 | 39.315.3 | 55.018.5 | .0033.0018 | .0031.0022 | .0023.0005 | ||
| 1.63.01 | 1.66.03 | 1.64.03 | 18.412.4 | 10.76.0 | 10.04.3 | .0011.0009 | .0063.0018 | .0016.0017 | ||
| Lotka–Volterra | -2.59.01 | -2.57.03 | -2.60.01 | 77.14.1 | 83.715.9 | 83.124.2 | .0060.0012 | .0064.0013 | .0054.0006 | |
| -2.18.02 | -2.17.02 | -2.20.02 | 38.113.7 | 29.92.4 | 30.46.2 | .0065.0012 | .0071.0012 | .0065.0009 | ||
| -1.98.02 | -1.99.02 | -2.00.01 | 18.316.1 | 23.015.4 | 18.311.7 | .0053.0012 | .0068.0016 | .0050.0016 |
Table 1.
TARP-CvM thus matches CalNPE using only posterior samples, without evaluating the density. Its log density does not differ significantly from that of NPE in any setting, but is lower than that of CalNPE on Spatial SIR at the two smaller budgets. CalNPE achieves a lower HPD coverage error, the statistic it optimizes, with a significant difference in four settings. On the independent Mira score, TARP-CvM is closest to the calibrated value in half of the settings, and CalNPE deviates most from it in 10 of 12 settings, consistent with its conservativeness objective, a one-sided penalty on under-coverage that leaves over-coverage unpenalized, which we used to match the configuration reported by Falkiewicz et al. [13].
None of these differences is significant.
Conclusion
We introduced TARP-CvM, a differentiable coverage loss that vanishes if and only if the learned conditional distribution equals the true posterior. It requires only samples from the model, applies to any generative architecture, and is a strict divergence (Theorem 1). On SBI benchmarks, it matches a density-based coverage loss with the same number of model evaluations, without evaluating the density. On imaging inverse problems, including one with a nonlinear black-box forward model, it is the only regularizer that brings the posterior into the Mira null band on all three problems, with little change in the quality of point estimates. The main practical design choice is the construction of reference points, which are built around a point estimate . For linear forward models, the adjoint works well. Without an adjoint, an auxiliary regressor of the posterior mean can be trained at extra cost, as in our SBI experiments. Future work includes other nonlinear inverse problems, such as full waveform inversion and black hole imaging, and SBI problems in cosmology, where the forward model is a physics simulator and posteriors are often multimodal.
AI use statement
In this work, we used generative AI tools for formulating mathematical claims, assisting in the writing and checking of proofs, providing feedback on the design of the method and experiments, and assisting in implementing the method and experiments. Additionally, we used generative AI tools to edit and rewrite the manuscript for clarity. We have reviewed all AI-assisted work. All theorems and proofs were checked line by line by the authors. AI-generated code was reviewed and tested by the authors. Results were interpreted and conclusions drawn by the authors, and all edited text was reviewed by the authors. We take responsibility for the final content of this work, including text, claims, or artifacts produced with the aid of generative AI.
Acknowledgments
All authors gratefully acknowledge the support of the NSF-Simons AI-Institute for the Sky (SkAI) via grants NSF AST-2421845 and Simons Foundation MPS-AI-00010513. RW further gratefully acknowledges the support of the NSF-Simons National Institute for Theory and Mathematics in Biology (NITMB), via grants NSF DMS-2235451 and Simons Foundation MP-TMPS-00005320, and AFOSR FA9550-18-1-0166. This research used the DeltaAI advanced computing and data resource, which is supported by the National Science Foundation (award OAC 2320345) and the State of Illinois. DeltaAI is a joint effort of the University of Illinois Urbana-Champaign and its National Center for Supercomputing Applications.
Proofs
This section proves Theorem 1. Section A.1 defines the support of a distribution over rules, Section A.2 recalls the notation, and Section A.3 collects preliminary facts: the regularity of the radial mass function, the calibration of the true posterior for every rule, and a Cramér–Wold argument showing that integrals over half-spaces determine a function of the measurement. The direction “ implies ” holds for any and follows from Lemma 1. The converse is proved in three steps, one per subsection:
if , every rule in the support of is calibrated (Section A.4)
by patching (R2), the coverage at each measurement then does not depend on the reference point (Section A.5)
since reference points are dense (R1), this invariance forces (Section A.6).
Section A.7 assembles the three steps.
Rules, their topology and the support of
A reference rule is a measurable map . We define how far apart two rules and are by
the metric of convergence in probability. Two rules are close if their reference points are close for most measurements. The support of a distribution over rules is the set of rules that approaches arbitrarily closely with positive probability: is in the support if, for every , a rule drawn from is within distance of with positive probability,
A rule in need not be drawn with positive probability. For the switch sampler, any particular rule has probability zero, but rules arbitrarily close to it are drawn with positive probability.
Conventions
Throughout the appendix we write for . The distance on is induced by a norm, is the closed ball, and is the Lebesgue measure on . By Assumption 1, is open and, for every , and have continuous densities that are strictly positive on . We recall the objects of the main text. For a reference point , the radial mass function of the estimator is
For a rule , the credibility value is , the conditional coverage is , and the expected coverage is . For a constant rule we write . Finally,
Two remarks are used repeatedly. First, the conditional coverage at depends on the rule only through its reference point at : . Second, and are cumulative distribution functions, hence non-decreasing and right-continuous.
Preliminary facts
We restate and prove Lemma 1.
Under Assumption 1, if for every , then for every rule , every level and every , and hence .
Proof. A correct estimator is calibrated, no matter how the regions are chosen. Let be any credible region map of . Factoring the joint density as and exchanging the order of integration, we obtain
where the fourth equality uses , and the fifth uses the definition of a credible region. The inner integral equals for every , so the statement holds at each measurement, before averaging over . For the TARP region of a rule , the event is the event (§ 3.2): the credibility value of is the mass of the ball where is at the border, so it is at most exactly when lies in the ball of mass . Hence for every , and averaging over gives . □
Lemma 2 (Radial mass function). Under Assumption 1, for every :
(i) is continuous on ;
(ii) for every there is such that is strictly increasing on , with .
Proof. (i) Since is a metric space, it suffices to check continuity along sequences. Let be a sequence converging to . For every with , the indicator converges to . The sphere has zero volume, hence zero mass under , so the convergence holds -almost everywhere and dominated convergence gives . (ii) Since is open, there is with . For , the difference is the -mass of the shell , which has positive volume and lies in , where . Hence it is positive. Finally is the mass of the point , which is zero. □
Proposition 1 (Half-spaces detect functions). Let be a bounded function on such that
with a unit vector and . Then for -almost every .
Proof. The idea is that integrals over half-spaces determine all integrals of functions of a projection , and these in turn determine the Fourier transform of . Write , which is integrable since is bounded, and fix a unit vector .
Slabs. Letting in the hypothesis gives . Subtracting the hypothesis at two thresholds gives . Hence for every step function , that is, every finite combination of indicators of intervals .
Trigonometric functions. Fix , and . Let be the step function equal to on each interval of a regular grid of , and to outside . Then for , and otherwise, so
Letting and then shows that the left-hand side is zero. The same argument applies to sin, so .
Conclusion. Every vector is of the form , so the Fourier transform vanishes everywhere. An integrable function whose Fourier transform vanishes is zero almost everywhere, so for almost every , that is, for -almost every . This is the Cramér–Wold argument [8].
Half-spaces are used only through Proposition 1: any other family of sets for which this proposition holds can replace them in (R2).
From zero loss to calibration on the support
Lemma 3 (Continuity). Under Assumption 1, the map is continuous for the metric .
Proof. Let for , that is, in -probability. It suffices to show that every subsequence has a further subsequence along which . Convergence in probability gives a subsequence, still denoted , such that for -almost every . For such and every ,
by continuity of and joint continuity of the radial mass function (Lemma 2). So almost surely under , hence in distribution, and at every continuity point of , that is, for all but countably many . Since , bounded convergence gives .
Lemma 4. Under Assumption 1, if , then for every and every .
Proof. Since and , we have for -almost every . The set is closed by Lemma 3, and . If some were outside , a small ball around would lie in the open complement of and have positive probability under , a contradiction. Hence on , so for almost every , and for every by right-continuity of both sides.
From calibration to invariance to the reference point
Every rule in is now calibrated, but calibration is an average over measurements, in which errors at different measurements can cancel. This step obtains a statement at each measurement: the coverage curve at does not depend on the reference point. As in the main-text example, it compares a rule with the rule patched from on a half-space, which isolates what happens on that half-space.
Lemma 5 (Invariance to the reference point). Let be admissible with family , and suppose that every rule in is calibrated. Then, for -almost every , the coverage curve at does not depend on the rule of :
Proof. Step 1: coverage of a patched rule. Fix , a level , and a half-space . The coverage at a measurement depends on the rule only through its reference point at . The patched rule has reference point for and for , so its coverage curve at is on and outside . Averaging over measurements,
Subtracting , the part outside cancels and
Here is the difference of coverage at between the two reference points and , and $\lvert\Delta\rvert\le 1.
Step 2: both rules are calibrated. The rule is in because , and the patched rule is in by (R2). Both are calibrated, so both coverages equal and the left-hand side of Step 1 is zero:
Step 3: from half-spaces to each measurement. By Proposition 1, applied to , we get for -almost every . In other words, for every measurement except those in a set that has probability zero under .
Step 4: all pairs and all levels at once. The exceptional set of Step 3 depends on , and . Let be the union of these sets over all pairs and all rational levels . There are countably many of them, so still has probability zero. For , the two coverage curves agree at every rational level. Both are distribution functions, hence right-continuous, and every is a limit of rationals from the right, so they agree at every level; at both equal one.
From invariance to the reference point to equal densities
Lemma 6. Fix such that the reference points are dense in and is the same function for all . Then .
Proof. Let for some , write , and take from Lemma 2. For , is strictly increasing on and non-decreasing beyond, so if and only if . Applying this to with ,
Since , dividing gives
As , both densities are continuous and positive at , so each probability equals the density at times , up to a factor . The volumes cancel and the right-hand side tends to . On the left, is a continuous increasing bijection from onto , so exactly when . Therefore exists and
The limit depends on only, not on , so this identity holds at every reference point , , a dense subset of . Both densities are continuous, so it holds on all of . Integrating over gives , hence .
Proof of Theorem 1
Under Assumption 1 and for any admissible ,
Proof. By Lemma 1, for every rule and every , so for every and . This direction holds for any .
Suppose . By Lemma 4, every rule in is calibrated. By Lemma 5, there is a null set outside which is the same function for all . By (R1), there is a null set outside which the reference points are dense in . For every , Lemma 6 applies and gives . Since is null, this holds for -almost every .
Training algorithm
Algorithm 1 summarizes one training step with the TARP-CvM regularizer. The base loss is the training objective of the generative model, such as denoising score matching for diffusion models or the negative log-likelihood for normalizing flows.
Complexity For each rule, computing the credibility values requires distance evaluations, and the closed-form statistic of Equation (2) only requires sorting them, at cost . Its gradient follows analytically from the ranks, so no differentiable sorting operator is needed. One step therefore costs operations on top of drawing the posterior samples. In practice, the cost is dominated by sampling. For a diffusion model with a -step sampler, a step requires network evaluations, and backpropagating through the chains that carry gradient multiplies their cost, and the memory they require, by a factor proportional to . Training cost thus grows linearly with the sampler depth, which is why we train with (§ 5.2, Appendix § 13.§ 3).
Unbiased estimator of the Cramér–von Mises statistic
For a fixed rule , the inner integral of Equation (1) is
Given the credibility values of a batch, Equation (2) replaces by the empirical CDF , so that . Writing , we have , and
This is an average over all pairs , including the diagonal pairs , that is, a V-statistic ([32]). The U-statistic ([19]) of Equation (4) averages over the pairs with only.
Proposition 2 (Bias of the plug-in estimator). Let , with , be independent with common CDF on . Then
Proof. Fix a level . For , the values and are independent, so
which is the integrand of . For , we obtain the second moment instead,
By Fubini’s theorem, is the integral over of these expectations. Averaging over the off-diagonal pairs gives , and averaging over all pairs, of which are diagonal, gives the expectation of .
It remains to check that Equation (4) is the off-diagonal average of . Using , and ,
Summing over the ordered pairs , the first term sums to , and the -th smallest value is the maximum of the ordered pairs it forms with the smaller values. Dividing by gives Equation (4). ▫
Note that the bias term does not vanish at the posterior. When , it equals . It also shifts the minimizer of the expected loss.
Scoring rules and loss landscapes
Definitions
The continuous ranked probability score (CRPS) compares the cumulative distribution function (CDF) of the model with the CDF of a point mass at the observation. Part of its appeal is that CDFs are easy to estimate from an ensemble of generated samples. For models that are easy to sample from but have no closed-form CDF, the CRPS admits the energy form
The first term penalizes a model whose samples are far from the true on average, and the second rewards samples that are spread out, so that a model cannot minimize the CRPS by collapsing to a point prediction. Unlike CDFs, this energy form generalizes directly to several dimensions by replacing the absolute value with the Euclidean norm, which gives the energy score of § 2. On the class of distributions with finite first moment, the energy score is strictly proper:
with equality if and only if . Like CRPS, it can be evaluated from samples of a generative model alone.
In high dimension, the CRPS is often computed for each coordinate separately rather than replaced by the energy score. We call this the pixel-wise CRPS,
where the superscript denotes restriction to the -th coordinate. Its motivation is often computational, since it parallelizes across pixels. It is however minimized by any model with the correct one-dimensional marginals, and therefore does not constrain the dependence between coordinates.
Strict propriety and training
Strict propriety is a statement about the global minimizer of the population loss, and two gaps separate it from what training achieves. First, the loss is minimized over a finite training set, and the minimizer of this empirical approximation need not be the minimizer of the population loss. Second, gradient descent generally finds local rather than global minima. Two strictly proper scoring rules share the same global minimizer, but they can have very different loss landscapes, with different local minima, so that training with one can yield much better coverage than training with the other. Section D.3 illustrates this on a Gaussian model.
Loss landscapes
We examine the same setting as the inverse problem in Figure 1, setting to have dimension 8 and dimension 4.
We identify the true parameters of the posterior distribution and perturb them by deviating the mean in the direction of largest variance and the scale of the variance in that same direction. See the equation below for this perturbation model:
where are the mean and scale perturbation parameters, respectively. parameterizes the mean perturbation and vanishes at . The scale perturbation vanishes at . We see in Figure 5 the loss landscapes for Energy Score and TARP-CvM in terms of and .
Figure 5. Loss landscapes for the toy model described in Section D.3.
In Figure 6, we have slices of the loss functions at the local and global minima of , the mean parameter. We see that TARP-CvM has much more sensitivity to changing the spread parameter, , when is at the local minimum than energy score does. In other words, we are comparing the steepness of the blue lines in each plot.
Figure 6. A slice of the loss landscape described in Section D.3.
Intuitively, when one gets stuck in a local minimum for the mean parameter, TARP-CvM recovers correct coverage by pushing the conditional distribution toward wider spread to compensate for the bias in the mean. In contrast, the energy score’s loss function is relatively flat with respect to the spread parameter in this local optimum. So, when noisy gradients provide imperfect optimization of this population loss, the energy score is less likely to correct coverage when gradient descent is near a local minimum for the conditional mean, since the signal in the loss is too flat to overcome gradient noise.
Experiments
Toy model
Setup. The parameters have a Gaussian prior , and the measurements follow , with , , and , so that cannot be inverted. The posterior is Gaussian,
where is the covariance of the measurements. The estimator is , where are parameters to fit.
HPD calibration does not identify the posterior. The density of is a decreasing function of the Mahalanobis norm , so its HPD regions are the ellipsoids with mass under . Under , the residual decomposes as . The first term has distribution given , hence is independent of , and the second has covariance , so that marginally
If , the residual of the true parameter has the same distribution as for a draw . The true parameter then falls in each HPD region with probability , so the estimator is HPD-calibrated, for every .
Points of the manifold. At , is the true posterior. At , , so the prior is HPD-calibrated. For every , the mean is biased and is positive semi-definite and nonzero, so the estimator is wider than the posterior at every measurement: marginal calibration is reached by trading the bias of the mean for extra spread.
Simulation Based Inference
Problems. We use the simulators of Hermans et al. [17] with the problem settings of Falkiewicz et al. [13]. For each problem we generate up to simulations for training, with for validation, and held-out pairs for evaluation.
SLCP (simple likelihood, complex posterior) is used in the marginal variant of Hermans et al. [17], in which only two parameters are inferred and the likelihood becomes intractable. The parameters are . The observation consists of four draws from a bivariate Gaussian with fixed mean , standard deviations and , and correlation , where nuisance parameter is marginalized out. Since enters only through its squares, the posterior has four symmetric modes.
Weinberg infers the Fermi constant, normalized to its nominal value, , from . The observation contains the cosines of the scattering angle of twenty events drawn by rejection sampling from the differential cross-section at a beam energy of 40 GeV.
Spatial SIR infers the infection and recovery rates of a stochastic epidemic on a lattice. The epidemic is seeded with infected cells at random positions and propagated through neighborhoods. The observation records the susceptible, infected and recovered state of every cell at time .
Lotka–Volterra is a predator-prey Markov jump process started from 50 predators and 100 prey. The parameters are the log-rates of the two predator reactions. The two prey log-rates are drawn from the same prior and marginalized out. The observation is the trajectory of both populations.
Architecture and training. Neural posterior estimation (NPE, Papamakarios and Murray, [34]; Lueckmann et al., [29]; Deistler et al., [9]; Greenberg et al., [16]) fits a conditional density estimator by maximum likelihood on simulated pairs, minimizing . This is equivalent to minimizing the forward KL divergence to the posterior, averaged over . We use the architecture of Falkiewicz et al. [13], implemented with the SBI library (Tejero-Cantero et al., [42]). It is a conditional neural spline flow (Durkan et al., [12]), with rational-quadratic spline transforms (10 bins, hidden width 64) and a Gaussian base distribution. There are three transforms, each a coupling layer followed by a linear layer, except for the one-dimensional Weinberg problem, which uses a single transform whose spline parameters depend on the conditioning only. The flow is conditioned on an embedding of given by an MLP with three hidden layers of width 64, SELU activations and a 10-dimensional output. The 7500-dimensional Spatial SIR observations and the 2002-dimensional Lotka-Volterra trajectories are flattened before embedding.
Parameters and observations are standardized per coordinate using the training data. We train with Adam, using a learning rate of , a batch size of 128, gradient-norm clipping at 5, for 50 epochs without early stopping. We keep the checkpoint with the lowest validation loss on the validation simulations. All three objectives of Table 1 share this training recipe.
For CalNPE, we use the conservativeness objective of Falkiewicz et al. [13], which penalizes only coverage below the nominal level, with weight , the default of their released code, instead of the published , which gave worse results in our experiments. HPD credibilities are estimated from the density of the estimator at 16 draws from the prior, with straight-through gradients for the indicators and differentiable sorting (Blondel et al., [4]).
TARP-CvM uses weight and reparameterized posterior draws per pair, so that both regularizers use 16 flow evaluations per pair: CalNPE evaluates the density at 16 prior draws, TARP-CvM draws 16 posterior samples. Each step uses references in three groups of 16, described below. The indicators are relaxed with a sigmoid at temperature times the median sample-to-reference distance of each reference, treated as a constant, and the loss is the closed-form CvM statistic of Equation (2), computed per reference and averaged over the references.
Reference points without a forward operator Without access to the forward operator to estimate , we resort to regressing the posterior mean. The point estimate is an MLP (two hidden layers of width 128, SELU) trained beforehand on the flow’s own training pairs with a mean-squared-error loss, with Adam (learning rate , weight decay , batch 256). The references of a step form three groups of 16: (1) switch-rule references, (2) points drawn from the prior distribution and shared by the batch, and (3) the posterior draws of each pair, detached from the computation graph. The credibility of a posterior reference is computed from the 15 other draws, so that remains uniform when , by exchangeability.
Imaging inverse problems
Problems We selected three inverse problems introduced in InverseBench (Zheng et al., [48]). They all have the form , where are measurements, is a forward model, is the signal we seek to reconstruct and additive noise.
Navier–Stokes (NS). is the initial vorticity of a 2D incompressible flow on with periodic boundary conditions (128 × 128 pixels, Reynolds number 200, forcing ), obtained by evolving a draw from for five time units. The forward operator is , where the solution operator , computed with a black-box pseudo-spectral solver, maps to the vorticity at time and is nonlinear. The subsampling operator keeps one grid point out of two in each direction, giving 64 × 64 noise-free observations.
Linear inverse scattering (IS). is a 128 × 128 permittivity contrast map of HL60 cell nuclei, generated with the simulator of Wiesner et al. [43]. Under the first Born approximation, is linear, with 20 transmitters and 360 receivers on a circle of radius 1.6 m, and noise level , resampled at every training batch.
Compressed sensing MRI (MRI). is a complex 320 × 320 knee image from fastMRI (Zbontar et al., [46]), a coil-combined minimum-variance unbiased estimate (Jalal et al., [22]), stored as two real
Table 1: SBI benchmark results for NPE, CalNPE (, Falkiewicz et al. [13]) and TARP-CvM (Ours, , ), all trained with the same protocol, for simulation budgets . Mean standard deviation over five independently trained estimators per cell. Bold marks the best mean when it is significantly better than both other methods. HPD and TARP errors are the coverage errors under each credible-region map, is the expected log posterior density of the true parameters, MMD the -score of an MMD test on the pairs , and the deviation of the Mira score from its calibrated value.
channels. Since these images have no coil sensitivity maps, we use the single-coil operator , with the orthonormal 2D Fourier transform and a subsampling mask that keeps 80 of the 320 vertical k-space lines (25 central lines and 55 random outer lines, redrawn for every example). The measurements are noise-free.
We did not select the Black hole imaging problem because no training set of images is publicly available, and we did not select Full waveform inversion, because it did not fit the shared setup of conditioning architecture with fixed image-shape. Our method is nonetheless applicable to these problems as well.
Noise-free measurements On MRI and NS, measurements are noise-free, so the posterior is supported on the set and has no density on , which Assumption 1 requires. For the linear MRI operator, writing with , the range component is fixed by the measurement, and the posterior is a distribution over the null-space component , which has a density on the null space of . Restricted to this subspace, the null-space distance is a norm, so Theorem 1 applies to the posterior of given , with replaced by the null space. This is why TARP-CvM uses this distance on MRI. On NS, the solution set of the nonlinear operator has no such linear parametrization, and Theorem 1 does not strictly apply. There, the experiment tests the loss beyond its assumptions, and the Mira score, which requires no density, still measures coverage. On IS, the measurement noise gives the posterior a density, as Assumption 1 requires.
Diffusion models Diffusion models ([39] (Ho et al. 2020)) map the target distribution to white Gaussian noise by progressively perturbing the data through a diffusion process. Following Song et al. [41], we express the continuous diffusion process as a stochastic differential equation (SDE):
where is the perturbed data at time , is the drift coefficient, is the diffusion coefficient, and is a standard Wiener process. This SDE admits a reverse process, mapping noise to the target distribution:
where is a standard Wiener process when time flows backward. Among the different kinds of diffusion processes, we used the Variance Exploding schedule, which parametrizes the noising kernel , with , , with and . We also adopt the preconditioning strategy of Karras et al. [23], which parametrizes a denoising network instead of the score function.
Our target distribution is the conditional distribution of , where are measurements and is the signal we aim to recover. The measurement enters as a fixed image, concatenated channel-wise to the noisy input of the network. For both MRI and IS, we compute the adjoint solution to transform measurement into images . NS observations are already images, the resolution of the signal after patching, so they are concatenated to the patched input without resampling. NS has no linear adjoint, so the switch rules use the nearest-neighbor upsampled observation as the point estimate . We describe all our choices for the network architectures and training strategies in Table 2. All fine-tuning runs share the calibration batch (16 pairs per step on NS, 8 otherwise), the sampler depth (), the optimizer, the number of steps, and the sampler chains that carry gradients ( per pair on NS and MRI, 8 on inverse scattering). is tuned once on Navier–Stokes and reused for IS and MRI ( for TARP-CvM and for ES and pCRPS).
| Navier–Stokes | Inverse scattering | MRI | |
| Data | |||
| Signal shape | (128, 128, 1) | (128, 128, 1) | (320, 320, 2) |
| Conditioning | , (64, 64, 1) | , (128, 128, 1) | , (320, 320, 3) |
| Train / validation images | 19,456 / 1,024 | 8,500 / 1,500 | 22,964 / 2,048 |
| Architecture | |||
| Architecture | U-Net | U-Net | U-Net |
| Patch size | 2 | 2 | 4 |
| Input shape | (64, 64, 5) | (64, 64, 8) | (80, 80, 80) |
| Residual blocks per level | (2, 2, 2, 2) | (2, 2, 2, 2) | (3, 3, 3, 3, 3) |
| Channels per level | (64, 128, 256, 256) | (64, 128, 256, 256) | (128, 256, 384, 512, 512) |
| Kernel size | 3 | 3 | 3 |
| Activation | SiLU | SiLU | SiLU |
| Normalization | LayerNorm | LayerNorm | LayerNorm |
| Noise embedding | 256 | 256 | 256 |
| Dropout | 0.1 | 0.1 | 0.1 |
| Parameters | 16.9 M | 16.9 M | 106.9 M |
| Diffusion | |||
| Noise schedule | VE, , EDM preconditioning | ||
| Training time distribution | |||
| Sampler | DDIM (), 20 steps | ||
| Pretraining (DSM) | |||
| Optimizer | Adam | Adam | Adam |
| Weight decay | 0.0 | 0.0 | 0.0 |
| Learning rate | |||
| Gradient norm clipping | 1.0 | 1.0 | 1.0 |
| EMA decay | 0.999 | 0.999 | 0.999 |
| Augmentation | none | none | h-flip, roll px |
| Batch size | 256 | 512 | 256 |
| Epochs (2 passes each) | 560 | 580 | 204 |
| Optimizer steps | 85,120 | 18,560 | 36,312 |
| Early-stopping patience | 10 | 10 | 20 |
| Fine-tuning | |||
| Optimizer | AdamW | AdamW | AdamW |
| Weight decay | 0.0 | 0.0 | 0.0 |
| Learning rate | |||
| Gradient norm clipping | 1.0 | 1.0 | 1.0 |
| EMA decay | 0.999 | 0.999 | 0.999 |
| DSM batch size | 64 | 64 | 64 |
| Optimizer steps | 24,000 | 24,000 | 24,000 |
| Calibration weight , ES and pCRPS | 0.003 | 0.003 | 0.003 |
| Calibration weight , TARP-CvM | 10 | 10 | 10 |
| Calibration batch | 16 | 8 | 8 |
| Posterior samples (grad. + value) | 2 + 32 | 8 + 16 | 2 + 16 |
| References (mixed) | 128 | 64 | 64 |
| Temperature | cosine, 0.1 0.01 median pairwise posterior distance | ||
| TARP distance | pixel, 2 avg-pooled | pixel | null space of |
| Seeds | 3 | 3 | 3 |
Table 2. Architecture and training of the conditional diffusion posteriors. Fine-tuning starts from the converged networks from pretraining. All four fine-tuning objectives share every setting except the calibration weight .
On one NVIDIA GH200, a fine-tuning step takes 1.9 s with TARP-CvM against 0.7 s with the energy score or pCRPS on NS, 1.0 s against 0.7 s on IS, and 3.7 s against 2.6 s on MRI, a 1.4 to increase in training time with respect to the ES and pCRPS, and an 18 to increase with respect to DSM alone. Figure 7 shows example observations and target ground truth signals for the three inverse problems.
Figure 7. Examples of observations and target ground truth signals for the three inverse problems.
The fastMRI data are used under the NYU fastMRI Dataset Sharing Agreement. All other code we use is available under open-source licenses (Apache 2.0, BSD 3-Clause or MIT), and the remaining datasets are publicly available.
References
- [1]Adam, A., Coogan, A., Malkin, N., Legin, R., Perreault-Levasseur, L., Hezaveh, Y., and Bengio, Y. (2022). Posterior samples of source galaxies in strong gravitational lenses with score-based priors. arXiv preprint arXiv:2211.03812.arxiv.org/abs/2211.03812
- [2]Albergo, M., Boffi, N. M., and Vanden-Eijnden, E. (2025). Stochastic interpolants: A unifying framework for flows and diffusions. Journal of Machine Learning Research, 26(209):1–80.
- [3]Angelopoulos, A. N. and Bates, S. (2023). Conformal prediction: A gentle introduction. Foundations and Trends in Machine Learning, 16(4):494–591.
- [4]Blondel, M., Teboul, O., Berthet, Q., and Djolonga, J. (2020). Fast differentiable sorting and ranking. In International conference on machine learning, pages 950–959. PMLR.arxiv.org/abs/2002.08871
- [5]Box, G. E. and Tiao, G. C. (1973). Bayesian inference in statistical analysis, volume 80. Addison-Wesley Reading, MA.
- [6]Chung, H., Kim, J., McCann, M. T., Klasky, M. L., and Ye, J. C. (2022). Diffusion posterior sampling for general noisy inverse problems. ICLR 2023; arXiv preprint arXiv:2209.14687.arxiv.org/abs/2209.14687
- [7]Cramér, H. (1928). On the composition of elementary errors. Scandinavian Actuarial Journal, 1928(1):13–74.
- [8]Cramér, H. and Wold, H. (1936). Some theorems on distribution functions. Journal of the London Mathematical Society, 1(4):290–294.
- [9]Deistler, M., Goncalves, P. J., and Macke, J. H. (2022). Truncated proposals for scalable and hassle-free simulation-based inference. Advances in Neural Information Processing Systems, 35:23135–23149.arxiv.org/abs/2210.04815
- [10]Delaunoy, A., Hermans, J., Rozet, F., Wehenkel, A., and Louppe, G. (2022). Towards reliable simulation-based inference with balanced neural ratio estimation. Advances in Neural Information Processing Systems, 35:20025–20037.arxiv.org/abs/2208.13624
- [11]Dey, B., Zhao, D., Andrews, B. H., Newman, J. A., Izbicki, R., and Lee, A. B. (2025). Towards instance-wise calibration: local amortized diagnostics and reshaping of conditional densities (ladar). Machine Learning: Science and Technology, 6(4):045058.arxiv.org/abs/2205.14568
- [12]Durkan, C., Bekasov, A., Murray, I., and Papamakarios, G. (2019). Neural spline flows. Advances in Neural Information Processing Systems, 32.arxiv.org/abs/1906.04032
- [13]Falkiewicz, M., Takeishi, N., Shekhzadeh, I., Wehenkel, A., Delaunoy, A., Louppe, G., and Kalousis, A. (2023). Calibrating neural simulation-based inference with differentiable coverage probability. In Oh, A., Naumann, T., Globerson, A., Saenko, K., Hardt, M., and Levine, S., editors, Advances in Neural Information Processing Systems, volume 36, pages 1082–1099. Curran Associates, Inc.
- [14]Gneiting, T. and Raftery, A. E. (2007). Strictly proper scoring rules, prediction, and estimation. Journal of the American Statistical Association, 102(477):359–378.
- [15]Goodfellow, I. J., Pouget-Abadie, J., Mirza, M., Xu, B., Warde-Farley, D., Ozair, S., Courville, A., and Bengio, Y. (2014). Generative adversarial nets. Advances in Neural Information Processing Systems, 27.
- [16]Greenberg, D., Nonnenmacher, M., and Macke, J. (2019). Automatic posterior transformation for likelihood-free inference. In Chaudhuri, K. and Salakhutdinov, R., editors, Proceedings of the 36th International Conference on Machine Learning, volume 97 of Proceedings of Machine Learning Research, pages 2404–2414. PMLR.arxiv.org/abs/1905.07488
- [17]Hermans, J., Delaunoy, A., Rozet, F., Wehenkel, A., Begy, V., and Louppe, G. (2022). A crisis in simulation-based inference? beware, your posterior approximations can be unfaithful. Transactions on Machine Learning Research.
- [19]Hoeffding, W. (1948). A Class of Statistics with Asymptotically Normal Distribution. The Annals of Mathematical Statistics, 19(3):293 – 325.
- [20]Horowitz, J. L. (2014). Ill-posed inverse problems in economics. Annu. Rev. Econ., 6(1):21–51.
- [21]Hyndman, R. J. (1996). Computing and graphing highest density regions. The American Statistician, 50(2):120–126.DOI
- [22]Jalal, A., Arvinte, M., Daras, G., Price, E., Dimakis, A., and Tamir, J. (2021). Robust compressed sensing MRI with deep generative priors. In Beygelzimer, A., Dauphin, Y., Liang, P., and Vaughan, J. W., editors, Advances in Neural Information Processing Systems.arxiv.org/abs/2108.01368
- [23]Karras, T., Aittala, M., Aila, T., and Laine, S. (2022). Elucidating the design space of diffusion-based generative models. Advances in Neural Information Processing Systems, 35:25655–25677.arxiv.org/abs/2206.00364
- [24]Kingma, D. P. and Welling, M. (2013). Auto-encoding variational Bayes. arXiv preprint arXiv:1312.6114.arxiv.org/abs/1312.6114
- [25]Kuleshov, V., Fenner, N., and Ermon, S. (2018). Accurate uncertainties for deep learning using calibrated regression. In Dy, J. and Krause, A., editors, Proceedings of the 35th International Conference on Machine Learning, volume 80 of Proceedings of Machine Learning Research, pages 2796–2804. PMLR.arxiv.org/abs/1807.00263
- [26]Lemos, P., Coogan, A., Hezaveh, Y., and Perreault-Levasseur, L. (2023). Sampling-based accuracy testing of posterior estimators for general inference. In International Conference on Machine Learning, pages 19256–19273. PMLR.arxiv.org/abs/2302.03026
- [27]Lipman, Y., Chen, R. T., Ben-Hamu, H., Nickel, M., and Le, M. (2022). Flow matching for generative modeling. ICLR 2023; arXiv preprint arXiv:2210.02747.arxiv.org/abs/2210.02747
- [28]Liu, T., Spincemaille, P., De Rochefort, L., Kressler, B., and Wang, Y. (2009). Calculation of susceptibility through multiple orientation sampling (cosmos): a method for conditioning the inverse problem from measured magnetic field map to susceptibility source image in mri. Magnetic Resonance in Medicine: An Official Journal of the International Society for Magnetic Resonance in Medicine, 61(1):196–204.DOI
- [29]Lueckmann, J.-M., Gonçalves, P. J., Bassetto, G., Öcal, K., Nonnenmacher, M., and Macke, J. H. (2017). Flexible statistical inference for mechanistic models of neural dynamics. Advances in Neural Information Processing Systems, 30.arxiv.org/abs/1711.01861
- [30]Melia, O., Tsang, O., Charisopoulos, V., Khoo, Y., Hoskins, J., and Willett, R. (2025). Multi-frequency progressive refinement for learned inverse scattering. Journal of Computational Physics, 527:113809.DOI
- [31]Metz, L., Poole, B., Pfau, D., and Sohl-Dickstein, J. (2016). Unrolled generative adversarial networks. ICLR 2017; arXiv preprint arXiv:1611.02163.arxiv.org/abs/1611.02163
- [32]Mises, R. v. (1947). On the asymptotic distribution of differentiable statistical functions. The annals of mathematical statistics, 18(3):309–348.DOI
- [33]Naeini, M. P., Cooper, G., and Hauskrecht, M. (2015). Obtaining well calibrated probabilities using Bayesian binning. In Proceedings of the AAAI conference on artificial intelligence, volume 29.pubmed.ncbi.nlm.nih.gov/25927013
- [34]Papamakarios, G. and Murray, I. (2016). Fast ε-free inference of simulation models with Bayesian conditional density estimation. Advances in Neural Information Processing Systems, 29.arxiv.org/abs/1605.06376
- [35]Papamakarios, G., Nalisnick, E., Rezende, D. J., Mohamed, S., and Lakshminarayanan, B. (2021). Normalizing flows for probabilistic modeling and inference. Journal of Machine Learning Research, 22(57):1–64.
- [36]Remy, B., Lanusse, F., Jeffrey, N., Liu, J., Starck, J.-L., Osato, K., and Schrabback, T. (2023). Probabilistic mass-mapping with neural score estimation. Astronomy & Astrophysics, 672:A51.
- [37]Rezende, D. and Mohamed, S. (2015). Variational inference with normalizing flows. In Bach, F. and Blei, D., editors, Proceedings of the 32nd International Conference on Machine Learning, volume 37 of Proceedings of Machine Learning Research, pages 1530–1538, Lille, France. PMLR.arxiv.org/abs/1505.05770
- [38]Sharief, S. N., Zeghal, J., Barco, G. M., Lemos, P., Hezaveh, Y., and Perreault-Levasseur, L. (2026). MIRA: A score for conditional distribution accuracy and model comparison. In Forty-third International Conference on Machine Learning.arxiv.org/abs/2605.02014
- [39]Sohl-Dickstein, J., Weiss, E., Maheswaranathan, N., and Ganguli, S. (2015). Deep unsupervised learning using nonequilibrium thermodynamics. In International conference on machine learning, pages 2256–2265. pmlr.
- [40]Song, J., Meng, C., and Ermon, S. (2021a). Denoising diffusion implicit models. In International Conference on Learning Representations.arxiv.org/abs/2010.02502
- [41]Song, Y., Sohl-Dickstein, J., Kingma, D. P., Kumar, A., Ermon, S., and Poole, B. (2021b). Score-based generative modeling through stochastic differential equations. In International Conference on Learning Representations.
- [42]Tejero-Cantero, A., Boelts, J., Deistler, M., Lueckmann, J.-M., Durkan, C., Gonçalves, P. J., Greenberg, D. S., and Macke, J. H. (2020). sbi: A toolkit for simulation-based inference. Journal of Open Source Software, 5(52):2505.
- [43]Wiesner, D., Svoboda, D., Maška, M., and Kozubek, M. (2019). Cytopacq: a web-interface for simulating multi-dimensional cell imaging. Bioinformatics, 35(21):4531–4533.DOI
- [44]Yao, J., Hsu, Z.-S., Deng, X., Gupta, A., Ju, X., Benson, S. M., Wen, G., and Anandkumar, A. (2026). Posteriorbench: From point estimates to posterior matching in evaluating generative inverse solvers. arXiv preprint arXiv:2609.20794.arxiv.org/abs/2609.20794
- [45]Yao, Y., Régaldo-Saint Blancard, B., and Domke, J. (2024). Simulation-based stacking. In international conference on artificial intelligence and statistics, pages 4267–4275. PMLR.arxiv.org/abs/2310.17009
- [46]Zbontar, J., Knoll, F., Sriram, A., Murrell, T., Huang, Z., Muckley, M. J., Defazio, A., Stern, R., Johnson, P., Bruno, M., et al. (2018). fastmri: An open dataset and benchmarks for accelerated mri. arXiv preprint arXiv:1811.08839.arxiv.org/abs/1811.08839
- [47]Zhao, D., Dalmasso, N., Izbicki, R., and Lee, A. B. (2021). Diagnostics for conditional density models and Bayesian inference algorithms. In *Uncertainty in Artificial Intelligence*, pages 1830–1840. PMLR.arxiv.org/abs/2102.10473
- [48]Zheng, H., Chu, W., Zhang, B., Wu, Z., Wang, A., Feng, B., Zou, C., Sun, Y., Kovachki, N. B., Ross, Z. E., Bouman, K., and Yue, Y. (2025). Inversebench: Benchmarking plug-and-play diffusion models for scientific inverse problems. In *The Thirteenth International Conference on Learning Representations*.DOI






