OneSketch: A Generic and Accurate Sketch for Data Streams
- 19 May 2023
- journal article
- research article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Knowledge and Data Engineering
- Vol. 35 (12) , 12887-12901
Abstract
In this paper, we propose a generic sketch algorithm capable of achieving more accuracy in the following five tasks: finding top- $k$ frequent items, finding heavy hitters, per-item frequency estimation, and heavy changes in the time and spatial dimension. The state-of-the-art (SOTA) sketch solution for multiple measurement tasks is ElasticSketch (ES). However, the accuracy of its frequency estimation has room for improvement. The reason for this is that ES suffers from overestimation errors in the light part, which introduces errors when querying both frequent and infrequent items. To address these problems, we propose a generic sketch, OneSketch, designed to minimize overestimation errors. To achieve the design goal, we propose four key techniques, which embrace hash collisions and minimize possible errors by handling highly recurrent item replacements well. Experimental results show that OneSketch clearly outperforms 12 SOTA schemes. For example, compared with ES, OneSketch achieves more than 10× lower Average Absolute Error on finding top- $k$ frequent items and heavy hitters, as well as 48.3% and 38.4% higher F1 Scores on two heavy changes under 200 KB memory, respectively.
Keywords
Funding Information
- Key-Area Research and Development Program of Guangdong Province (2020B0101390001)
- National Natural Science Foundation of China (U20A20179)
This publication has 46 references indexed in Scilit:
- Generalizing the Layering Method of Indyk and Woodruff: Recursive Sketches for Frequency-Based Vectors on Streams2013
- Anomaly intrusion detection by clustering transactional audit streams in a host computerInformation Sciences, 2010
- Sliding-window top-k queries on uncertain streamsProceedings of the VLDB Endowment, 2008
- An improved data stream summary: the count-min sketch and its applicationsJournal of Algorithms, 2005
- Efficient Computation of Frequent and Top-k Elements in Data Streams2004
- Finding frequent items in data streamsTheoretical Computer Science, 2004
- New directions in traffic measurement and accountingACM Transactions on Computer Systems, 2003
- Loglog Counting of Large Cardinalities2003
- MJRTY—A Fast Majority Vote Algorithm1991
- Finding repeated elementsScience of Computer Programming, 1982