(Learned) Frequency Estimation Algorithms under Zipfian Distribution
Not on the map. Why?
Abstract (arXiv)
beginabstract The frequencies of the elements in a data stream are an important statistical measure and the task of estimating them arises in many applications within data analysis and machine learning. Two of the most popular algorithms for this problem, Count-Min and Count-Sketch, are widely used in practice. In a recent work [Hsu et al., ICLR'19], it was shown empirically that augmenting Count-Min and Count-Sketch with a machine learning algorithm leads to a significant reduction of the estimation error. The experiments were complemented with an analysis of the expected error incurred by Count-Min (both the standard and the augmented version) when the input frequencies follow a Zipfian distribution. Although the authors established that the learned version of Count-Min has lower estimation error than its standard counterpart, their analysis of the standard Count-Min algorithm was not tight. Moreover, they provided no similar analysis for Count-Sketch. In this paper we resolve these problems. First, we provide a simple tight analysis of the expected error incurred by Count-Min. Second, we provide the first error bounds for both the standard and the augmented version of Count-Sketch. These bounds are nearly tight and again demonstrate an improved performance of the learned version of Count-Sketch. In addition to demonstrating tight gaps between the aforementioned algorithms, we believe that our bounds for the standard versions of Count-Min and Count-Sketch are of independent interest. In particular, it is a typical practice to set the number of hash functions in those algorithms to Theta (log n). In contrast, our results show that to minimize the expected error, the number of hash functions should be a constant, strictly greater than 1.
Key facts. Cited by 10 papers in the map (data through 7 Oct 2026). First posted on arXiv 14 Aug 2019.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 4; 2022: 2; 2023: 2; 2024: 1; 2025: 1.
10 papers.
- 2021Faster Matchings via Learned Dualscited by 56
- 2021Instance-Optimal Compressed Sensing via Posterior Samplingcited by 43
- 2023PolySketchFormer: Fast Transformers via Sketching Polynomial Kernelscited by 33
- 2022Algorithms with Prediction Portfolioscited by 19
- 2022Conformal Frequency Estimation using Discrete Sketched Data with Coverage for Distinct Queriescited by 10
- 2024Learning-Based Algorithms for Graph Searching Problemscited by 4
- 2021A Bayesian nonparametric approach to count-min sketch under power-law data streamscited by 3
- 2021Learning-augmented count-min sketches via Bayesian nonparametricscited by 2
- 2023Learning the Positions in CountSketchcited by 0
- 2025Compressive Meta-Learningcited by 0
- 2025Compressive Meta-Learning14 Aug 2025
- 2024Learning-Based Algorithms for Graph Searching Problems27 Feb 2024
- 2023PolySketchFormer: Fast Transformers via Sketching Polynomial Kernels2 Oct 2023
- 2023Learning the Positions in CountSketch11 Jun 2023
- 2022Conformal Frequency Estimation using Discrete Sketched Data with Coverage for Distinct Queries9 Nov 2022
- 2022Algorithms with Prediction Portfolios22 Oct 2022
- 2021Faster Matchings via Learned Duals20 Jul 2021
- 2021Instance-Optimal Compressed Sensing via Posterior Sampling21 Jun 2021
- 2021Learning-augmented count-min sketches via Bayesian nonparametrics8 Feb 2021
- 2021A Bayesian nonparametric approach to count-min sketch under power-law data streams7 Feb 2021