Optimal Quantisation of Probability Measures Using Maximum Mean Discrepancy

Onur Teymur, Jackson Gorham, Marina Riabiz, Chris J. Oates

Introduction

Quantisation is the process of approximating a complex probability distribution $\mu$ with a small, discrete set of representative points $\{x_i\}_{i=1}^m$. This technique is fundamental to modern statistics and machine learning, particularly for numerical integration (cubature), experimental design, and compressing the extensive outputs of Markov Chain Monte Carlo (MCMC) simulations.

The primary challenge in quantisation is ensuring the discrete set accurately reflects the target distribution. The Maximum Mean Discrepancy (MMD) is widely regarded as the gold standard for measuring this "closeness." However, minimizing MMD is computationally intensive. Traditional "greedy" approaches are often myopic, selecting one point at a time without considering future placements, which can lead to sub-optimal configurations. Furthermore, searching for points in a continuous space is prone to local minima and high computational costs.

Non-Myopic Discrete Selection

This paper proposes a paradigm shift: instead of searching a continuous space, the algorithm selects points from a finite candidate set. This transition allows for the use of discrete optimization techniques. The core innovation is non-myopic selection, where a batch of $s$ points is selected simultaneously rather than sequentially.

By formulating this selection as an Integer Quadratic Programming (IQP) problem, the authors can utilize efficient off-the-shelf solvers like Gurobi to find exact solutions for moderate batch sizes. To scale to larger candidate sets, a mini-batching variant is introduced, where only a random subset of candidates is considered at each step.

Visualization of point selection on a Gaussian mixture. The algorithm strategically places points across the distribution's modes.

As shown in the visualization above, the non-myopic approach avoids the "traps" of myopic algorithms. Myopic selection often over-corrects; if initial points are near a mode, the next point might be placed in a low-probability region solely to balance the MMD score. Non-myopic selection ($s > 1$) smooths this process, leading to a more globally optimal distribution of points.

Efficiency and Performance

The integration of Kernel Stein Discrepancy (KSD) allows the method to handle target distributions known only up to a normalization constant, a common scenario in Bayesian inference. This "Stein Thinning" variant is particularly effective for MCMC output compression.

The trade-off between computational effort and statistical accuracy is a key consideration. The authors demonstrate that increasing the look-ahead batch size $s$ consistently improves the approximation quality (lower KSD) for a fixed number of points.

KSD vs. Wall-clock time for various mini-batch sizes (b) and look-ahead steps (s). Larger s values generally lead to lower KSD for the same computational budget.

In empirical tests, such as a 38-dimensional calcium signaling model, the mini-batched non-myopic algorithm achieved lower KSD in significantly less time than previous greedy methods. The results indicate that a ratio of $s/b \approx 0.1$ provides a good heuristic for balancing performance and speed.

Key Insights

  • Discrete vs. Continuous: Restricting the search to a discrete candidate set (like the original MCMC chain) avoids non-convex optimization issues while maintaining high approximation quality.
  • Theoretical Consistency: The authors provide proofs that the approximation converges to the target distribution as the candidate set and iterations increase, even with mini-batching.
  • Competitive Performance: The proposed method matches or exceeds the performance of state-of-the-art continuous optimization methods like Stein Variational Gradient Descent (SVGD) while being easier to implement.

Conclusion

By moving from continuous, myopic point selection to a discrete, non-myopic framework powered by IQP, this research provides a robust and efficient solution for probability measure quantisation. Future work may explore the optimal distribution for candidate sets and applications in compressing Bayesian Neural Network weights.

Summary updated

BibTeX
@inproceedings{teymur2021optimal,
  author = {Onur Teymur and Jackson Gorham and Marina Riabiz and Chris J. Oates},
  title = {{Optimal Quantisation of Probability Measures Using Maximum Mean Discrepancy}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2021},
}
Figure