Nonparametric Estimation of Renyi Divergence and Friends

Akshay Krishnamurthy, Kirthevasan Kandasamy, Barnabás Póczos, Larry A. WassermanICML 2014

Introduction

In machine learning and statistics, quantifying the difference between two probability distributions is a foundational task. This measurement—often calculated using "divergences" like $L_2$, Rényi-$ alpha$, and Tsallis-$ alpha$—is crucial for applications ranging from two-sample testing to measuring dissimilarity between images or neural response patterns.

While the mathematical formulas for these divergences are well-established, estimating them from finite samples is notoriously difficult in high dimensions. Simple "plug-in" methods, which first estimate the densities and then plug them into the divergence formula, converge very slowly as the number of dimensions ($d$) increases. Historically, the optimal "speed limit" (minimax rate) for these estimators was largely unknown, leaving researchers unsure of how much underlying data smoothness was needed to overcome the curse of dimensionality.

This paper introduces a novel method to estimate these divergences between two unknown probability distributions using samples. By applying mathematical "corrections" to standard plug-in estimators, the authors prove that it is possible to achieve the fast "parametric" convergence rate ($n^{-1/2}$) even in nonparametric settings, provided the distributions are sufficiently smooth.

Methods: Correcting the Plug-in Estimator

The authors propose a strategy based on the von Mises expansion, which functions similarly to a Taylor series expansion but for functionals. They evaluate three progressive levels of estimation:

  1. The Plug-in ($T_{pl}$): The baseline approach. It estimates the underlying densities using Kernel Density Estimation (KDE) and plugs them directly into the divergence formula.
  2. First-order Correction ($T_{lin}$): This method adds a linear term to the plug-in estimator to cancel out the largest error term. It is computationally efficient and relies on simple sample means.
  3. Second-order Correction ($T_{quad}$): This approach adds a quadratic term using a "projection estimator" based on orthonormal bases (like Fourier series). While more complex to compute, it is statistically more powerful.

The core insight is that while the initial density estimates might be "blurry" or biased, the errors in those estimates can be mathematically modeled and systematically subtracted away.

Key Insights and Ideas

The $d/4$ Smoothness Threshold

The most significant theoretical finding is the identification of $s > d/4$ as the critical smoothness index. If the underlying data's density is smoother than this ratio (where $s$ is smoothness and $d$ is dimensionality), you can estimate the divergence as efficiently as if you knew the underlying distribution's exact functional form—achieving the optimal $n^{-1/2}$ rate.

Bias-Variance Trade-off in Functionals

The paper highlights that estimating a functional (an integral of a density, like a divergence) is fundamentally easier than estimating the density itself. You do not need a perfect, high-resolution map of the distribution to get a highly accurate estimate of the total divergence between two distributions.

Computational vs. Statistical Efficiency

The authors identify a practical trade-off between their estimators. The first-order estimator ($T_{lin}$) is computationally elegant and often "good enough" for many applications. In contrast, the second-order estimator ($T_{quad}$) is statistically optimal but requires burdensome numerical integration in high dimensions.

Key Results

The theoretical convergence rates clearly demonstrate the value of the proposed corrections:

  • The Plug-in estimator is the slowest, converging at a rate of $n^{-\frac{s}{2s+d}}$.
  • The First-order estimator hits the optimal $n^{-1/2}$ rate when $s > d/2$.
  • The Second-order estimator hits the optimal $n^{-1/2}$ rate when $s > d/4$.
Theoretical rate of convergence ($\gamma$) as a function of smoothness ($s$) for different estimators.

Furthermore, the authors proved a minimax lower bound, showing that no estimator can perform better than $n^{-\frac{4s}{4s+d}}$ when the data is not smooth ($s \le d/4$). This confirms that their second-order estimator is nearly optimal.

Empirical Evaluation

Because this is a theoretical paper, the authors validated their findings using synthetic datasets where the true divergence is known, allowing them to precisely measure error rates across various dimensions ($d=1, 2$) and smoothness levels ($s=1, 2, 4$).

Numerical experiments confirmed that the corrected estimators consistently outperformed the standard plug-in method. By plotting the log-error against the log-number of samples, the authors empirically verified that the convergence slopes perfectly matched their theoretical predictions.

Log-error versus log-number of samples ($n$) for different smoothness levels ($s$), verifying theoretical convergence slopes.

Limitations and Future Work

While a significant theoretical step forward, the paper notes several limitations and avenues for future research:

  • Computational Complexity: The $T_{quad}$ estimator involves numerical integration and projection onto basis functions, which becomes computationally prohibitive as the dimension $d$ grows. For practical high-dimensional applications, the authors currently advocate for $T_{lin}$.
  • Boundary Bias: Standard density estimators struggle at the edges of a support domain. While the authors used a "mirroring" technique to mitigate this, boundary bias remains a challenge in complex, bounded spaces.
  • Other Divergences: The current work focuses on $L_2$, Rényi, and Tsallis divergences. Extending these high-order correction techniques to the popular Kullback-Leibler (KL) divergence or general $f$-divergences remains an open challenge.
  • Confidence Intervals: The paper focuses strictly on point estimates. Deriving formal confidence intervals for these estimators is a logical and necessary next step for practical statistical inference.

Summary updated

BibTeX
@inproceedings{krishnamurthy2014nonparametric,
  author = {Akshay Krishnamurthy and Kirthevasan Kandasamy and Barnabás Póczos and Larry A. Wasserman},
  title = {{Nonparametric Estimation of Renyi Divergence and Friends}},
  booktitle = {International Conference on Machine Learning},
  year = {2014},
  url = {https://openreview.net/forum?id=Sy-PpoWubH},
}
Figure