Direct Ensemble Estimation of Density Functionals

Alan Wisler, Kevin R. Moon, Visar Berisha

TL;DR

This paper introduces a novel way to estimate complex statistical properties (density functionals) by treating $k$-Nearest Neighbor ($k$-NN) classifier error rates as "data-driven basis functions." By combining these with a clever ensemble technique that varies sample sizes to cancel out systematic errors, the authors achieve a "parametric" convergence rate—meaning the estimator's accuracy improves quickly regardless of how many dimensions your data has.

What Problem Does This Paper Address?

In fields like signal processing and machine learning, we often need to calculate "density functionals"—single numbers that summarize a probability distribution, such as entropy or the Hellinger distance (a measure of how different two distributions are).

Traditionally, you have two choices:

  1. Parametric methods: Assume the data follows a specific shape (like a Gaussian). This is fast but gives wrong answers if your assumption is slightly off.
  2. Non-parametric "plug-in" methods: Estimate the entire probability density first, then integrate. This is flexible but suffers from the "curse of dimensionality"—as the number of features ($d$) increases, the amount of data needed to get a good estimate grows exponentially.

The authors aim to bridge this gap: creating an estimator that doesn't require assuming a specific distribution shape but still converges at a fast, reliable rate even in high-dimensional spaces.

Methods

The paper's approach relies on two key innovations:

1. $k$-NN Error Rates as Basis Functions The authors observe that the error rate of a $k$-NN classifier isn't just a performance metric; it is mathematically linked to the underlying distributions. By looking at $k$-NN error rates for different values of $k$, they create a set of "basis functions." Just as you can approximate a complex curve using a sum of simple sines and cosines (Fourier series), the authors approximate complex density functionals by taking a weighted linear combination of these $k$-NN error rates.

2. The Ensemble "Sample-Size" Trick The main hurdle is that $k$-NN estimates are biased in high dimensions, with errors that vanish "glacially slow" (at a rate of $O(N^{-2/d})$). To fix this, the authors use an ensemble method. Instead of one estimator, they use several, each trained on a different subset of the data (varying the sample size $M_i = l_i N$).

By carefully choosing weights for these sub-estimators, they can mathematically cancel out the lower-order bias terms. They propose a "relaxed" optimization criterion that balances this bias cancellation against the risk of high variance, ensuring the total error drops at the ideal rate of $O(N^{-1})$ regardless of the data's dimensionality.

Datasets

The authors evaluated their method using synthetic multivariate normal (Gaussian) distributions.

  • Setup: Two classes in 10-dimensional space ($d=10$).
  • Complexity: The distributions were given unique elliptical covariance structures, which the authors previously identified as a particularly challenging scenario for direct estimation.
  • Goal: Estimate the squared Hellinger distance between these two 10D distributions.

Key Insights and Ideas

  • Re-interpreting Error: The "aha moment" is viewing a classifier's failure (its error rate) as a source of information about the geometry of the data distributions.
  • Bias as a Polynomial: The authors treat the bias of the $k$-NN estimator as a polynomial in terms of $N^{-1/d}$. By treating it this way, they can use linear algebra to "zero out" the most significant error terms.
  • Dimension Independence: The most striking claim is that this method achieves a convergence rate independent of dimension. Usually, high-dimensional estimation is a slog; here, the ensemble weights do the heavy lifting to keep the math efficient.

Key Results

  • Bias Reduction: In 10D tests, the proposed ensemble method significantly reduced finite-sample bias compared to a standard "single" $k$-NN estimate.
  • Faster Convergence: The Mean Squared Error (MSE) for the ensemble method decayed much faster as the sample size ($N$) increased.
  • Outperforming Plug-ins: The method generally outperformed the standard "plug-in" strategy (which uses $k$-NN density estimation followed by a divergence formula). While the plug-in method sometimes appeared to converge faster at very high $N$, it remained significantly more biased at lower sample sizes.

Limitations and Future Work

  • Smoothness Requirements: The proof for the $O(N^{-1})$ convergence rate requires the underlying densities to be "sufficiently smooth" (specifically, having a certain number of continuous derivatives). If the data distributions have sharp "cliffs" or discontinuities, the performance guarantees might not hold.
  • Tuning Parameters: The method introduces a tuning parameter, $\lambda$, to balance bias and variance. The results show that the "best" $\lambda$ changes depending on the sample size $N$, suggesting that an automated way to pick $\lambda$ would be a valuable future addition.
  • Boundary Effects: The theory assumes densities vanish near the boundaries of their support; real-world data with hard boundaries might require additional corrections.

Summary updated

BibTeX
@inproceedings{wisler2018direct,
  author = {Alan Wisler and Kevin R. Moon and Visar Berisha},
  title = {{Direct Ensemble Estimation of Density Functionals}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2018},
  url = {https://openreview.net/forum?id=3BlmA7z7wR},
}
Figure