Statistical-Computational Trade-offs for Density Estimation

Anders Aamand, Alexandr Andoni, Justin Y. Chen, Piotr Indyk, Shyam Narayanan, Sandeep Silwal, Haike Xu

Abstract

This paper investigates the fundamental limits of density estimation when constrained by both sample size and computational time. We demonstrate a "no free lunch" trade-off: for a broad class of algorithms, reducing the sample size below the domain size necessitates a query time that scales almost linearly with the number of candidate distributions. We provide the first formal lower bound for this trade-off using the list-of-points model and introduce a practical "Subset Algorithm" that achieves near-optimal performance for half-uniform distributions, outperforming existing benchmarks by significant margins.

Introduction

Density estimation is a cornerstone of statistics and machine learning, particularly in scenarios where an observer must identify an unknown distribution $q$ from a "library" of $k$ known candidate distributions. This task is prevalent in fields ranging from sensor profile identification to user behavior modeling. Ideally, a data structure for this task should be sample-efficient (requiring few samples from $q$), computationally fast (sublinear in $k$), and space-efficient.

While prior research indicated that achieving sublinear complexity in both samples and time was theoretically possible, the practical improvements remained marginal. This paper addresses the ultimate limits of this efficiency, asking: how much better can we actually get? The authors establish a rigorous "Statistical-Computational Wall" that defines the boundaries of what is achievable.

Theoretical Framework: The Lower Bound

To establish the fundamental hardness of the problem, the authors utilize the list-of-points model. This framework is a standard in theoretical computer science, capturing the behavior of most data-independent hashing techniques, such as Locality-Sensitive Hashing (LSH).

The proof relies on a mathematical reduction from Gap Subset Search (GapSS), a known hard problem. By framing density estimation as a complex optimization problem rooted in Information Theory—specifically utilizing KL-divergence—the authors prove that if the sample size $s$ is significantly smaller than the domain size $n$, the query time must increase. Specifically, they identify a "phase transition": if one uses only $n/\log^c k$ samples, the query time is forced to be at least $k^{1-o(1)}$, effectively requiring a linear scan of the entire library.

The Subset Algorithm: An Optimal Upper Bound

Complementing the lower bound, the authors introduce the Subset Algorithm, designed for the classic "hard case" of half-uniform distributions (distributions uniform over exactly half the domain). The algorithm operates in two phases:

  1. Preprocessing: The algorithm selects random small subsets of the domain and indexes which library distributions contain those specific subsets.
  2. Querying: Upon receiving samples from $q$, the algorithm searches for these pre-stored subsets within the sample set. Once a match is found, it generates a "shortlist" of candidate distributions. A final elimination process is then used to identify the correct distribution from this reduced set.

This approach demonstrates that a relatively simple subset-matching strategy can hit the theoretical performance ceiling that more complex previous methods, such as "FastTournament," struggled to reach.

Experimental Evaluation

The authors evaluated their algorithm using synthetic datasets of $k=50,000$ half-uniform distributions over a domain $n$. This setup is a benchmark for testing the limits of trade-offs in density estimation.

Key Results

  • Efficiency Gains: The Subset Algorithm achieved a 6x reduction in operations compared to standard elimination baselines.
  • Comparison to State-of-the-Art: When compared to the previous "FastTournament" algorithm, the Subset Algorithm required 20x fewer operations.
  • Preprocessing Speed: The new approach significantly improved preprocessing times, moving from quadratic to subquadratic complexity.
  • Theoretical Validation: The experiments confirmed the explicit formula derived by the authors for the trade-off between sample complexity ($1/s$) and the query time exponent ($\rho_q$).

Discussion and Future Work

This research successfully bridges the gap between Statistics and Computer Science by showing that the fundamental limits of density estimation are dictated by the same principles as Nearest Neighbor Search. However, certain limitations remain:

  • Model Scope: The lower bound is specific to the "list-of-points" model. It remains to be seen if "data-dependent" algorithms can exploit specific library structures to bypass these bounds.
  • Generalization: While the Subset Algorithm is near-optimal for half-uniform distributions, creating a similarly efficient data structure for arbitrary, non-uniform distributions remains an open challenge.
  • Real-World Application: Future studies are needed to determine how these statistical-computational trade-offs manifest in practical datasets, such as genomic sequences or high-frequency network traffic.

In conclusion, this work provides a definitive map of the trade-offs involved in density estimation, proving that we cannot have both minimal samples and minimal time without a significant cost in the other dimension.

Summary updated

BibTeX
@inproceedings{aamand2024statistical,
  author = {Anders Aamand and Alexandr Andoni and Justin Y. Chen and Piotr Indyk and Shyam Narayanan and Sandeep Silwal and Haike Xu},
  title = {{Statistical-Computational Trade-offs for Density Estimation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=PtD4aZPzcR},
}
Figure