Abstract
Estimating an unknown probability distribution from independent samples is a cornerstone of statistical inference. While the empirical distribution—assigning probabilities based on observed frequencies—is the standard approach, it is often suboptimal, particularly for distributions with long tails. This paper introduces an "instance optimal" learning algorithm for discrete distributions that effectively "de-noises" empirical data. Our approach achieves an $\ell_1$ error that matches the performance of an ideal algorithm—one that knows the true unlabeled probabilities—up to a subconstant additive term. This result implies that for large samples, Bayesian assumptions regarding the "shape" of a distribution provide negligible benefit. Furthermore, our framework enables the accurate extrapolation of the number of distinct elements in samples up to a factor of $\log n$ larger than the original sample size, offering significant utility for fields like genomics and natural language processing.
Introduction
The fundamental task of learning a distribution from samples typically relies on the empirical distribution: if an event occurs $k$ times in $n$ trials, its probability is estimated as $k/n$. However, in many real-world scenarios, such as the distribution of words in a language or mutations in a genome, many elements appear rarely. In these "long-tail" cases, the empirical distribution is highly noisy.
Traditionally, researchers have mitigated this noise by applying Bayesian priors—assuming the distribution follows a specific functional form like a Power Law or Zipf distribution. This paper challenges that necessity, presenting an algorithm that performs optimally for every distribution without requiring any prior assumptions about its shape.
The Instance Optimal Framework
An algorithm is considered "instance optimal" if its performance on any specific instance (distribution) is nearly as good as the best possible performance achievable for that specific instance. In this context, we compare our algorithm against an "oracle" that is given the true multiset of probabilities (the "histogram") for free and only needs to correctly assign those probabilities to the observed elements.
Methodology
The proposed framework consists of two primary stages:
- Recovering the Histogram (Unlabeled Probabilities): The algorithm first estimates the multiset of probabilities present in the distribution without yet worrying about which label goes with which probability. It utilizes the "fingerprint" of the sample—a summary statistic representing how many elements appeared once, twice, etc. By solving a Linear Program (LP), the algorithm identifies a histogram that is most likely to have generated the observed fingerprint under Poisson sampling.
- Disambiguating the Histogram (Labeling): After estimating the unlabeled probabilities, the algorithm must assign them to specific observed elements. This is achieved through a "Poisson-weighted medians" approach. For an element observed $j$ times, the algorithm calculates the median probability from the estimated histogram, weighted by the likelihood that an element with that probability would appear exactly $j$ times. A "fattening" or regularization step is included to ensure robustness against minor errors in the initial histogram estimation.
Key Theoretical Insights
The Obsolescence of Bayesian Priors for Large Samples
A major conceptual takeaway of this work is that for sufficiently large samples, knowing the "shape" of a distribution (the Bayesian prior) is essentially redundant. The paper proves that if a sample is large enough to accurately label the elements, it is also large enough to have recovered the underlying shape of the distribution directly from the data. This suggests that the structure of the noise in random sampling is sufficiently regular that it can be mathematically "subtracted" to reveal the underlying truth.
Theorem 1: Instance Optimality
The core result, Theorem 1, establishes that the expected $\ell_1$ error of this algorithm is within an additive subconstant term $o(1)$ of the error achieved by the aforementioned oracle algorithm. This holds regardless of the complexity or tail behavior of the distribution $p$.
Extrapolation Beyond the Sample
The techniques developed for distribution estimation also solve the problem of support size estimation. The authors show that given $n$ samples, one can accurately predict the number of distinct elements that would be observed in a much larger sample of size $k$, where $k \le n \log n$. The error bound for this extrapolation is $k \cdot c \sqrt{\frac{k}{n \log n}}$, providing a rigorous foundation for predicting discovery rates in fields like genomics.
Performance and Comparison
The paper demonstrates that this instance optimal approach significantly outperforms classical estimators. For example, in specific synthetic scenarios where the Good-Turing estimator (and its modern variants) remains stuck at an $\ell_1$ error of 0.2, the proposed algorithm successfully reduces the error to 0.1. This highlights the algorithm's ability to succeed in regimes where traditional frequency-based de-noising fails.
Limitations and Future Directions
While theoretically groundbreaking, the practical application of this framework faces a few hurdles:
- Computational Complexity: Solving large Linear Programs can be computationally intensive compared to simple frequency counting, potentially limiting its use on extremely high-dimensional datasets.
- Metric Specificity: The current results are optimized for $\ell_1$ (Total Variation) distance. Different strategies may be necessary for other metrics, such as KL-divergence.
- Discrete Support: The assumption of a discrete support remains central to the current proofs. Extending these instance optimality results to continuous distributions is a significant open challenge for the field.
Conclusion
This work provides a new theoretical limit for distribution learning, proving that we can achieve near-perfect de-noising without the crutch of Bayesian assumptions. By focusing on instance optimality, the authors have created a robust framework that adapts to the inherent difficulty of the data at hand, offering both a deeper theoretical understanding of statistical inference and a practical tool for sample extrapolation.
Summary updated