TL;DR
Kernel herding is a deterministic sampling algorithm that approximates probability distributions with a rate of convergence of $O(1/T)$, significantly outperforming the $O(1/\sqrt{T})$ rate of standard i.i.d. Monte Carlo sampling. By leveraging the kernel trick, the authors extend herding to continuous spaces, enabling the creation of small sets of "super-samples" that can compress large MCMC chains by over 90% while maintaining predictive accuracy.
What Problem Does This Paper Address?
In many machine learning tasks, we need to compute expectations of functions over complex probability distributions (e.g., Bayesian predictive distributions). The standard approach is Monte Carlo sampling, where we draw $T$ independent samples. However, the error in these estimates decreases slowly, at a rate of $O(1/\sqrt{T})$.
While "herding" was previously introduced as a way to generate samples that converge faster, it was limited to discrete spaces and finite feature sets. Attempting to use it in continuous spaces often resulted in "strange artifacts," such as representing a smooth Gaussian distribution with just two delta-peaks. The authors set out to fix this by moving herding into the infinite-dimensional world of Reproducing Kernel Hilbert Spaces (RKHS).
Methods
The authors introduce Kernel Herding, which reinterprets the original dynamical system as a greedy optimization process in an RKHS.
Instead of drawing random samples, the algorithm deterministically chooses the next sample $x_{t+1}$ to be the point that most "corrects" the current empirical distribution's deviation from the true distribution. The key steps are:
- Map to RKHS: Use a kernel function $k(x, x')$ to represent the distribution as a mean embedding $\mu_p$ in a Hilbert space.
- Greedy Update: At each step, select a new sample $x_{t+1}$ that maximizes the inner product with the current weight vector $w_t$ (which tracks the accumulated error).
- Negative Autocorrelation: Unlike Markov Chain Monte Carlo (MCMC), which often suffers from positive autocorrelation (samples staying near each other), kernel herding exhibits negative autocorrelation. The process "remembers" every previous sample and actively steers the next sample toward regions that have been under-sampled.
Datasets
The paper evaluates the algorithm using:
- Synthetic Data: 2D and 5D Gaussian Mixture Models (GMMs) with up to 100 components. These were used to visualize sample placement and measure convergence rates for various functions (moments and non-linear sines).
- UCI Spambase Dataset: A real-world dataset with 4601 instances and 57 attributes. This was used to test the algorithm's ability to compress posterior samples for Bayesian logistic regression.
Key Insights and Ideas
- The $O(1/T)$ Advantage: The most striking insight is the theoretical proof that kernel herding achieves $O(1/T)$ convergence for expectations of functions in the RKHS. This implies that for every $n$ herding samples, you would need $O(n^2)$ i.i.d. samples to reach the same level of precision.
- Super-Samples as Compression: Because the samples are so informative, they are dubbed "super-samples." The algorithm can be used to "filter" a massive, noisy MCMC chain into a tiny, high-quality subset.
- Deterministic vs. Stochastic: Herding turns sampling into a deterministic dynamical system. While it looks like a "weakly chaotic" process, it is actually performing a principled greedy minimization of the squared error in the Hilbert space.
Key Results
- Convergence Rates: In synthetic tests, the error for estimating moments and non-linear functions decreased at rates very close to the theoretical $O(T^{-1})$, whereas random sampling stuck to the expected $O(T^{-0.5})$.
- Bayesian Posterior Compression: On the Spambase dataset, the authors drew $10^5$ MCMC samples. Kernel herding was able to compress this set down to just 7000 samples (a 93% reduction) to achieve the same predictive precision as the full set. For classification accuracy, only 20 super-samples were needed to match the performance of 200 random samples.
Limitations and Future Work
- Convolution Requirement: To run kernel herding directly on a distribution $p$, one must be able to compute the convolution of $p$ with the chosen kernel. This is analytically possible for GMMs with Gaussian kernels but difficult for general distributions.
- Function-Agnostic Kernels: The current work uses standard kernels (like Gaussian) without considering the specific function being integrated. The authors suggest that designing kernels tailored to specific functions of interest is a promising research path.
- Scaling: While the paper demonstrates success in 5D and 57D (via PCA), the optimization step (finding the next $x_{t+1}$) can become computationally expensive in very high-dimensional continuous spaces. The authors propose that stochastic methods might be needed to approximate this step in the future.
Summary updated