Abstract
We present a derivation of the Kullback Leibler (KL)-Divergence (also known as Relative Entropy) for the von Mises Fisher (VMF) Distribution in $d$-dimensions.
Introduction
In many scientific domains—ranging from bioinformatics (protein folding angles) to geology (wind directions) and machine learning (normalized text embeddings)—data is naturally represented on the surface of a hypersphere rather than in flat Euclidean space. The von Mises-Fisher (VMF) distribution serves as the spherical analogue to the Gaussian distribution, characterized by a mean direction ($\mu$) and a concentration parameter ($\kappa$).
A fundamental requirement for Bayesian inference, clustering, and information-theoretic analysis on hyperspheres is the ability to calculate the Kullback-Leibler (KL) divergence between two VMF distributions. However, this calculation is notoriously difficult because the VMF's normalization constant involves complex Modified Bessel Functions. This technical note by T.R. Diethe addresses this gap by deriving a tractable upper bound for the KL-divergence in $d$-dimensions and a simple exact solution for the uniform prior case.
The von Mises-Fisher Distribution
The VMF distribution on the $(d-1)$-sphere $S^{d-1} \subset \mathbb{R}^d$ is defined by the probability density function: $$f(\mathbf{x}; \mu, \kappa) = C_d(\kappa) \exp(\kappa \mu^T \mathbf{x})$$ where $\|\mu\| = 1$, $\kappa \geq 0$, and $C_d(\kappa)$ is the normalization constant. The concentration parameter $\kappa$ determines how tightly the points are clustered around the mean direction $\mu$.
Methodology
The derivation relies on formal mathematical identities to simplify the log-partition functions:
- Integral Representations: Utilizing standard forms of the Modified Bessel Function of the First Kind ($I_\alpha(z)$).
- Exponential Integral Functions: Leveraging the relationship between Bessel functions and the Exponential Integral function ($E_\alpha(z)$).
- Dimensionality Constraints: The derivation focuses on odd dimensions ($d$), which allows for specific mathematical simplifications. For even dimensions, the author suggests a "null dimension" workaround where a zero-valued dimension is added to make the total dimension odd.
- Approximations: To achieve a closed-form upper bound, the author employs Jensen’s inequality and Stirling-like approximations for factorials to transform complex integrals into computable expressions.
Key Results
The paper provides two primary results for calculating the KL-divergence $KL(q||p)$ between two VMF distributions $q(\mu_q, \kappa_q)$ and $p(\mu_p, \kappa_p)$.
1. General Case Upper Bound
The author derives a closed-form upper bound for the general case. While the resulting formula involves sums of powers of $\kappa$ and logarithmic terms of $d$, it remains entirely computable without requiring numerical integration of Bessel functions. A key insight from this derivation is the influence of the term $\mu_q^T \mu_p$, which corresponds to the cosine distance between the mean directions, aligning with geometric intuition.
2. Uniform Prior Case
The most practical result occurs when the "prior" distribution $p$ is uniform (i.e., $\kappa_p = 0$). In this scenario, the KL-divergence simplifies significantly: $$KL(q||p) = \kappa_q \frac{I_{d/2}(\kappa_q)}{I_{d/2-1}(\kappa_q)} - \log C_d(\kappa_q) - \log \omega_d$$ where $\omega_d$ is the surface area of the unit $d$-sphere. The author provides a further simplified approximation: $$KL(q||p) \approx \kappa_q - d^* \log 2$$ where $d^* = \frac{d}{2} - 1$. This provides an efficient way to measure information gain over a non-informative prior.
Discussion and Limitations
The derived bounds offer a mathematical bridge for researchers working with directional data. Specifically, these results facilitate the development of Probably Approximately Correct (PAC)-Bayes bounds for models operating on hyperspheres, providing theoretical guarantees for machine learning applications.
However, some limitations remain:
- Tightness of the Bound: The general result is an upper bound, and its tightness may vary in regimes of extremely high concentration or very high dimensionality.
- Dimensionality: While the "null dimension" trick is effective, a native derivation for even dimensions would be mathematically more elegant.
Summary updated