- Home
- Library
- Computational Quantum Field Theory
- Predicting Observables across Parameters
- Reduced-Basis and Gaussian-Process Surrogates
Reduced-Basis and Gaussian-Process Surrogates
Suppose a field equation must be solved for many masses, lengths or couplings, but the desired output is only one integrated response. There are two economical alternatives to a large neural solver: reuse a low-dimensional space of previously computed fields, or interpolate the response itself. They answer different questions. A reduced Galerkin field still satisfies a projected equation and admits a residual estimate; a Gaussian-process prediction supplies uncertainty conditional on its statistical model.
This article constructs both alternatives for one scalar boundary problem, compares them with cubic interpolation and a small fitted network, and tests unseen parameters. The example is sufficiently explicit to distinguish finite-discretization error, reduced-space error and learned-map error without treating any one of them as another.
Preparation: Variational neural solvers develop the positive scalar functional. The thin-layer calculation derives the boundary layers and the continuous residual estimate used here.
One response, several approximation spaces
On , consider
The dimensionless parameter is for a static scalar equation . Its physical integrated response is . The exact benchmark is
We reserve (2) for validation. Training labels instead come from a conventional sine-Galerkin calculation. Because the source and solution are reflection-even about , only odd-index sine modes contribute. With , define
The orthonormal basis makes coefficient Euclidean norm equal to field norm. The finite solution and response are
Calling a “truth” approximation means that it is the resolved numerical reference for a reduced calculation. This distinction underlies the reduced-basis construction in Sen et al., §1.1.
POD compresses snapshots; Galerkin solves at a new parameter
Take nine training parameters equally spaced in
Assemble their -component coefficient vectors into and compute the singular value decomposition . The first columns of minimize the summed squared projection error of these snapshots among orthonormal rank- spaces. The minimum sum is the sum of the discarded singular values squared. At unseen parameters the projection error has to be checked separately.
At a new , seek and require the residual to be orthogonal to this space:
Since , the online calculation becomes
Snapshots, the SVD and the projected matrices are computed offline. A response query solves only an -dimensional system. Reconstructing every coefficient of the field still costs work proportional to ; it is unnecessary when only (7) is requested. The reduced field is not obtained by interpolating the snapshot coefficients: it solves the equation projected into their common space.
An output-error identity and a continuum tail
For the same finite reference, put and . The residual equation is . The smallest eigenvalue is , so
For this particular response, Galerkin orthogonality gives more than a generic linear-functional bound. Since and ,
The nonnegative error relies on the symmetric positive operator, the same source as output functional, and a Galerkin solution. It is not a general bound for an arbitrary fitted response network. More general reduced-basis residual/output estimates are developed in Sen et al., §6.1, Lemma 6.1 and Proposition 6.3; (8)–(9) follow directly for our diagonal coercive problem.
The finite reference omits a positive response tail,
Bounding the denominator by its large-mode term and using the first term plus an integral for a decreasing function gives, with ,
Consequently,
The omitted field norm squared is also bounded by . A small finite-reference residual becomes a continuum statement only after this separate tail is included.
To evaluate the residual cheaply, factor the offline matrix by a thin QR decomposition. Then
The small factor avoids forming all residual coefficients online and avoids evaluating an expanded sum of large cancelling squared terms. Finite precision remains: the companion compares (13) against the full coefficient residual and records raw discrepancies. Equations (9)–(12) are exact-arithmetic bounds; the displayed floating-point evaluations are not interval arithmetic.
A response GP and its conditional uncertainty
A response-only surrogate discards the field and fits the nine labels . Standardize them using their training mean and population standard deviation :
No validation or test label enters this transformation. Use a zero-mean Gaussian process with squared-exponential kernel
The fixed nugget is a chosen numerical/model term. It is not a measurement of Galerkin error and has no experimentally estimated noise interpretation here. For a new latent function value , the joint covariance with is
Completing the square in this joint normal density, or subtracting the best linear predictor and checking that its covariance with vanishes, gives
The original-unit prediction is and its latent conditional standard deviation is . A new noisy observation under this model would add to the standardized variance. These are distinct predictions. See Rasmussen and Williams, §2.2, Eqs. (2.22)–(2.24).
For fitting , the negative log marginal likelihood is
If , differentiation gives
The sign is for the negative likelihood. It is the negative of the log-likelihood gradient in GPML §5.4, Eq. (5.9). Cholesky triangular solves evaluate (17)–(19); explicit inverses are unnecessary for prediction.
The resulting spread conditions on the chosen kernel, fixed nugget, fitted length and numerical labels. It does not integrate hyperparameter uncertainty, infer missing physics or prove a PDE residual bound. Small spread in an extrapolation region is particularly weak evidence without an appropriate model for that region.
A common comparison with held-out inputs
The retained experiment uses odd modes for all nine training fields and labels. POD ranks are 1, 2, 3, 4, 6, 8 and 9; a rank is unavailable when its singular value is at most of the leading one. Rank 4 is designated before testing. Rank 9 is indeed unavailable: its relative singular value is about , whereas rank 8 is retained.
Three response baselines use those same labels:
- PCHIP interpolates in and retains its endpoint-polynomial extrapolation without clipping.
- The GP fits from starts , and , with . Each fit allows 200 L-BFGS-B iterations and 1000 actual calls. The smallest finite training objective selects the displayed fit.
- A width 8 tanh network has 25 parameters. It minimizes half the standardized mean-square label error plus . Three fixed starts each receive at most 2000 iterations and 5000 calls; start 0 is designated, independently of test errors.
Eight interval midpoints are a diagnostic validation set. Sixteen quarter/three-quarter points are held out for the following comparison; neither set selects the ranks or training budgets. Four extrapolation values are , , and , outside the training interval .
| Model | Maximum test response error | Maximum extrapolation error |
|---|---|---|
| PCHIP | ||
| GP | ||
| Network, start 0 | ||
| POD rank 4 | ||
| POD rank 8 |
Errors are absolute differences from (2), not sampling standard errors. Against the descriptive target , PCHIP misses all 16 test points, the GP 15, and network/start 0 fourteen. POD 4 meets the target at all 16. This finite test does not prove uniform accuracy over the interval. The other network starts remain in the output: their maximum test errors are and .
The GP length is about and its training covariance condition number is . The frozen minimum-objective rule selects start 1 even though it reports an abnormal line-search termination. The three objectives differ by only about , and their lengths are nearly identical; this is not evidence that the failed fit is better converged. Both the successful and unsuccessful stop states are preserved. All computed latent variances are positive. On the test set, conditional standard deviations range from to , without an established coverage guarantee.
Network starts 0 and 2 hit their iteration caps; start 1 stops by function tolerance. None meets the separately evaluated gradient target .
Left: continuum response errors on the fixed test and extrapolation inputs; dotted vertical lines mark the training interval. Right: maximum test errors and the evaluated residual-plus-tail bound across POD ranks. The control separates reference truncation from reduced-space error. No ranks or starts were added after these outcomes.
The rank 4 maximum evaluated continuum bound is on the test set, much larger than its actual maximum error. Such a bound may be valid yet conservative. At rank 8, the error is mostly reference truncation: rebuilding only the prescribed POD ranks 4 and 8 at reduces the rank 8 maximum test error to . The largest pointwise response change between these references is . Rank 4's maximum remains approximately , showing its different dominant error. The independently recomputed POD spaces are not asserted to be nested.
The finite output-bound check records a maximum positive floating-point violation of near solved states. It is not silently padded away. No positive continuum-bound violation is observed in the fixed scan after including (11); this is numerical evidence, not a formal rounding-error proof.
Offline work and actual online costs
The retained timings use seven repetitions, each evaluating the fixed 20-point test-plus-extrapolation batch 100 times. Median milliseconds per 2000 responses are:
| Operation actually timed | Median milliseconds |
|---|---|
| PCHIP, physical response | |
| GP, physical mean | |
| Network, physical response | |
| Exact formula | |
| Full diagonal Galerkin response | |
| GP, standardized mean and raw variance | |
| POD rank 4, response | |
| POD rank 4, response and bound |
The GP mean/variance timing excludes final physical rescaling and the square root. The POD path performs a small solve per input in a Python loop; the scalar baselines and full diagonal truth use vectorized batches. The table measures these implementations on one machine, not their best possible implementations or a hardware-independent speed ratio. In particular, this exceptionally cheap diagonal model provides no practical POD speedup.
Offline snapshot assembly, SVD/precomputation and all fits are separate from these inference intervals. The recorded POD interval includes reassembling its nine snapshots before the SVD. A large non-diagonal field problem may have a much more favorable offline/online balance, but its costs would have to be measured for that problem.
The companions reduced_response.py and surrogate_study.py retain every model, error group, timing repetition and stop reason. Independent controls compare GP conditioning with a full finite joint-Gaussian Schur complement, check likelihood/network derivatives, compare the QR residual with its full vector, and deliberately omit from the online operator as a negative control. Default commands replay saved predictions without fitting; explicit production refuses existing output files.
Summary
A POD space compresses previously computed fields; Galerkin projection supplies new parameter-dependent coefficients and a residual estimate. A response GP or network learns only the output map, so its error must be assessed on unseen inputs and against numerical-label refinement. Here a positive output identity makes a finite-reference residual bound especially transparent, while a separate sine tail connects it to the continuum. GP conditional spread, held-out errors and PDE bounds remain different quantities even when displayed beside the same response.
Exercises
1. From a reduced residual to a continuum response estimate
For a symmetric positive matrix , source , exact finite solution and Galerkin state , derive the output identity (9). Then derive (11) and a bound for the omitted field norm. Explain why replacing by an arbitrary response-network output invalidates this argument.
Solution
Put . Galerkin orthogonality gives , hence . Because the same defines source and output,
Also and , so .
For the odd sine expansion, each omitted response term is at most . Monotonicity gives
This proves (11). In the omitted coefficient norm, the summand is , whereas the response-tail summand is . Since omitted , their sum is bounded by . The field and output estimates can thus be combined with the independent finite-space residual.
A scalar network prediction supplies neither a field coefficient vector nor Galerkin orthogonality. Its error need not be nonnegative, and no of the above kind follows from a small label loss. A reconstructed non-Galerkin field can still have an ordinary residual bound, but it loses the special identity used here.
2. A nonzero GP variance at a training point
Let two standardized latent values have unit variance and correlation with . Observations have independent nugget variance . Condition on their values and predict the latent value at the first training input. Derive its mean and variance, take , and explain why that limit does not certify the physical response.
Solution
The observation covariance and latent cross-covariance are
Using in (17),
The latent variance is positive at a training point because the model allows observational nugget uncertainty. A new noisy observation has variance . As , the latent mean tends to and its variance to zero. In original units these are and .
The zero-nugget limit exactly interpolates the numerical label. That label may still differ from the continuum response by , and the selected kernel may misrepresent unseen parameters. Neither defect is inferred by conditioning on the label as exact. No PDE residual or truncation bound has been evaluated in this GP calculation.
References
- C. E. Rasmussen and C. K. I. Williams, Gaussian Processes for Machine Learning, MIT Press (2006), ISBN 026218253X. Chapter 2 (PDF), §2.2, Eqs. (2.22)–(2.24); Chapter 5 (PDF), §5.4, Eq. (5.9).
- S. Sen, K. Veroy, D. B. P. Huynh, S. Deparis, N. C. Nguyen and A. T. Patera, “‘Natural norm’ a posteriori error estimators for reduced basis approximations,” Journal of Computational Physics 217 (2006) 37–62, doi:10.1016/j.jcp.2006.02.012, author-hosted PDF, §1.1 and §6.1, Lemma 6.1 and Proposition 6.3.
Scrollable formula. Use Left and Right arrow keys to reveal hidden content.
Scrollable table. Use Left and Right arrow keys to reveal hidden columns.
Scrollable figure. Use Left and Right arrow keys to reveal hidden content.