Paper commentary
Training Calibrated Conditional Generative Models with a Sample-Only Coverage Loss
TARP-CvM trains conditional generators toward calibrated posteriors using samples alone
- Problem Conditional generative models are often overconfident, which matters in scientific inverse problems. Coverage losses need model densities, and scoring rules like the energy score do not directly enforce coverage.
- Method The authors add a Cramér–von Mises coverage penalty to training. It checks credibility values from samples alone, across many reference rules, so it needs no density evaluation.
- Results The loss is zero only when the model equals the true posterior. On simulation-based inference benchmarks it matches a density-based coverage loss, and it gives better-calibrated posteriors on imaging problems.
Why overconfident posteriors resist standard fixes
Conditional generative models are now a common way to sample posteriors in inverse problems, where the model must produce signals from indirect, noisy measurements.
One family of fixes trains directly on coverage, typically computed on highest probability density (HPD) regions. Computing HPD regions requires evaluating the estimator density, so these methods are restricted to architectures with tractable likelihoods, such as NFs. That restriction excludes diffusion models and GANs. The coverage these objectives enforce is marginal, and the prior passes that test too, so it can't single out the posterior.
Strictly proper scoring rules such as the energy score and CRPS need only samples, and the posterior is their unique minimizer. The energy score doesn't directly enforce coverage, so it can't guarantee calibration through its population objective alone.
The authors also argue that the energy score is much flatter than TARP-CvM along the posterior spread when the mean is biased. On most of the imaging problems tested, the energy score and pCRPS improved coverage yet stayed overconfident. Calibration objectives such as the HPD objective and rank-based statistics mostly target marginal calibration, which doesn't ensure conditional calibration.
Conformal prediction is also marginal and acts after training, so it can't supply a training loss.
A coverage test built from reference points
The test starts by placing a reference point for each measurement and counting how many model samples land closer to it than the true signal. That fraction is the credibility value, the probability mass the model gives to the ball centered at the reference point and passing through the true signal. Because the probability is estimated as the fraction of draws from the estimator, the whole check needs samples only, with no density evaluation.
If the model is correct, these credibility values are uniform on [0, 1] at every measurement.
TARP pools credibility values over randomly drawn reference points, so over-coverage and under-coverage can cancel. The authors keep each rule separate instead, comparing its credibility distribution with the uniform one and averaging the discrepancies. A single rule still isn't enough, because its coverage is averaged over measurements. An estimator that is too wide at one measurement and too narrow at another can look calibrated under such a rule.
Choosing a better single rule doesn't fix this, since the counterexample holds for any reference rule.
A constant rule doesn't help, because a model that returns the prior passes the coverage test with a fixed center. Adding independent noise to a point estimate for each example also fails, since errors in different examples can still offset each other. A patched rule instead uses one reference rule on one side of a hyperplane in measurement space and another rule on the other side.
Reference points then change on a subset of measurements while the rest stay put, so local errors can't hide in the average.
Admissibility asks for two things: reference centers dense in the parameter space, and patched rules available for every half-space. The switch rule of Equation 8 gives each side of the hyperplane its own displacement, so each draw is a rule with its own statistic.
What the admissibility conditions buy
The population loss averages, over a distribution ρ of rules, the squared gap between the marginal coverage and the diagonal. Admissibility requires a countable family of rules Ψ inside the support of ρ, and that family has to satisfy two conditions. The first condition, R1, asks that for every measurement the reference centers be dense in the parameter space Θ.
The second condition, R2, asks that patching any two rules across any half-space H stays in the support of ρ. Patching lets the rules change reference points on one side of a hyperplane while leaving the other side unchanged.
The forward direction is easy: a correct estimator is calibrated under every rule, by Lemma 1. The converse runs in three steps, and the first is that zero loss forces calibration for each rule in the support of ρ. The second step uses patching, which makes the conditional coverage at almost every measurement independent of the reference point.
The third step uses density of the reference points, so the invariance can only hold when the estimated and true posteriors agree.
Lemos et al. (2023) state a related exactness result, but they don't say how reference points should depend on the measurement. In their experiments the reference points are drawn independently of the measurement, so the prior also passes the test. The discrepancy is a divergence between conditional distributions, but it isn't a metric and it isn't a scoring rule.
The guarantee concerns the population loss, so it says nothing about whether minibatch training reaches that minimizer. A strictly proper scoring rule such as the energy score has the same issue, since gradient descent can stop at local minima. The batch estimate of the loss in Section 4.1 is an approximation, so the population guarantee applies only in the limit.
One training step with switch rules
The population loss becomes a batch-level term in four moves: sample the model, count credibility values, sort them, and sum a closed-form statistic. For each measurement in the batch, the model draws M samples, and the sampler's noises are fixed in advance so that gradients flow back to the parameters. The exact credibility value is a count of draws closer than the truth, which has zero gradient, so the indicator is replaced by a sigmoid at temperature τ.
The relaxed credibility is s_ψ(θ, y) ≈ (1/M) Σ σ((d(θ, ψ(y)) − d(θ̃_m, ψ(y)))/τ), averaged over the M draws.
For each rule, the N credibility values are sorted, and the Cramér–von Mises statistic has a closed form in those sorted values. Integrating over the levels α first removes the indicators, which is why the statistic stays differentiable. The gradient with respect to each s_i is 2s_i/N − (2 rank(i) − 1)/N², so every credibility value receives a push that depends on its rank.
Coordinate-wise ranks would constrain only the one-dimensional marginals, which is why the authors use the credibility values across rules instead.
A switch rule starts from a point estimate b(y), which is the adjoint reconstruction A⊤y or the pseudo-inverse A+y for a linear forward model. A hyperplane through a random example y_j splits the batch, and the two sides receive different displacements ξ and ξ′.
Prior rules use one shared draw from the prior, and posterior rules use the other posterior draws of each pair as references. A posterior draw used as a reference is excluded from its own credibility count, since otherwise it would add a guaranteed zero-distance sample. The total objective adds the base generative loss to λ times the average of the R per-rule statistics, with the base loss computed on its own batch.
Gaussian check: HPD coverage versus TARP-CvM
The test asks whether an HPD objective, which passes coverage, still recovers the posterior when the posterior is known. The setting is a Gaussian linear inverse problem with a Gaussian prior and fewer measurements than parameters, with θ in R^8. The true posterior is Gaussian, N(W*y, S*), and the estimator is a Gaussian N(Wy, S) fitted by gradient descent.
Because the posterior is known in closed form, the authors can compare each model's KL divergence to it directly.
The HPD objective admits a family of minimizers, and that family includes the prior at W = 0. So gradient descent on HPD coverage can stop anywhere on the family, and the HPD objective gives no reason to prefer the posterior. TARP-CvM, by contrast, has the posterior as its unique minimizer, following from Theorem 1.

Figure 1 : Gaussian linear inverse problem,θ∈R 8. (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 Section 5.1 and Appendix E.1.
Original paper · CC BY 4.0 · Benjamin Remy, Raphael Rossellini, Chihway Chang, Rebecca Willett · Training Calibrated Conditional Generative Models with a Sample-Only Coverage Loss · Original paper figure · Extracted the figure area from page 3 of the original PDF.In the comparison, TARP-CvM recovers the posterior contours, while the HPD-trained fit is biased and too conservative. The HPD coverage error can't tell the two models apart, even though their KL divergences to the posterior differ strongly. This is one toy setting, so it shows the distinction in a single low-dimensional case rather than across problems.
SBI benchmark: matching CalNPE without densities
The SBI experiment asks whether sample-only training can match a density-based calibration method on low-dimensional problems. TARP-CvM is compared with conditional normalizing flows trained with NPE and with the HPD-based regularizer of CalNPE. In SBI, only simulator samples are usually available, so the adjoint of the forward model can't be evaluated.
Instead, a multilayer perceptron is trained to target the posterior mean, using a mean-square-error loss. That MLP supplies the point estimate b(y) for reference points and is frozen during calibration of the generative model.
TARP-CvM is significantly better on the switch map for Weinberg at 2^10, and CalNPE is significantly better on log density for Spatial SIR at 2^10. So TARP-CvM matches CalNPE using only posterior samples, and the loss doesn't need a density evaluation.
The log density of TARP-CvM doesn't differ significantly from NPE in any setting. However, it is lower than CalNPE's log density on Spatial SIR at the two smaller budgets. The authors used this configuration to match the one reported by Falkiewicz et al. (2023).
Imaging inverse problems: coverage and Mira
The study uses three problems from InverseBench: linear inverse scattering (IS), compressed-sensing MRI, and Navier–Stokes (NS), which is nonlinear and reachable only through a black-box solver. The models are trained fully amortized on pairs of signal and measurement, with the adjoint reconstruction concatenated to the input for IS and MRI.
For NS, the measurement enters at its native 64 × 64 resolution, which matches the signal resolution. The objectives are DSM alone as a control, DSM plus the energy score, DSM plus pCRPS, or DSM plus TARP-CvM, and all use the same 20-step DDIM sampler. Coverage is scored by the L1 TARP coverage error, and calibration is scored by the Mira score, where 2/3 is calibrated.
Before calibration, every pretrained model is overconfident, with Mira between 0.51 and 0.61. Additional DSM training doesn't fix this, so the gains come from the regularizers. On NS and IS, TARP-CvM gives the lowest coverage error, 0.11 compared to 0.17 on NS, and 0.28 compared to 0.35 on IS for the best scoring rule. Figure 3 summarizes these coverage changes before and after calibration.

Figure 3 : Coverage before and after calibration.
Original paper · CC BY 4.0On IS, TARP-CvM reaches a Mira score of 0.68, compared to 0.53 for the energy score and 0.57 for pCRPS. Only TARP-CvM lands in the null band on IS. On NS, all three regularizers reach the null band, so the difference between methods shows up mainly on IS.
On MRI, the two metrics disagree: the energy score has the lowest coverage error yet remains overconfident by Mira. TARP-CvM is the only method inside the band on MRI. Because the question here is calibration, the Mira result decides which method reaches the band on MRI.
Per-draw PSNR drops by 0.35 to 1.9 dB, and the authors attribute this to the metric rather than to worse accuracy.
Sampler depth at inference
The authors train with T = 20 and evaluate at T in {20, 100, 500}. Figure 4 shows the depth sweep for the DSM-only and TARP-CvM models.

Figure 4 : Coverage under varying sampler depth. TARP-CvM was trained atT= 20.
Original paper · CC BY 4.0On MRI, the Mira score decreases with depth and leaves the null band at higher T. At T = 100 and 500, the TARP-CvM model falls below the DSM-only model, whose Mira score improves with T. The correction then no longer matches a finer discretization, so it doesn't transfer to longer chains.
The authors recommend sampling the model at the depth it was calibrated for.
Limits of the evidence
The plug-in statistic used in the experiments keeps a finite-sample bias that the authors don't remove. The authors didn't use it in the reported experiments, and the same plug-in estimator is applied consistently throughout training.
The imaging tests cover three inverse problems, and the SBI tests cover four low-dimensional problems. The Gaussian check is a single toy setting, so the evidence for the theory rests on one controlled case. Full waveform inversion, black hole imaging and cosmological SBI are named as future work, and the authors didn't test them.
The method needs an adjoint or an auxiliary regressor of the posterior mean to build its reference points. Without an adjoint, the SBI experiments train an MLP regressor of the posterior mean, which costs extra training. The SBI results show TARP-CvM matching CalNPE, with a single method significantly better in only two of the 48 comparisons.
The imaging results depend on the sampler depth used for calibration, so the authors don't claim the gains transfer to other depths. Mira stays inside the null band on NS and IS at every depth, but on MRI it leaves the band at higher T.
Paper info
- Authors
- Benjamin Remy, Raphael Rossellini, Chihway Chang, Rebecca Willett
- Venue
- arXiv · Preprint
- First published
- 2026-11-11
- Added
- 2026-11-13
- Updated
- 2026-11-11
- Version
- v1
- arXiv
- 2611.15829
- Category
- cs.LG · stat.ME · stat.ML
- Original paper terms
- CC BY 4.0
- What we show
- Paper info, commentary and permitted figures from the original paper
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
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.
Quote from the paper
Benjamin Remy, Raphael Rossellini, Chihway Chang, Rebecca Willett (2026). Training Calibrated Conditional Generative Models with a Sample-Only Coverage Loss. arXiv:2611.15829v1. https://arxiv.org/abs/2611.15829v1
BibTeX
@misc{remy2026training,
title = {{Training Calibrated Conditional Generative Models with a Sample-Only Coverage Loss}},
author = {Benjamin Remy and Raphael Rossellini and Chihway Chang and Rebecca Willett},
year = {2026},
eprint = {2611.15829},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2611.15829v1}
}