arXiv:2610.13804stat.MLOct 2026

Manuscript Offprint

arXiv:2610.13804

Constrained Probabilistic Numerics: Gaussian Process Solvers for Linear PDEs under Linear Inequality Constraints

Boyuan Deng, Kshitiz Upadhyay, Michael Shields

Abstract

Gaussian process solvers for linear partial differential equations (PDEs) return posteriors rather than point estimates, but they condition only on equality information: the PDE residual, boundary data, and measurements. Many solutions of interest also obey inequality constraints, including nonnegativity, monotonicity, and absence of arbitrage, which equality conditioning cannot enforce. In the absence of inequality constraints, the equality posterior can place probability mass on physically or economically inadmissible solutions. We prove that conditioning a Gaussian process prior jointly on linear equality observations and a finite-dimensional inequality event is equivalent to conditioning sequentially in terms of Borel measures on the solution space. The physics-informed posterior is therefore a valid prior for the inequality update at virtual points. The combined law is non-Gaussian yet computable through truncated-Gaussian moments, and neither the PDE conditioning nor the inequality update requires modification. We evaluated the construction on a Poisson benchmark, option-price surfaces, and air-quality fields. Under incomplete boundary data, a monotonicity constraint lowered the error of a two-dimensional Poisson reconstruction by 63%. On a real S&P 500 option chain thinned to 20 retained quotes, no-arbitrage constraints reduced held-out extrapolation error by 22% and cut the calendar-arbitrage rate from 10% to 1%. On four real air-quality snapshots, nonnegativity reduced a Gaussian moment-based sub-zero-tail proxy by 74% at the sparsest monitor count. Changes in mean accuracy and constraint diagnostics differed across data regimes. The probability of the noisy virtual constraint event under the equality posterior measures agreement with the specified bounds before the update. The construction turns admissibility from a post-processing step into conditioning information for probabilistic PDE solvers.

Code — https://github.com/bydeng01/linpde-gp

1 Introduction

Linear partial differential equations (PDEs) underpin mechanistic models throughout science and engineering, from heat transfer and electromagnetism to wave propagation and the pricing of financial derivatives. The numerical methods that solve them, such as collocation, finite-element, and spectral schemes, return point estimates whose approximation error is seldom expressed in a form that downstream inference can use. Because such solvers are routinely embedded inside larger scientific models, ignoring that error can silently bias the conclusions drawn from them. Probabilistic numerics addresses this by recasting numerical computation as Bayesian inference (Hennig, Osborne, and Girolami 2015; Hennig, Osborne, and Kersting 2022; Cockayne et al. 2019). A solver then returns a posterior rather than a single estimate, and its uncertainty propagates coherently through a modeling pipeline. Gaussian processes (GPs) realize this idea naturally for PDEs (Rasmussen and Williams 2006). Because a GP is closed under linear operators, observations of a PDE residual are just another linear functional of the unknown solution, an insight exploited since early work on operator observations (Graepel 2003; Särkkä 2011). Conditioning on the residual at a finite number of collocation points then yields a tractable posterior over the solution (Raissi, Perdikaris, and Karniadakis 2017; Chen et al. 2021). Pfortner et al. (2022) make the connection exact. Their physics-informed GP regression conditions on observations made through an arbitrary bounded linear operator, strictly generalizing the method of weighted residuals and unifying collocation, finite-element, and spectral solvers into one framework.

This formalism handles equality information in closed form and with calibrated uncertainty. The PDE residual, the boundary conditions, and noisy measurements all enter as linear equality observations. Yet many solutions of interest also obey inequality constraints that equality conditioning cannot enforce. A concentration field is nonnegative, a transport solution is monotone, and an arbitrage-free option surface is convex in strike and monotone in maturity. Such constraints encode physical or economic admissibility, and in some domains they are theorems rather than modeling choices (Carr and Madan 2005). Violating them leaves a posterior that is not merely inaccurate, but inadmissible because its mean and its sample paths can fall outside the feasible set. As a result, downstream computations then inherit mass on impossible states. Inequality constraints of this kind have been addressed separately in the constrained GP regression literature. We specifically adopt the linear-operator construction of Agrell (2019), which conditions on bounds for noisy operator evaluations at finitely many virtual locations.

∗^{*}Corresponding author.

These two capabilities have largely developed independently. Physics-informed GP solvers condition on a linear differential operator but cannot impose an inequality on the solution. Constrained GPs impose inequalities on a data-fit prior but do not condition on a governing PDE. A recent survey catalogues the two as distinct constraint classes (Swiler et al. 2020). A prominent learning-based alternative, the standard physics-informed neural network (PINN), instead imposes governing laws through soft residual penalties and, when uncertainty-aware, relies on numerical or approximate inference rather than a closed-form posterior (Karniadakis et al. 2021). We review both approaches in Section 2. To our knowledge, no prior framework combines exact linear-PDE operator conditioning with linear inequality constraints in a single posterior.

We address this gap with a two-stage construction that assigns distinct roles to equality and inequality information. We first condition a GP prior on exact or noisy linear equality observations from the PDE, boundary conditions, and data. This yields the physics-informed GP posterior of Pförtner et al. (2022), which we call the linear PDE Gaussian process (LinPDE-GP) posterior. We then condition this posterior on finite-dimensional linear inequality information at virtual locations using the update of Agrell (2019). The resulting posterior is non-Gaussian, but exact identities express the means and covariances of its finite-dimensional marginals through numerically evaluated truncated-Gaussian moments. We study the construction on a Poisson problem, option-price surfaces, and air-quality fields, including real S&P 500 option data and OpenAQ monitor networks. The experiments separately assess changes in posterior-mean accuracy and constraint diagnostics across data regimes.

This paper makes three contributions spanning theory, computation, and empirical evaluation. First, we fix an explicit Gaussian version of the equality-conditioned law and prove that sequential and joint conditioning yield the same Borel probability measure on the ambient function space (Proposition 1). Second, we develop a practical two-stage solver that augments LinPDE-GP with virtual-point inequality constraints and reuses closed-form operator cross-covariances. Third, we evaluate how adding inequalities changes posterior-mean accuracy and constraint diagnostics as observations become noisier or fewer. We also record P(C∣E)P(C \mid E), the probability of the noisy virtual constraint event under the equality posterior.

References (37)