potentialpaper

The Heavy Hitter Oracle: Enhancing Frequency Estimation in Skewed Data Streams

Lisa Schmierer, Ioana-Oriana Bercea

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

TL;DR. Frequency Estimation, Heavy Hitters, Streaming Algorithms, Algorithms with Predictions

Abstract. Estimating element frequencies in data streams is a fundamental problem when processing large amounts of data. Recent approaches suggest learning-augmented algorithms that can access a heavy-hitter oracle that knows the most frequent elements. In this paper, we challenge the idea of these complex oracles: First, we show that heavy-hitter predictions do not necessarily yield significant efficiency gains in frequency estimation. We prove that a classical algorithm using slightly more memory, Θ(Blog⁡B)\Theta(B \log B) instead of Θ(B)\Theta(B), matches the performance of learning-augmented methods with perfect predictions. Furthermore, we show that given (perfect) predictions, a trivial mechanism achieves the same performance as state-of-the-art learning-augmented algorithms. On the algorithmic side, we introduce SpaceR, a single-pass algorithm that matches the accuracy of existing two-pass prediction-based methods without requiring any predictions. SpaceR uses randomized sampling to identify and track frequent elements in one pass through the data, achieving near-perfect frequency recovery with minimal memory on both synthetic and real-world datasets.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
5 May 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]—[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:43 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

The paper studies frequency estimation using limited space in skewed data streams. Previous works proposed methods using a learning oracle to improve the performance in skewed data streams whose frequencies follow the zipfian distributions. Other previous works showed that one can match the performance without the learning oracle using slightly more space, in some regime of parameters. This paper improves the analysis to all regimes of parameters. Furthermore, the paper proposes a new algorithm, SpaceR, that empirically matches the learning augmented methods without any oracle.

All reviewers are supportive of the paper and recommend acceptance with varying levels of enthusiasm.

Some weaknesses pointed out by the reviewers:

  • the proposed learned algorithm is only for perfect oracle whereas typically oracle can be noisy
  • the new unlearned algorithm is only backed by the experiment, and there is no theoretical analysis. Furthermore, some additional explanation, maybe with visual representation, for spaceR would be helpful.

The authors promised to include new visualization for spaceR. All reviewers remain supportive of the paper and advocate for its acceptance.

Final justification

Please see the metareview.

Area Chair Xe67 · Meta-reviewOpenReview ↗
Final justification
Please see the metareview.
Read meta-review
Meta-review

The paper studies frequency estimation using limited space in skewed data streams. Previous works proposed methods using a learning oracle to improve the performance in skewed data streams whose frequencies follow the zipfian distributions. Other previous works showed that one can match the performance without the learning oracle using slightly more space, in some regime of parameters. This paper improves the analysis to all regimes of parameters. Furthermore, the paper proposes a new algorithm, SpaceR, that empirically matches the learning augmented methods without any oracle.

All reviewers are supportive of the paper and recommend acceptance with varying levels of enthusiasm.

Some weaknesses pointed out by the reviewers:

  • the proposed learned algorithm is only for perfect oracle whereas typically oracle can be noisy
  • the new unlearned algorithm is only backed by the experiment, and there is no theoretical analysis. Furthermore, some additional explanation, maybe with visual representation, for spaceR would be helpful.

The authors promised to include new visualization for spaceR. All reviewers remain supportive of the paper and advocate for its acceptance.

Reviewer Gg6nOpenReview ↗
Rating
5/6
Confidence
4/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
theory
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

In this paper the authors examine the problem of frequency estimation in data streams from the perspective of learning-augmented algorithm design. The main contribution derived in their analysis is that the current learning-augmented frequency estimation algorithm can be rivaled by incresing the memory budget. The authors also demonstrate other trade-offs in several typical scenarios. A new frequency estimation algorithm based on random admission is proposed and is demonstrated to acheive satisfactory performance against SOTA solutions

Strengths and weaknesses

This paper makes a timely contribution in the emerging field of learning-augmented algorithm design. Its main merit is the dmonstration on the performance limit of the learning-augmented algorithms compared with the non-augmented peers in various parameter settings. I do not see particular weakness.

Questions

Regarding the performance limit of the learning-augmented frequency estimation algorithms mentioned in the paper, I wonder if the fact that they are ''out-performed'' by the non-augmented peers is due to the following reasons: (1) their design is still not optimal, i.e., we are still not exploring the potential of learning, or there are better designs; (2) the performance metric is not properly formulated in certain sense.

Limitations

yes

Final justification

I am satisfied with the response and maintain my score.

Formatting concerns

none

1 comment
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for their comments and the questions raised.

(1) Regarding the optimality of design, we want to share the following thoughts:

To improve on the current learning-based setup (an oracle predicting heavy hitters, plus a sketch for the rest), one would need to improve the estimates for the remaining elements, i.e., those not predicted as heavy hitters. These remaining elements have frequencies on the order of O(AB)O( \frac{A}{B}), where A=Nlog⁡(n)A=\frac{N}{\log (n)}.

As pointed out by [1], for any estimator, if its expected additive error is at least as large as an element's true frequency, outputting zero instead of the estimate minimizes the error. Our setting, with space O(B)O(B) and an oracle predicting O(B)O(B) heavy hitters, leaves O(B)O(B) elements with frequencies O(AB)O(\frac{A}{B}). This means an improved algorithm would need an additive error of o(AB)o(\frac{A}{B}), i.e., strictly smaller than A/B, to actually help with the remaining elements as only then is an estimate more precise than outputting zero.

This is where we suspect existing designs might fail, as for hash-based sketches, collisions alone intuitively introduce noise on the order of A/B. Specifically, algorithms like CountMin, CountSketch, and CS++ work by hashing elements into buckets of an array and estimating frequencies from bucket totals. With space O(B), this leaves (at most) O(B)O(B) buckets per hash function / row. Since there are also O(B)O(B) remaining elements, each with frequency O(AB)O(\frac{A} {B}), on average each bucket ends up containing about one such element, leading to O(B)O(B) elements which have error that is too large.

However, as pointed out in the discussion section of the paper, another approach for improved performance in learned settings might be to reconsider the type of learned advice that algorithms use.

(2) The choice of metric naturally influences the error here too. The weighted error as defined in the paper weights each element's error by its own frequency fif_i. Hence, it punishes errors on heavy hitters far more than errors on rare elements, which makes outputting zero for rare elements comparably cheaper, as the error metric is biased towards more heavy elements. This might not suit settings where mid-frequency elements matter more. That said, we think the metric isn't doing all the work: outputting zero whenever the sketch's own noise exceeds an element's true frequency minimizes the error independent of how errors are weighted later. We'd expect this underlying effect to persist under other reasonable metrics too. This is in line with the supplementary results in Appendix D that compare the weighted and unweighted error.

[1] Improved frequency estimation algorithms with and without predictions. Anders Aamand, Justin Y. Chen, Huy Lê Nguyễn, Sandeep Silwal, and Ali Vakilian. 2023. [NeurIPS'23]

Reviewer f7GfOpenReview ↗
Rating
5/6
Confidence
2/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
theory
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The paper focuses on heavy-hitter prediction in Zipfian data streams, advancing current methods in terms of both space complexity and estimation quality. It challenges the need for complex learned oracles, showing that a classical algorithm with only a logarithmic increase in space matches learning-augmented methods, and introduces SpaceR, a single-pass algorithm that matches the performance of two-pass prediction-based methods.

Strengths and weaknesses

Strengths:

  • The paper is well written, accessible, and easy to read. It presents its results clearly and (apparently) honestly, and defines its contributions precisely.
  • The experimental setup is also fair: it counts the space needed to build and store the oracle within the overall budget, making the comparison against learned methods more honest.

Weaknesses

  • I find no major weaknesses. My main concern is the complete absence of graphical representations that would help non-experts understand the problem, i.e., a simple schematic of how SpaceR works would make the algorithm far more intuitive. Second, SpaceR, the central algorithmic contribution, is justified only empirically, with no theoretical guarantee on its error (the authors do acknowledge this).
Questions

I don't have any further suggestions.

Limitations

yes

Final justification

The authors provided clarification on the theoretical aspects and will add a graphical abstract in the revised version. I raise my score.

Formatting concerns

no concerns

2 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We are happy to hear the paper was well received and thank the reviewer for the constructive feedback. We will certainly include graphics of the update rule of SpaceR as well as a figure to illustrate the experiment setup in the final version.

We consider the theoretical guarantees of SpaceR to be the most important open question raised by this work. In that direction, it seems that existing approaches for getting guarantees for Zipfian distributions (such as in Berinde et al [1]) do not apply here and a new set of techniques might be required. For example, one possible direction of attack would be to try to bound the performance of SpaceR purely as an oracle for detecting the top-kk heavy hitters. Figure 3 shows that it performs almost as well as a perfect oracle. This approach would be different from previous works such as [1], which first tried to give error bounds on frequency estimation for all elements (and from there, deduced rather weak guarantees on what that means for actually detecting the top-kk heavy hitters). If we know how well we can detect the top-kk heavy hitters, we can then employ our analysis for the Trivial Alternative or the one for Learned CountSketch++ to get bounds on the overall error. This direction of reasoning seems to work if we assume something about the order in which these heavy hitters appear in the stream but, unfortunately, it is unclear how to generalize it to arbitrary stream orderings.

[1] Space-optimal heavy hitters with strong error bounds, Berinde, R., Indyk, P., Cormode, G., and Strauss, M. [J. . ACM Trans. Database Syst., 35(4)] URL https://doi.org/10.1145/1862919.1862923.

Reviewer f7Gf · CommentOpenReview ↗

Minor concerns addressed

Thanks to the authors for addressing the concerns. I'll raise my score.

Reviewer fN9POpenReview ↗
Rating
5/6
Confidence
4/5
Quality
4/4
Clarity
4/4
Significance
4/4
Originality
4/4
Contribution type
theory
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The paper studies learning-augmented algorithms for frequency estimation from a new perspective. Motivated by the impracticality and theoretical inefficiency of oracles used in previous work, the paper asks whether heavy-hitter predictions are truly necessary for obtaining significant gains. The paper first revisits CountSketch++ (CS++) without predictions and provides an improved analysis. Based on this analysis, the paper proves that actually an unlearned version, using only a logarithmic factor more space, can asymptotically match the theoretical guarantee of learned CS++ with perfect predictions. The paper further proposes a simple trivial alternative to learned CS++, which also achieves an asymptotically matching bound. Finally, the paper introduces SpaceR, a single-pass oracle-free randomized algorithm that empirically matches the performance of SOTA two-pass learning-augmented algorithms (where the first pass is used to construct the oracle). Experiments on both synthetic and real-world datasets show that the proposed algorithms can be competitive with, and sometimes outperform, learned and unlearned baselines.

Strengths and weaknesses

Strengths

  • S1. The paper is well motivated in revisiting existing learning-augmented algorithms for frequency estimation, especially by explicitly accounting for the construction and storage costs of the oracle, which are often treated as free in prior work. This perspective provides useful insight into the area of learning-augmented streaming algorithms.
  • S2. The theoretical analyses are generally sound, although I did not verify every technical detail of the proofs.
  • S3. The paper is extremely well-written and easy to follow.

Weaknesses

  • It seems that the proposed learning-based algorithms assume that perfect heavy-hitter oracles are available. I understand that this suffices to show the competitiveness of unlearned algorithms. However, this also leaves the accuracy-space trade-off of algorithms using noisy oracles unclear.
Questions
  • Q1. If the heavy-hitter oracle is imperfect, how does the trivial alternative in Section 5 perform?
  • Q2. I am interested in whether the proposed perspective can provide insights for learning-augmented graph streaming algorithms (which I think could also be discussed as part of the related work). For graph problems, training an oracle model using (graph) neural networks may naturally require preserving, or at least accessing, a large fraction of the edges, which could incur a substantial space cost and potentially undermine the motivation for using streaming algorithms.
Limitations

Minor presentation issues:

  • Lines 237, 238, 314: cminc_{min} -> cmin⁡c_{\min}
  • The text in Figure 1 is too small and hard to distinguish.
Final justification

The authors' rebuttal addressed some of my concerns and provided helpful clarifications. I have also read the other reviewers' comments. Taking these points together, I will maintain my current positive score, as I believe the paper would be a valuable addition to the learning-augmented algorithms literature.

Formatting concerns

N/A

2 comments
Authors · RebuttalOpenReview ↗
Rebuttal

We thank the reviewer for the valuable feedback and address the questions below.

Question 1

We agree that assuming a perfect oracle is a very strong assumption, and indeed, understanding the accuracy/space trade-offs is important. Some comments to be made from this perspective about our current contribution:

  • Experimentally, in the presence of imperfect oracles such as Misra-Gries and SpaceSavings, the Trivial Alternative doesn’t decay as gracefully as CountSketch++ (Fig 1). Intuitively, this is because missing a single top-ranked element ii (i.e., i=O(1)i = O(1)) contributes fi2N=O(Nlog2(n))\frac{f^2_i}{N} = O(\frac{N}{log^2(n)}) to the weighted error in the Trivial Alternative (while for learned CountSketch++, the missed heavy hitters still pass through its sketch and perhaps incur a lower error, although not necessarily small).
  • From a theoretical perspective, existing bounds on the performance of Misra-Gries and SpaceSavings for identifying the top-kk heavy hitters are not sufficient to get good bounds on what happens if we use them as oracles: using BB counters, we can correctly identify the top-k=Θ(Blog⁡(n))k= \Theta(\frac{B}{\log(n)}) heavy hitters. This in turn makes the Trivial Alternative as good as the unlearned CountSketch and the learned CountSketch++ as good as its unlearned counterpart.
  • The only (theoretical) bounds we are aware of for the problem of correctly identifying the top-kk heavy hitters are upper bounds that require O(k2log⁡(n))O(k^2 \log (n)) counters (much more than our budget of k counters, even for Zipfian distributions). This is a very interesting gap to study, indeed, especially in light of our next comment:
  • Experimentally, the Trivial Alternative performs just as well as CountSketch++ when SpaceR is used as an oracle(Fig 2) (and in fact, it does just as well as using SpaceR directly). This is in fact the inspiration behind proposing SpaceR as a standalone (unlearned) algorithm - as a way to construct an oracle that is better than Misra-Gries and SpaceSavings, and close in performance to that of the perfect oracle (as in Fig 3).

Overall, the point that we aim to make with the Trivial Alternative is to show exactly that assuming a perfect oracle for the top-kk heavy hitters is – indeed – way too strong an assumption, since knowing the identity of the heavy hitters alone already leads to SOTA performance. We consider the Trivial Alternative to be an argument to say that the reported gains of learned methods come mainly from oracle strength, not necessarily algorithmic novelty, as current learned designs seem to largely outsource the hard part of the problem to the oracle. In the final version, we will include the above technical discussion and make this argument more explicit.

Question 2

We agree that explicitly accounting for the cost of building and storing the oracle is also important for learning-augmented graph streaming algorithms. As mentioned by the reviewer, we would expect an analogous question to arise there: does the predictive gain of a GNN-based oracle (over lightweight heuristics) actually justify its space/training overhead, once that overhead is honestly accounted for (in addition to storing the (G)NN oracle itself)? We suspect that the answers are more dire there, even though in graph streaming, usual space budgets allow us to store O(n)O(n) edges and do multiple passes over the data. One candidate for this question could be, for instance, the “noisy prediction model” employed by [2] for solving MAX-CUT: for each edge in the graph, the oracle is required to be independently correct with probability 12+ϵ\frac{1}{2}+\epsilon (as to whether the edge participates in some fixed but unknown optimal MAX-CUT solution). We are not aware of any theoretical or experimental work on how such predictions can be achieved while staying within reasonable space budgets.

On the other hand, there might be some advice that can be obtained in a much cheaper way: for instance, when one performs triangle counting in temporal graphs [3]. There, the prediction is the number of triangles a specific edge is involved in, and a predictor can be implemented in one pass over the data.

As with our current work, we think that the nuance lies in precisely what kind of advice one proposes to employ. We will enrich the related work section with that angle to draw a broader picture of related problems where this perspective might become relevant.

Presentation Remarks

Thank you for pointing these out. We will fix the cminc_{min} and increase the figure font in the final version.

References

[1] Space-optimal heavy hitters with strong error bounds, Berinde, R., Indyk, P., Cormode, G., and Strauss, M. [J. . ACM Trans. Database Syst., 35(4)] URL https://doi.org/10.1145/1862919.1862923.

[2] Learning-Augmented Streaming Algorithms for Approximating MAX-CUT, Yinhao Dong, Pan Peng, Ali Vakilian, [ITCS’25] URL https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.ITCS.2025.44

[3] Efficient Approximate Temporal Triangle Counting in Streaming with Predictions, Giorgio Venturin, Ilie Sarpe, Fabio Vandin [ECML/PKDD’25] URL https://dl.acm.org/doi/10.1007/978-3-032-06066-2_15

Reviewer fN9P · CommentOpenReview ↗

Thank you for the detailed response. I will maintain my positive recommendation.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…