On the Sampling Problem for Kernel Quadrature

François-Xavier Briol, Chris J. Oates, Jon Cockayne, Wilson Ye Chen, Mark A. Girolami

Numerical integration—calculating the area under a curve—is a cornerstone of modern statistics and machine learning. While standard Monte Carlo (MC) methods are robust, they are notoriously slow, with errors decreasing at a sluggish rate of $1/\sqrt{n}$.

Kernel Quadrature (KQ), also known as Bayesian Monte Carlo, offers a much faster alternative. By using a kernel to create a smooth interpolant of the function, KQ can achieve significantly higher accuracy with fewer samples. However, there is a catch: the performance of KQ is highly sensitive to where you choose to sample your points.

This paper introduces SMC-KQ, an automated approach that uses Sequential Monte Carlo to "discover" the optimal sampling distribution, leading to integration errors up to 10,000 times smaller than traditional methods.

The Problem: Where to Sample?

Unlike standard MC, where "Importance Sampling" has a well-known optimal formula, the optimal sampling distribution for KQ has no closed-form solution. Faced with this, most researchers simply sample from the target distribution itself.

However, this paper proves that doing so is often highly sub-optimal. To build a good global interpolant (which is what KQ does), you often need "extreme" samples from the tails of the distribution. These points provide more information about the function's overall shape than points clustered near the mode.

Estimated RMSE vs. sampling standard deviation shows that sampling from the target distribution (dashed line at 1.0) is highly sub-optimal compared to wider distributions.

As illustrated above, the lowest error (RMSE) is often achieved by sampling from a distribution that is significantly wider (higher standard deviation) than the target distribution itself.

The SMC-KQ Framework

To automate the search for these optimal sampling locations, the authors propose a novel framework called SMC-KQ. The method relies on a few key steps:

  1. Thermodynamic Ansatz: The authors assume the optimal sampling distribution belongs to a family of "tempered" distributions: $\Pi_t \propto \Pi_0^{1-t} \Pi^t$, where $\Pi$ is the target and $\Pi_0$ is a broad reference distribution. By varying the "inverse temperature" $t$, the algorithm can smoothly transition from a very flat distribution to the target distribution.
  2. Sequential Monte Carlo (SMC): The algorithm uses an SMC sampler to navigate this temperature ladder, generating a set of candidate points at each step.
  3. Adaptive Termination: Instead of simply running until $t=1$ (the target), the algorithm monitors an empirical upper bound on the integration error. It dynamically stops at the specific temperature $t$ that minimizes this bound.
  4. Kernel Learning (SMC-KQ-KL): The framework is also extended to simultaneously learn the kernel’s hyperparameters (like length scale) using maximum marginal likelihood. This makes the method robust even if the user doesn't know the "perfect" kernel beforehand.

Key Results and Performance

The authors evaluated SMC-KQ on several benchmarks, including synthetic 1D-10D toy problems and a complex ODE inverse problem (parameter estimation for a physical mass-spring model).

The results demonstrate a massive reduction in error. In simulation studies, SMC-KQ achieved a reduction in Mean Squared Error (MSE) of up to 8 orders of magnitude compared to standard KQ.

SMC-KQ (red line) achieves orders of magnitude lower Mean Squared Error compared to standard Monte Carlo and standard Kernel Quadrature as the number of function evaluations increases.

Even when accounting for the extra computational cost of running the SMC sampler, the method outperformed standard approaches on a "per-function-evaluation" basis. This makes it exceptionally valuable for real-world scenarios where evaluating the integrand itself is computationally expensive (such as solving a differential equation). Furthermore, by using a sampling-based approach rather than greedy optimization, SMC-KQ handles kernel misspecification gracefully.

Limitations and Future Directions

While powerful, SMC-KQ is not a silver bullet for every integration problem:

  • Computational Overhead: The SMC sampler introduces its own computational cost. If your function is extremely cheap to evaluate (like a simple polynomial), the overhead of SMC-KQ might outweigh the benefits. It is purpose-built for "expensive" integrands.
  • Initial Distribution: The method requires the user to select a starting reference distribution ($\Pi_0$). While a wide uniform or Gaussian usually works, it still requires some user intuition.
  • High Dimensions: Like all kernel methods, KQ faces the "curse of dimensionality." Scaling the method to very high dimensions may require specialized kernels with "dominating mixed smoothness."

Ultimately, this paper formalizes the "optimal sampling problem" for Kernel Quadrature as a legitimate research challenge, moving the field away from heuristic point selection toward a principled, error-minimizing framework.

Summary updated

BibTeX
@inproceedings{briol2017sampling,
  author = {François-Xavier Briol and Chris J. Oates and Jon Cockayne and Wilson Ye Chen and Mark A. Girolami},
  title = {{On the Sampling Problem for Kernel Quadrature}},
  booktitle = {International Conference on Machine Learning},
  year = {2017},
  url = {https://openreview.net/forum?id=HJZHeob_-B},
}
Figure