arXiv:2610.10122cs.LGOct 2026

Manuscript Offprint

arXiv:2610.10122

What Can a Gaussian Process Design Test

Ivan De Boi, Marnix Van Soom

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.

Abstract

A Gaussian process (GP) model can agree with the data for two reasons: its assumptions are right, or the chosen inputs could never have shown that they are wrong. The distinction can be checked from the design before any responses are observed. Every model implies relations that its noiseless responses must satisfy at the chosen inputs, such as “the middle value lies on the line through its two neighbours”. For GPs built from finitely many features, these relations are exactly the null space of the kernel matrix. Gale duality gives them a geometric interpretation, in which each observation has a vector and the smallest groups of observations that can expose an error are the circuits. For other kernels the relations become soft: response patterns may be improbable under the prior rather than algebraically impossible. A standard test then combines two kinds of evidence. Structural evidence comes from a violated relation and grows without limit as the noise falls. Prior-based evidence only says that a departure is improbable under the prior. With all inputs at the two ends of an interval, for example, a GP can reject a straight line against a large curvature, but only because the implied intercept is improbable, never because curvature was seen. In simulations the predicted power matched the observed rejection rates. Choosing the next input by predicted power raised the power against a localised discrepancy from 0.48 to 0.72, against 0.51 when choosing by predictive variance, and a grid in two dimensions contained exact tests of additivity that a Latin hypercube lacked. The test itself is classical. The contribution is the prospective reading of that test: before observing the responses, the design already determines what kind of contradiction it can produce.

1 Introduction

Gaussian processes (GPs) are widely used as surrogate models when data are expensive, most prominently in Bayesian optimisation and active learning [54, 56, 30], with applications ranging from the calibration of measurement systems [21] to clinical assessment [23] and the tuning of accelerator beamlines [53]. Their appeal rests on calibrated uncertainty, but that calibration is conditional on the model. A GP model can pass the checks applied to the collected data for two very different reasons: because its assumptions are adequate, or because the data could never have contradicted them. Consider a straight-line model and a design that places all observations at the two ends of an interval. A straight line can always be drawn through the mean responses at two inputs, so the data agree with the model whatever the true curvature is, and no amount of further data at the same inputs can change this. Agreement with the data is then no evidence that the function is straight.

Diagnosing a model therefore involves two different questions, which this paper keeps apart. The first is detection: after the data are collected, are some observations incompatible with the model? Classical regression diagnostics and their GP counterparts answer this question [19, 9, 20, 7]. The second is testability: before the data are collected, which violations of the model could the design reveal at all, and with what probability? For linear models and a specified alternative, designs for detecting model inadequacy [12, 2, 40] and for discriminating between rival models [3, 25] answer this question. For GPs, designs that discriminate between specified rival models exist [29, 48]. This work makes explicit, for a single GP model, which departures a given design can detect and with what power. Such an account must handle correlated observations and kernels that need not correspond to a finite set of features. This matters because the designs used with GPs are usually chosen for other purposes. Observations placed where predictive uncertainty is largest need not be the ones that would most strongly challenge the model assumptions.

Figure 1 shows both points on simple examples. In panel (a), a straight-line model is tested against a curvature cx2cx^{2} with 40 observations. When all inputs lie at the two ends of an interval, the residual test stays at its level for every curvature. A GP test would eventually reject a very large curvature at that design, but only because the intercept it implies is improbable under the prior, not because any relation is violated (Section 5). Moving four of the observations to the centre makes the same curvature structurally detectable. In panel (b), the next observation that would best test a GP against a narrow bump lies at the bump, where the predictive variance is small, and not at the boundary, where it is largest. Both answers are available before any response is measured.

(a) can the design test a straight line?

Figure

(b) where should the next observation go?

Figure 1: What a design can test, computed before any data are collected (details in Section 7). (a) Power of two tests of a straight-line model against a curvature cx2cx^{2}, for 40 inputs at the two ends of [−1,1][-1, 1], and for 36 inputs at the ends with 4 at the centre. Lines show predicted power, markers simulated rejection rates. The end-point design contains no consistency relation that involves curvature. (b) Power of a GP test against a narrow bump at x0=0.1x_{0} = 0.1 (vertical line) after adding one observation at x (solid), and the current predictive variance (dashed, scaled). Ticks mark the current inputs, and the dotted line the current power.

A model can only produce certain response patterns. Every linear relation shared by all of those patterns gives a check on the data. We call such a relation a consistency relation. If a function is assumed to be a straight line, for example, then at three equally spaced inputs the middle value must equal the average of its neighbours. If the model is correct, a consistency relation can fail only by as much as the noise explains. At the two-ended design above, no consistency relation involves curvature, and that is why the design cannot test it.

For GPs built from finitely many features, the consistency relations are exactly the null space of the kernel matrix, the combinations of function values that the prior fixes at zero. We describe these relations geometrically with Gale duality [28, 63, 24]. It gives each observation a vector, its Gale vector, that describes its role in the relations, and it singles out the circuits, the smallest groups of observations that can expose a structural error. For other kernels, such as the radial basis function (RBF) kernel, no exact relations exist. Some patterns are then merely unlikely, and we use the spectrum of the kernel matrix to describe these soft restrictions. Gale duality is the language for the exact case, not the source of the algebra.

The relations span the same residual space as classical diagnostics. Our interest is therefore not in constructing another retrospective residual test, but in using that space prospectively. Before observing y, the model and the chosen inputs already determine which departures can leave a residual and which can be absorbed by the model. This makes testability a property of the design itself.

For a finite-rank GP, the exact relations are the null space of the kernel matrix. Gale duality provides a geometric representation of these relations and identifies their minimal supports through circuits. For a full-rank GP, no exact relations remain, but the kernel spectrum still separates strongly penalised response directions from flexible ones. The corresponding power calculation distinguishes evidence from a violated relation from evidence that is due only to prior improbability.

The residual projector, multiple-case diagnostic identities, noncentral chi-square power calculations and classical discrimination criteria used below are not new. The contribution is the way they are put together to answer a design question: what could this GP design actually contradict, and what kind of evidence would a rejection represent? Because this question can be answered before the responses are measured, it also gives a prospective criterion for choosing observations. The analysis assumes a fixed mean, kernel and noise variance; estimation from the same data and repeated testing are treated as limitations rather than folded into the exact theory.

The same distinction is already latent in the marginal likelihood. If K=∑jλjujuj⊤K = \sum_j \lambda_j u_j u_j^\top, then y⊤(K+σ2I)−1y=∑j(uj⊤y)2/(λj+σ2)y^\top(K + \sigma^2 I)^{-1} y = \sum_j (u_j^\top y)^2 / (\lambda_j + \sigma^2). Our use of this decomposition is to attach those directions to exact or soft relations of the design and to compute, before measurement, the power against a specified departure. The experiments then ask whether that prospective calculation agrees with simulation and whether it selects different observations from predictive variance.

References (48)