Affiliation:
1. AT&T Labs-Research, Florham Park, NJ, USA
Abstract
Random sampling has been proven time and time again to be a powerful tool for working with large data. Queries over the full dataset are replaced by approximate queries over the smaller (and hence easier to store and manipulate) sample. The sample constitutes a flexible summary that supports a wide class of queries. But in many applications, datasets are modified with time, and it is desirable to update samples without requiring access to the full underlying datasets. In this paper, we introduce and analyze novel techniques for sampling over dynamic data, modeled as a stream of modifications to weights associated with each key.
While sampling schemes designed for stream applications can often readily accommodate positive updates to the dataset, much less is known for the case of negative updates, where weights are reduced or items deleted altogether. We primarily consider the turnstile model of streams, and extend classic schemes to incorporate negative updates. Perhaps surprisingly, the modifications to handle negative updates turn out to be natural and seamless extensions of the well-known positive update-only algorithms. We show that they produce unbiased estimators, and we relate their performance to the behavior of corresponding algorithms on insert-only streams with different parameters. A careful analysis is necessitated, in order to account for the fact that sampling choices for one key now depend on the choices made for other keys.
In practice, our solutions turn out to be efficient and accurate. Compared to recent algorithms for L
p
sampling which can be applied to this problem, they are significantly more reliable, and dramatically faster.
Publisher
Association for Computing Machinery (ACM)
Subject
Computer Networks and Communications,Hardware and Architecture,Software
Cited by
12 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献
1. Truly Perfect Samplers for Data Streams and Sliding Windows;Proceedings of the 41st ACM SIGMOD-SIGACT-SIGAI Symposium on Principles of Database Systems;2022-06-12
2. Perfect $L_p$ Sampling in a Data Stream;SIAM Journal on Computing;2021-01
3. Continuously Distinct Sampling over Centralized and Distributed High Speed Data Streams;IEEE Transactions on Parallel and Distributed Systems;2019-02-01
4. Perfect Lp Sampling in a Data Stream;2018 IEEE 59th Annual Symposium on Foundations of Computer Science (FOCS);2018-10
5. Data Streams with Bounded Deletions;Proceedings of the 37th ACM SIGMOD-SIGACT-SIGAI Symposium on Principles of Database Systems;2018-05-27