[Paper Review] Learning-based Support Estimation in Sublinear Time
This paper proposes a learning-based approach to sublinear-time support size estimation by leveraging a machine learning predictor that estimates element frequencies. When the predictor is within a constant factor of true frequencies, the method reduces sample complexity to $\log(1/\varepsilon) \cdot n^{1 - \Theta(1/\log(1/\varepsilon))}$, significantly improving over the prior $O(n / \log n)$ bound, and achieves up to 3x accuracy gains in experiments on real-world datasets.
We consider the problem of estimating the number of distinct elements in a large data set (or, equivalently, the support size of the distribution induced by the data set) from a random sample of its elements. The problem occurs in many applications, including biology, genomics, computer systems and linguistics. A line of research spanning the last decade resulted in algorithms that estimate the support up to $ \pm \varepsilon n$ from a sample of size $O(\log^2(1/\varepsilon) \cdot n/\log n)$, where $n$ is the data set size. Unfortunately, this bound is known to be tight, limiting further improvements to the complexity of this problem. In this paper we consider estimation algorithms augmented with a machine-learning-based predictor that, given any element, returns an estimation of its frequency. We show that if the predictor is correct up to a constant approximation factor, then the sample complexity can be reduced significantly, to \[ \ \log (1/\varepsilon) \cdot n^{1-Θ(1/\log(1/\varepsilon))}. \] We evaluate the proposed algorithms on a collection of data sets, using the neural-network based estimators from {Hsu et al, ICLR'19} as predictors. Our experiments demonstrate substantial (up to 3x) improvements in the estimation accuracy compared to the state of the art algorithm.
Motivation & Objective
- To address the fundamental problem of estimating the number of distinct elements in large datasets using sublinear sampling.
- To reduce the sample complexity of support size estimation beyond the known $O(n / \log n)$ lower bound for traditional methods.
- To investigate whether machine learning predictors of element frequencies can enable more efficient estimation.
- To design and evaluate a novel algorithm that integrates predictor confidence with statistical estimation techniques.
- To empirically validate the method on real-world datasets with trained neural predictors, demonstrating improved accuracy and robustness.
Proposed method
- The algorithm partitions the probability range into geometrically increasing intervals to enable fine-grained estimation.
- It uses a predictor $\Pi(i)$ to assign sampled elements to intervals based on estimated frequencies.
- Within each interval, it applies a modified Wu-Yang estimator using Chebyshev polynomials with interval-specific parameters.
- The method incorporates a sanity check to filter out unreliable interval estimates, improving robustness.
- It dynamically selects interval bases to balance accuracy and stability, avoiding overfitting to poor predictions.
- Theoretical analysis shows that with a constant-factor accurate predictor, sample complexity drops to $\log(1/\varepsilon) \cdot n^{1 - \Theta(1/\log(1/\varepsilon))}$.
Experimental results
Research questions
- RQ1Can a machine learning predictor that estimates element frequencies improve the sample complexity of support size estimation?
- RQ2What is the theoretical sample complexity gain when the predictor is within a constant factor of true frequencies?
- RQ3How does the proposed algorithm maintain accuracy when the predictor becomes outdated or less accurate over time?
- RQ4To what extent can the method outperform the state-of-the-art Wu-Yang estimator in practice?
- RQ5How sensitive is the algorithm to predictor quality, and what mechanisms ensure robustness under imperfect predictions?
Key findings
- The proposed algorithm achieves a sample complexity of $\log(1/\varepsilon) \cdot n^{1 - \Theta(1/\log(1/\varepsilon))}$ when the predictor is within a constant factor of true frequencies, improving over the $O(n / \log n)$ bound.
- On the AOL dataset, the algorithm achieves a median 2.2x to 3.0x improvement in accuracy over the Wu-Yang estimator at sample sizes of 5% and 10% of $n$, respectively.
- On the IP dataset, the algorithm achieves a median 1.7x to 3.0x improvement over Wu-Yang at sample sizes of 1% and 2.5% of $n$, respectively.
- The algorithm remains robust over time, maintaining consistent performance even when the predictor becomes stale, as shown across multiple days and minutes in the AOL and IP datasets.
- The sanity check mechanism effectively filters unreliable interval estimates, preventing performance degradation when predictors are inaccurate.
- The performance of the algorithm converges to that of Wu-Yang when the predictor quality degrades, ensuring graceful degradation.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.