Von Mises Derivatives in vMF Models
- Von Mises derivatives are the first and second derivatives of the mean-parameter log-normalizer, crucial for deriving the variance function in vMF models.
- They are computed via ODE integration, Bessel function inversion, and rational approximations, achieving absolute errors as low as 10⁻⁴ in high-dimensional settings.
- These derivatives are central to applications in maximum-likelihood estimation, mixture modeling, and clustering in high-dimensional directional statistics.
The von Mises derivatives are the first and second derivatives of the mean-parameter log-normalizer for the -dimensional von Mises-Fisher (vMF) distribution, expressed in terms of the mean parameter. These derivatives, denoted as and for , play a central role in forming the variance function and are essential for efficient likelihood and natural parameter computations in the mean parametrization of vMF models (Nonnenmacher et al., 2024). Their characterization is tightly linked to the underlying geometry and Bessel-function structure of the vMF family.
1. Mean-Parameter Form and Log-Normalizer
The vMF distribution on the unit sphere , with base measure , possesses both a natural parameterization () and a mean parameterization (), connected via the gradient of the log-normalizer. The mean parameter satisfies and admits a radial log-normalizer, , where 0. The density in mean parameters is
1
with 2 as the Legendre dual of the natural-parameter log-normalizer.
2. Characterization Through a Second-Order ODE
A fundamental property is that the trace of the covariance of 3 under the vMF is 4 (enforced by the hyperspherical support). The radial symmetry and exponential family structure lead to the following explicit scalar ODE for 5:
6
Boundary conditions are 7 given by the dual at zero, and 8.
3. Exact Solution via Modified Bessel Functions
An exact closed-form in terms of Bessel functions emerges by introducing
9
with 0 the modified Bessel function of the first kind. The first derivative, 1, is monotonic and invertible, yielding 2 such that 3.
The log-normalizer and its derivatives are then
4
5
The second derivative is
6
This formula coincides with the ODE's right-hand side.
4. Von Mises Derivative Formulas and Variance Function
The first and second von Mises derivatives, essential for variance calculations and parameter estimation, explicitly take the form:
- First: 7.
- Second: 8, with 9.
The mean-parameter variance function, or covariance of 0 given 1, is:
2
The trace matches 3, as enforced by the geometry.
5. Approximations for High-Dimensional and Efficient Computation
For large 4 or speed-critical scenarios, closed-form approximations to the von Mises derivatives improve computational tractability:
- Banerjee et al. (2005) approximation:
5
This yields absolute error 6 for 7.
- Refined rational approximation (8):
9
0
with 1, 2. This offers absolute error 3 for 4.
Empirically, these rational approximations are highly accurate except near 5.
6. Implementation and Computational Methods
Approaches for evaluating von Mises derivatives include:
- Direct ODE integration: Numerically solves the second-order ODE for 6 from 7 (8), using standard solvers.
- Bessel-inversion: Solves 9 for 0 by Newton–Raphson, leveraging continued-fraction expansions for the Bessel function ratio. Typically, 2–3 iterations suffice with 1–2 flops per step.
- Tabulation/interpolation: Precompute 3 and derivatives on a grid, enabling rapid lookup.
- Elementary rational approximations: Enable evaluation using only basic arithmetic operations (10–30 flops per call), with no recourse to special functions.
These allow efficient computation for large-scale inference in vMF models.
7. Applications and Significance
Von Mises derivatives facilitate key operations in maximum-likelihood estimation, mixture modeling, and Bregman clustering with vMF distributions. Accurate and efficient computation of 4 and 5 supports the use of mean-parameterizations in high-dimensional directional statistics, topic modeling, and signal processing. The variance function's explicit dependence on von Mises derivatives also provides insight into the geometry of hyperspherical exponential families and the practical implementation of inference algorithms (Nonnenmacher et al., 2024).