Density Estimation via Discrepancy Based Adaptive Sequential Partition

Dangna Li, Kun Yang, Wing Hung WongNeurIPS 2016

Overview

Density estimation—determining the underlying probability distribution of a dataset—is a fundamental task in statistics and machine learning. However, practitioners often face a difficult trade-off:

  1. Parametric models (like assuming a Gaussian distribution) are simple but often too rigidly biased for complex, real-world data.
  2. Kernel Density Estimation (KDE) is flexible but notoriously difficult to tune due to bandwidth selection, and it typically fails in dimensions higher than six.
  3. Bayesian Partitioning methods (like Optional Pólya Trees) are accurate but computationally expensive because they require intensive sampling.

To solve this, researchers have introduced Discrepancy Based Sequential Partition (DSP), a fast nonparametric density estimation method. By borrowing the concept of "star discrepancy" from Quasi-Monte Carlo analysis, DSP achieves an optimal convergence rate of $O(n^{-1/2})$ while running up to 100 times faster than existing Bayesian partitioning methods.

The DSP Algorithm

The DSP algorithm builds a density estimate by recursively slicing the data domain into smaller hyper-rectangles, creating a binary partition tree.

Sequential binary partition and its tree representation

The algorithm's effectiveness relies on two core rules: how to split, and when to stop.

  • The Splitting Rule (The "Gap" Statistic): To find the best place to cut a region, the algorithm looks for the "maximum gap" between data points along each dimension. This makes the partition adaptive; rather than just splitting a box down the middle, it cuts where the density changes most sharply.
  • The Stopping Rule (Star Discrepancy): In a piecewise constant density model, the points within any given sub-region should ideally be uniformly distributed. The authors use "star discrepancy"—a mathematical measure of how much a set of points deviates from a perfectly uniform distribution—to decide if a region needs further partitioning. If the discrepancy is low, the region is deemed "uniform enough," and the splitting stops.
  • Copula Transformation: For high-dimensional data, the marginals are first transformed to a uniform scale $[0, 1]^d$, helping the algorithm focus purely on the dependencies between variables.

Key Results and Applications

The most novel contribution of this work is bridging two fields: applying Quasi-Monte Carlo (QMC) theory—usually reserved for numerical integration—to density estimation. This provides a rigorous theoretical foundation for a "greedy" algorithm, proving that the DSP estimator achieves an optimal convergence rate of $O(n^{-1/2})$.

2D density estimation results and convergence plots

The researchers evaluated DSP on synthetic datasets (2D, 5D, and 10D) as well as complex real-world datasets, including a 68-dimensional US Census dataset with 2.4 million points.

Performance Highlights: * Speed: In head-to-head tests against Bayesian methods (OPT and BSP), DSP achieved a 100x speedup on average while maintaining comparable accuracy (measured by Hellinger distance). * Scalability: While KDE is often limited to around 6 dimensions, DSP successfully scaled to 68 dimensions. * Concise Representation: Unlike KDE, which requires storing all data points to evaluate the density at a new location, DSP results in a simple tree of boxes. This makes it extremely lightweight for downstream applications.

Application: DSP-kmeans A good density estimator naturally finds the "modes" (peaks) of a distribution. The authors leveraged this to create DSP-kmeans, using the centers of the densest partition boxes to initialize $k$-means clustering. This approach consistently found lower-error clusterings than standard $k$-means++ seeding, especially when the number of clusters ($K$) was large.

Limitations and Future Directions

While highly efficient, DSP has a few limitations:

  • Geometric Bias: Because DSP uses axis-aligned hyper-rectangles, it is less effective for distributions with strong diagonal correlations (e.g., a heavily tilted Gaussian). The authors acknowledge this but argue the massive speed and simplicity trade-off is worth it.
  • Discrepancy Calculation Limits: Calculating exact star discrepancy is NP-hard in high dimensions. The authors use an $L_2$ approximation and randomized algorithms to keep computation feasible, leaving room for future research into even more efficient discrepancy proxies.

Ultimately, DSP offers a powerful, lightweight alternative to traditional density estimation, with promising future extensions into mode seeking, data visualization via level set trees, and data compression.

Summary updated

BibTeX
@inproceedings{li2016density,
  author = {Dangna Li and Kun Yang and Wing Hung Wong},
  title = {{Density Estimation via Discrepancy Based Adaptive Sequential Partition}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2016},
  url = {https://openreview.net/forum?id=ryWVF8-ubH},
}
Figure