Bayesian Quadrature
Summary
Bayesian quadrature (BQ) places a Gaussian-process prior on the integrand ; because integration is a linear operation and Gaussian measures are closed under linear maps, the integral is itself Gaussian, jointly with the function values . Conditioning gives a closed-form Gaussian posterior whose mean is an affine function of the data — a weighted sum — and whose variance is an a priori error bar independent of the observed values. The mean, weights, and variance are built from three integrals of the kernel: the integrated prior mean , the kernel mean , and the doubly-integrated kernel (initial error) .
Overview
This is the central note of Part II. It answers the question posed by The Integration Problem: given that we may know quite a lot about the integrand (it is defined by source code), how much can be gained by encoding that knowledge as a prior? The answer: a great deal. By embedding the single integrand in a hypothesis class of functions — the support of a GP prior — the intractable problem of exact integration becomes tractable, uncertain inference.
The construction rests entirely on the Gaussian algebra of Gaussian Distributions and Algebra and the regression machinery of Gaussian Process Regression: a GP prior on induces a joint Gaussian over , and the Gaussian conditioning identity delivers the posterior. Crucially, the posterior mean is a linear map of the observations, so BQ produces a classical-looking quadrature rule — and, as Classical Quadrature as Inference shows, particular kernels reproduce the trapezoidal, spline, and Gaussian quadrature rules exactly. The added value over classical rules is the posterior variance: a calibrated, computable error bar that also drives active node selection (see Active Bayesian Quadrature and Bayesian Monte Carlo).
Main Content
The joint model and the posterior
Following the exposition of GP regression, a generic GP prior over the integrand induces a joint Gaussian measure over the function values and the integral :
Joint prior over evaluations and integral
Using the Dirac point measure as the (noise-free) likelihood encoding exact observations ,
Here is the prior mean at the nodes, is the Gram matrix , , and the off-diagonal / bottom-right blocks are the kernel integrated once / twice against .
Because is a linear functional of and Gaussians are closed under linear maps (see Gaussian Distributions and Algebra), the block structure above is exact: no approximation is made.
Bayesian quadrature posterior
The conditional is the univariate Gaussian
with mean and variance
Derivation. Apply the Gaussian conditioning identity (Eq. 3.4 of the text; see Gaussian Distributions and Algebra) to the joint of ^def-bq-joint: for a jointly Gaussian with cross-covariance and , the conditional mean is and conditional variance is . Equivalently, one may first form the GP posterior and then apply the closure of the GP under the linear integration operator.
The three tractability integrals
The posterior is available in closed form precisely when these three integrals of the mean and kernel (never the intractable itself) have analytic forms:
Integrated mean, kernel mean, and initial error
Here is the vector of kernel means at the nodes. is exactly the kernel mean (kernel embedding) of the measure in the RKHS of ; BQ is thereby connected to kernel herding and kernel means in machine learning (see Kernel Quadrature and Kernel Means). is the prior variance of before any evaluation — the initial (worst-case) error.
The BQ rule: posterior mean as a weighted sum
The posterior mean is an affine function of , exposing the classical quadrature structure:
BQ weights
with offset and weights
Thus BQ is a quadrature rule , but with weights determined by the prior (via and ) rather than by ad-hoc polynomial-exactness conditions. This is the precise sense in which classical quadrature is contained in Bayesian quadrature (developed in Classical Quadrature as Inference).
The zero-mean simplification. In practice almost always (rarely is an integrand known well enough before evaluation to justify otherwise). Then , , and
Scale separation and hierarchical inference
Following the hierarchical construction, the text uses a scaled covariance family separating a scale from a “unit” kernel :
The unit kernel controls the shape of the posterior and the rate at which uncertainty contracts; the scale sets the overall magnitude of the error bar. Because appears multiplicatively in the posterior variance, it can be inferred hierarchically (conjugate Gamma prior on ), exactly as in Hierarchical Inference in Gaussian Models, to calibrate the error estimate at runtime (see Convergence and Priors in Bayesian Quadrature).
The variance is data-independent (open-loop)
A striking property (from ^thm-bq-posterior): does not depend on the observed values at all — it is a function of the nodes and the kernel only. Consequences:
- The error estimate and optimal node placement are set a priori; the design can be pre-computed (a computational saving) — hence Gaussian BQ is fundamentally open-loop / non-adaptive.
- But the error bar is then based purely on prior assumptions, not on the collected values themselves. To make evaluations inform both confidence and future node choices requires non-Gaussian models (see Active Bayesian Quadrature and Bayesian Monte Carlo).
Node selection
Thinking of the design rule as minimising an expected loss (the square error), the natural criterion is to place nodes to minimise the posterior variance:
Since the entropy of a Gaussian is monotone in its variance, this is equivalently the maximally informative design (minimum conditional entropy of ). Finding the exact optimal grid can be computationally hard; sampling from the -determinantal point process (DPP) associated with costs and gives only limited performance loss — a deterministic way to draw good “samples.”
Tractable model pairings
The posterior is only usable when are analytic. The canonical pairing is the Gaussian (squared-exponential) kernel with a Gaussian measure (see Example below). Table 10.1 of the text lists further tractable triples, e.g. Uniform measure with Wendland / Matérn-weighted tensor-product kernels on ; Gegenbauer kernels on the sphere ; spline kernels (via integration by parts) and polynomial kernels (via known moments) on arbitrary domains — the latter two underlie Classical Quadrature as Inference.
Examples
Gaussian kernel × Gaussian measure (the workhorse univariate BQ)
Take zero prior mean, the scaled Gaussian covariance written via the Gaussian density
Then the three integrals are closed-form:
The posterior is . This gives a fully practical univariate BQ procedure: evaluate at chosen nodes, assemble , , and read off point estimate and error bar.
Multivariate extension
On with Gaussian measure and -dimensional Gaussian covariance ,
BQ extends readily in form, but the curse of dimensionality limits it: the volume grows exponentially, evaluations become sparse, the model matters more than the data, and the light-tailed Gaussian kernel predicts poorly in unexplored regions. At the time of writing BQ is rarely used above .
Connections
- Solves The Integration Problem by specialising its generic model to a Gaussian-process prior.
- Built on Gaussian Process Regression (the posterior over ) and Gaussian Distributions and Algebra (closure under the linear integration map; conditioning identity).
- Generalises classical rules — trapezoid, spline, Gauss, Clenshaw–Curtis — each recovered by a specific kernel in Classical Quadrature as Inference.
- The kernel mean is the subject of Kernel Quadrature and Kernel Means; is the squared RKHS worst-case error.
- Hierarchical scale inference on uses Hierarchical Inference in Gaussian Models to calibrate the error bar (see Convergence and Priors in Bayesian Quadrature).
- Non-Gaussian / adaptive variants (WSABI, BBQ, MMLT) are covered in Active Bayesian Quadrature and Bayesian Monte Carlo.
See Also
- The Integration Problem — the task and the two-ingredient recipe BQ instantiates.
- Kernel Quadrature and Kernel Means — RKHS/worst-case-error reading of and .
- Classical Quadrature as Inference — classical rules as BQ posterior means.
- Convergence and Priors in Bayesian Quadrature — how the kernel controls the contraction rate.
- Active Bayesian Quadrature and Bayesian Monte Carlo — adaptive, warped, non-Gaussian BQ.
- Gauss-Markov Processes and SDEs — the IWP/Gauss–Markov priors that give BQ an Kalman-filter form.