Fast Bayesian Inference with Batch Bayesian Quadrature via Kernel Recombination

Masaki Adachi, Satoshi Hayakawa, Martin Jørgensen, Harald Oberhauser, Michael A Osborne

TL;DR

The authors introduce BASQ (Bayesian Alternately Subsampled Quadrature), a highly parallelized Bayesian Quadrature method capable of simultaneously estimating Bayesian posteriors and model evidence. By leveraging a technique called kernel recombination to select batches of evaluation points, BASQ bypasses the severe computational bottlenecks of previous batch methods, achieving vastly faster wall-clock convergence than state-of-the-art Nested Sampling and existing Bayesian Quadrature techniques.

The Bottleneck in Bayesian Inference

In many scientific and engineering applications, researchers must choose the best simulator or model to explain a dataset. This requires calculating Bayesian model evidence and posteriors, which involves integrating over complex, computationally expensive likelihood functions.

Currently, Nested Sampling (NS) is the gold standard because it calculates both the posterior and the evidence simultaneously. However, NS relies on Monte Carlo sampling, meaning its convergence rate is inherently slow.

Bayesian Quadrature (BQ) offers a much more sample-efficient alternative by modeling the expensive likelihood function with a Gaussian Process (GP). Unfortunately, BQ is traditionally a sequential process. Attempts to parallelize it (like "batch WSABI") have struggled because the algorithm used to select the optimal batch of points relies on greedy, gradient-based optimization. This optimization scales exponentially with batch size and dimensionality, often taking longer to compute than the actual simulator evaluations.

Methods: Introducing BASQ

To solve the batch-selection bottleneck, the authors propose BASQ, which marries Bayesian Quadrature with Kernel Quadrature (KQ).

Algorithm 1: Bayesian Alternately Subsampled Quadrature (BASQ)
  • Kernel Recombination: Instead of using slow, multi-start gradient descent to pick the best batch of points, BASQ uses a gradient-free approach called Random Convex Hull Quadrature (RCHQ). It generates a massive pool of candidate points and uses Carathéodory’s theorem (via a kernel recombination algorithm) to extract a sparse, optimally weighted subset. This subset becomes the batch.
  • Square-Root Warped GPs: BASQ models the likelihood using a square-root warped GP (building on the WSABI-L method). This ensures the likelihood remains strictly non-negative while keeping the integral mathematically tractable.
  • Importance Sampling for Uncertainty: To handle sharp or highly multimodal likelihoods, BASQ doesn't just sample candidates blindly from the prior. It uses a clever importance sampling scheme that mixes the prior with an acquisition function (which targets areas of high uncertainty). The authors introduce a "factorization trick" that makes sampling from this complex mixture computationally cheap.

Key Insights

  • BQ Batching = Kernel Quadrature: The core "aha moment" of the paper is recognizing that selecting a batch of points to minimize the variance of a BQ integral is mathematically equivalent to selecting points in Kernel Quadrature to minimize worst-case error over an empirical measure.
  • Gradient-Free is the Way to Go: By abandoning gradient-based acquisition function optimization in favor of kernel recombination, the overhead time required to select a batch drops from exponential to negligible. This allows researchers to actually take advantage of large-scale parallel computing clusters.
  • Factorization Unlocks Active Learning: Actively sampling from a GP's uncertainty landscape is usually too expensive to do at scale. By leveraging the square-root GP formulation, the authors factorized the distribution into a sparse Gaussian mixture, making it incredibly fast to propose high-value candidate points.

Key Results

The authors evaluated BASQ on a mix of synthetic benchmarks (Branin-Hoo, Ackley) and expensive real-world simulators, including a Lithium-ion battery simulator and a phase-field model.

Performance comparison and 1D illustration of BASQ vs. batch WSABI.
  • Massive Overhead Reduction: In synthetic tests, BASQ selected large batches in mere seconds. In contrast, the baseline batch BQ method (batch WSABI) took over 1,000 seconds just to select a batch of the same size.
  • State-of-the-Art Wall-Clock Speed: Across both synthetic and real-world datasets, BASQ consistently outperformed state-of-the-art Nested Sampling algorithms (MLFriends, MultiNest) and batch WSABI in wall-clock time for both posterior estimation (measured by RMSE/KL divergence) and model evidence (measured by Mean Absolute Error).
  • Theoretical Guarantees: The authors provide mathematical proofs demonstrating that, under natural assumptions, their kernel recombination approach achieves an empirically exponential convergence rate.

Limitations and Future Work

Like most algorithms relying on standard Gaussian Processes, BASQ is practically limited to relatively low-dimensional problems (fewer than 16 dimensions). The authors note that because their Kernel Quadrature approach is agnostic to the input space, future work could combine BASQ with latent variable models (like GPLVMs) to perform quadrature in lower-dimensional manifold spaces, unlocking high-dimensional applications.

Summary updated

BibTeX
@inproceedings{adachi2022fast,
  author = {Masaki Adachi and Satoshi Hayakawa and Martin Jørgensen and Harald Oberhauser and Michael A Osborne},
  title = {{Fast Bayesian Inference with Batch Bayesian Quadrature via Kernel Recombination}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=9wCQVgEWO2J},
}
Figure