Abstract
This paper presents a unified "meta-algorithm" for univariate density estimation that achieves information-theoretic sample optimality while maintaining nearly-linear computational efficiency. By leveraging piecewise polynomial approximations and a novel hierarchical optimization framework, the authors bridge the long-standing gap between statistical efficiency and practical runtime for a wide range of structured distribution families.
Introduction
Density estimation—reconstructing a probability distribution from observed samples—is a fundamental task in unsupervised learning. An ideal estimator should satisfy three criteria: sample optimality (using the minimum data required), computational efficiency (running in nearly-linear time), and robustness (working even under model misspecification). Historically, algorithms for univariate density estimation forced a trade-off between these properties. For instance, methods achieving optimal sample complexity often relied on high-degree polynomial time, while faster methods were statistically inefficient.
This research addresses these challenges by focusing on piecewise polynomial approximation. The authors demonstrate that if a distribution can be well-approximated by $t$ polynomial pieces of degree $d$, it is possible to find this approximation quickly and with minimal data, providing a robust solution for diverse distribution classes.
Methodology
The proposed approach utilizes a hierarchical three-level algorithm designed for both continuous and discrete domains:
- Iterative Merging: Instead of computationally expensive global optimization, the algorithm employs a greedy merging strategy. Starting with a fine partition (one interval per sample), it merges adjacent intervals based on the $\mathcal{A}_k$-norm (a metric derived from the VC inequality) to minimize error.
- $\mathcal{A}_k$-Projection Oracle: For each interval, the algorithm identifies the best-fitting non-negative polynomial by framing the task as a convex optimization problem.
- Fast Separation Oracle: To accelerate the optimization, the authors developed a novel separation oracle. This reduces the task of finding a separating hyperplane to a discrete combinatorial problem known as "maximum-scoring segment sets," which is solvable in nearly-linear time.
This modular design decouples statistical complexity (sample size $n$) from structural complexity (polynomial degree $d$), ensuring that runtime scales linearly with the data volume.
Results and Discussion
The algorithm was evaluated against synthetic datasets, including Gaussian Mixture Models (GMM), Beta mixtures, and Gamma mixtures. These tests confirmed the algorithm's robustness across various distribution shapes and support sizes.
As shown in the table above, the algorithm achieves optimal sample complexity $n = O(t(d+1)/\epsilon^2)$ and a nearly-linear runtime of $\tilde{O}(n \cdot \text{poly}(d))$. In practical benchmarks, the implementation processed one million samples in under 35 milliseconds for histogram hypotheses and under 0.3 seconds for piecewise linear hypotheses. The results demonstrate that the proposed method provides the first sample-optimal, nearly-linear time estimators for several complex classes, including mixtures of log-concave and Monotone Hazard Rate (MHR) distributions.
Conclusion
This work establishes a new state-of-the-art for univariate density estimation by proving that greedy merging strategies can achieve near-optimal error bounds. While the current framework is limited to one-dimensional distributions, it provides a robust foundation for future extensions into high-dimensional spaces. The small constant factors observed in empirical tests suggest that the algorithm is not only theoretically sound but also highly practical for large-scale data applications.
Summary updated