Skip to main content
QUICK REVIEW

[Paper Review] New Algorithms for Heavy Hitters in Data Streams

David P. Woodruff|arXiv (Cornell University)|Mar 5, 2016
Data Mining Algorithms and ApplicationsComputer Science31 references6 citations
TL;DR

This paper presents new randomized algorithms for identifying ℓ₁- and ℓ₂-heavy hitters in data streams with significantly reduced memory usage. By leveraging Gaussian and Bernoulli processes, derandomized Johnson-Lindenstrauss transforms, and hash function derandomization via Nisan’s pseudorandom generator, the authors achieve optimal O(log n) space complexity for ℓ₂-heavy hitters, improving upon prior methods that required Ω(ε⁻¹ log n) or higher space.

ABSTRACT

An old and fundamental problem in databases and data streams is that of finding the heavy hitters, also known as the top-$k$, most popular items, frequent items, elephants, or iceberg queries. There are several variants of this problem, which quantify what it means for an item to be frequent, including what are known as the $\ell_1$-heavy hitters and $\ell_2$-heavy hitters. There are a number of algorithmic solutions for these problems, starting with the work of Misra and Gries, as well as the CountMin and CountSketch data structures, among others. In this survey paper, accompanying an ICDT invited talk, we cover several recent results developed in this area, which improve upon the classical solutions to these problems. In particular, with coauthors we develop new algorithms for finding $\ell_1$-heavy hitters and $\ell_2$-heavy hitters, with significantly less memory required than what was known, and which are optimal in a number of parameter regimes.

Motivation & Objective

  • To address the fundamental problem of identifying heavy hitters—frequent items or 'elephants'—in data streams with minimal memory usage.
  • To improve upon classical algorithms like Misra-Gries, Count-Min, and CountSketch by reducing space complexity for both ℓ₁- and ℓ₂-heavy hitters.
  • To develop a provably correct, space-optimal algorithm for ℓ₂-heavy hitters using advanced probabilistic techniques and derandomization.
  • To enable practical deployment of heavy hitters algorithms by minimizing space while maintaining strong accuracy guarantees under adversarial stream order.

Proposed method

  • Employ Gaussian processes to model the behavior of frequency counters in the stream, enabling accurate estimation of item frequencies with high probability.
  • Use a derandomized Johnson-Lindenstrauss transform to reduce the dimensionality of frequency vectors from n to O(log n), preserving covariance structure for analysis.
  • Replace continuous Gaussian variables with sign random variables (Bernoulli processes) to avoid truncation issues and enable efficient computation.
  • Apply Nisan’s pseudorandom generator to derandomize the hash functions used in the algorithm, reducing space usage while maintaining correctness.
  • Design a two-phase approach: initially learning noisy bits of the heavy hitter, then discarding early, unreliable bits and focusing on a suffix of updates to recover the true item.
  • Use Slepian’s Lemma to compare the original and derandomized Gaussian processes, ensuring that the statistical properties are preserved within constant factors.

Experimental results

Research questions

  • RQ1Can ℓ₂-heavy hitters be identified using only O(log n) bits of space, independent of ε and φ, for constant parameters?
  • RQ2How can Gaussian processes be effectively used in data stream algorithms to achieve space efficiency while maintaining accuracy?
  • RQ3What derandomization techniques can be applied to probabilistic data structures like CountSketch to reduce space without sacrificing correctness?
  • RQ4Can the use of Bernoulli processes replace Gaussian processes in heavy hitters algorithms while preserving theoretical guarantees?
  • RQ5What is the minimal space complexity required to solve the ℓ₂-heavy hitters problem, and can it be achieved with a single-pass, randomized algorithm?

Key findings

  • The proposed algorithm achieves optimal O(log n) space complexity for ℓ₂-heavy hitters, improving upon previous bounds that required Ω(ε⁻¹ log n) bits.
  • The use of derandomized Johnson-Lindenstrauss transforms reduces the dimensionality of frequency vectors from n to O(log n), enabling efficient computation.
  • Bernoulli processes are shown to be sufficient for the algorithm’s correctness, replacing more complex Gaussian variables and avoiding truncation issues.
  • Nisan’s pseudorandom generator is successfully applied to derandomize hash functions, reducing space usage while preserving the algorithm’s accuracy.
  • The algorithm correctly identifies the heavy hitter after sufficient updates, even when initial bits are corrupted, by focusing on a suffix of the stream.
  • The framework enables new applications, such as estimating the second moment F₂ at all points in a stream using only O(log n log log n) bits, improving over the prior Θ(log²n) bound.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.