Hilbert space embeddings and metrics on probability measures

Bharath K. Sriperumbudur, Arthur Gretton, Kenji Fukumizu, Bernhard Schölkopf, Gert Lanckriet · DOI

Abstract

A Hilbert space embedding for probability measures has recently been proposed, with applications including dimensionality reduction, homogeneity testing, and independence testing. This embedding represents any probability measure as a mean element in a reproducing kernel Hilbert space (RKHS). A pseudometric on the space of probability measures can be defined as the distance between distribution embeddings: we denote this as $\gamma_k$, indexed by the kernel function $k$ that defines the inner product in the RKHS. We present three theoretical properties of $\gamma_k$. First, we consider the question of determining the conditions on the kernel $k$ for which $\gamma_k$ is a metric: such $k$ are denoted characteristic kernels. Unlike pseudometrics, a metric is zero only when two distributions coincide, thus ensuring the RKHS embedding maps all distributions uniquely (i.e., the embedding is injective). While previously published conditions may apply only in restricted circumstances (e.g. on compact domains), and are difficult to check, our conditions are straightforward and intuitive: bounded continuous strictly positive definite kernels are characteristic. Alternatively, if a bounded continuous kernel is translation-invariant on $\mathbb{R}^d$, then it is characteristic if and only if the support of its Fourier transform is the entire $\mathbb{R}^d$. Second, we show that there exist distinct distributions that are arbitrarily close in $\gamma_k$. Third, to understand the nature of the topology induced by $\gamma_k$, we relate $\gamma_k$ to other popular metrics on probability measures, and present conditions on the kernel $k$ under which $\gamma_k$ metrizes the weak topology.

Introduction

Comparing probability distributions is a fundamental challenge in statistics and machine learning, essential for tasks ranging from hypothesis testing to the evaluation of generative models. Classical metrics, such as Total Variation or Kullback-Leibler (KL) divergence, often face computational hurdles in high-dimensional spaces or exhibit extreme sensitivity to minor differences in distribution support.

A promising alternative is to embed a probability distribution $P$ into a high-dimensional Reproducing Kernel Hilbert Space (RKHS) as a single "mean element" $\mu_P$. The distance between these mean elements, denoted as $\gamma_k$, serves as a distance between the distributions themselves. However, a critical theoretical gap remained: under what conditions is this distance a true metric? If the embedding is not injective, two distinct distributions could map to the same point in the RKHS, resulting in a distance of zero. This paper establishes the theoretical foundations for "characteristic kernels"—those that ensure a unique, injective mapping.

Theoretical Framework

Mean Embeddings and Integral Probability Metrics

The authors represent a distribution $P$ by the function $\mu_P(\cdot) = \int k(\cdot, x) dP(x)$. The distance $\gamma_k$ is shown to be a specific instance of an Integral Probability Metric (IPM), where the class of functions is the unit ball in the RKHS. For $\gamma_k$ to be a valid metric, the kernel $k$ must be "characteristic," meaning the mapping $P \to \mu_P$ is injective.

Fourier Characterization

For translation-invariant kernels on $\mathbb{R}^d$ (such as the Gaussian kernel), the authors utilize Bochner’s Theorem to analyze the problem in the frequency domain. A central result of the paper is that a translation-invariant kernel is characteristic if and only if the support of its Fourier transform is the entire space $\mathbb{R}^d$. This provides a clear, actionable criterion for selecting kernels in practical applications.

Conditions for Characteristic Kernels

The paper simplifies the requirements for identifying characteristic kernels. It demonstrates that bounded, continuous, and strictly positive definite kernels are always characteristic. This is a significant improvement over prior conditions, such as "universal" kernels, which were often restricted to compact domains and difficult to verify.

Topological Analysis

To understand the behavior of $\gamma_k$, the authors compare it to classical metrics like the Dudley metric, Wasserstein distance, and Total Variation.

  1. Metrizing Weak Convergence: The authors identify specific conditions under which $\gamma_k(P_n, P) \to 0$ is equivalent to the weak convergence of distributions. This justifies the use of $\gamma_k$ (often implemented as Maximum Mean Discrepancy or MMD) as a robust proxy for distribution similarity.
  2. The Strength of the Metric: The analysis shows that $\gamma_k$ induces a "weaker" topology than Total Variation. In a topological sense, a weaker metric is often more desirable for convergence, as it allows a sequence of distributions to converge more easily, making it robust to high-frequency noise.
  3. Proximity of Distinct Distributions: Despite being a metric, the authors prove that distinct distributions can exist that are arbitrarily close in $\gamma_k$. This occurs because $\gamma_k$ essentially acts as a low-pass filter; distributions that differ only in very high-frequency oscillations will appear nearly identical in the RKHS.

Key Results and Implications

  • Standard Kernels are Robust: The paper confirms that the most widely used kernels in machine learning—including the Gaussian, Laplacian, and Matérn kernels—are characteristic on $\mathbb{R}^d$ because their Fourier transforms have non-zero support everywhere.
  • Compact Support: Interestingly, the authors prove that any compactly supported translation-invariant continuous kernel on $\mathbb{R}^d$ is characteristic.
  • Quantitative Bounds: The research provides explicit inequalities relating $\gamma_k$ to the Wasserstein distance ($W$) and the Dudley metric ($\beta$), showing that $\gamma_k \leq W$ and $\gamma_k \leq \beta$ under specific scaling conditions.

Conclusion and Limitations

While this work provides a rigorous foundation for kernel-based distribution embeddings, several challenges remain. The choice of kernel parameters, such as the bandwidth $\sigma$ in a Gaussian kernel, is critical; if $\sigma$ is poorly tuned, the distance $\gamma_k$ may become numerically indistinguishable from zero, even if it remains theoretically a metric. Furthermore, while the Fourier conditions are elegant, they are limited to translation-invariant kernels. Characterizing general kernels on non-compact domains remains an area for future research. Finally, the authors suggest that a Bayesian approach—averaging over multiple kernels—might further improve the ability to distinguish distributions in practical settings.

Summary updated

Abstract

A Hilbert space embedding for probability measures has recently been proposed, with applications including dimensionality reduction, homogeneity testing, and independence testing. This embedding represents any probability measure as a mean element in a reproducing kernel Hilbert space (RKHS). A pseudometric on the space of probability measures can be defined as the distance between distribution embeddings: we denote this as $γ_k$, indexed by the kernel function $k$ that defines the inner product in the RKHS. We present three theoretical properties of $γ_k$. First, we consider the question of determining the conditions on the kernel $k$ for which $γ_k$ is a metric: such $k$ are denoted {\em characteristic kernels}. Unlike pseudometrics, a metric is zero only when two distributions coincide, thus ensuring the RKHS embedding maps all distributions uniquely (i.e., the embedding is injective). While previously published conditions may apply only in restricted circumstances (e.g. on compact domains), and are difficult to check, our conditions are straightforward and intuitive: bounded continuous strictly positive definite kernels are characteristic. Alternatively, if a bounded continuous kernel is translation-invariant on $\bb{R}^d$, then it is characteristic if and only if the support of its Fourier transform is the entire $\bb{R}^d$. Second, we show that there exist distinct distributions that are arbitrarily close in $γ_k$. Third, to understand the nature of the topology induced by $γ_k$, we relate $γ_k$ to other popular metrics on probability measures, and present conditions on the kernel $k$ under which $γ_k$ metrizes the weak topology.
BibTeX
@article{sriperumbudur2010hilbert,
  author = {Bharath K. Sriperumbudur and Arthur Gretton and Kenji Fukumizu and Bernhard Schölkopf and Gert Lanckriet},
  title = {{Hilbert space embeddings and metrics on probability measures}},
  journal = {J. Mach. Learn. Res.},
  year = {2010},
  url = {https://openreview.net/forum?id=qjwrs8GOgT6},
}
Figure