Nonparametric Divergence Estimation with Applications to Machine Learning on Distributions

Barnabás Póczos, Liang Xiong, Jeff G. Schneider

TL;DR

This paper introduces a novel framework for performing machine learning tasks directly on probability distributions, rather than fixed-dimensional feature vectors. They propose nonparametric estimators for divergences between distributions, enabling applications like embedding, clustering, and anomaly detection for data where each instance is itself a distribution.

What Problem Does This Paper Address?

Traditional machine learning algorithms excel at handling data where each instance is represented by a fixed-size vector of features. However, many real-world scenarios involve data that is naturally represented as a distribution (e.g., blood pressure measurements for a group of people, spectral data for galaxies). Estimating the "distance" or similarity between these distributions is crucial for tasks like grouping similar distributions, finding unusual ones, or visualizing their relationships. Existing methods often struggle with unknown, continuous distributions, requiring density estimation or making strong parametric assumptions. This paper addresses the challenge of estimating divergences between unknown probability distributions using only i.i.d. samples, and then leveraging these estimates for various machine learning tasks.

Methods

The core of the paper lies in developing nonparametric estimators for two key divergence measures: the L2 divergence and the Rényi divergence. These estimators are based on k-nearest neighbor (k-NN) statistics, avoiding the need for explicit density estimation. The authors leverage existing k-NN density estimators but adapt them to work with fixed k while still proving consistency for the divergence estimators.

The proposed divergence estimators are then used as input for standard machine learning algorithms. For instance:

  • Low-dimensional embedding: Multidimensional Scaling (MDS) and other manifold learning techniques are applied to the estimated pairwise divergences, treating distributions as points in a high-dimensional space.
  • Clustering and Classification: k-NN based algorithms are used, where the "distance" between instances is the estimated divergence between their underlying distributions.
  • Group Anomaly Detection: Anomaly scores are calculated based on the divergence of a group's distribution from its nearest neighbors in the training set.

Datasets

The paper evaluates their methods on several datasets:

  • Synthetic data: Uniform, Gaussian, and Beta distributions were used to generate synthetic data for demonstrating embedding capabilities.
  • Image data: The "bag-of-words" representation of images from Fei-Fei and Perona (2005) was used, where each image is treated as a distribution of local patch feature vectors. Specific categories like "MITmountain," "MITcoast," etc., were utilized.
  • Astronomical data: Galaxy spectra from the Sloan Digital Sky Survey (SDSS) were used. Clusters of galaxies were identified, and their spectral features were reduced to 2D for analysis.

Key Insights and Ideas

  • Distributions as First-Class Citizens: The paper shifts the paradigm from feature vectors to probability distributions as the fundamental units for machine learning.
  • Nonparametric Divergence Estimation: The key innovation is the development of consistent estimators for L2 and Rényi divergences that do not require density estimation, making them robust to unknown distribution forms.
  • k-NN for Divergences: Leveraging k-NN statistics for divergence estimation is a clever way to avoid complex parametric modeling or computationally expensive density estimation.
  • Unified Framework: The same divergence estimators can be applied to a wide range of downstream tasks (embedding, clustering, anomaly detection), demonstrating the generality of the approach.
  • Rényi vs. L2 Divergence: Empirical results suggest that the Rényi divergence estimator often performs better and is more robust, particularly to outliers, compared to the L2 divergence estimator.

Key Results

  • Embedding: The nonparametric estimators successfully revealed the underlying parameter structures of synthetic distributions and produced embeddings similar to ground truth, outperforming simple Gaussian estimation.
  • Image Clustering and Classification: The nonparametric Rényi divergence estimator achieved the best performance in clustering and classification tasks on image data, outperforming Gaussian estimation, GMM estimation, and a conventional "bag-of-word" approach. For classification, the NP Rényi estimator achieved a p-value of 5.33 × 10⁻⁴ compared to GMM-Rényi.
  • Group Anomaly Detection: The NP Rényi estimator performed best in detecting anomalous image categories and anomalous galaxy clusters, significantly outperforming parametric alternatives. In the galaxy cluster detection task, the NP L2 estimator also outperformed parametric methods.

Limitations and Future Work

  • Convergence Rates: The paper acknowledges that the convergence rates of their divergence estimators are currently unknown and are a direction for future research.
  • Theoretical Bounds: Deriving theoretical bounds on sample complexity for these distribution-based machine learning tasks is suggested as future work.
  • Sensitivity to Outliers: While the Rényi estimator appears more robust, the paper notes that the L2 estimator can be more sensitive to outliers.
  • Parametric Assumptions: The paper highlights that when data does not match parametric assumptions (like Gaussianity), parametric approaches can lead to poor divergence estimates. This suggests that nonparametric methods are crucial in such scenarios.

Summary updated

BibTeX
@inproceedings{poczos2011nonparametric,
  author = {Barnabás Póczos and Liang Xiong and Jeff G. Schneider},
  title = {{Nonparametric Divergence Estimation with Applications to Machine Learning on Distributions}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2011},
  url = {https://openreview.net/forum?id=L5EH6xhvrj},
}
Figure