skip to main content
research-article

Space-optimal heavy hitters with strong error bounds

Published: 12 October 2010 Publication History
  • Get Citation Alerts
  • Abstract

    The problem of finding heavy hitters and approximating the frequencies of items is at the heart of many problems in data stream analysis. It has been observed that several proposed solutions to this problem can outperform their worst-case guarantees on real data. This leads to the question of whether some stronger bounds can be guaranteed. We answer this in the positive by showing that a class of counter-based algorithms (including the popular and very space-efficient Frequent and SpacesSaving algorithms) provides much stronger approximation guarantees than previously known. Specifically, we show that errors in the approximation of individual elements do not depend on the frequencies of the most frequent elements, but only on the frequency of the remaining tail. This shows that counter-based methods are the most space-efficient (in fact, space-optimal) algorithms having this strong error bound.
    This tail guarantee allows these algorithms to solve the sparse recovery problem. Here, the goal is to recover a faithful representation of the vector of frequencies, f. We prove that using space O(k), the algorithms construct an approximation f* to the frequency vector f so that the L1 error ∥∥f−∥f*∥1 is close to the best possible error minff′ − f1, where f′ ranges over all vectors with at most k non-zero entries. This improves the previously best known space bound of about O(k log n) for streams without element deletions (where n is the size of the domain from which stream elements are drawn). Other consequences of the tail guarantees are results for skewed (Zipfian) data, and guarantees for accuracy of merging multiple summarized streams.

    References

    [1]
    Arasu, A., Babu, S., and Widom, J. 2003. CQL: A language for continuous queries over streams and relations. In Proceedings of the 9th DBPL International Confenrence on Data Base and Programming Languages. 1--11.
    [2]
    Berinde, R., Cormode, G., Indyk, P., and Strauss, M. 2009. Space-optimal heavy hitters with strong error bounds. Proceedings of the ACM Symposion on Principles of Database Systems.
    [3]
    Berinde, R., Gilbert, A., Indyk, P., Karloff, H., and Strauss, M. 2008a. Combining geometry and combinatorics: a unified approach to sparse signal recovery. In Proceedings of the Allerton Conference.
    [4]
    Berinde, R., Indyk, P., and Ruzic, M. 2008b. Practical near-optimal sparse recovery in the l 1 norm. In Proceedings of the Allerton Conference.
    [5]
    Bestavros, A., Crovella, M., and Taqqu, T. 1999. Heavy-Tailed Probability Distributions in the World Wide Web. Birkhäuser, 3--25.
    [6]
    Beyer, K. and Ramakrishnan, R. 1999. Bottom-up computation of sparse and iceberg cubes. In Proceedings of the ACM SIGMOD International Conference on Management of Data. 359--370.
    [7]
    Bonnet, P., Gehrke, J., and Seshadri, P. 2001. Towards sensor database systems. In Proceedings of the 2nd IEEE MDM International Conference on Mobile Data Management. 3--14.
    [8]
    Bose, P., Kranakis, E., Morin, P., and Tang, Y. 2003. Bounds for frequency estimation of packet streams. In Proceedings of the 10th International Colloquium on Structural Information and Communication Complexity. 33--42.
    [9]
    Breslau, L., Cao, P., Fan, L., Phillips, G., and Shenker, S. 1999. Web caching and Zipf-like distributions: Evidence and implications. In Proceedings of the IEEE International Conference on Computer Communications (INFOCOM). 126--134.
    [10]
    Candès, E. J., Romberg, J., and Tao, T. 2006. Stable signal recovery from incomplete and inaccurate measurements. Comm. Pure Applied Math. 59, 8, 1208--1223.
    [11]
    Chakrabarti, A., Cormode, G., and McGregor, A. 2007. A near-optimal algorithm for computing the entropy of a stream. In Proceedings of the ACM-SIAM Symposium on Discrete Algorithms.
    [12]
    Charikar, M., Chen, K., and Farach-Colton, M. 2002. Finding frequent items in data streams. In Proceedings of the 29th ICALP International Colloqium on Automata, Languages and Programming. 693--703.
    [13]
    Cormode, G., Golab, L., Korn, F., McGregor, A., Srivastava, D., and Zhang, X. 2009. Estimating the confidence of conditional functional dependencies. In Proceedings of the Conference on the Management of Data ACM-SIGMOD.
    [14]
    Cormode, G. and Hadjieleftheriou, M. 2008. Finding frequent items in data streams. VLDB J. 1, 2, 1530--1541.
    [15]
    Cormode, G., Korn, F., Muthukrishnan, S., and Srivastava, D. 2003. Finding hierarchical heavy hitters in data streams. In Proceedings of the International Conference on Very Large Data Bases. 464--475.
    [16]
    Cormode, G. and Muthukrishnan, S. 2005. An improved data stream summary: The count-min sketch and its applications. J. Algor. 55, 1, 58--75.
    [17]
    Demaine, E., Ortiz, A. L., and Munro, J. 2002. Frequency estimation of internet packet streams with limited space. In Proceedings of the 10th ESA Annual European Symposium on Algorithms. 348--360.
    [18]
    Donoho, D. L. 2006. Compressed Sensing. IEEE Trans. Inform. Theory 52, 4, 1289--1306.
    [19]
    Estan, C. and Varghese, G. 2001. New directions in traffic measurement and accounting. In Proceedings of the ACM SIGCOMM Internet Measurement Workshop.
    [20]
    Fang, M., Shivakumar, N., Garcia-Molina, H., Motwani, R., and Ullman, J. 1998. Computing iceberg queries efficiently. In Proceedings of the International Conference on Very Large Data Bases. 299--310.
    [21]
    FIMI Repository. 2008. Frequent itemset mining dataset repository, University of Helsinki. http://fimi.cs.helsinki.fi/data.
    [22]
    Ganguly, S. and Lakshminath, B. 2006. Estimating entropy over data streams. In Proceedings of the European Symposium on Algorithms (ESA).
    [23]
    Garofalakis, M., Gehrke, J., and Rastogi, R. 2002. Querying and mining data streams: You only get one look. In Proceedings of the Conference on the Management of Data ACM-SIGMOD.
    [24]
    Gilbert, A. C., Strauss, M. J., Tropp, J. A., and Vershynin, R. 2007. One sketch for all: fast algorithms for compressed sensing. In Proceedings of the ACM Symposium on Theory of Computing. 237--246.
    [25]
    Han, J., Pei, J., Dong, G., and Wang, K. 2001. Efficient computation of iceberg cubes with complex measures. In Proceedings of the ACM SIGMOD International Conference on Management of Data. 1--12.
    [26]
    Hershberger, J., Shrivastava, N., Suri, S., and Tóth, C. D. 2005. Space complexity of hierarchical heavy hitters in multi-dimensional streams. In Proceedings of the Principles of Database Systems. 338--347.
    [27]
    Indyk, P. 2004. Algorithms for dynamic geometric problems over data streams. In Proceedings of the ACM Symposium on Theory of Computing.
    [28]
    Indyk, P. 2007. Sketching, streaming and sublinear-space algorithms. Graduate course notes. http://stellar.mit.edu/S/course/6/fa07/6.895/.
    [29]
    Indyk, P. and Ruzic, M. 2008. Near-optimal sparse recovery in the l 1 norm. In Proceedings of the IEEE Conference on Foundations of Computer Science.
    [30]
    Karp, R. M., Shenker, S., and Papadimitriou, C. H. 2003. A simple algorithm for finding frequent elements in streams and bags. ACM Trans. Datab. Syst. 28, 1, 51--55.
    [31]
    Kohavi, R., Brodley, C., Frasca, B., Mason, L., and Zheng, Z. 2000. KDD-Cup 2000 organizers' report: Peeling the onion. SIGKDD Explor. 2, 2, 86--98.
    [32]
    Lucchese, C., Orlando, S., Perego, R., and Silvestri, F. 2004. Webdocs: a real-life huge transactional dataset. In Proceedings of the IEEE ICDM Workshop on Frequent Itemset Mining Implementations (FIMI).
    [33]
    Manerikar, N. and Palpanas, T. 2009. Frequent items in streaming data: An experimental evaluation of the state-of-the-art. Data Knowl. Eng. 68, 4.
    [34]
    Manku, G. and Motwani, R. 2002. Approximate frequency counts over data streams. In Proceedings of the International Conference on Very Large Data Bases. 346--357.
    [35]
    Metwally, A., Agrawal, D., and Abbabi, A. 2005. Efficient computation of frequent and top-k elements in data streams. In Proceedings of the International Conference on Database Theory. 398--412.
    [36]
    Misra, J. and Gries, D. 1982. Finding repeated elements. Sci. Comput. Prog. 2, 142--152.
    [37]
    Muthukrishnan, S. 2005. Data streams: Algorithms and applications. Foundations and Trends in Theoretical Computer Science.
    [38]
    Redner, S. 1998. How popular is your paper? An empirical study of the citation distribution. European Physical J. B, 131--134.
    [39]
    Rice DSP Group. Compressed sensing resources. http://www.dsp.ece.rice.edu/cs.
    [40]
    Shrivastava, N., Buragohain, C., Agrawal, D., and Suri, S. 2004. Medians and beyond: new aggregation techniques for sensor networks. In Proceedings of the 2nd International Conference on Embedded Network Sensor Systems. 239--249.
    [41]
    Zipf, G. 1949. Human Behavior and The Principle of Least Effort. Addison-Wesley.

    Cited By

    View all
    • (2024)DISCO: A Dynamically Configurable Sketch Framework in Skewed Data Streams2024 IEEE 40th International Conference on Data Engineering (ICDE)10.1109/ICDE60146.2024.00365(4801-4814)Online publication date: 13-May-2024
    • (2024) Randomized counter-based algorithms for frequency estimation over data streams in space Theoretical Computer Science10.1016/j.tcs.2023.114317984(114317)Online publication date: Feb-2024
    • (2023)Compact Frequency Estimators in Adversarial EnvironmentsProceedings of the 2023 ACM SIGSAC Conference on Computer and Communications Security10.1145/3576915.3623216(3254-3268)Online publication date: 15-Nov-2023
    • Show More Cited By

    Recommendations

    Comments

    Information & Contributors

    Information

    Published In

    cover image ACM Transactions on Database Systems
    ACM Transactions on Database Systems  Volume 35, Issue 4
    November 2010
    230 pages
    ISSN:0362-5915
    EISSN:1557-4644
    DOI:10.1145/1862919
    Issue’s Table of Contents
    Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

    Publisher

    Association for Computing Machinery

    New York, NY, United States

    Publication History

    Published: 12 October 2010
    Accepted: 01 February 2010
    Received: 01 October 2009
    Published in TODS Volume 35, Issue 4

    Permissions

    Request permissions for this article.

    Check for updates

    Author Tags

    1. Frequency estimation
    2. heavy hitters
    3. streaming algorithms

    Qualifiers

    • Research-article
    • Research
    • Refereed

    Contributors

    Other Metrics

    Bibliometrics & Citations

    Bibliometrics

    Article Metrics

    • Downloads (Last 12 months)19
    • Downloads (Last 6 weeks)4

    Other Metrics

    Citations

    Cited By

    View all
    • (2024)DISCO: A Dynamically Configurable Sketch Framework in Skewed Data Streams2024 IEEE 40th International Conference on Data Engineering (ICDE)10.1109/ICDE60146.2024.00365(4801-4814)Online publication date: 13-May-2024
    • (2024) Randomized counter-based algorithms for frequency estimation over data streams in space Theoretical Computer Science10.1016/j.tcs.2023.114317984(114317)Online publication date: Feb-2024
    • (2023)Compact Frequency Estimators in Adversarial EnvironmentsProceedings of the 2023 ACM SIGSAC Conference on Computer and Communications Security10.1145/3576915.3623216(3254-3268)Online publication date: 15-Nov-2023
    • (2022)SpaceSaving±Proceedings of the VLDB Endowment10.14778/3514061.351406815:6(1215-1227)Online publication date: 1-Feb-2022
    • (2021)A simple proof of a new set disjointness with applications to data streamsProceedings of the 36th Computational Complexity Conference10.4230/LIPIcs.CCC.2021.37Online publication date: 20-Jul-2021
    • (2021)Timely Reporting of Heavy Hitters Using External MemoryACM Transactions on Database Systems10.1145/347239246:4(1-35)Online publication date: 15-Nov-2021
    • (2021)Frequent Elements with Witnesses in Data StreamsProceedings of the 40th ACM SIGMOD-SIGACT-SIGAI Symposium on Principles of Database Systems10.1145/3452021.3458330(83-95)Online publication date: 20-Jun-2021
    • (2021)Pre‐filtering based summarization for data partitioning in distributed stream processingConcurrency and Computation: Practice and Experience10.1002/cpe.633833:20Online publication date: 30-Apr-2021
    • (2020)Timely Reporting of Heavy Hitters using External MemoryProceedings of the 2020 ACM SIGMOD International Conference on Management of Data10.1145/3318464.3380598(1431-1446)Online publication date: 11-Jun-2020
    • (2020)Practical Range Counting over Data Streams2020 IEEE International Conference on Big Data (Big Data)10.1109/BigData50022.2020.9378146(659-668)Online publication date: 10-Dec-2020
    • Show More Cited By

    View Options

    Get Access

    Login options

    Full Access

    View options

    PDF

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader

    Media

    Figures

    Other

    Tables

    Share

    Share

    Share this Publication link

    Share on social media