Improved Frequency Estimation Algorithms with and without Predictions
Anders Aamand, Justin Y. Chen, Huy Lê Nguyen, Sandeep Silwal, Ali Vakilian
Abstract
Estimating frequencies of elements appearing in a data stream is a key task in largescale data analysis. Popular sketching approaches to this problem (e.g., CountMin and CountSketch) come with worst-case guarantees that probabilistically bound the error of the estimated frequencies for any possible input. The work of Hsu et al. ( 2019 ) introduced the idea of using machine learning to tailor sketching algorithms to the specific data distribution they are being run on. In particular, their learning-augmented frequency estimation algorithm uses a learned heavy-hitter oracle which predicts which elements will appear many times in the stream. We give a novel algorithm, which in some parameter regimes, already theoretically outperforms the learning based algorithm of Hsu et al. without the use of any predictions. Augmenting our algorithm with heavy-hitter predictions further reduces the error and improves upon the state of the art. Empirically, our algorithms achieve superior performance in all experiments compared to prior approaches. On the other hand, in the low space regime of B = poly(log n), our algorithm, without predictions, already archives close to a logarithmic factor improvement over even learned CS. Furthermore, our learning-augmented algorithm achieves a logarithmic factor improvement over classical CS across all space regimes, whereas the learned CS only achieves a logarithmic factor improvement in the regime B = n 1-o(1) . Furthermore, our learned version outperforms or matches learned CS in all space regimes.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Cited by top-tier papers6
- Online Learning with Sublinear Best-Action QueriesMatteo Russo, Andrea Celli, Riccardo Colini-Baldeschi, Federico Fusco et al.NeurIPS 2024 · 4 citations
- Optimal Algorithms for Augmented Testing of Discrete DistributionsMaryam Aliakbarpour, Piotr Indyk, Ronitt Rubinfeld, Sandeep SilwalNeurIPS 2024 · 3 citations
- Learning-Augmented Streaming Algorithms for Correlation ClusteringYinhao Dong, Shan Jiang, Shi Li, Pan PengNeurIPS 2025 · 1 citation
- Discovering Data Structures: Nearest Neighbor Search and BeyondOmar Salemohamed, Laurent Charlin, Shivam Garg, Vatsal Sharan et al.NeurIPS 2025
- Learning-Augmented Frequent DirectionsAnders Aamand, Justin Y. Chen, Siddharth Gollapudi, Sandeep Silwal et al.ICLR 2025
Builds on18
- Online metric algorithms with untrusted predictionsAntonios Antoniadis, Christian Coester, Marek Eliás, Adam Polak et al.ICML 2020 · 170 citations
- Optimal Robustness-Consistency Trade-offs for Learning-Augmented Online AlgorithmsAlexander Wei, Fred ZhangNeurIPS 2020 · 129 citations
- Faster Matchings via Learned DualsMichael Dinitz, Sungjin Im, Thomas Lavastida, Benjamin Moseley et al.NeurIPS 2021 · 98 citations
- Online Scheduling via Learned WeightsSilvio Lattanzi, Thomas Lavastida, Benjamin Moseley, Sergei VassilvitskiiSODA 2020 · 83 citations
- Customizing ML Predictions for Online AlgorithmsKeerti Anand, Rong Ge, Debmalya PanigrahiICML 2020 · 65 citations
Related papers
- Putting the "Learning" into Learning-Augmented Algorithms for Frequency EstimationElbert Du, Franklyn Wang, Michael MitzenmacherICML 2021 · 30 citations
- Learning-Augmented Data Stream AlgorithmsTanqiu Jiang, Yi Li, Honghao Lin, Yisong Ruan et al.ICLR 2020 · 53 citations
- Composable Sketches for Functions of Frequencies: Beyond the Worst CaseEdith Cohen, Ofir Geri, Rasmus PaghICML 2020 · 17 citations
- Frequency Estimation with One-Sided ErrorPiotr Indyk, Shyam Narayanan, David P. WoodruffSODA 2022 · 1 citation
- Learning-Augmented Moment Estimation on Time-Decay ModelsSoham Nagawanshi, Shalini Panthangi, Chen Wang, David P. Woodruff et al.ICLR 2026 · 3 citations
