arXiv:2610.21977cs.LGOct 2026

Manuscript Offprint

arXiv:2610.21977

Learn Only Where You Can't Compute: Structured Corrections to Gaussian Process Posteriors

Tobias Weber, Carla Sagebiel, Philipp Hennig

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

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.

References (41)