Manuscript Offprint
arXiv:2610.13804Constrained Probabilistic Numerics: Gaussian Process Solvers for Linear PDEs under Linear Inequality Constraints
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 , the probability of the noisy virtual constraint event under the equality posterior.
Probabilistic numerics and GP PDE solvers. Probabilistic numerics recasts numerical computation as Bayesian inference (Hennig, Osborne, and Girolami 2015; Cockayne et al. 2019; Hennig, Osborne, and Kersting 2022). GPs suit differential equations because they are closed under linear operators. Graepel (2003) first solved noisy linear operator equations by GP regression. Later, Särkkä (2011) treated linear operators and stochastic PDEs in the same conditioning framework. Meanwhile, probabilistic meshless methods have been shown to recover symmetric collocation as a posterior mean (Cockayne et al. 2017). Conditioning on a linear PDE residual at a finite number of points yields a tractable posterior over the solution (Raissi, Perdikaris, and Karniadakis 2017; Chen et al. 2021). Pförtner et al. (2022) made this precise by showing that conditioning through an arbitrary bounded linear operator recovers and strictly generalizes the method of weighted residuals, with supporting measure-theoretic guarantees on separable Banach path spaces. The proposed equality stage uses exactly this construction. Chen et al. (2022) incorporate PDE information into kriging at selected points and actively choose their locations to reduce predictive uncertainty. Li, Yang, and Wu (2024) develop PDE-informed Gaussian processes for parameter inference from sparse, noisy observations, including nonlinear PDEs through an augmented formulation. Our construction adds a finite-dimensional inequality update to the Gaussian posterior obtained by conditioning on linear PDE observations.
Encoding linear constraints in the GP prior. A complementary line of research builds linear equality constraints into the prior, so every realization satisfies them by construction. Jidling et al. (2017) model the target as a linear transformation of an underlying GP. Lange-Hegermann (2018, 2021) then developed this algorithmically, using Gröbner bases to parametrize solution sets of linear differential systems. Lange-Hegermann (2021) further incorporates boundary conditions. These priors are exact but target only equality constraints and build a bespoke prior per operator, encoding no inequalities. The proposed solver keeps the generic LinPDE-GP recipe and adds inequalities on top.
Inequality and shape-constrained GPs. There is also a mature literature incorporating inequality constraints into GP regression. Early work imposed monotonicity through virtual derivative observations (Riihimäki and Vehtari 2010). Golchi et al. (2015) incorporate derivative-sign information at selected locations into Bayesian GP emulation, with joint inference over GP parameters, function values, and derivative values. Da Veiga and Marrel (2012) computed constrained predictive moments from the moments of a truncated multivariate Gaussian (the same moment-based route followed by our posterior summaries) and Wang and Berger (2016) enforced shape constraints at virtual locations with a Gibbs scheme. A finite-dimensional basis approximation can instead encode inequality constraints so that boundedness, monotonicity, and/or convexity hold over the entire domain (Maatouk and Bay 2017). Conditioning at a finite number of virtual locations makes the posterior a truncated Gaussian (López-Lopera et al. 2018; Agrell 2019). Agrell (2019) formulated the problem for arbitrary linear operators with exact truncated-Gaussian sampling by minimax tilting (Botev 2017), which is the approach adopted in this work. This family scales poorly with dimension, motivating the development of dimension-reduction schemes (Bachoc, López-Lopera, and Roustant
2022). However, all of these methods impose inequalities on a data-fit prior, never on a PDE-conditioned one (Swiler et al. 2020). Proposition 1 (Section 4 in this work) enables the application of inequality constraints on PDE-conditioned GP posterior.
Physics-informed neural networks. Beyond the GP setting, PINNs are the prevailing tool for embedding governing equations into learning, imposing the PDE as a soft penalty in a non-convex objective (Raissi, Perdikaris, and Karniadakis 2019; Karniadakis et al. 2021). Later work adds hard constraints through penalty and augmented-Lagrangian schemes (Lu et al. 2021), and uncertainty through Bayesian PINNs (Yang, Meng, and Karniadakis 2021). Yet the two capabilities we need remain in tension. Soft penalties do not guarantee exact constraint satisfaction, and the uncertainty is approximate rather than a conditional law. Our construction conditions exactly on a finite-dimensional inequality event, defined on noisy observations at virtual points. The inequality therefore enters by truncation at the price of linearity.
Arbitrage-free option-price surfaces. Our finance experiment connects to no-arbitrage surface construction, where admissibility is determined by a theorem stating that absence of static arbitrage forces price bounds, monotonicity in maturity, and convexity in strike (Carr and Madan 2005). Additionally, the surface solves Dupire's forward equation under a local-volatility model (Dupire et al. 1994). Shape-restricted nonparametric option pricing enforces these constraints in estimation (Ait-Sahalia and Duarte 2003), and Fengler (2009) imposes them on smoothing splines. Closer to our setting, GP approaches add uncertainty quantification. Cousin, Maatouk, and Rullière (2016) combine market-fit equality with monotonicity and positivity in a kriging term-structure model, and Chataigner et al. (2021) propose a GP-based approach that is provably arbitrage-free and yields a local-volatility surface. In both, the equality information is quote interpolation or calibration, and the differential structure enters, if at all, through the generating model rather than as conditioning information. Neither conditions on the Dupire operator itself. Our equality stage does exactly that, and the shape constraints then act on the operator-conditioned posterior.
Positioning. Across these strands, physics-informed GP solvers condition on a linear operator but impose no inequalities. Constrained GPs, conversely, impose inequalities on a data-fit or interpolation prior without conditioning on a PDE. The closest precedents combine interpolation or calibration with shape constraints (Cousin, Maatouk, and Rullière 2016; Chataigner et al. 2021), not operator conditioning with shape constraints. We link the two with Proposition 1, which makes the LinPDE-GP posterior a valid prior for Agrell's update, which we show is equivalent to joint conditioning. We are not aware of prior work that combines operator-level PDE conditioning with linear inequality constraints in one posterior.
3 Problem Formulation
Equality information. Let denote the problem domain and let be a Gaussian process prior with index set on a probability space . Let be a real separable reproducing kernel Banach space (RKBS), a Banach space of real-valued functions on on which every point evaluation , is a continuous linear functional. Point evaluation is therefore itself a bounded linear functional, and both the prediction values and the virtual observations below are built from it. We assume throughout that satisfies Assumption 1 of Pförtner et al. (2022): its sample paths lie in , and the path map is a -valued Gaussian random element. Every bounded linear image of in a finite-dimensional space is then a Gaussian random vector (Theorem 1 of Pförtner et al. 2022). The path-space structure behind this assumption is set out in the Theoretical Framework section, where Proposition 1 requires it.
A bounded linear operator collects the finite-dimensional equality information.
Here is independent of , and permits noise-free and noisy coordinates. We fix and write for the realized equality information . When needed, we partition and into mechanistic blocks ( ) and observational blocks ( ), and denote their realized information by and . Unless stated otherwise, denotes both blocks jointly, with any absent block omitted. We label observation-only baselines explicitly and use for the addition of the mechanistic block. Under these assumptions, the equality-conditioned process remains Gaussian (Pförtner et al. 2022). Since is generally a probability-zero event, the next section fixes the corresponding -valued regular conditional distribution.
Finite-dimensional inequality information. We group the inequality constraints into families, each collecting those that share one linear operator. For each family , choose a scalar-valued linear function-space operator and an ordered virtual tuple . Let be the linear evaluation map , and require to be bounded. We stack these maps to obtain the finite-dimensional inequality operator , which is bounded because each is.
Here is the number of scalar virtual variables, pooled across the families. Stacking lets families with different operators, virtual locations, and bound types be written as one box event. Let and satisfy componentwise. Let be independent of , with . The virtual vector and finite-dimensional inequality event are defined by
The coordinates of are the noisy virtual variables. Agrell's construction uses independent virtual noise (Agrell 2019), whereas Proposition 1 permits any positive-definite . Because and , , so the target law below is well defined. Conditioning on restricts the noisy virtual vector, so the update is soft at the selected locations and does not enforce the inequalities throughout the domain.
Target law and diagnostic. The inferential target is the following conditional law:
Although is Gaussian, is generally non-Gaussian. The screening diagnostic is the following conditional probability:
Here is shorthand under the fixed regular conditional version, rather than an ordinary probability ratio involving the singleton event . This diagnostic is a d-dimensional Gaussian box probability under the equality-conditioned law of Z. It depends on , a, b, , and the full conditional mean and covariance of Z. It therefore changes with the operator family, dimension, virtual locations, marginal scales and correlations. Comparisons are most defensible within a fixed constraint design, rather than as a normalized score across applications.
4 Theoretical Framework
Combining the two methods raises a well-posedness question. The law returned by the PDE solve must be a legitimate prior for the constraint update. The following proposition settles it. Conditioning jointly on the linear equality observations and on the inequality event yields the same Borel measure on U as first forming the Gaussian LinPDE-GP posterior and then applying the finite-dimensional inequality update of Agrell (2019). The constrained law is no longer Gaussian, but its finite-dimensional marginals retain Agrell's representation as a compound Gaussian with a truncated Gaussian mean, that is, Gaussian conditionals mixed over a truncated Gaussian virtual-observation variable.
Proposition 1 is a statement about measures on , so we set out what Assumption 1 of Pförtner et al. (2022) provides. The path map is measurable from to , and its law is a Gaussian measure on , meaning that every continuous linear functional is univariate Gaussian under it. Given that the sample paths lie in , separability reduces the remaining requirement to Gaussianity of for every . Weak-* sequential density of span in is sufficient for this (Corollary B.7 of Pförtner et al. 2022). That half of the assumption is therefore often a property of the topology of , whereas path inclusion depends on the regularity of and . Section 5 verifies both for the priors used in our experiments.
Proof roadmap. The argument moves between three levels: a measure on the path space U, its finite-dimensional images, and a conditioning event defined on those images. It runs in five steps. Step 1 singles out one concrete Gaussian version of the law of u given Y = y, which is needed because that event need not have positive probability. Step 2 observes that the joint and the sequential construction each pair this equality-conditioned process with independent virtual noise, and that the two pairs have the same joint law. Step 3 applies one map to both pairs, sending each to a finite-dimensional linear image of the path together with the virtual vector, so the two routes again agree. Step 4 restricts the virtual vector to , turning each law into Gaussian conditionals averaged over a truncated Gaussian, the representation the solver of Section 5 evaluates. Step 5 lifts agreement of every finite-dimensional linear image to agreement of the two measures on all of , which is the assertion of the proposition. Step 1 is carried out immediately below, because the statement of Proposition 1 already refers to the law it produces; steps 2 to 5 are the proof.
We now carry out step 1 and fix a version of the equality-conditioned law. Theorem 1 of Pförtner et al. (2022) states that the process conditioned on is again Gaussian. We additionally need this conditional law as a measure on , which follows from their results by a short argument that we record here. Let and let be the bounded finite-rank operator , built from the representers , which lie in (Proposition B.13 and Lemma B.4 of Pförtner et al. 2022). Since is only positive semi-definite, may be singular; the cross-covariance nonetheless vanishes, by the kernel argument of Appendix A. The pair is jointly Gaussian with vanishing cross-covariance, hence independent, so
is a Gaussian measure on , defines a regular conditional distribution of given , meaning a family of genuine probability measures on indexed by the observed value (Appendix A), and has the conditional mean and covariance of Theorem 1 of Pförtner et al. (2022). Because below is independent of , we correspondingly set . We use these versions throughout, so no almost-sure qualifications on are needed.
Step 1 is complete. The law is now a Gaussian measure on , and the proposition below is stated against this version.
Proposition 1 (Sequential conditioning with LinPDE-GP and Agrell constraints). Adopt the setup and assumptions of Section 3, in particular and componentwise. Fix and use the regular conditional version fixed above, under which , so and
is well defined. Let , let be independent of , and define
Then
as Borel probability measures on U.
Proof of Proposition 1. We carry out steps 2 to 5 of the roadmap; step 1 is the version fixed above. Write for that version and .
Step 2: both routes start from the same law. On the joint route, is independent of , so the version fixed above gives . This product measure is the joint law of two independent ingredients, the equality-conditioned path and the virtual noise. On the sequential route, and are independent by construction, so as well. The two routes therefore begin from one and the same measure on .
Step 3: both routes apply the same map. Fix and a bounded linear , and set
Both (L_*}u, Z) given and (L_*}u_{\mathrm{cond}}, L_{\mathrm{ineq}}u_{\mathrm{cond}} + \widetilde{\varepsilon}_v) are images of under : the first by the product version fixed above, the second by the definition of . Equal laws sent through one measurable map have equal images, so the two coincide. We call this the transfer identity. Taking the second marginal gives , so is well defined.
Step 4: both routes condition on the same box. Keep fixed and write . Being a bounded affine image of the product Gaussian above, is Gaussian given (Lemma B.4 of Pfortner et al. 2022). Because , the standard Gaussian conditioning formula defines a version of for every . Its mean is affine in , whereas its covariance is independent of . Step 3 gives the two routes the same joint Gaussian law, so their standard Gaussian conditional versions coincide. Hence no almost-everywhere qualification is needed below. Since and , for every Borel ,
We disintegrate the numerator over Z, that is, we write it as an average of the Gaussian conditional laws against the law of Z restricted to the box:
Here is the Gaussian law truncated to , well defined because . The right-hand side is thus Gaussian conditionals averaged over a truncated Gaussian, the compound-Gaussian form that Section 5 computes. By the transfer identity of step 3, both the Gaussian conditionals and the truncated mixing law coincide with their sequential counterparts, so the mixture equals the law of conditioned on . Hence, for every bounded linear ,
where denotes the image of under . Since is an RKBS, may in particular collect finitely many point evaluations, so this is agreement of the two posteriors at every finite set of prediction points.
Step 5: from finite-dimensional linear images to the path-space law. It remains to lift this agreement of finite-dimensional images to . A cylinder set asks whether finitely many bounded linear measurements of a path land in a Borel subset of . Step 4 holds for every bounded linear , hence for every finite family , so it states exactly that the two laws agree on every cylinder set. Intersecting two cylinder sets stacks their functionals, so the cylinder sets are closed under finite intersections, and separability of makes them generate . The sets on which two probability measures agree are closed under complements and countable disjoint unions. Dynkin's theorem therefore propagates agreement from the generating class to all of , and the two laws agree there. Appendix A records these definitions and the theorem.
Two remarks are in order. First, Agrell (2019) states the inequality update with independent virtual noise and also admits the noiseless limit ; Proposition 1 requires only , and this strict positivity is our standing assumption, which is what renders automatic rather than assumed. Second, the proposition concerns exact laws rather than any particular computation. It establishes that the physics-informed posterior of Pfortner et al. (2022) is a valid prior for the inequality update of Agrell (2019). The next section turns this license into a usable solver.
5 Proposed Method
Proposition 1 enables a sequential two-update procedure, summarized in Algorithm 1. The first update conditions the prior GP on all linear equality information, namely the PDE residual, the boundary data, and any point measurements, and returns the physics-informed Gaussian posterior (Pförtner et al. 2022). The second update conditions this posterior on the inequality event at virtual points. The resulting law is non-Gaussian, so its finite-dimensional marginals follow Agrell's compound-Gaussian construction, and the posterior summaries reduce to truncated-Gaussian moments.
The inequality information enters through the constraint families of Section 3, each family carrying its own function-space operator and its own virtual tuple . This instantiates Proposition 1 with the stack of the blocks . The stack is what collects the scalar virtual quantities of all families into the one vector , and their bounds into the one box . Each block must be bounded on . For the squared-exponential priors used here, Assumption 1 of Pförtner et al. (2022) holds with -type sample spaces for every (their Appendix B.4), so point-evaluated derivatives are continuous and boundedness holds for the two operator classes we instantiate, the identity and first-order partial derivatives. The designs differ in . Nonnegativity of the air-quality field is a single family, and the Poisson conditions and are two families on a shared virtual grid. The option-surface price, spread, and calendar conditions are three families on separate grids, with bounds that vary by coordinate. The construction itself accepts any bounded with computable cross-covariances, and second-order constraints are left to future work (Appendix B). Following Agrell (2019, Section 3), the virtual observations carry independent Gaussian noise, so the constraint is enforced softly at the virtual points. Under the stage-one posterior, using the evaluated operator defined above, write
with as in Proposition 1. Its mean and covariance are
both available in closed form through operator cross-covariances. When , is block structured, its off-diagonal blocks being the cross-family covariances . For prediction values , set
and
The constrained predictive law is then represented by
(18)
Posterior summaries follow in closed form from the truncated-Gaussian moments of z. Writing and for the mean and covariance of z, the constrained moments are
(19)
which specialize the exact compound-moment identities of Agrell (2019, Corollary 6) to the two-stage setting. These identities yield the posterior mean and the 1.96-standard-deviation band. The truncated-Gaussian moments and they require have no closed form, and are evaluated by randomized quasi-Monte Carlo, reproducible under a fixed seed but subject to numerical-integration error (Appendix B). Sample paths, where needed, are drawn with the exact minimax-tilting sampler recommended by Agrell (2019, Section 3.2).
In the implementation, the nonzero stage-one mean is handled by an equivalent shift of the inequality bounds at the virtual points; this and the remaining numerical details are given in Appendix B.
6 Experiments
In this section, we evaluate whether adding inequality constraints improves reconstruction accuracy, reduces constraint violations, and narrows posterior uncertainty across a set of diverse experiments. The experiments covered a Poisson equation with incomplete observations, option-price surfaces, and nonnegative pollutant concentrations.
Algorithm 1: LinPDE-GP with linear inequality constraints
1: Input: Prior GP ; equality operator , observation , noise covariance ; inequality operator assembled from , bounds (entries in ), virtual noise ; prediction points ; optional sample count .
2: Equality update: Condition on
, ,
to obtain .
3: Virtual inequality variables: Compute
,
.
4: Prediction conditioning: For , compute under the stage-one posterior
,
.
5: Moments: Compute and for ; set
,
.
6: if samples are requested then
7: Choose such that .
8: for do
9: Draw and ; set
.
10: end for
11: end if
12: Return: Moments and, if requested, samples .
Comparisons and replication. The primary comparison performed in the following experiments holds the GP prior, equality observations , and evaluation points fixed, then compares the equality posterior with the constrained posterior . For option prices and synthetic air quality, we also compare observations alone and observations with inequalities but without the PDE. The Poisson ablation additionally applies monotonicity to the prior without any equality observations. In the figures, or denotes equality-type PDE conditioning, and denotes the inequality constraints.
The synthetic data-assimilation, option-price, and air-quality sweeps each use five noise realizations at fixed, unscrambled Halton observation locations (Halton 1960). The partial-boundary Poisson reconstruction and its ablation are treated deterministically. The real option-price experiment use 20 seeded quote subsets at each retained-quote count, with a fixed test set. The real air-quality experiment use five seeded train–test splits per snapshot and monitor count.
Accuracy and relative improvement. We evaluate the posterior mean against the known solution or held-out observations by calculating the root-mean-square error for an evaluation set as
For any lower-is-better metric (such as RMSE), we calculate the percentage reduction from adding inequalities as
where the bars denote arithmetic means over noise realizations, quote subsets, or snapshot–split pairs. Thus, compares mean metric values. A negative value of indicates an increase in error or in the relevant diagnostic.
Feasibility and uncertainty. We checked constraint violations on each application's evaluation grid , including locations outside the virtual-point set. These checks do not guarantee that constraints hold between grid points.
Separately, we recorded from Eq. (5), the joint probability that all noisy virtual constraints are satisfied before inequality conditioning. We computed this Gaussian box probability numerically using minimax tilting with the full conditional covariance of the virtual variables evaluated over the finite virtual-point set. Comparisons held the virtual locations, operators, bounds, and virtual-noise covariance fixed.
For each posterior being evaluated, and denote its mean and marginal standard deviation. Displayed posterior bands span at each prediction point . These are pointwise credible intervals for the Gaussian equality posterior and moment-based dispersion summaries for the non-Gaussian constrained posterior. We report band widths as the average full width over the evaluation grid . Appendix B describes their computation and the virtual-observation noise.
6.1 Two-dimensional Poisson equation: Monotonicity improves reconstruction with incomplete data
Setup. We first consider the Poisson equation, on , with manufactured solution
This solution increases in both coordinates. We use a zero-mean GP prior with an isotropic squared-exponential covariance, unit amplitude, and lengthscale 0.5. Equality observations are given by the PDE residual at a interior grid and at 13 boundary points on the edges and . No observations are made along the edges and . We impose the inequality constraints and on a virtual grid on , giving 32 constrained virtual points. Figure 1(b) shows the solution and observation locations. We then evaluate reconstruction error on a grid spanning the full domain. On this grid, we summarize posterior uncertainty by the average full band width
Monotonicity corrects the reconstruction near the unobserved corner. Figure 1(a) shows the true solution, the solution with equality constraints only, the solution with inequality constraints only, and solution with equality + inequality constraints with uncertainty bands along the diagonal . Conditioning only on the PDE and partial boundary data produces a negative diagonal mean that remains very close to the prior, missing the increase towards (1, 1). Adding monotonicity improves the solution and narrows its posterior uncertainty band. The surface plots in Fig. 1(c,e) show the corresponding improvement across the full domain. The equality-only mean misses the increasing field, whereas the equality + inequality constrained mean recovers its dominant spatial variation.
Figures 2(a,b) show that the largest error reduction occurs near the unobserved corner when monotonicity constraints are added to the equality constraints. Table 1 provides a quantitative comparison of the solutions with equality constraints only and those that also include monotonicity constraints. By adding the inequality constraints, the absolute error at (1, 1) reduces from 1.07 to 0.04, and the full-grid RMSE reduces from 0.33 to 0.12, a reduction. The spatial error patterns are illustrated in Figure 2(a,b). The average posterior band width decreases from 0.93 to 0.52, with the corresponding half-widths shown in Figure 2(c,d). Residual uncertainty remains largest at (1, 1), and an overshoot of up to 0.24 remains along the unobserved edges. The virtual constraint event has probability before adding monotonicity.
| Equality only | With monotonicity | Reduction | |
|---|---|---|---|
| RMSE | 0.328 | 0.122 | 63% |
| Maximum absolute error | 1.067 | 0.242 | 77% |
| Mean full band width | 0.930 | 0.516 | 45% |
| Absolute error at (1, 1) | 1.067 | 0.043 | 96% |
Table 1: Poisson reconstruction errors and posterior dispersion with partial boundary data. Both predictions use the same prior, PDE collocation points, and boundary observations. Band width refers to the full width of , averaged over the evaluation grid.
Monotonicity alone does not correctly determine the solution magnitude. Figure 1 again compares three reconstructions using the same geometry and reference solution (Figure 1(b)). Recall that the PDE and boundary data alone missed the increasing nature of the field (Figure 1(c)). Meanwhile, enforcing monotonicity alone captures the increasing trend but fails to recover its magnitude as illustrated in Figure 1(d)). It is, indeed, necessary to include both constraints to produce the most accurate solution. This is further illustrated by the diagonal comparison in Figure 1(a). The monotonicity-only mean ranged from approximately -1.53 to 1.53, whereas the true solution ranged from 0 to 1. Its RMSE was 0.70, compared with 0.33 for the equality-only reconstruction and 0.12 for the combination. Figure 2 also shows that the combined posterior had the smallest average band diagonal slice with bands

t (along x = y)
b
c
d
e
boundary data
O PDE collocation
monotonicity virtual points
Figure 1: Monotonicity improves Poisson reconstruction with incomplete boundary data. (a) Diagonal posterior means for equality-only , inequality-only , and combined conditioning , compared with the truth . Shading shows for the equality-only and combined posteriors. (b) Manufactured solution with boundary observations (squares), PDE collocation points (open circles), and monotonicity virtual points (filled circles). (c–e) Posterior means conditioned on the PDE and partial boundary data, monotonicity alone, and both, respectively. Panels (b–e) share a color scale, with values outside [0, 1] shown in the endpoint colors.
a

b

c
d

Figure 2: Signed reconstruction errors and posterior uncertainty for the Poisson problem with incomplete boundary data. Equality data E comprise the PDE and partial boundary data; C denotes the monotonicity constraints. (a,b) Signed errors of the equality-only and combined posterior means, respectively. (c,d) Corresponding posterior half-widths 1.96s, where s is the posterior standard deviation, showing uncertainty magnitude alone. Each pair shares a color scale. Uncertainty is largest at the unobserved corner (1, 1) and is reduced by conditioning on monotonicity.
width and free-corner error. Monotonicity supplied useful shape information, but the PDE and boundary observations were needed to anchor the solution.
Finally, Figure 3 shows the RMSE, band width, and absolute error at the unobserved corner. Applying inequality constraints only provides the highest overall error and largest band width. However, monotonicity alone improves the solution at the corner compared to equality constraints alone. Not surprisingly, the model with both constraints performs the best in all measures.

Figure 3: Poisson reconstruction with PDE and partial boundary data (E), monotonicity alone (C), and both (E, C). Bars show full-grid RMSE, mean full width of the bands, and absolute error at (1, 1).
Monotonicity provides larger relative gains with noisy or sparse observations. We next replaced the boundary data with noisy observations at fixed Halton points on , retaining the PDE collocation and virtual grids. Observation errors were independent variables, and the corner remained outside the observed region.
Figure 4(a) shows that adding monotonicity reduced mean reconstruction error more for higher observation noise. With , the relative RMSE reduction increased from 6% at to 26% at . With exact observations, adding monotonicity reduced RMSE by only 0.5%, and the equality posterior already assigned probability to the virtual constraint event. Figure 4(b) further shows that adding monotonicity constraints yields a larger improvement when the number of observations is smaller, in general. At fixed , the RMSE reduction was maximized at 30% for and decreases to 13% for . At the sparsest setting of , the reduction was slightly lower at approximately 28%.
At the reference setting, and , adding monotonicity reduced mean RMSE from 0.095 to 0.071 and average band width from 0.39 to 0.27. Prior to adding monotonicity constraints, the model had a low probability of satisfying these constraints given by . Mean RMSE decreased at every tested setting, although individual realizations worsened in 9 of 20 positive-noise cases and 7 of 25 observation-count cases.
6.2 Arbitrage-constrained option-price surfaces
We next tested whether price and derivative bounds improve predictions outside the observed region of an option-price surface. For a European call with strike K, maturity T, and price , we inferred the normalized surface , where and is the spot price. We used the price bounds, call-spread bounds, and calendar monotonicity conditions
where r is the risk-free rate (Fengler 2009; Cousin, Maatouk, and Rullière 2016). Under constant volatility , the equality model was Dupire's forward equation in log-moneyness coordinates (Dupire et al. 1994),
Setup. The synthetic reference surface followed Black–Scholes with , , and , on and years. We used a zero-mean squared-exponential GP with lengthscales 0.45 in and 0.6 in . PDE conditioning used a interior collocation grid. Sixteen training quotes occupied the central region , , while 40 held-out quotes occupied the wings and the long-maturity region as illustrated with the true solution in Figure 5(a). Both training and held-out synthetic quotes included Gaussian noise with standard deviation .
Each inequality family used a uniform grid of virtual points, with years and spanning for price bounds, for call-spread bounds, and for calendar monotonicity, giving 27 constrained virtual variables, also shown in Figure 5. We assess constraint violations using central differences of the posterior mean on the evaluation grid. The upper spread-bound, calendar, and butterfly-convexity conditions are , , and , respectively. Violation rates use the numerical tolerance specified in Appendix B. Butterfly convexity was evaluated but not imposed.

b

Figure 4: Effect of observation noise magnitude and number of observations on the benefit of adding monotonicity constraints. (a) Noise sweep at . (b) Observation-count sweep at . Solid curves show full-grid RMSE against the true solution , averaged over 5 noise realizations. Ribbons show standard deviation across realizations. Green shading gives the absolute RMSE reduction. Dashed curves report the relative reduction from Eq. (20) on the right-hand axes. Monotonicity gives larger relative improvements with noisy observations and at the lower observation counts.
Inequality constraints improve extrapolation and reduce derivative violations. Figures 5(b,c) show that adding inequality constraints reduced positive values of in the right wing, where the PDE-conditioned prediction incorrectly increased with strike. Figures 5(e,f) show the corresponding reduction in negative values of in the left wing, where predicted prices incorrectly decreased with maturity. Figure 5(d) quantifies both changes across maturities. In the displayed realization, the largest upper spread-bound violation fell from 0.83 to 0.49, and the largest calendar violation fell from 0.079 to 0.033. The violating regions also became smaller.
Figure 5(g) shows that combining the PDE and inequality constraints yields the lowest held-out RMSE among the four predictions conditions. Across 5 noise realizations at and , adding the inequality constraints reduced mean held-out RMSE from 0.047 to 0.019 (59%). The average posterior band width decreased from 0.140 to 0.053, and the virtual constraint probability before the update was .
Figure 5(h) compares violation rates for the displayed realization. Averaged over all 5 realizations, adding the inequality constraints reduced the upper spread-bound violation rate from 21% to 15% and the calendar violation rate from 15% to 13%. Butterfly-convexity violations also decreased, from 19% to 17%, despite convexity not being imposed. These reductions improved the extrapolated surface, while residual violations remained on the evaluation grid.
Inequality constraints reduce the accuracy loss from using fewer quotes. Figure 5(i) shows that adding the inequality constraints reduced held-out RMSE by 56% with quotes and by 42% with quotes, at fixed . The constrained RMSE was 0.019 and 0.015, respectively, compared with 0.043 and 0.026 for the PDE-conditioned predictions. Thus, adding the constraints substantially reduced the accuracy loss associated with fewer observations.
A separate noise sweep, not shown in Fig. 5, held fixed. Adding the inequalities reduced mean held-out RMSE by 54% at and by 63% at . Both predictions became less accurate as noise increased, but the relative reduction was larger at the noisier endpoint.
The constraints also improve predictions from sparse real quotes. We applied the same construction to a snapshot of an S&P 500 option chain (Appendix C). Put-call-parity regression supplied the normalization and rates, and at-the-money implied volatilities supplied a single volatility estimate. We imposed the constant-volatility PDE with to allow departures from this approximate model.
To test sparse, noisy observations, we randomly retained subsets of the training quotes and added Gaussian noise with standard deviation 0.02 in normalized price units. The held-out wing and long-maturity quotes remained fixed. Figure 6(a) shows that adding the inequality constraints reduced mean held-out RMSE across 20 subsets regardless of the number of retained quotes. The RMSE reduction was 9% with 300 retained quotes and increased to 23% with only 12 quotes. At , RMSE fell from 0.032 to 0.025 (22%), with before the update.
Figure 6(b) shows that adding the inequality constraints reduced calendar violations at every tested quote count. At , the violation rate fell from 10% to 1%. Improvements in accuracy varied across subsets. The median RMSE reduction at

d
e
f
g
h
i
Figure 5: Price and derivative constraints improve extrapolation of a synthetic option-price surface. Derivatives in panels (b)–(f) are computed from the posterior means by central differences. (a) Black–Scholes reference surface with training quotes, held-out quotes, and virtual points. (b,c) Log-moneyness derivatives before and after adding inequality constraints to the PDE-conditioned model. Positive values violate the upper spread bound. The dashed blue contour marks the lower bound. (d) Maximum and minimum over maturities, plotted against log-moneyness. Adding inequality constraints reduces both the magnitude and spatial extent of violations. Red shaded regions indicate infeasible values. (e,f) Maturity derivatives before and after adding inequality constraints. Negative values shown in red violate calendar monotonicity. (g) Held-out RMSE for quotes alone, quotes with the PDE, quotes with inequality constraints alone, and quotes with both. (h) Constraint-violation rates of the posterior means, including butterfly convexity, which was not imposed. Panels (b)–(h) show one noise realization. (i) Mean held-out RMSE versus quote count at , with standard-deviation ribbons across 5 realizations. Green shading gives the absolute RMSE reduction; the annotation gives the relative reduction.
was 14%, and 70% of subsets improved. At , the aggregate reduction was 11%, but the median was approximately zero and half the subsets improved. This is consistent with the observation that inequality constraints are more effective in reducing errors when fewer observations are available.
For the dense control case, we used all 3658 training quotes with their bid–ask-derived noise level and no added perturbations. PDE conditioning reduced held-out RMSE from 0.075 to 0.027, and adding the inequalities left it at 0.027. This is shown by the gray box mark in Figure 6(a). The constraints therefore added little to the densely observed surface, while improving predictions in the sparse, noisy reconstructions.

b
retained quotes (thinned SPX)
retained quotes
Figure 6: Effects of inequality constraints on an S&P 500 option chain with experimentally thinned and perturbed training quotes. (a) Mean held-out RMSE across 20 subsets at each retained-quote count. Gray shading shows the 25th–75th percentiles. Adding the inequality constraints reduces mean error throughout the thinning experiment. The separate dense control (square gray point) uses all 3658 training quotes at their bid–ask-derived noise level, where the two RMSE values coincide. (b) Calendar-violation rates of the posterior mean surfaces, averaged over the same subsets, decrease after adding the inequality constraints at every tested quote count.
6.3 Nonnegative reconstruction of an air-quality field
In the final example, we tested nonnegativity constraints on a pollutant concentration field governed by advection and diffusion. Unlike the derivative constraints above, this experiment constrains the field values directly.
Setup and feasibility diagnostic. The synthetic field satisfies the steady advection–diffusion equation
on , with constant diffusivity , wind velocity , decay rate , and a nonnegative Gaussian emission source . A second-order finite-difference solution supplied the reference plume. We conditioned a zero-mean GP on the PDE residual at interior collocation points and noisy monitor readings, then added constraints on a virtual grid. Figure 7(a) shows the reference field and the monitor, held-out, and virtual locations. Synthetic held-out RMSE was evaluated against the noise-free reference concentrations.
In addition to the fraction of negative posterior means, we calculate the grid-averaged marginal probability of a negative concentration as
where is the standard normal distribution function. For the non-Gaussian constrained posterior, it is a Gaussian moment-based sub-zero-tail proxy.
The nonnegativity constraint reduces negative predictions. Figure 7(b) shows that conditioning on the PDE and sparse monitors produced negative posterior means in the clean-air region. Figure 7(c) shows that adding nonnegativity reduced this region of constraint violation. At and , the fraction of negative grid values fell from 12.0% to 8.4% in the displayed realization. The constrained mean was nonnegative at every virtual point, with residual negative values elsewhere on the grid implying that a denser grid of constraint points will likely continue to improve the solution.
Table 2 compares the four prediction cases for this realization. Adding nonnegativity to the PDE-conditioned model reduced held-out RMSE from 0.142 to 0.075 and average band width from 0.355 to 0.305. Monitors with nonnegativity constraints but without the PDE constraints gave the largest RMSE of 0.314, compared with 0.086 for monitors alone, suggesting that applying only the non-negativity constraint can be detrimental to the solution.
Across 5 noise realizations at the same setting, adding nonnegativity constraints reduced from 0.160 to 0.107 (33%) and narrowed the average band width from 0.35 to 0.30. Mean held-out RMSE nevertheless increased from 0.076 to 0.088. The accuracy improvement in the illustrated realization therefore did not persist after averaging over observation noise. The virtual constraint probability before the update was .

b

c

Figure 7: Nonnegativity reduces negative posterior means in a synthetic plume reconstruction. Results use , , and one noise realization. (a) Finite-difference reference field with monitor, held-out, and virtual locations. (b) Posterior mean conditioned on monitors and the PDE, with negative values overlaid in red. (c) Adding nonnegativity reduces the negative region. The dashed white contour marks its boundary before the update. Table 2 reports metrics for this realization.
| Conditioning | Held-out RMSE | Fraction m < 0 | Band width |
|---|---|---|---|
| Monitors | 0.086 | 0.102 | 1.602 |
| Monitors + PDE | 0.142 | 0.120 | 0.355 |
| Monitors + nonnegativity | 0.314 | 0.078 | 1.282 |
| Monitors + PDE + nonnegativity | 0.075 | 0.084 | 0.305 |
Table 2: Synthetic air-quality reconstruction for the noise realization shown in Figure 7. Negative-mean fractions and full band widths are evaluated over the grid. Bold values mark the minimum in each column.
Tail-proxy reduction improves with greater noise but at the expense of mean accuracy. Figure 8 shows tail-proxy reduction and held-out RMSE separately at fixed for increasing noise. Increasing from 0.05 to 0.3 improved the reduction from to . Over the same range, the held-out RMSE reduction changed from to . The negative reduction indicates that the constraint increased error for larger noise values. A separate monitor-count sweep, not shown in Figure 8, held fixed. Reducing the monitor count from 28 to 8 increased the reduction from to , while the RMSE reduction decreased from to . Thus, stronger reductions in the sub-zero-tail proxy coexisted with poorer mean predictions. With this zero-mean prior, the upward shift produced by the nonnegativity constraint can overshoot concentrations near zero in clean-air regions.
Real monitor networks show lower tail proxies and mixed accuracy changes. We repeated the analysis on 4 OpenAQ daytime snapshots of and from Maryland and New York (Appendix C). Each snapshot used its own ERA5-derived wind direction and a source-free transport model with . We evaluated 5 seeded train-test splits per snapshot and sampled monitor count, giving 90 evaluations. Here, monitor count denotes the sampled network before stations were withheld for scoring.
The dark line in Figure 9(a) shows that adding nonnegativity resulted in larger gains as the networks were thinned by sampling fewer monitors. Across all 4 snapshots, the reduction increased from at 10 monitors to at 6 monitors, where the uncertainty is a bootstrap standard error. Over the same range, mean decreased from 0.55 to 0.47. The lighter curve in Figure 9(a) follows the two Maryland snapshots across the full monitor-count range. In general the gains increase as the number of sampled monitors decreases, except at , which is likely a result of sample noise. For comparison, we set negative values of the equality-posterior mean to zero and left the variance unchanged. The dashed curve shows that this correction reduced much less than adding the nonnegativity constraint.
Figure 9(b) shows that changes in held-out RMSE were small and could be either positive or negative. Across all four snapshots, thinning from ten to six monitors changed the RMSE reduction from approximately to . Adding nonnegativity therefore consistently reduced the moment-based tail diagnostic, while its effect on held-out mean accuracy depended on the sampled network.

Figure 8: Observation noise separates improvements in the sub-zero tail diagnostic from improvements in mean accuracy. Curves show percentage gains in the sub-zero-tail proxy and held-out RMSE after adding the nonnegativity constraint, for fixed . Gains compare means over 5 noise realizations using Eq. (20). The gains in grow with noise, whereas the RMSE reduction becomes negative, indicating reduced accuracy. The horizontal line marks no change relative to the PDE-conditioned prediction.
a

b

Figure 9: Effects of nonnegativity constraints on real OpenAQ reconstructions. (a) Gains in the Gaussian moment-based sub-zero-tail proxy . The dashed baseline clips the equality-posterior mean at zero and retains its variance, using the two snapshots that span the full monitor-count range. (b) Held-out RMSE reduction, which can be positive or negative. The dark blue curves pool all 4 snapshots over their common monitor counts. Light blue curves pool the two Maryland PM snapshots over the full range. Monitor counts decrease from left to right and include stations subsequently held out for scoring. Gains compare pooled means. Shading denotes bootstrap standard errors from 2,000 resamples of snapshot–split pairs at each count.
7 Discussion and Limitations
The proposed general framework for GP solutions to linear PDEs and the test cases examined demonstrate how PDE solution constraints can be combined with inequality information to improve accuracy, ensure solution validity, and reduce uncertainty. Nonetheless, these results show that gains are not always consistent and there are areas for improvement. The following presents a brief summary of key takeaways from this work and avenues for future research.
Inequality information can complement equality constraints, particularly when observations are limited and/or noisy. The major takeaway from this work is that equality and inequality constraints can be combined in a unified framework and that those components can work together to improve probabilistic solutions over those that apply only one constraint or the other. This is especially true when observations are sparse and/or noisy as demonstrated in each of the examples. The Poisson and option-price experiments show that shape constraints can improve predictions over those that have only PDE constraints. In the Poisson ablation, satisfying only the PDE and limited, potentially noisy boundary constraints was insufficient to accurately identify the solution. Meanwhile, applying monotonicity constraints alone ensured the solution maintained an increasing trend but did not appropriately scale the solution magnitude. Combining monotonicity with the PDE and boundary observations reduced reconstruction error and prediction uncertainty in the presence of limited and/or noisy data. The synthetic option-price comparison likewise favored combining the PDE and inequalities over using either with the limited quotes alone. By contrast, the noise-free Poisson case and densely quoted option surface showed that inequality constraints provide little additional benefit when observations are abundant and noise free. These comparisons support treating inequality constraints as an additional source of information whose value depends on the number and quality of observations.
Accuracy, constraint violation, and dispersion diagnostics are distinct outcomes that are not uniformly improved by combining constraints. We found that, while combining equality and inequality constraints generally tends to improve solution diagnostics, there may be disagreement between different diagnostics. For example, in the reported air-quality averages, nonnegativity reduced the sub-zero-tail proxy while sometimes increasing held-out RMSE. With a prior centered at zero, upward shifts can artificially inflate concentrations in clean-air regions where values near zero are appropriate. The synthetic option-price sweeps also contained settings where held-out RMSE decreased but derivative-violation rates increased (Appendix B). Accuracy and constraint violations diagnostics therefore require separate evaluation, and improving one cannot be expected to improve the other. Posterior band width provides yet another diagnostic. A narrower band indicates lower solution uncertainty but should not be mistaken as a measure of solution accuracy.
Evaluating can help determine when inequality constraints may be needed. The probability describes how often the solution satisfies the specified inequality constraints under the equality posterior. It is a Gaussian box probability that can be evaluated before the inequality update (Botev 2017). Its value depends on the equality posterior, constraint operators, bounds, virtual locations, and virtual noise. Within a fixed design, a value near one means that the constraint event is already nearly guaranteed to be satisfied, whereas a small value implies that inequality constraints may be needed because the equality-alone solution has a high likelihood of violating the constraints. This may arise from limited observations, noisy observations, proximity to a constraint boundary, or model misspecification. Importantly, the probability alone neither distinguishes these explanations nor predicts the resulting accuracy gained by adding inequality constraints. It is therefore a diagnostic of the proposed constraint event, with predictive consequences assessed through the reconstruction and held-out comparisons. In several cases studied here, was shown to be low and therefore motivated supplementing the solution with inequality constraints.
The construction combines existing constrained-GP capabilities. The method combines operator-level Gaussian conditioning (Pfortner et al. 2022) with conditioning on noisy virtual inequalities (Agrell 2019). Proposition 1 establishes that the equality posterior is a valid prior for the second update, and we prove that sequential application of equality then inequality constraints is probabilistically equivalent to joint constraint application. This approach complements methods that encode linear equalities in the prior (Jidling et al. 2017; Lange-Hegermann 2021) or represent inequality-constrained fields through finite bases (Maatouk and Bay 2017). Here, the chosen GP prior and the Gaussian equality update are retained, while the inequality event updates both posterior means and covariances.
The constraints are finite and soft. The construction conditions a finite vector of noisy operator evaluations. Positive virtual noise makes the restrictions soft even at the selected locations, and feasibility elsewhere is assessed on the evaluation grid. Virtual-point placement and noise are therefore part of the model specification. The equivalence of sequential and joint conditioning is exact, whereas the truncated-Gaussian moments are evaluated numerically. Their computation becomes expensive as the virtual dimension increases, motivating more efficient integration and constraint-selection methods (Bachoc, López-Lopera, and Rousant 2022). The implementation used only identity and first-order derivative constraints. Extending it to second-order operators is straightforward and would allow, for example, butterfly convexity to be imposed directly.
8 Conclusion
We established a posterior formulation that combines linear PDE observations with linear inequality information. Sequential Gaussian equality conditioning followed by conditioning on a finite virtual constraint event yields the same law as joint conditioning. The resulting solver retains operator cross-covariances and computes the constrained posterior moments through truncated-Gaussian calculations.
The experiments showed that monotonicity, option-price bounds, and nonnegativity can contribute information beyond the PDE and limited noisy observations. Their effects on reconstruction error, constraint diagnostics, and posterior dispersion differed across settings. The probability measures agreement with the specified virtual constraints before the update, while predictive benefits are evaluated against reference solutions or held-out data. With soft constraints at a finite number of virtual locations, the construction incorporates physical and economic admissibility directly into probabilistic PDE inference.
Acknowledgments
This material is based upon work supported by the National Science Foundation under Grant Nos. 2331295 and 2623467.
A Measure-Theoretic Background
The proof of Proposition 1 uses three standard notions, collected here in the form in which the proof uses them. Nothing in this appendix is new.
Regular conditional distributions. A regular conditional distribution of given is a map such that is a Borel probability measure on for every , such that is measurable for every , and such that for all and . Such a map exists here. Any two such maps can differ only on an -null set. At an atom with , the defining identity gives for every , so the conditional law is uniquely determined there. Step 1 fixes one explicit Gaussian version for every , including values with , so Proposition 1 has a definite meaning for any prescribed .
Image measures. For a measurable and a probability measure on , the image measure is defined by for ; equivalently, implies . The only consequence used in steps 2 and 3 is that equal laws have equal images: implies .
Cylinder sets and the -λ theorem. For , functionals and , the associated cylinder set is
and denotes the collection of all such sets, taken over every , every finite family of functionals and every . Each records finitely many bounded linear measurements of a path. Intersecting two cylinder sets stacks their functionals and intersects the corresponding finite-dimensional conditions, so the cylinder sets are closed under finite intersections, that is, they form a -system. A -system is a collection of subsets that contains and is closed under complements and countable disjoint unions; for any two probability measures on , the class of Borel sets on which they agree is one. Dynkin's - theorem states that a -system containing a -system contains the -algebra that the -system generates. When is separable, the Hahn–Banach theorem supplies a countable family in that norms . Closed balls are then countable intersections of cylinder sets, every open set is a countable union of balls, and so . Step 5 combines these three facts.
A singular equality Gram matrix. The construction of step 1 uses the pseudoinverse , and need not be invertible because is only positive semi-definite. The vanishing of the cross-covariance is then not immediate. Write for the cross-covariance of with , so that and , where is the orthogonal projection onto ker . That residual vanishes: for we have , so is almost surely constant and . Hence . The cross-covariance in step 1 therefore vanishes whether or not has full rank.
B Implementation Details
This appendix records the implementation choices omitted from the main text for brevity. Each one is needed to reproduce the reported numbers. We group them by operator assembly, constraint scope, the inequality update, the reference solution, and posterior summaries.
Differential operator assembly. The air-quality generator combines second-, first-, and zeroth-order terms. We assemble it as a weighted sum of three named linpde-gp operators: a WeightedLaplacian, a DirectionalDerivative, and an identity term. For the squared-exponential kernel (ExpQuad), each named operator carries a closed-form cross-covariance. The library therefore evaluates in closed form, where the two operators act on the first and second kernel arguments, respectively. We checked this chain against a nested automatic-differentiation reference, and the two agreed to within . The assembly route matters in practice, because a single merged differential operator falls back to bare first-order partials, which ExpQuad does not dispatch in closed form.
Constraint scope and the inequality wrapper. The option-surface experiment applies price bounds, two-sided call-spread bounds, and calendar monotonicity through the gp_constr component of the wrapper. Each family is evaluated on a virtual grid, giving scalar virtual variables in the inequality update. The wrapper supports identity and first-order derivative constraints. Butterfly convexity requires second-order derivatives and is evaluated only as a finite-difference diagnostic.
Grid-based option-price diagnostics. We estimated derivatives of the posterior mean m by central differences on the evaluation grid. The upper spread-bound, calendar, and butterfly violation rates were the fractions of valid finite-difference locations satisfying, respectively,
with . The spread diagnostic counts violations of the upper derivative bound only.
The quote-count sweep included settings where lower prediction error coexisted with higher violation rates. At and , adding the inequalities reduced mean held-out RMSE by 56%. Over the same 5 noise realizations, the mean calendar-violation rate increased from 6.0% to 12.9%, and the mean butterfly-violation rate increased from 9.9% to 16.7%. These grid-based diagnostics measure changes beyond the finite virtual constraint event.
Inequality update: virtual noise and mean handling. All experiments use virtual-observation noise with . When several derivative blocks share virtual locations, can become numerically singular; is then raised geometrically until the factorization succeeds, which only enlarges the virtual noise (a final eigenvalue floor guards the pathological case). The inequality update acts on the centered process , with the bounds shifted by ; the shift is exact pathwise by linearity. It is evaluated by second-order central differences with step , a bound perturbation of order , negligible against . All covariance terms use closed-form operator cross-covariances.
Reference solution. The synthetic plume in the air-quality experiment comes from a second-order finite-difference solve of . A manufactured-solution test gives an observed convergence rate of approximately 2, which confirms the discretization order.
Posterior summaries. Pointwise posterior bands span the posterior mean plus or minus 1.96 marginal posterior standard deviations. For the Gaussian equality posterior, this is the exact marginal 95% credible interval. The inequality-constrained posterior is non-Gaussian, so its corresponding band is a Gaussian-equivalent dispersion summary rather than a 95% credible interval. We compute the constrained standard deviation from the truncated-Gaussian covariance rather than estimating it from posterior samples. The constrained mean and covariance follow from exact compound-moment identities (Agrell 2019, Corollary 6); only the truncated-Gaussian moments and that enter them lack a closed form, and we evaluate these by seeded randomized quasi-Monte Carlo (Genz and Bretz 2009). The seed removes run-to-run variability from the reported summaries, but numerical-integration error remains.
Computational cost. The two-stage solve has two principal costs. The equality update is closed-form Gaussian conditioning, at the usual cubic cost in the number of equality observations. The inequality update evaluates the truncated-Gaussian moments and , the mean and covariance of the virtual variables, and this evaluation dominates the constrained solve. Its cost is governed by the constraint dimension , not by the number of prediction points. The covariance alone has entries, so the cost grows at least quadratically in . The three experiments used for the Poisson problem, for the option surface, and for the air-quality field. These arise from two 16-point derivative blocks, three blocks, and one identity block, respectively. The dimensions are modest; the same computation scales poorly as the virtual set grows, the recognized bottleneck of this family (Bachoc, López-Lopera, and Roustant 2022).
C Data and Preprocessing
The two real-data experiments draw on public sources. The S&P 500 option chain is a single-day snapshot of the ^SPX listing from Yahoo Finance. The pollutant fields are measurements from the OpenAQ v3 REST API, and the transport winds are sampled hourly at 10 m from the Open-Meteo historical archive, which serves ECMWF ERA5 reanalysis. The snapshot files and every fetch and preprocessing script are released in the accompanying code repository (see the Code link in the main text). The subsections below record the provenance of each source and the preprocessing that turns it into the quantities the experiments condition on.
C.1 S&P 500 option-price surface
Snapshot. The chain was captured on 2026-06-13 and holds 18,352 raw quotes, 8,142 calls and 10,210 puts, across 49 listed expiries reaching to December 2031. Both option types are retained at this stage, because the forward and the discount rate are recovered from call and put pairs.
Quote filtering. A quote is dropped when its bid is nonpositive or its relative bid–ask spread (ask – bid)/mid exceeds 25%, and maturities are restricted to years. Filtering leaves 11,382 quotes over 30 expiries, spanning roughly 19 to 342 calendar days. Each surviving quote enters at its mid price.
https://finance.yahoo.com, retrieved with the yfinance client.
OpenAQ, https://openaq.org; v3 REST API documented at https://docs.openaq.org, access requires a free API key.
| Region | Pollutant | Date | Monitors |
|---|---|---|---|
| Maryland (state) | 2021-07-15 | 22 | |
| Maryland (state) | 2023-07-20 | 31 | |
| New York City | 2023-07-20 | 12 | |
| Maryland (state) | 2024-06-20 | 13 |
Table 3: OpenAQ daytime snapshots in the pooled sparsity study. The monitor count is the number of live stations returned inside the bounding box after per-station aggregation.
Forward, rate, and spot. For each expiry , we fit the put–call-parity regression by least squares on strikes quoted for both option types, requiring at least three such strikes. Here, denotes the put price. The slope satisfies , giving the expiry-specific rate , and the intercept gives the forward . The across-expiry medians define the spot index points and the single discount rate on this snapshot. Prices and strikes are then normalized to and .
Volatility and quote noise. The constant-coefficient Dupire operator needs one volatility. We set it to the average of the at-the-money implied volatilities, taken over quotes with log-moneyness and each recovered by Brent inversion of the normalized Black–Scholes call price. The observation noise on quote is half its bid–ask spread in normalized units, . The model uses a single observation-noise level, the median , about on this chain.
Evaluation split. The surface is fit and scored on the retained calls whose log-moneyness lies in , 4,629 quotes in all. The held-out set is the extrapolation block, log-moneyness or maturity years, which holds 971 quotes; the remaining 3658 bulk quotes form the training pool. This split is fixed for every arm and every subsample, so the score target never moves.
Dense control and thinning. The dense control used all 3658 bulk quotes at their original mid prices. Its observation-noise level was the median normalized bid–ask half-spread, denoted by . To test sparse, noisy observations, we randomly retained quotes from this pool, using 20 independently seeded subsets per count. For each subset, we set
We added independent noise to the retained training mid prices and used the same in the observation likelihood. All predictions were scored against the same 971 held-out market mid prices, without added noise. The dense control retained the original training mid prices and the chain-derived noise level.
C.2 OpenAQ ground-monitor networks
Source and aggregation. Each snapshot is one pollutant, either or , pulled from the OpenAQ v3 hourly endpoint inside a city or state bounding box. The pull spans a single daytime window of up to six mid-day hours (UTC 16:00 to 22:00, local afternoon on the US East coast). The hourly readings at a station are averaged to one value per monitor, which matches the steady-state field the experiment reconstructs. Station longitude and latitude are projected to a local east–north frame and rescaled to the unit square.
Snapshots. Four snapshots enter the pooled analysis (Table 3). They differ in day, region, and pollutant, and hence in meteorology, so each carries its own transport wind. Two further live pulls were dropped for returning fewer than the six monitors the sparsity sweep requires: a four-station Washington-metro pull on 2023-06-08 and a one-station Baltimore pull on 2024-08-10. A committed central-London snapshot (2024-07-15) with real station coordinates but synthetic concentrations ships as an offline reproducibility sample and is excluded from the pool by name.
Transport wind. The advection direction for each snapshot is derived from the Open-Meteo historical archive at the bounding-box centroid on the snapshot date, using hourly wind speed and direction. The meteorological convention reports the direction the wind blows from, so the advection vector is for speed and bearing . The daytime hours, 09:00 to 17:00 local, are combined by vector mean. Only the direction enters the operator; the magnitude is normalized away, so each snapshot contributes an advection bearing rather than a calibrated wind speed.
Cross-validation and pooling. For each snapshot, we considered sampled monitor counts and retained only counts no greater than the number of available stations. At each retained count, we drew 5 seeded random subsets. Within each subset, monitors were held out for scoring and the remainder supplied the observations. Thus, includes both training and held-out monitors. The 4 snapshots yielded 90 snapshot–count–split evaluations.
At each monitor count, we computed ratio-of-means reductions in held-out RMSE and the sub-zero-tail diagnostic defined in Section 6.3. Each reduction pooled the corresponding snapshot–split evaluations within the selected snapshot set. The diagnostic is calculated from posterior means and standard deviations; for the non-Gaussian constrained posterior, it is a Gaussian moment-based proxy. Bootstrap standard errors used 2,000 resamples of snapshot–split rows, preserving the paired equality and constrained results within each row.
Each plotted curve uses a fixed snapshot composition. One pools all 4 snapshots at . The other pools the two Maryland PM snapshots over all six sampled counts. This separates changes with monitor count from changes in the snapshots contributing to a curve.
References
Agrell, C. 2019. Gaussian processes with linear operator inequality constraints. arXiv:1901.03134.
Ait-Sahalia, Y.; and Duarte, J. 2003. Nonparametric option pricing under shape restrictions. Journal of Econometrics, 116(1-2): 9–47.
Bachoc, F.; López-Lopera, A. F.; and Roustant, O. 2022. Sequential construction and dimension reduction of Gaussian processes under inequality constraints. SIAM Journal on Mathematics of Data Science, 4(2): 772–800.
Botev, Z. I. 2017. The normal law under linear restrictions: simulation and estimation via minimax tilting. Journal of the Royal Statistical Society Series B: Statistical Methodology, 79(1): 125–148.
Carr, P.; and Madan, D. B. 2005. A note on sufficient conditions for no arbitrage. Finance Research Letters, 2(3): 125–130.
Chataigner, M.; Cousin, A.; Crépey, S.; Dixon, M.; and Gueye, D. 2021. Beyond surrogate modeling: Learning the local volatility via shape constraints. SIAM Journal on Financial Mathematics, 12(3): SC58–SC69.
Chen, J.; Chen, Z.; Zhang, C.; and Jeff Wu, C. 2022. APIK: Active physics-informed kriging model with partial differential equations. SIAM/ASA Journal on Uncertainty Quantification, 10(1): 481–506.
Chen, Y.; Hosseini, B.; Owhadi, H.; and Stuart, A. M. 2021. Solving and learning nonlinear PDEs with Gaussian processes. Journal of Computational Physics, 447: 110668.
Cockayne, J.; Oates, C.; Sullivan, T.; and Girolami, M. 2017. Probabilistic numerical methods for PDE-constrained Bayesian inverse problems. In AIP Conference Proceedings, volume 1853, 060001. AIP Publishing LLC.
Cockayne, J.; Oates, C. J.; Sullivan, T. J.; and Girolami, M. 2019. Bayesian probabilistic numerical methods. SIAM review, 61(4): 756–789.
Cousin, A.; Maatouk, H.; and Rullière, D. 2016. Kriging of financial term-structures. European Journal of Operational Research, 255(2): 631–648.
Da Veiga, S.; and Marrel, A. 2012. Gaussian process modeling with inequality constraints. In Annales de la Faculté des sciences de Toulouse: Mathématiques, volume 21, 529–555.
Dupire, B.; et al. 1994. Pricing with a smile. Risk, 7(1): 18–20.
Fengler, M. R. 2009. Arbitrage-free smoothing of the implied volatility surface. Quantitative Finance, 9(4): 417–428.
Genz, A.; and Bretz, F. 2009. Computation of Multivariate Normal and t Probabilities. Lecture Notes in Statistics. Springer Berlin Heidelberg. ISBN 9783642016882.
Golchi, S.; Bingham, D. R.; Chipman, H.; and Campbell, D. A. 2015. Monotone emulation of computer experiments. SIAM/ASA Journal on Uncertainty Quantification, 3(1): 370–392.
Graepel, T. 2003. Solving noisy linear operator equations by Gaussian processes: Application to ordinary and partial differential equations. In ICML, volume 3, 234–241.
Halton, J. H. 1960. On the efficiency of certain quasi-random sequences of points in evaluating multi-dimensional integrals. Numerische Mathematik, 2(1): 84–90.
Hennig, P.; Osborne, M. A.; and Girolami, M. 2015. Probabilistic numerics and uncertainty in computations. Proceedings. Mathematical, physical, and engineering sciences/the Royal Society, 471(2179): 20150142.
Hennig, P.; Osborne, M. A.; and Kersting, H. P. 2022. Probabilistic Numerics: Computation as Machine Learning. Cambridge University Press.
Jidling, C.; Wahlström, N.; Wills, A.; and Schön, T. B. 2017. Linearly constrained Gaussian processes. Advances in neural information processing systems, 30.
Karniadakis, G. E.; Kevrekidis, I. G.; Lu, L.; Perdikaris, P.; Wang, S.; and Yang, L. 2021. Physics-informed machine learning. Nature Reviews Physics, 3(6): 422–440.
Lange-Hegermann, M. 2018. Algorithmic linearly constrained Gaussian processes. Advances in Neural Information Processing Systems, 31.
Lange-Hegermann, M. 2021. Linearly constrained Gaussian processes with boundary conditions. In International Conference on Artificial Intelligence and Statistics, 1090–1098. PMLR.
Li, Z.; Yang, S.; and Wu, C. J. 2024. Parameter inference based on Gaussian processes informed by nonlinear partial differential equations. SIAM/ASA Journal on Uncertainty Quantification, 12(3): 964–1004.
López-Lopera, A. F.; Bachoc, F.; Durrande, N.; and Roustant, O. 2018. Finite-dimensional Gaussian approximation with linear inequality constraints. SIAM/ASA Journal on Uncertainty Quantification, 6(3): 1224–1255.
Lu, L.; Pestourie, R.; Yao, W.; Wang, Z.; Verdugo, F.; and Johnson, S. G. 2021. Physics-informed neural networks with hard constraints for inverse design. SIAM Journal on Scientific Computing, 43(6): B1105–B1132.
Maatouk, H.; and Bay, X. 2017. Gaussian process emulators for computer experiments with inequality constraints. Mathematical Geosciences, 49(5): 557–582.
Pförtner, M.; Steinwart, I.; Hennig, P.; and Wenger, J. 2022. Physics-informed Gaussian process regression generalizes linear PDE solvers. arXiv preprint arXiv:2212.12474.
Raissi, M.; Perdikaris, P.; and Karniadakis, G. E. 2017. Machine learning of linear differential equations using Gaussian processes. Journal of Computational Physics, 348: 683–693.
Raissi, M.; Perdikaris, P.; and Karniadakis, G. E. 2019. Physics-informed neural networks: A deep learning framework for solving forward and inverse problems involving nonlinear partial differential equations. Journal of Computational physics, 378: 686–707.
Rasmussen, C. E.; and Williams, C. K. I. 2006. Gaussian Processes for Machine Learning. The MIT Press.
Riihimäki, J.; and Vehtari, A. 2010. Gaussian processes with monotonicity information. In Proceedings of the thirteenth international conference on artificial intelligence and statistics, 645–652. JMLR Workshop and Conference Proceedings.
Särkkä, S. 2011. Linear operators and stochastic partial differential equations in Gaussian process regression. In International Conference on Artificial Neural Networks, 151–158. Springer.
Swiler, L. P.; Gulian, M.; Frankel, A. L.; Safta, C.; and Jakeman, J. D. 2020. A survey of constrained Gaussian process regression: Approaches and implementation challenges. Journal of Machine Learning for Modeling and Computing, 1(2).
Wang, X.; and Berger, J. O. 2016. Estimating shape constrained functions using Gaussian processes. SIAM/ASA Journal on Uncertainty Quantification, 4(1): 1–25.
Yang, L.; Meng, X.; and Karniadakis, G. E. 2021. B-PINNs: Bayesian physics-informed neural networks for forward and inverse PDE problems with noisy data. Journal of Computational Physics, 425: 109913.