arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2210.15630cs.DS
收藏

Bloom过滤器的流内概率基数估计

In-stream Probabilistic Cardinality Estimation for Bloom Filters

Remy Scholler, Jean-Francois Couchot, Oumaima Alaoui-Ismaili, Denis Renaud, Eric Ballot

摘要:

来自物联网传感器、社交网络、蜂窝网络等不同来源的数据量在过去几年中呈指数级增长。概率数据结构(PDS)是确定性数据结构的有效替代方案,适合于大数据处理和流式应用。它们主要用于近似隶属度查询、频率计算、基数估计和相似性研究。在大型数据集或流数据中查找不同元素的数量是一个活跃的研究领域。在这项工作中,我们表明,通常的方法的基础上,这种基数估计的布鲁姆过滤器是相对准确的平均,但有一个高的方差。因此,减少该方差对于获得准确的统计数据是有意义的。我们提出了一种概率方法来更准确地估计基于其参数,即,散列函数的数目$k$、大小$m$、以及每当元素不在过滤器中时递增的计数器$s$(即,当对该元素的成员资格查询的结果为负时)。由于Bloom filter的性质,计数器的值永远不会大于确切的基数,但哈希冲突可能会导致它低估它。这会产生一个计数误差,我们可以准确地估计,在流中,以及它的标准差。我们还讨论了一种方法来优化参数的布隆过滤器的计数误差的基础上。我们评估我们的方法与合成数据从分析移动网络运营商提供的移动数据集的移动电话记录计算的位移矩阵的形式创建。这里提出的方法至少在平均上执行得一样好,并且具有比现有技术方法低得多的方差(大约6到7倍)。

英文摘要:

The amount of data coming from different sources such as IoT-sensors, social networks, cellular networks, has increased exponentially during the last few years. Probabilistic Data Structures (PDS) are efficient alternatives to deterministic data structures suitable for large data processing and streaming applications. They are mainly used for approximate membership queries, frequency count, cardinality estimation and similarity research. Finding the number of distinct elements in a large dataset or in streaming data is an active research area. In this work, we show that usual methods based on Bloom filters for this kind of cardinality estimation are relatively accurate on average but have a high variance. Therefore, reducing this variance is interesting to obtain accurate statistics. We propose a probabilistic approach to estimate more accurately the cardinality of a Bloom filter based on its parameters, i.e., number of hash functions $k$, size $m$, and a counter $s$ which is incremented whenever an element is not in the filter (i.e., when the result of the membership query for this element is negative). The value of the counter can never be larger than the exact cardinality due to the Bloom filter's nature, but hash collisions can cause it to underestimate it. This creates a counting error that we estimate accurately, in-stream, along with its standard deviation. We also discuss a way to optimize the parameters of a Bloom filter based on its counting error. We evaluate our approach with synthetic data created from an analysis of a real mobility dataset provided by a mobile network operator in the form of displacement matrices computed from mobile phone records. The approach proposed here performs at least as well on average and has a much lower variance (about 6 to 7 times less) than state of the art methods.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑