SURF: A Simple, Universal, Robust, Fast Distribution Learning Algorithm

Yi Hao, Ayush Jain, Alon Orlitsky, Vaishakh Ravindrakumar

Abstract

Estimating probability distributions from finite samples is a fundamental task in statistics and machine learning. We present SURF, a novel algorithm that utilizes piecewise polynomials for distribution estimation. SURF is significantly faster and more adaptive than previous state-of-the-art methods. By replacing complex optimization with simple empirical mass interpolation and a divide-and-conquer merging strategy, SURF achieves near-optimal accuracy in near-linear time and is naturally parallelizable.

Introduction

Agnostic learning aims to find a distribution estimate that is nearly as good as the best possible fit within a specific class, such as polynomials. While previous state-of-the-art algorithms like ADLS provided theoretical guarantees, they were often computationally expensive, required prior knowledge of the number of polynomial pieces ($t$), and were difficult to scale.

SURF (Simple, Universal, Robust, and Fast) addresses these challenges. It eliminates the need for complex optimization and pre-defined parameters, automatically determining the optimal number of pieces based on the data. The algorithm's efficiency stems from two key insights: low-degree polynomial interpolation on sample-defined intervals is sufficient for accuracy, and a structured binary hierarchy can drastically reduce the search space for optimal partitions.

Methods

The SURF algorithm relies on two primary routines:

  1. Interpolation (INT): Instead of complex optimization, INT matches the empirical mass on $d+1$ sub-intervals defined by sorted samples (statistically equivalent blocks). This simplicity allows for rapid computation without sacrificing theoretical accuracy bounds for low-degree polynomials ($d \le 8$).
  2. Merge and Compare (MERGE & COMP): SURF constructs a global estimate by partitioning the domain into polynomial pieces. It employs a binary hierarchy of partitions where interval masses are restricted to powers of $1/2$. This divide-and-conquer approach enables the efficient evaluation of a super-polynomial number of potential partitions in $O(n \log n)$ time.
SURF density estimate $\tilde{f}(x)$ compared to true density $f(x)$ with $n=65536$ samples, demonstrating high accuracy.

Results and Discussion

SURF was evaluated against synthetic mixtures (Beta, Gamma, Gaussian) and real-world datasets, including US Census salary data and sensorless drive diagnosis signals.

Performance and Scalability

SURF operates in $O(n \log^2 n)$ time, an improvement over the $O(n \log^3 n)$ complexity of ADLS. Its reduced dependence on the polynomial degree $d$ makes higher-degree approximations more feasible. Furthermore, SURF's local construction makes it highly suitable for distributed computing environments.

Accuracy and Robustness

In experimental trials, SURF consistently outperformed ADLS in terms of $\ell_1$ error, particularly when ADLS was provided with an incorrect estimate for the number of pieces $t$. For degrees $d \le 8$, SURF maintains an $\ell_1$ error factor within 3 of the best possible fit.

Comparison of $\ell_1$ error rates between SURF and ADLS on a Gamma mixture. SURF demonstrates superior robustness and lower error without requiring the parameter $t$.

On real-world datasets, SURF effectively recovered complex features like clusters and modes, achieving lower perplexity than standard Kernel Density Estimators (KDE).

Conclusion

SURF represents a significant advancement in univariate distribution learning, offering a fast, simple, and robust alternative to existing optimization-based methods. Future work includes extending these techniques to high-dimensional data, closing the small theoretical gap in Gaussian minimax rates, and addressing potential oscillations in very high-degree polynomial approximations.

Summary updated

BibTeX
@inproceedings{hao2020surf,
  author = {Yi Hao and Ayush Jain and Alon Orlitsky and Vaishakh Ravindrakumar},
  title = {{SURF: A Simple, Universal, Robust, Fast Distribution Learning Algorithm}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
}
Figure