Skip to main content
QUICK REVIEW

[Paper Review] Hokusai - Sketching Streams in Real Time

Sergiy Matusevych, Alex Smola|arXiv (Cornell University)|Oct 16, 2012
Data Management and AlgorithmsComputer Science12 references10 citations
TL;DR

Hokusai proposes a real-time system for tracking frequency statistics of arbitrary symbol streams using a factorizing approximation over CountMin sketches. By exploiting the linearity of sketching, it enables constant-time point queries at any (time, item) combination, achieving low memory and low-latency analytics for dynamic data workloads like web query logs or network traffic streams.

ABSTRACT

We describe Hokusai, a real time system which is able to capture frequency information for streams of arbitrary sequences of symbols. The algorithm uses the CountMin sketch as its basis and exploits the fact that sketching is linear. It provides real time statistics of arbitrary events, e.g. streams of queries as a function of time. We use a factorizing approximation to provide point estimates at arbitrary (time, item) combinations. Queries can be answered in constant time.

Motivation & Objective

  • Address the need for real-time frequency statistics over high-velocity data streams in databases and AI systems.
  • Overcome the limitations of traditional sketching methods in supporting arbitrary point queries across time and items.
  • Enable efficient, constant-time query responses for frequency counts at any (time, item) combination in dynamic streams.
  • Provide a scalable and memory-efficient solution for monitoring event frequencies in real time, such as web queries or network events.
  • Introduce a factorizing approximation to compress and reconstruct frequency data across time and items without significant accuracy loss.

Proposed method

  • Builds on the CountMin sketch data structure, which provides probabilistic frequency estimates with low memory usage.
  • Exploits the linearity of sketching to maintain a compact representation of streaming data over time.
  • Applies a factorizing approximation to model the joint frequency distribution across time and items as a product of time and item factors.
  • Uses matrix factorization to estimate point frequencies at arbitrary (time, item) pairs from the sketch summaries.
  • Supports incremental updates to the sketch and factorization model as new stream elements arrive.
  • Enables constant-time query resolution by precomputing and storing factorized components for fast access.

Experimental results

Research questions

  • RQ1Can a streaming system efficiently maintain frequency statistics for arbitrary symbol sequences in real time with low memory and low latency?
  • RQ2How can sketching techniques be extended to support point queries at arbitrary (time, item) combinations without storing full frequency matrices?
  • RQ3What approximation strategy allows accurate frequency estimation across time and items while maintaining constant-time query performance?
  • RQ4To what extent does the factorizing approximation preserve accuracy compared to exact frequency tracking in dynamic data workloads?
  • RQ5Can the system scale to high-velocity data streams while maintaining low memory and low-latency response times?

Key findings

  • Hokusai achieves constant-time query response for frequency estimates at any (time, item) pair, enabling interactive analytics on live data streams.
  • The system maintains low memory usage by relying on the CountMin sketch and a factorizing approximation, avoiding full storage of frequency matrices.
  • The factorizing approximation enables accurate point estimates across time and items, even with high-velocity data streams.
  • The method supports incremental updates, making it suitable for production systems processing continuous data.
  • Evaluation shows that Hokusai provides high accuracy in frequency estimation with minimal overhead, suitable for real-time monitoring of web queries or network events.
  • The approach is general and applicable to any stream of symbols, including logs, queries, or network packets, with minimal tuning required.

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.