Manuscript Offprint
arXiv:2610.21977Learn Only Where You Can't Compute: Structured Corrections to Gaussian Process Posteriors
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Physics-informed Gaussian processes (GPs) provide a principled framework for scientific inference by expressing uncertainty over empirical measurements, boundary conditions, and governing equations. However, they struggle to scale to larger datasets and nonlinear information. Conversely, diffusion models excel at learning complex distributions over functions from massive datasets, but struggle in scientific contexts where training data are scarce and physical or observational information must be incorporated. We propose a structured posterior-correction framework that combines a tractable Gaussian reference with data-driven corrections via generative learning. After a mean correction and covariance calibration, a diffusion model learns a targeted correction in a low-dimensional subspace selected to capture discrepancies from the reference, while the complement retains its Gaussian law. Across three scientific inference tasks, these corrections recover hidden modes, improve sample structure, and reduce prediction error relative to the Gaussian reference. Comparisons with full-field generative models reveal task-dependent benefits and tradeoffs between predictive accuracy and computational cost.
1 INTRODUCTION
Scientific inference often combines heterogeneous sources of information about an unknown function or state, such as noisy measurements, boundary conditions, physical laws, numerical models, and historical data. These sources typically leave the quantity of interest only partially determined, making uncertainty quantification an essential part of the inference problem (Stuart, 2010; Hennig, Osborne, and Kersting, 2022). A central challenge is therefore not only to predict a function, but to construct a conditional distribution that combines the available information while remaining computationally tractable.
Probabilistic function-space methods provide a natural way to combine such information. Gaussian processes (GPs), in particular, place a distribution directly over the unknown function and admit analytic conditioning on linear information such as measurements, boundary values, or derivative observations (Rasmussen and Williams, 2005; Raissi, Perdikaris, and Karniadakis, 2017; Pfortner et al., 2024). Probabilistic numerical methods extend this perspective to information supplied by differential equations and numerical computations (Hennig, Osborne, and Kersting, 2022; Schmidt, N. Krämer, and Hennig, 2021; N. Krämer, Schmidt, and Hennig, 2022). The resulting Gaussian posterior can encode substantial prior, physical, and observational structure before any learning from data is required. It provides both a predictive mean and a structured representation of the uncertainty that remains.
Such a probabilistic model is nevertheless only as expressive as the assumptions from which it is constructed. Incomplete physics, unresolved scales, latent nonlinear effects, or model mismatch may cause the true conditional law to differ systematically from its Gaussian approximation. Some of this discrepancy amounts to an incorrect location or spread; other effects produce multimodality or dependencies that a Gaussian cannot represent. Expressive generative models offer a complementary route. Diffusion models, in particular, can learn rich distributions over fields and trajectories (Ho, Jain, and Abbeel, 2020; Song, Sohl-Dickstein, et al., 2021; Rühling Cachay et al., 2023; Rozet and Louppe, 2023). Learning the entire conditional law, however, also asks the generative model to represent structure already available from the Gaussian posterior. When scientific training data are expensive to obtain, there is a particular incentive to make use of this information. This raises a question: how much of a scientific conditional distribution needs to be learned when a useful

Figure 1: Illustrative correction pipeline for a CR3BP trajectory in the rotating Earth–Moon frame: target orbit (—), Gaussian reference (--), and learned corrections (--); thin curves are samples. Left: reference mean and samples. Middle: mean correction shifts the reference toward the target. Right: covariance and diffusion correction refines the ensemble spread. Earth ⚗ and Moon ● mark their normalized locations; ✦ marks the trajectory start.
Gaussian approximation can already be computed?
We turn this idea into a structured posterior-correction framework, illustrated in Figure 1. An analytically conditioned Gaussian serves as a probabilistic scaffold (Figure 1, left). A mean correction adjusts its predictive center across the whole field (middle). The subsequent probabilistic correction recalibrates its covariance and fits a mixture or diffusion model in a selected low-dimensional subspace (right). This learned law captures remaining discrepancies in conditional spread and non-Gaussian shape, while the complement retains its Gaussian law.
Our contributions are threefold. First, we formulate a correction framework that uses an available Gaussian posterior to reduce the part of the conditional distribution assigned to a generative model. Gaussian and subspace KL decompositions explain which discrepancies the corrections can repair and what remains outside the learned block. Second, we develop a data-driven subspace search based on estimated validation log-score improvement, making the value of a richer law the criterion for where to learn it. Third, we evaluate this restricted learning task on regression and smoke transport problems with tractable posterior references and on numerical trajectory reconstruction, using learning curves and measured run times alongside distributional scores. Small learned blocks improve on the calibrated scaffold and can improve the structure of individual draws even when marginal scores are similar. The experiments also show where full-field models remain preferable, while the restricted model still offers a useful accuracy-cost tradeoff.
Gaussian scaffold and correction objective. Let denote a discretized function of interest, and let represent the available information about , such as observations, boundary conditions, or mechanistic inputs. Given training pairs , our goal is to approximate the unknown conditional law . We assume that part of this inference problem can already be solved analytically via a tractable Gaussian conditioning step, yielding a reference distribution . The construction of this scaffold is application dependent. In particular, probabilistic numerical solvers (N. Krämer, Schmidt, and Hennig, 2022; Weiland, Pfortner, and Hennig, 2025) can construct Gaussian conditional distributions that incorporate mechanistic information such as differential equations, boundary conditions, and observations (Pfortner et al., 2024).
To quantify the discrepancy between the true conditional law and the Gaussian scaffold , we consider the Kullback–Leibler divergence, which arises from the excess risk of the scaffold when choosing the logarith-mic score. Writing and , this discrepancy decomposes exactly as
This identity assumes a density with finite second moments, finite divergences, and nonsingular and . For numerically rank-deficient scaffolds we work in resolved coordinates with a positive covariance floor (Appendix A.2). A shift in the scaffold mean cannot repair its spread or shape, but it can remove the location mismatch (cf. Eq. (1), Term 1) across the entire field. This motivates learning a full-field mean correction before deciding where a richer probability law is needed.
Conditional mean correction. At the population level, the mean discrepancy minimizes the precision-weighted regression loss. Its empirical counterpart is
The precision weights errors according to the scaffold uncertainty. Unweighted squared error has the same unrestricted population minimizer and can be used alternatively. We use then the fitted shift to define the corrected mean , residual , and the mean-corrected scaffold .
Covariance mismatch correction. After correcting the mean, we target the covariance mismatch in Term 2 of (1). We first whiten the residuals by the scaffold covariance, so that the scaffold predicts unit variance in every direction, and estimate their covariance pooled across training contexts:
Here, is the ith column of , and is the estimated residual variance along that direction. Values above or below one indicate that the scaffold underestimates or overestimates this variance, respectively.
To decide which variance corrections are supported by the data, we measure their potential log-score gain. For a centered Gaussian coordinate, replacing unit variance by gives
We set when exceeds a sampling-noise threshold, and retain the scaffold variance, , otherwise. We then map these calibrated variances back to the original field coordinates using
where denotes the chosen square-root factor, the calibrated reference and its standardized coordinates are
Thus u is standard normal under the calibrated reference . Because calibration pools residuals across contexts, it can leave context-dependent covariance mismatch and fitted mean error. The next stage addresses these remaining discrepancies together with non-Gaussian structure.
Probabilistic correction objective. To model this discrepancy without replacing the Gaussian in all directions, we assume an orthonormal matrix and learn only a conditional law for . Writing for its orthogonal complement, the corrected density is
For , its divergence from the true residual law decomposes as
(8)
For fixed U, only the first term depends on and we fit the block law either by maximizing a Gaussian mixture likelihood (Bishop, 1994) or by training a diffusion model with a denoising objective (Ho, Jain, and Abbeel, 2020); the Gaussian complement requires no learned density. However, even an exact block law leaves the complement mismatch and the dependence between block and complement. Whitening alone does not remove these terms.
The remaining question is where this block should be placed. Relative to the calibrated Gaussian, replacing the law of w yields an improvement
(9)
For a fixed U, maximizing this gain over is equivalent to fitting the projected conditional law with the largest attainable gain being
A positive population gain guarantees a KL improvement for the given block and fitted law. Choosing reduces the stochastic dimension of the learned correction, while the calibrated Gaussian supplies the law on the complement.
Subspace selection. Choosing U is the difficult part. Fitting a separate diffusion model for every candidate subspace is computationally prohibitive, so we estimate (9) with a lightweight density model and train the final diffusion model only after selecting the block. We use a product of one-dimensional Gaussian mixtures, conditioned on c when needed, whose exact likelihood provides a held-out gain for each projected direction.
Log-score gain can favor sharp discrepancies with negligible amplitude in the original function space. Before evaluating it, we therefore add matched isotropic Gaussian noise of standard deviation to both the residual law and the Gaussian reference and repeat the covariance calibration. This creates a soft noise floor, measured in the units of , that decreases discrepancies smaller than ; setting recovers the original objective.
We initialize the search directions from residual-PCA, independent-component and excess-variance ( -span) proposals (Appendix A.3). We score these candidate blocks, refine the most promising frame together with its mixture density by gradient ascent on the training gain , retaining the checkpoint with the highest validation gain. Finally, we select directions whose validation gains exceed , with minimum gain threshold and the parameter count of a one-dimensional mixture. This is a practical threshold, not a statistical guarantee accounting for the adaptive search.
Sampling from the corrected posterior. For , we map the selected directions from the smoothed selection coordinates back to the original standardized coordinates and fit the final law to . A mixture from the selection family can be refitted as ; alternatively, we train a conditional diffusion model by denoising score matching (Ho, Jain, and Abbeel, 2020), allowing the final law to capture joint dependence between the selected coordinates. A corrected sample is then
(11)
The corrected mean sets the center, from equation (5) combines the scaffold geometry with its covariance calibration, and replaces the Gaussian law only in the selected span. For , this reduces to , for , the family becomes a full residual model. The experimental full-residual baselines also differ in calibration and architecture, as described in Appendix A.4.
3 RELATED WORK
Gaussian conditioning and probabilistic numerics. Gaussian processes provide closed-form inference under linear-Gaussian information, including observations and linear physical constraints (Rasmussen and Williams, 2005; Raissi, Perdikaris, and Karniadakis, 2017; Pfortner et al., 2024). Probabilistic numerical methods extend this perspective to differential equations and numerical computation (Hennig, Osborne, and Kersting, 2022; Schmidt, N. Krämer, and Hennig, 2021; N. Krämer, Schmidt, and Hennig, 2022), including sparse Gauss Markov formulations for PDE solutions (Rue and Held, 2005; Weiland, Pfortner, and Hennig, 2025). For Gaussian measures conditioned on nonlinear observations of finitely many linear functionals, Chen et al. (2024) derive a decomposition into a Gaussian component and a finite-dimensional non-Gaussian component. In our setting, the discrepancy from an available Gaussian approximation is learned from data, including the directions in which a richer law is fitted.
Low-dimensional corrections of reference distributions. The idea that a high-dimensional target can differ from a reference in a small subspace underlies non-Gaussian component analysis (Blanchard et al., 2006), likelihood-informed subspaces (Cui et al., 2014), certified posterior dimension reduction (Zahm et al., 2022), and lazy transport maps (Brennan et al., 2020). Lazy maps relate restricted density-ratio corrections to projected KL gain and identify correction subspaces through gradient-based diagnostics. Score-ratio matching learns such diagnostics from samples, including for conditional generative modeling (Baptista, Brennan, and Marzouk, 2025). We develop a correction procedure for scientific Gaussian posteriors that combines mean correction, covariance calibration, and data-driven selection of a residual block. A lightweight conditional mixture estimates validation log-score gain, directing flexible modeling towards residual discrepancies for which a richer law improves on the calibrated Gaussian. A mixture or diffusion model then learns the block law, while the calibrated Gaussian supplies the law on the complement.
Model discrepancy and residual correction. Bayesian calibration represents the difference between a simulator and observations through a discrepancy process (Kennedy and O'Hagan, 2001; Brynjarsdóttir and O'Hagan, 2014; Plumlee, 2017). Learned residual models provide a more flexible alternative. For example, CorrDiff predicts a conditional mean and uses diffusion for the remaining variability for down-scaling climate models (Mardani et al., 2025), while score-based approaches learn conditional distributions for data assimilation and PDE inference (Rozet and Louppe, 2023; Huang et al., 2024). We similarly learn residual structure, but start from a probabilistic scaffold and retain a calibrated Gaussian complement. Our experiments examine what this restriction preserves and where full-field models remain preferable.
4 EXPERIMENTS
We examine how much of a conditional distribution can be recovered by learning a correction to an available Gaussian model. Experiment 1 (Synthetic) tests the recovery of known hidden modes as training data increase. Experiment 2 (Smoke) challenges the correction with measurement-dependent uncertainty over distinct smoke directions and examines the accuracy-cost tradeoff. Experiment 3 (CR3BP) tests whether the correction improves a probabilistic numerical solver. Across these problems, we assess predictive accuracy and the structure of individual samples.
Methods. Each task supplies its own Gaussian scaffold (Scaffold) and conditioning information. Scaffold+M applies the mean correction, while Rescale additionally recalibrates the covariance. The selected subspace methods leverage a product mixture (Gain-Mix) or diffusion (Gain-Diff) model; Full-Diff learns the full residual law. We compare against conditional diffusion directly on the field (Diff) and a Kennedy-O'Hagan GP discrepancy (KO) (Kennedy and O'Hagan, 2001), which adds a Gaussian process to the reference model to learn systematic differences between its predictions and the observed data. In both Synthetic and Smoke we have access to the exact posterior (Exact) and its moment-matched Gaussian (Exact-GP) as references. For both Full-Diff and Diff we use U-Nets (Ronneberger, Fischer, and Brox, 2015) on Smoke and MLPs on Synthetic and CR3BP; all coefficient laws use MLPs. These comparisons reflect differences in architecture and representation as well as the subspace restriction. Each method underwent hyperparameter sweeps during development, after which its configuration was fixed for the reported experiments. Details are provided in the corresponding appendices.
Evaluation. The main comparisons use three seeds, 500 test contexts, and 100 draws per context and method. CRPS and Cramér distance assess predictive distributions at individual coordinates, while energy score (ES) assesses complete fields. Coverage checks whether central 90% intervals contain the reference values at the expected frequency. Accurate marginal predictions need not imply coherent joint samples. We therefore define a physical consistency distance (PCD), which assigns each sample a negative log-density score under a smoothed exact posterior and compares the distributions of these scores for generated and exact draws. Lower PCD indicates closer sample agreement; Appendix B.3 gives the construction. This diagnostic complements predictive scores but does not fully characterize the distribution. Table 1 summarizes the results aggregated across three seeds; metric definitions, seed variation, and additional results appear in the corresponding appendices.
4.1 Synthetic
On a periodic grid, the target is , where is a coarse GP, an independent fine-scale GP, and the columns of are smooth bumps between adjacent sensors, with signs drawn uniformly. Sixteen sensors observe , which we provide as conditioning information . Since , the measurements do not identify the signs, and the exact posterior is
where are the posterior moments of under the true sensor noise. The scaffold conditions g alone using one averaged noise level. It therefore misses both Gaussian structure and the bump modes (Appendix C).
The Synthetic columns of Table 1 report results at , while Figure 2 shows Cramér distance across number of training pairs . Gaussian calibration (Rescale) recovers much of the missing spread, raising coverage from 0.30 to 0.94, but leaves the two sign modes at each bump unresolved. The GP discrepancy baseline (KO) achieves nominal coverage, but its Cramér distance remains higher than that of Rescale. Learning a distribution on the subspace resolves this discrepancy. From , both Gain-Mix and Gain-Diff improve beyond the moment-matched Gaussian Exact-GP in marginal distance (Figure 2). The selector retains exactly 16 coordinates on every seed, matching the number of hidden bumps. A product mixture is particularly well suited to this construction, whose non-Gaussian structure arises from 16 independent binary signs. Therefore, Gain-Mix achieves marginal accuracy comparable to Gain-Diff.
The bump-amplitude distributions estimated from posterior samples explain the learning curves. In the illustrated seed, Gain-Diff already separates the modes at n = 1000, while Full-Diff does so at n = 2000. These results suggest that restricting the correction
Table 1: Main results, mean over three seeds. Synthetic: , ; Smoke: , ; CR3BP: , . Lower is better except (target 0.90). Baselines are above the dashed line, scaffold corrections below it, and exact references below the solid rule (not available for CR3BP). Bold: mean one s.d. overlaps the best non-reference method.
| Method | Synthetic | Smoke | CR3BP | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| CRPS | PCD | CRPS | PCD | CRPS | ES | Jacobi | ||||||
| Scaffold | 0.2859 | 0.1884 | 0.30 | 667 | 0.0714 | 0.0585 | 0.92 | 7072 | 0.1588 | 11.26 | 0.89 | 1.46 |
| KO | 0.2130 | 0.0427 | 0.90 | 1242 | 0.0714 | 0.0584 | 0.92 | 7079 | 0.2726 | 19.03 | 0.96 | 5.50 |
| Diff | 0.2208 | 0.0575 | 0.86 | 1256 | 0.0434 | 0.0014 | 0.89 | 37 | 0.1785 | 10.91 | 0.99 | 2.89 |
| Scaffold+M | 0.2744 | 0.1659 | 0.33 | 512 | 0.0619 | 0.0385 | 0.94 | 6906 | 0.1178 | 7.83 | 0.93 | 2.01 |
| Rescale | 0.2014 | 0.0193 | 0.94 | 406 | 0.0595 | 0.0336 | 0.92 | 5190 | 0.0916 | 7.60 | 0.94 | 0.79 |
| Gain-Mix | 0.1936 | 0.0026 | 0.89 | 23 | 0.0473 | 0.0088 | 0.91 | 1022 | 0.0844 | 7.24 | 0.96 | 0.68 |
| Gain-Diff | 0.1934 | 0.0027 | 0.89 | 32 | 0.0457 | 0.0051 | 0.90 | 154 | 0.0815 | 7.06 | 0.93 | 0.44 |
| Full-Diff | 0.1947 | 0.0050 | 0.87 | 958 | 0.0450 | 0.0049 | 0.88 | 249 | 0.0902 | 7.65 | 0.97 | 1.26 |
| Exact-GP | 0.2007 | 0.0175 | 0.95 | 407 | 0.0459 | 0.0062 | 0.91 | 1256 | - | - | - | - |
| Exact | 0.1921 | 0.0000 | 0.90 | 0 | 0.0429 | 0.0000 | 0.90 | 0 | - | - | - | - |
(a) Learning from more fields

Figure 2: Synthetic. Top: Cramér distance to the exact posterior versus training-set size; mean and range over three seeds. Bottom: pooled bump amplitudes at and 2000 (dotted lines; single seed) against the exact density (black). Rescale cannot split the sign modes; Gain-Diff does so by , Full-Diff only by .
to a subspace containing the non-Gaussian structure provides a useful inductive bias, enabling the model to recover the missing modes with fewer training examples in this experiment.
4.2 Smoke
We next consider smoke emitted by a chimney on a grid under an uncertain wind direction . Nine noisy sensors measure the smoke concentration . Some readings identify the wind direction sharply, while others leave several directions plausible. We examine whether a low-dimensional correction can capture this measurement-dependent uncertainty. The concentration is , where is a small GP background, is the emission strength, and is an advection-diffusion plume given . For each of 360 possible wind directions, the conditional posterior is Gaussian, so the exact posterior is a weighted mixture. The scaffold instead conditions a single Gaussian with the prior's first two moments on the same readings (Appendix D). When several wind directions remain plausible, the posterior mean can be diffuse even though individual draws will always contain a narrow smoke plume.
The Smoke columns of Table 1 report results at . The GP discrepancy baseline (KO) leaves the scaffold's CRPS essentially unchanged. The presented corrections recover an increasing share of the predictive accuracy missing from the Gaussian scaffold. Correcting the mean (Scaffold+M) closed of the scaffold-to-exact CRPS gap, and additional covariance calibration Rescale raises this to . Learning a distribution on the selected subspace yields a further substantial improvement: Gain-Mix closes of the gap, and Gain-Diff reaches (Table 1, Smoke columns). The selected diffusion correction achieves this using only 38–39 of the 1024 field coordinates.
The posterior samples illustrate the resulting improvement in plume structure (Figure 4). For the displayed

Figure 3: Smoke training and sampling costs at n = 8192, d = 1024. Methods: Gain-Mix (●), Gain-Diff (●), Full-Diff (●), Diff (●). The arrow indicates improvement; points show timing medians over three seeds. Training includes selection and excludes evaluation; sampling produces 100 draws for one context.

Figure 4: Smoke posterior draws for one set of sensor observations (first three draws per method; rows are not paired). Exact draws are narrow plumes in different directions; the scaffold smears smoke across directions, while Gain-Diff and Diff recover localized plumes. Stars: source; circles: sensors.
readings, several wind directions remain plausible. Exact draws contain individual narrow plumes in different directions, whereas scaffold draws spread smoke across several directions at once. Gain-Diff recovers more localized plumes, although one of its displayed draws remains diffuse. Across test contexts, its CRPS is close to that of the moment-matched Gaussian Exact-GP (0.0457 versus 0.0459), while its PCD is about eight times lower (154 versus 1256; Table 1). Thus, similar marginal accuracy can coexist with substantially different sample plausibility.

Figure 5: CR3BP (n = 7500, single seed). Top: first five draws per method for one initial state, with the reference trajectory in black; Gain-Diff (—) stays close to the reference orbit, while Full-Diff (—) and Diff (—) scatter. Bottom: CRPS over time, averaged over the four state coordinates and all test contexts.
Full-Diff achieves slightly lower CRPS than Gain-Diff, although Gain-Diff has lower PCD at n = 8192 (Table 1). Direct conditional diffusion Diff achieves the lowest CRPS, Cramér distance and PCD among the learned methods. The learning curves also favor the full-field models: both achieve lower mean CRPS than the selected corrections throughout the measured training sizes (Appendix D.4). The contrast with Synthetic suggests that the useful inductive bias depends on the structure of the discrepancy: fixed bump directions favor learning in coefficient space, whereas uncertainty over coherent plume shapes may favor the spatial structure of the full-field U-Nets used here. The selected correction, however, offers a clear tradeoff between predictive accuracy and reduced sampling cost (Figure 3).
4.3 CR3BP
Finally, we examine whether a selected correction can improve numerical trajectory predictions. The Gaussian scaffold is supplied by a probabilistic ODE solver (P. N. Krämer, 2024) for the planar circular restricted three-body problem (Hairer, Nørsett, and Wanner, 1993; Hennig, Osborne, and Kersting, 2022). The context is the initial state, and the target comprises positions and velocities at 501 times (d = 2004). The dynamics are deterministic given the initial state, so the task is to correct numerical prediction error. A high-accuracy numerical solve supplies the reference trajectory (Appendix E).
The CR3BP columns of Table 1 report results at . As in Smoke, correcting the mean and covariance already improves substantially on the Gaussian scaffold. Learning a distribution on the selected subspace improves accuracy further: Gain-Diff reaches a CRPS of 0.0815, about half the solver's 0.1588. In contrast to Smoke, direct conditional diffusion Diff has higher CRPS than the scaffold. For KO, likelihood fitting produces an over-dispersed prediction, where its log-score improves, but CRPS against the deterministic reference worsens (Appendix E.4).
The trajectory samples compare the three diffusion models (Figure 5 and Figure 1). For the displayed initial state, Gain-Diff draws follow the reference orbit more closely, while Full-Diff and direct conditional diffusion (Diff) produce visibly irregular paths. Since PCD is unavailable for the point-mass reference, we assess physical consistency through Jacobi-constant drift (Appendix E), which measures changes in a state-derived quantity that should remain constant along each trajectory. Both, Gain-Diff and Gain-Mix, achieve lower field CRPS, energy scores and Jacobi errors than both full-field alternatives.
5 LIMITATIONS AND CONCLUSION
We developed a posterior-correction framework that uses a Gaussian reference to carry physical and observational information into a learned generative model. Mean and covariance corrections address location and spread, while a richer probability law is learned on directions selected by estimated improvement over the calibrated reference. The remaining directions retain Gaussian uncertainty. This targeted correction recovers hidden modes in Synthetic, improves predictive accuracy and sample structure in Smoke, and reduces numerical trajectory error in CR3BP.
The framework leaves several sources of approximation error. Even an exact law on the selected subspace leaves mismatch in the Gaussian complement and dependence between the two subspace unresolved. Pooled calibration may miss context-dependent covariance structure, while gains estimated by the product-mixture selector may not carry over to the fitted diffusion model. It remains open how to adapt global subspace selection when the leading directions of discrepancy vary strongly across contexts. The selected rank depends on the data, resolution, and search budget. In CR3BP, selection reaches the imposed rank cap, so the experiment does not establish an intrinsic correction dimension, but a useful regularization. Its point-mass target also falls outside the theory's finite-KL assumptions.
Smoke illustrates that uncertainty in a single physical parameter can require coordinated corrections across many field directions. The restricted correction improves predictive accuracy over the Gaussian reference and produces more plausible samples, while direct diffusion achieves higher predictive accuracy at a greater sampling cost. Gain-Diff's subspace selection introduces additional fitting overhead, but reduces the dimensionality of the generative model and simplifies its training.
Together, these results suggest that a Gaussian approximation can reduce the scope of generative learning when its remaining discrepancy admits a compact correction. Our framework makes this principle operational: use computation to construct a reference, use residual data to identify where a richer law adds value, and concentrate generative modeling there while retaining a Gaussian law on the complement.
Acknowledgements
The authors gratefully acknowledge financial support by the European Research Council through ERC CoG Action 101123955 ANUBIS; the DFG Cluster of Excellence "Machine Learning - New Perspectives for Science", EXC 2064/1, project number 390727645; the DFG SPP 2298 (Project HE 7114/5-1), and the Carl Zeiss Foundation, (project "Certification and Foundations of Safe Machine Learning Systems in Healthcare"), as well as funds from the Ministry of Science, Research and Arts of the State of Baden-Württemberg. The authors thank the International Max Planck Research School for Intelligent Systems (IMPRS-IS) for supporting Tobias Weber.
References
Baik, Jinho and Jack W. Silverstein (2006). “Eigenvalues of large sample covariance matrices of spiked population models”. In: Journal of Multivariate Analysis 97.6, pp. 1382–1408. DOI: 10.1016/j.jmva.2005.08.003.
Baptista, Ricardo, Michael Brennan, and Youssef Marzouk (2025). “Dimension reduction via score ratio matching”. In: Transactions on Machine Learning Research. ISSN: 2835-8856.
Bishop, Christopher M. (1994). Mixture Density Networks. Tech. rep. NCRG/94/004. Aston University.
Blanchard, Gilles et al. (2006). “In Search of Non-Gaussian Components of a High-Dimensional Distribution”. In: Journal of Machine Learning Research 7, pp. 247–282.
Brennan, Michael et al. (2020). “Greedy inference with structure-exploiting lazy maps”. In: Advances in Neural Information Processing Systems. Ed. by H. Larochelle et al. Vol. 33, pp. 8330–8342.
Brynjarsdóttir, Jenny and Anthony O'Hagan (2014). "Learning about physical parameters: The importance of model discrepancy". In: Inverse problems 30.11, p. 114007. DOI: 10.1088/0266-5611/30/11/114007.
Chen, Yifan et al. (2024). “Gaussian Measures Conditioned on Nonlinear Observations: Consistency, MAP Estimators, and Simulation”. In: Statistics and Computing 35.1, p. 10. ISSN: 1573-1375. DOI: 10.1007/s11222-024-10535-0.
Cover, Thomas M. and Joy A. Thomas (2005). Elements of Information Theory. 2nd ed. Wiley. DOI: 10.1002/047174882X.
Cui, Tiangang et al. (2014). “Likelihood-Informed Dimension Reduction for Nonlinear Inverse Problems”. In: Inverse Problems 30.11, p. 114015.
Edelman, Alan, Tomás A. Arias, and Steven T. Smith (1998). “The Geometry of Algorithms with Orthogonality Constraints”. In: SIAM Journal on Matrix Analysis and Applications 20.2, pp. 303–353. DOI: 10.1137/S0895479895290954.
Gneiting, Tilmann and Adrian E Raftery (2007). "Strictly proper scoring rules, prediction, and estimation". In: Journal of the American Statistical Association 102.477, pp. 359–378.
Gneiting, Tilmann, Larissa I Stanberry, et al. (2008). "Assessing probabilistic forecasts of multivariate quantities, with an application to ensemble predictions of surface winds". In: Test 17.2, pp. 211–235.
Hairer, Ernst, Syvert P. Nørsett, and Gerhard Wanner (1993). Solving Ordinary Differential Equations I: Nonstiff Problems. 2nd ed. Vol. 8. Springer Series in Computational Mathematics. Springer Berlin, Heidelberg. ISBN: 978-3-540-78862-1. DOI: 10.1007/978-3-540-78862-1.
Hennig, Philipp, Michael A. Osborne, and Hans P. Kersting (2022). Probabilistic Numerics: Computation as Machine Learning. Cambridge: Cambridge University Press.
Ho, Jonathan, Ajay Jain, and Pieter Abbeel (2020). "Denoising Diffusion Probabilistic Models". In: Advances in Neural Information Processing Systems. Ed. by H. Larochelle et al. Vol. 33. Curran Associates, Inc., pp. 6840–6851.
Huang, Jiahe et al. (2024). “DiffusionPDE: Generative PDE-solving under partial observation”. In: Advances in Neural Information Processing Systems. Vol. 37, pp. 130291–130323.
Hyvärinen, Aapo (1999). “Fast and Robust Fixed-Point Algorithms for Independent Component Analysis”. In: IEEE Transactions on Neural Networks 10.3, pp. 626–634. DOI: 10.1109/72.761722.
Kennedy, Marc C and Anthony O'Hagan (2001). "Bayesian Calibration of Computer Models". In: Journal of the Royal Statistical Society Series B: Statistical Methodology 63.3, pp. 425–464. DOI: 10.1111/1467-9868.00294.
Krämer, Nicholas, Jonathan Schmidt, and Philipp Hennig (Mar. 2022). “Probabilistic Numerical Method of Lines for Time-Dependent Partial Differential Equations”. In: Proceedings of The 25th International Conference on Artificial Intelligence and Statistics. Ed. by Gustau Camps-Valls, Francisco J. R. Ruiz, and Isabel Valera. Vol. 151. Proceedings of Machine Learning Research. PMLR, pp. 625–639.
Krämer, Peter Nicholas (2024). “Implementing probabilistic numerical solvers for differential equations”. PhD thesis. Universität Tübingen.
Lezcano-Casado, Mario (2019). “Trivializations for Gradient-Based Optimization on Manifolds”. In: Advances in Neural Information Processing Systems. Vol. 32.
Loshchilov, Ilya and Frank Hutter (2019). “Decoupled Weight Decay Regularization”. In: International Conference on Learning Representations.
Marchenko, V. A. and L. A. Pastur (1967). “Distribution of Eigenvalues for Some Sets of Random Matrices”. In: Mathematics of the USSR-Sbornik 1.4, pp. 457–483. DOI: 10.1070/SM1967v001n04ABEH001994.
Mardani, Morteza et al. (2025). “Residual corrective diffusion modeling for km-scale atmospheric downscaling”. In: Communications Earth & Environment 6.1, p. 124. DOI: 10.1038/s43247-025-02042-5.
Nalisnick, Eric et al. (2019). Detecting Out-of-Distribution Inputs to Deep Generative Models Using Typicality. arXiv preprint arXiv:1906.02994. arXiv:1906.02994 [stat.ML].
Nichol, Alexander Quinn and Prafulla Dhariwal (2021). "Improved Denoising Diffusion Probabilistic Models". In: Proceedings of the 38th International Conference on Machine Learning. Vol. 139. Proceedings of Machine Learning Research. PMLR, pp. 8162–8171.
Pfortner, Marvin et al. (2024). Physics-Informed Gaussian Process Regression Generalizes Linear PDE Solvers. arXiv preprint arXiv:2212.12474. arXiv:2212.12474 [cs.LG].
Plumlee, Matthew (2017). “Bayesian Calibration of Inexact Computer Models”. In: Journal of the American Statistical Association 112.519, pp. 1274–1285. DOI: 10.1080/01621459.2016.1211016.
Raissi, Maziar, Paris Perdikaris, and George Em Karniadakis (2017). “Machine learning of linear differential equations using Gaussian processes”. In: Journal of Computational Physics 348, pp. 683–693. DOI: 10.1016/j.jcp.2017.07.050.
Rasmussen, Carl Edward and Christopher K. I. Williams (2005). Gaussian Processes for Machine Learning. The MIT Press. ISBN: 9780262256834. DOI: 10.7551/mitpress/3206.001.0001.
Ronneberger, Olaf, Philipp Fischer, and Thomas Brox (2015). “U-Net: Convolutional Networks for Biomedical Image Segmentation”. In: Medical Image Computing and Computer-Assisted Intervention – MICCAI 2015. Cham: Springer International Publishing, pp. 234–241.
Rozet, François and Gilles Louppe (2023). “Score-based Data Assimilation”. In: Advances in Neural Information Processing Systems. Ed. by A. Oh et al. Vol. 36. Curran Associates, Inc., pp. 40521–40541. DOI: 10.52202/075280-1763.
Rue, Håvard and Leonhard Held (2005). Gaussian Markov Random Fields: Theory and Applications. 1st ed. Chapman and Hall/CRC. DOI: 10.1201/9780203492024.
Rühling Cachay, Salva et al. (2023). “DYffusion: A Dynamics-informed Diffusion Model for Spatiotemporal Forecasting”. In: Advances in Neural Information Processing Systems. Ed. by A. Oh et al. Vol. 36. Curran Associates, Inc., pp. 45259–45287. DOI: 10.52202/075280-1961.
Salimans, Tim and Jonathan Ho (2022). “Progressive Distillation for Fast Sampling of Diffusion Models”. In: International Conference on Learning Representations.
Schmidt, Jonathan, Nicholas Krämer, and Philipp Hennig (2021). “A Probabilistic State Space Model for Joint Inference from Differential Equations and Data”. In: Advances in Neural Information Processing Systems. Vol. 34, pp. 12374–12385.
Song, Yang and Stefano Ermon (2020). “Improved Techniques for Training Score-Based Generative Models”. In: Advances in Neural Information Processing Systems. Vol. 33, pp. 12438–12448.
Song, Yang, Jascha Sohl-Dickstein, et al. (2021). “Score-Based Generative Modeling Through Stochastic Differential Equations”. In: International Conference on Learning Representations.
Stuart, A. M. (2010). “Inverse Problems: A Bayesian Perspective”. In: Acta Numerica 19, pp. 451–559. DOI: 10.1017/S0962492910000061.
Székely, Gábor J. and Maria L. Rizzo (2013). “Energy statistics: A class of statistics based on distances”. In: Journal of Statistical Planning and Inference 143.8, pp. 1249–1272. DOI: 10.1016/j.jspi.2013.03.018.
Weiland, Tim, Marvin Pförtner, and Philipp Hennig (2025). “Flexible and Efficient Probabilistic PDE Solvers through Gaussian Markov Random Fields”. In: Proceedings of The 28th International Conference on Artificial Intelligence and Statistics. Proceedings of Machine Learning Research. PMLR, pp. 2746–2754.
Zahm, Olivier et al. (2022). “Certified Dimension Reduction in Nonlinear Bayesian Inverse Problems”. In: Mathematics of Computation 91.336, pp. 1789–1835.
APPENDIX
CONTENTS
A Method details 11
A.1 Derivations 12
A.2 Covariance mismatch correction 13
A.3 Subspace selection 13
A.4 Block laws and sampling 14
B Shared experimental setup 14
B.1 Methods 15
B.2 Training protocol 15
B.3 Evaluation and metrics 16
C Dataset: Synthetic 17
C.1 Data, exact posterior and scaffold 17
C.2 Methods and training 18
C.3 Evaluation 18
C.4 Additional results 18
D Dataset: Smoke 21
D.1 Data, exact posterior and scaffold 21
D.2 Methods and training 21
D.3 Evaluation 21
D.4 Additional results 22
E Dataset: CR3BP 24
E.1 Data, reference trajectory and scaffold 24
E.2 Methods and training 24
E.3 Evaluation 24
E.4 Additional results 24
A METHOD DETAILS
This section completes the decompositions of Section 2 and then describes each stage as implemented. Algorithm 1 summarizes one full pipeline fit; per-problem values are collected in Table 3.

Figure 6: Illustration of the correction principle in two dimensions. Dashed contours mark two target modes. Correcting the mean and covariance accounts for location and spread, but leaves the Gaussian unable to represent both modes. Replacing the law along the horizontal direction recovers the bimodality while retaining a Gaussian in the vertical direction.
A.1 Derivations
Throughout, has a density, finite second moments, mean and nonsingular covariance , and all divergences are finite. These assumptions concern the density identities; the deterministic CR3BP target does not satisfy them in ambient field space. Its sample-based comparisons do not require finite KL divergence. Statements are per context and the objectives of Section 2 take their expectation over .
Gaussian projection (Equation (1)). Let and . Since is a quadratic polynomial in , its expectation depends on the law of only through the first two moments, which and share. Hence
and the closed form of the Gaussian divergence splits into the location and covariance terms of Equation (1).
Mean step. For any shift , . The precision-weighted loss is therefore twice the location term plus a constant in , and it is minimized by .
Covariance mismatch after pooled calibration. Covariance correction removes the pooled mismatch, but may leave a context-dependent contribution to the covariance term in the KL decomposition. Assume the mean is exact, and let denote the whitened residual after exact pooled covariance calibration. Write , so that . The remaining expected covariance contribution to the Gaussian KL is
where the equality uses and the inequality follows from concavity of log det. For positive-definite covariances, this remainder vanishes if and only if for almost every context. Any remaining context-dependent covariance mismatch must be addressed by the block law.
Block decomposition (Equation (8)). The map is orthogonal, so densities transform without a Jacobian. Writing inside gives the block term, the complement term and the mutual information .
Gain (Equation (9)). Subtracting the decomposition for from the same decomposition for the calibrated Gaussian cancels the complement and the mutual-information terms:
(15)
The gain is thus the reduction of total divergence achieved by that block law up to finite-sampling errors. It is bounded by , which is attained at .
Gain under a factorized selection density. Selection uses a product of one-dimensional laws, . With the total correlation ,
The gain a product contrast can measure is therefore a lower bound on the gain available to a joint law such as the block DDPM; the difference is the dependence inside the block.
Resolution . Selection scores the residual and the Gaussian reference after both are convolved with . For a fixed pair, the data-processing inequality (Cover and Thomas, 2005) guarantees that the smoothed divergence never exceeds the original one, and discrepancies whose amplitude in the units of is small against contribute little to it.
A.2 Covariance mismatch correction
Coordinates. Let be the mean-corrected residual. A shared-covariance scaffold uses the same covariance for every context (Synthetic, Smoke); a context-dependent-covariance scaffold uses a covariance that varies with (CR3BP). In our shared-covariance examples, is numerically low rank, so we add an isotropic variance floor and whiten as . For Synthetic, we choose by grid search on the training Gaussian log score; for Smoke, we set . For CR3BP, we use the context-specific factor and whiten as , without adding a floor.
Rescaling with a sampling-noise threshold. Let be the variance of the whitened residuals along the th eigenvector of their sample covariance, and the variance the calibrated reference assigns to that direction. Even when the scaffold covariance is correct, the of residuals in dimensions spread over the Marchenko–Pastur interval (Marchenko and Pastur, 1967). We therefore set only if exceeds its value at both edges, and otherwise. For CR3BP, this test runs on the full field space. For shared scaffolds, it runs on the range of and on the complement’s principal components whose eigenvalues exceed the Marchenko–Pastur edge of the others, debiased following Baik and Silverstein (2006); all other complement directions share their average sample variance. The resulting variances define and .
A.3 Subspace selection
Contrast. The selection density is a product of one-dimensional Gaussian mixtures with components per coordinate. Its parameters are shared across contexts in Synthetic and predicted from the context by an MLP in Smoke and CR3BP. Each coordinate's held-out gain is .
Resolution. The resolution is with per problem (Table 3). Training and validation residuals receive , , and the calibration is refitted on the smoothed residuals with floor (shared) or covariance (per context). After selection, the directions are mapped back to the unsmoothed coordinates.
Proposals and search. The gain is a non-convex function of the frame U, so gradient ascent from an arbitrary start can stall in a poor local optimum. We therefore start from three proposals, each restricted to the resolved calibration directions:
- Residual PCA: principal components of r in function space, mapped into u. They capture the residual structure with the largest amplitude in the units of f.
• FastICA (Hyvärinen, 1999): independent components of u, ranked by held-out gain. FastICA seeks maximally non-Gaussian projections, which is the structure the gain rewards.
- -span: after recalibration, the at most 64 axes with the largest , rotated within their span by the same Stiefel gradient ascent as the refinement below, using a pooled mixture contrast. Separated modes widen the residual along the directions that separate them, so they tend to appear as excess variance.
Algorithm 1 Fitting the corrected posterior for one training seed.
Require: training and validation pairs , scaffold , resolution factor
1: Fit the mean shift ; set and
2: Calibrate the covariance, giving and
3: Set , add noise to and recalibrate
4: for each proposal (PCA, FastICA, -span) do
5: Fit the contrast on its leading 64 directions and score them by
6: end for
7: Refine the best pool on the Stiefel manifold; keep the pool if refinement lowers the score
8: Keep the directions whose exceeds the threshold
9: Map them back to and drop those without held-out gain there, giving
10: if then
11: Fit the block law (mixture or DDPM) on and apply the law guard
12: end if
13: return the sampler of Equation (11), which is Rescale when
The leading 64 directions of each proposal form a pool, scored by under a fitted contrast (see above). The top directions of the best pool are refined jointly with the contrast by gradient ascent on the Stiefel manifold of orthonormal frames, through a smooth parametrization (Edelman, Arias, and Smith, 1998; Lezcano-Casado, 2019). If refinement lowers the gain, the pool is kept. For per-context scaffolds, the refinement runs inside a 64-dimensional span assembled from the proposals and is then polished in the full resolved space.
Rank selection. A coordinate is kept if , where is the parameter count of a one-dimensional mixture (0.016 nats at ). After mapping back to , a freshly fitted contrast drops coordinates with . The law guard falls back to the Gaussian when a mixture block has no positive held-out gain over or, on Synthetic, when a block DDPM's best validation state is its initialization. These decisions use the validation split, never the test contexts; because the same split early-stops the contrast, the reported gains are optimistic and the threshold does not control an error rate. An empty block means that the search found no gain, not that the residual is Gaussian.
A.4 Block laws and sampling
Block laws. All block laws are fitted on at . Gain-Mix refits the factorized Gaussian mixture contrast from scratch. Gain-Diff uses a DDPM (Ho, Jain, and Abbeel, 2020) with steps, a cosine noise schedule (Nichol and Dhariwal, 2021) and -prediction (Salimans and Ho, 2022). Its MLP denoiser is conditioned on , and ancestral sampling clips the predicted to the training range widened on each side by half its width. Coordinates are standardized per dimension. On Synthetic, whose readings carry no information about the bump signs, both block laws are unconditional and the DDPM predicts .
Full-residual baseline. Full-Diff takes without the covariance calibration: it models the mean-corrected residual (shared scaffolds) or (per-context scaffolds) directly.
Corrected draw. A draw is with and ; this has the law of Equation (11) without forming . Directions outside the resolved calibration directions are never selected, so they always remain Gaussian.
B SHARED EXPERIMENTAL SETUP
All problems share the method names, the training protocol and the metrics defined here. Problem-specific choices are collected in Table 3 and explained in the problem sections.
B.1 Methods
Table 2 defines every method by its center, its Gaussian part and its learned law. The structured residual corrections share the anchor mean stage of their problem. The mean of a learned block law can produce a further shift, so this anchor is not necessarily the predictive mean. Block and full-residual laws are unconditional on Synthetic and conditional on the other problems.
Table 2: Method roster. : calibrated factor (Appendix A.2); : block size; mixtures are products of one-dimensional Gaussian mixtures; K0 is shown before conditioning on readings. Grey rows require the exact posterior.
| Method | Anchor | Gaussian part | Learned law | Problems | Defined in |
|---|---|---|---|---|---|
| Scaffold | - | all | Section 2 | ||
| Scaffold+M | - | all | Section 2 | ||
| Rescale | - | all | Appendix A.2 | ||
| Gain-Mix | mixture on coordinates | all | Appendix A.4 | ||
| Gain-Diff | DDPM on coordinates | all | Appendix A.4 | ||
| Full-Diff | - | DDPM on all coordinates | all | Appendix A.4 | |
| K0 | - | all | below | ||
| Diff | - | - | conditional DDPM on | all | below |
| Exact-GP | - | all but CR3BP | Section 1 | ||
| Exact | draws from | all but CR3BP | problem sections |
K0. Following Kennedy and O'Hagan (2001), the field is , where is the scaffold's model before conditioning on the readings, is a Gaussian-process discrepancy with a mean per grid point and covariance , and the readings are with . The mean scale is chosen by generalized least squares, are fitted by type-II maximum likelihood (L-BFGS-B within boxes) on the training and validation sets, and is the average of over the training readings, i.e. the empirical reading-noise variance. With and , K0 is the scaffold. Its discrepancy prior is shared across contexts; conditioning can still change the resulting mean with the readings, but it does not learn an arbitrary context-dependent discrepancy process.
Diff. A conditional DDPM on the whole field that does not use the scaffold (-prediction, , the cosine schedule and clipping rule of Appendix A.4). It is an MLP on Synthetic and CR3BP, and a U-Net with the context as input channels on Smoke. Its RMSE uses the mean of its draws.
B.2 Training protocol
Stages and data. The stages are fitted in the order mean, calibration, selection, law, each on the same training split and frozen before the next; there is no joint fine-tuning. The validation split early-stops every network and supplies the held-out gains.
Optimization. The learned neural components use AdamW (Loshchilov and Hutter, 2019) with cosine learning-rate schedules and gradient clipping; diffusion models keep exponential moving averages of their weights (decay 0.999) (Song and Ermon, 2020). Budgets and learning rates differ by problem and component, as summarized in Table 3. Diffusion validation averages four fixed-noise evaluations; the checkpoint with the lowest validation objective is restored. Validation frequency and patience are set per component. Diffusion models standardize their coordinates per dimension (U-Nets: per-pixel centering, one shared scale), and networks standardize the context per column.
Seeds and splits. Each final comparison runs three seeds. A seed draws the data (on CR3BP, re-splits one pool), initializes the networks and seeds the evaluation. Smaller training sets are subsets of larger ones, and the validation and test sets do not depend on . Architectures and training settings were chosen during development using exploratory sweeps and then fixed for the reported comparisons.
Cost reporting. Fit-plus-evaluation wall times use the last completed run per method and seed. The timings exclude prior dataset and scaffold preparation and do not separate sampling from evaluation. For Smoke we report training and sampling separately.
Table 3: Per-problem settings. Learning rates are for the block DDPM and Diff; budgets are in optimizer steps.
| Synthetic | Smoke | CR3BP | |
|---|---|---|---|
| Mean | linear (ridge) | MLP , span-projected | MLP |
| Floor | log-score grid | ||
| Search span | resolved | resolved | |
| Mixture law | product, unconditional | product, conditional | product, conditional |
| Block DDPM | MLP | MLP | MLP |
| batch / budget / lr | |||
| Full-Diff | MLP , uncond. | U-Net | MLP |
| Diff | MLP | U-Net | MLP |
| budget / lr | |||
| K0 discrepancy | periodic SE + nugget | SE (ARD) + nugget |
B.3 Evaluation and metrics
Protocol. Each method draws samples for each of 500 test contexts, with random numbers shared across methods. Where exact draws are available, Exact and the reference distances use separate ensembles; the distance between the two gives the Monte Carlo floor. Marginal scores are averaged over coordinates and then contexts, and joint scores over contexts. Tables report the mean standard deviation over seeds; these describe seed variation and are not confidence intervals.
Notation. For one context, are independent draws of a method, independent exact draws, the truth and a coordinate.
CRPS. The continuous ranked probability score (Gneiting and Raftery, 2007), averaged over coordinates,
estimated with the fair ensemble estimator (distinct members in the second term). restricts the average to a subset of coordinates, such as the sensors or a region.
Cramér distance to the exact posterior.
which is twice the Cramér distance between the marginal distribution functions (Székely and Rizzo, 2013). It is estimated without bias and can therefore be slightly negative when the two laws agree.
Energy score. (Gneiting, Stanberry, et al., 2008), with the fair estimator, scores the joint field against the truth.
Coverage. With draws and the rank of the truth in coordinate ,
averaged over contexts, where is the length of an interval. For a calibrated ensemble each rank has probability , and the partial credit at the two boundary ranks makes exactly for any .
Physical consistency. Pointwise accuracy does not ensure that a complete draw has plausible joint structure. For example, a smoke field may combine several wind directions that are individually plausible but incompatible within one realization. We define the physical consistency distance (PCD) to compare how generated and exact draws score under the exact posterior. We compare score distributions because minimizing the average negative log density alone can reward concentration at high-density points rather than reproduce posterior uncertainty, an intuition related to typicality tests (Nalisnick et al., 2019).
For context c, we assign each complete draw the score
where is the exact posterior. For independent method draws and exact draws , the distance for this context is
(21)
This is the Cramér distance of Equation (18) applied to scalar scores rather than individual field coordinates. We compute it from the generated and independent exact reference ensembles, excluding identical-member pairs in the within-ensemble terms, and average over test contexts.
Smoothing prevents tiny deviations in directions with negligible posterior variance from dominating the score. We set over the full training pool and field coordinates, using the canonical scaffold mean . This scale is shared across methods and training-set sizes within each problem and seed; smoothing applies only to the scoring density, without perturbing the evaluated draws.
Lower PCD indicates closer agreement between the score distributions. The population distance is zero for exact draws; its unbiased ensemble estimate may be slightly negative. PCD can reveal joint-structure errors and excessive concentration that alter these scores, but matching score distributions does not imply matching posterior distributions. Its scale depends on the problem and smoothing choice, so numerical values are compared within each problem.
Gap closed. The share of the scaffold-to-exact CRPS gap a method closes is
which is 0% for Scaffold and 100% for Exact.
RMSE. The root-mean-square error of a point prediction ,
where is the anchor for the corrected methods and the predictive mean otherwise.
C DATASET: SYNTHETIC
In Synthetic the scaffold misses Gaussian structure and non-Gaussian bump modes. The readings carry no information about the non-Gaussian part, so the missing structure lies in the same directions in every context.
C.1 Data, exact posterior and scaffold
Field and readings. On the periodic grid , , the field is with independent periodic GPs and , kernel
with , for the coarse component and , for the fine component . Sixteen sensors sit at with and read , alternately precise and noisy . Each column of is a bump on the -th gap between neighbouring sensors and zero elsewhere, so for the sensor operator . The signs are uniform, and the amplitude places the two modes along each unit bump at about posterior standard deviations.
Table 4: Synthetic : mean standard deviation over three seeds (500 contexts 100 draws). Corrected methods share the RMSE of their mean stage; is the block size.
| Method | CRPS | PCD | ES | RMSE | |||
|---|---|---|---|---|---|---|---|
| Scaffold | |||||||
| K0 | |||||||
| Diff | |||||||
| Rescale | |||||||
| Gain-Mix | |||||||
| Gain-Diff | |||||||
| Full-Diff | |||||||
| Exact-GP | |||||||
| Exact |
Exact posterior. Let be the posterior of under the true sensor noise. Then
and an exact draw is a Gaussian draw plus fresh uniform signs. Exact-GP is .
Scaffold. The scaffold is the GP posterior of alone, conditioned on all readings with one pooled noise level . Its mean is affine in , its covariance is shared across contexts and has rank 35. It misses (which shifts the conditional mean and adds variance mostly outside the range of ), the unequal sensor precision and the bumps.
C.2 Methods and training
Because the exact mean is affine in , the mean stage is a ridge regression of the residual on the readings. The floor is chosen on the log-score grid (), and the calibration covers the 35 range directions. Selection uses the pooled contrast at , since the bump law does not depend on the readings and both block laws are unconditional. Full-Diff and Diff are MLPs of width 1024; Diff standardizes the field per grid point.
C.3 Evaluation
The physical consistency score is the negative log density of the convolved exact mixture (25) at .
C.4 Additional results
The main table uses , with all reported methods complete. Table 4 adds seed spread, the energy score and RMSE to the main-table metrics.
Learning curve. The curve in Figure 2 uses , with three seeds at every point for every plotted method. The main table compares methods at ; the larger training sizes show how the gain methods and full-residual diffusion approach the exact reference as more data become available. Figure 7 shows the complementary marginal, joint and physical-consistency metrics across the same training sizes.
Selected subspace. From on, the selector keeps coordinates on every seed, the number of bumps. With fewer fields fewer coordinates clear the bar, and at the subspace selection falls back to the Gaussian.

(a) Field CRPS

(b) Coverage

(c) PCD

(d) Energy score

(e) Joint distance

(f) Bump distance

Figure 7: Synthetic learning curves for six further metrics, using 500 test contexts and 100 draws per context. Lines show means and bands span three seeds. Dashed and dotted lines show Exact-GP and Exact, respectively; the horizontal rule in the coverage panel marks 0.90. Distance panels use logarithmic scales with a linear region near zero.
Table 5: Synthetic, : median fit-plus-evaluation time (s) over three seeds on an RTX 2080 Ti. Includes selection; excludes data preparation.
| Method | Fit + evaluation (s) |
|---|---|
| Rescale | 40 |
| Gain-Mix | 349 |
| Gain-Diff | 361 |
| Full-Diff | 276 |
| Diff | 208 |
Posterior samples. Figure 8 shows three draws per method for the first test context at , on the full domain over the generating function, the sensor readings and the exact posterior's pointwise intervals. Figure 9 zooms into the first four sensor gaps, adds exact draws and centers all draws on the exact posterior mean to expose the structure between sensors.
Cost. Table 5 reports combined fit-plus-evaluation wall time at . At this scale, learning fewer stochastic coordinates is therefore not equivalent to reducing the full computational cost.
Exact 90% interval
Posterior draws
True function
Readings

Figure 8: Synthetic posterior draws at (seed 10): three draws per method for the first test context, over the true function (dashed) and the readings (dots). Hatching marks the exact pointwise 90% intervals and dotted lines the sensors. The readings do not determine the bump signs, so valid draws need not match the true function between sensors.

Position (first four sensor gaps)
Figure 9: The draws of Figure 8 and three exact draws on the first four sensor gaps, centered on the exact posterior mean ; dotted lines mark the sensors.
D DATASET: SMOKE
In Smoke nine readings of a smoke plume constrain an unknown wind direction, sharply in some contexts and only to several sectors in others. The exact posterior is a mixture over the wind direction, the scaffold a single Gaussian with the prior's first two moments, so the missing structure depends on the readings.
D.1 Data, exact posterior and scaffold
Field and readings. A point source at releases a tracer into a steady wind of speed and direction , with diffusivity . The concentration is the free-space Green's function of ,
with the angle between and the wind and the modified Bessel function. We normalize to one on its axis at distance 0.4 and cap it smoothly near the source, ; the result is a narrow ray (1/e half-width 0.08 at distance 0.5). The field on the cell centers is
with a squared-exponential (standard deviation 0.05, lengthscale 0.15), , , and on a grid of 360 angles, so the posterior below is exact rather than a quadrature. The wind blows away from the sensors' side () with prior probability 0.22. The sensors on are snapped to the nearest cell centers and read with .
Exact posterior. Given , the field is linear in and hence Gaussian, and so are the readings: with and . Therefore
with and ; weights, means and pathwise draws are available in closed form.
Scaffold. The scaffold conditions the Gaussian with the prior's mean and covariance on y,
The prior moments determine the best linear prediction from the readings and its residual covariance. They do not determine the true conditional mean or covariance at each context, or a context-dependent choice of wind sector; scaffold draws can superpose several rays.
D.2 Methods and training
The mean stage is an MLP of the observations. We choose , and the calibration covers 309 range directions of and 197 complement spikes. Selection uses the conditional contrast density with an MLP encoder of the nine readings. Full-Diff and Diff share one U-Net (channels 32, 64, 128, 128, two blocks per level, attention at the coarsest level, cf. Ho, Jain, and Abbeel (2020)); Diff receives the readings as a value map and a mask and through an MLP that modulates every block. K0 collapses to the scaffold. Its fitted and the discrepancy variance sits at its lower bound.
D.3 Evaluation
The physical consistency score is the negative log density of the exact mixture (28) convolved with , with integrated out, at . Besides the field we report the views source (the disk of radius 0.2 around the source), upwind ( ) and downwind (the rest).

Figure 10: Smoke. (a) Prior over the wind direction. (b) Smoke plume shapes for six directions, with the source () and the sensors (). (c–e) Three draws of the field: a sharp ray whose direction changes from draw to draw, on a quiet background.
Table 6: Smoke, reported methods: field and source-disk scores, 500 test contexts 100 draws, mean std over seeds 10, 11, 12 (). : Cramér distance to the exact posterior (Exact: its split-half floor); PCD: the Cramér distance between posterior log-density score distributions for generated and exact draws; RMSE: root mean squared error of the predictive mean; : the selected block's size. Best non-reference value in bold, references in grey.
| Method | CRPS | field Cov90 | PCD | ES | RMSE | CRPS | source | Cov90 | ||
|---|---|---|---|---|---|---|---|---|---|---|
| Scaffold | ||||||||||
| KO | ||||||||||
| Diff | ||||||||||
| Scaffold+M | ||||||||||
| Rescale | ||||||||||
| Gain-Mix | ||||||||||
| Gain-Diff | ||||||||||
| Full-Diff | ||||||||||
| Exact-GP | ||||||||||
| Exact |
D.4 Additional results
Table 6 reports the retained methods on the final round in the order of Table 1.
Posterior samples. Figure 11 extends Figure 4 to all retained corrections and baselines, alongside the exact posterior and its moment-matched Gaussian.
Learning curve. The Smoke U-Nets keep a fixed optimizer-step budget as the training set changes. The block methods require fields for calibration.
The Smoke curve shows improvement with more training data for each residual correction, but no crossover in favor of the gain methods. The difference between Gain-Diff and direct diffusion narrows with increasing data; the direct U-Net still leads at . This supports reporting the restricted model as a practical alternative, without a general claim that scientific scaffolds improve sample efficiency.
Cost. Table 7 reports combined fit-plus-evaluation wall time at . The gain methods have lower combined times than the full-field U-Nets, but the separate timings show that this is not a fitting advantage. For Smoke, Figure 3 separates training from sampling.
| Exact | Exact-GP | Scaffold | KO | Scaffold+M | Rescale | Gain-Mix | Gain-Diff | Full-Diff | Diff |
|---|---|---|---|---|---|---|---|---|---|
| ○ | ○ | ○ | ○ | ○ | ○ | ○ | ○ | ○ | ○ |
| ✕ | ○ | ○ | ✕ | ○ | ✕ | ○ | ✕ | ○ | ○ |
| ○ | ○ | ○ | ○ | ○ | ○ | ○ | ○ | ○ | ○ |
| ○ | ○ | ○ | ○ | ○ | ○ | ○ | ○ | ○ | ○ |
| ✕ | ○ | ○ | ✕ | ○ | ✕ | ○ | ○ | ○ | ○ |
| ○ | ○ | ○ | ○ | ○ | ○ | ○ | ○ | ○ | ○ |
| ○ | ○ | ○ | ○ | ○ | ○ | ○ | ○ | ○ | ○ |
| ✕ | ○ | ○ | ✕ | ○ | ✕ | ○ | ○ | ○ | ○ |
Figure 11: Smoke posterior draws for all retained methods and the two exact references. The readings, training size (), training seed (10) and first three draws match Figure 4; rows are not paired realizations. Exact-GP matches the exact posterior's conditional mean and covariance. All panels share a concentration scale: brown is positive, blue is negative. Stars mark the source; circles mark sensors.

Figure 12: Smoke learning curve: share of the scaffold-to-exact CRPS gap closed. Lines show seed means and bands span seeds. Filled points have three seeds; open points have two (scratch diffusion at and 4096). The curve starts at , where all methods have results. Scratch diffusion leads throughout the measured range.
Table 7: Smoke, : median fit-plus-evaluation time (s) over three seeds on an L40S. Includes selection; excludes data preparation.
| Method | Fit + evaluation (s) |
|---|---|
| Rescale | 80 |
| Gain-Mix | 527 |
| Gain-Diff | 687 |
| Full-Diff | 1270 |
| Diff | 2983 |
E DATASET: CR3BP
In CR3BP (Circular Restricted Three-Body Problem) the scaffold is a probabilistic ODE solver's Gaussian prediction for trajectories of the planar circular restricted three-body problem (Hennig, Osborne, and Kersting, 2022, Sec. 40.3). A trajectory is a deterministic function of its initial state, so the reference law is a point mass at the truth. We score predictions against a high-accuracy reference trajectory and omit Exact, Exact-GP and the redundant marginal distance . The KL identities in Section 2 assume a target density with finite divergences and do not apply to this point-mass reference.
E.1 Data, reference trajectory and scaffold
Dynamics. In rotating coordinates with state , mass parameter , , and ,
with and the Arenstorf orbit of period (Hairer, Nørsett, and Wanner, 1993).
Initial states and data. An initial state is the Arenstorf state propagated to a random phase and perturbed, , with , , and . The reference trajectory is integrated with DOP853 (relative and absolute tolerances and ) over one period and stored at 501 equispaced times, with four state coordinates per time, so . Initial states are rejected if a coarse RK45 solve exceeds RMSE 1.5, RMS Jacobi-constant drift 1.0 or radius 2.0 (relative and absolute tolerances and ). One pool of 10,400 trajectories is re-split per seed into 500 test, 500 validation and 9400 training trajectories, of which the runs use 7500.
Scaffold. The scaffold is a probabilistic ODE filter (P. N. Krämer, 2024) with a twice-integrated Wiener prior, first-order Taylor linearization, dynamic calibration, adaptive steps and smoothing, from which 32 pathwise draws are interpolated to the grid. Its covariance is , with the draws centered at the solver mean and scaled by , and , fixed after a development sweep of held-out log-likelihood. The experiment tests corrections to this floored solver prediction. The context is .
E.2 Methods and training
The mean stage is an MLP of trained by mean squared error on trajectory residuals. Covariance calibration uses the full pooled basis with the context-dependent scaffold, without adding a further floor. Selection uses and a conditional contrast on , with at most 64 directions in the search span. The block DDPM is an MLP conditioned on ; Full-Diff and Diff are MLPs of width 4008. K0 uses the solver's Gaussian without the added floor and the discrepancy , where is squared-exponential and is a full channel covariance. Its likelihood is fitted on the resolved span of the pooled reference trajectories and solver means.
E.3 Evaluation
CRPS, ES and are scored against the reference trajectory; for a point-mass reference, the marginal distance of Equation (18) is twice CRPS. The views are the positions, the velocities and the final state. In place of PCD we use the Jacobi constant , which the dynamics conserve. A draw's score is its drift ( for the truth). The Jacobi error is the median over contexts and draws of , reducing sensitivity to large drift values.
E.4 Additional results
Table 8 reports the retained methods in the order of Table 1.
Table 8: CR3BP (, ): mean std over seeds 10–12 (500 contexts 100 draws). Jacobi error is defined in Appendix E.3; is the block size. Best mean in bold (coverage closest to 0.90).
| Method | CRPS | ES | Jacobi err. | |||||
|---|---|---|---|---|---|---|---|---|
| Scaffold | - | |||||||
| K0 | - | |||||||
| Diff | - | |||||||
| Scaffold+M | ||||||||
| Rescale | ||||||||
| Gain-Mix | ||||||||
| Gain-Diff | ||||||||
| Full-Diff |
Table 9: CR3BP, : median fit-plus-evaluation time (s) over three seeds on an RTX 2080 Ti. Includes selection; excludes data preparation.
| Method | Fit + evaluation (s) |
|---|---|
| Rescale | 275 |
| Gain-Mix | 1081 |
| Gain-Diff | 1362 |
| Full-Diff | 875 |
| Diff | 932 |
Cost. Table 9 reports combined fit-plus-evaluation wall time at ; separate sampling timings are not available.