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

快速分区学习型布隆过滤器

Fast Partitioned Learned Bloom Filter

Atsuki Sato, Yusuke Matsui

AI总结:

针对分区学习型布隆过滤器(PLBF)构建时间复杂度过高的问题,本文提出快速PLBF与快速PLBF++两种方法,分别将构建复杂度降至O(N²k)和O(Nk log N + Nk²),在保持或接近PLBF内存效率的同时实现最高761倍加速。

摘要:

布隆过滤器是一种内存高效的数据结构,用于计算机科学众多领域中的近似成员查询。近年来,利用机器学习模型实现更高内存效率的学习型布隆过滤器引起了广泛关注。其中一种过滤器——分区学习型布隆过滤器(PLBF)——实现了出色的内存效率。然而,PLBF 构建数据结构需要 O(N^3k) 的时间复杂度,其中 N 和 k 是 PLBF 的超参数。可以通过增大 N 来提高内存效率,但构建时间会变得极长。因此,我们提出两种方法,在保持 PLBF 内存效率的同时缩短构建时间。首先,我们提出快速 PLBF,它能以更小的 O(N^2k) 时间复杂度构建与 PLBF 相同的数据结构。其次,我们提出快速 PLBF++,它能以更小的 O(Nk log N + Nk^2) 时间复杂度构建数据结构。快速 PLBF++ 不一定构建与 PLBF 相同的数据结构,但其内存效率几乎与 PLBF 一样高,并且已证明当分布满足一定约束时,快速 PLBF++ 具有与 PLBF 相同的数据结构。我们在真实世界数据集上的实验结果表明:(i) 快速 PLBF 和快速 PLBF++ 构建数据结构的速度分别比 PLBF 快最多 233 倍和 761 倍;(ii) 快速 PLBF 可以实现与 PLBF 相同的内存效率;(iii) 快速 PLBF++ 可以实现几乎与 PLBF 相同的内存效率。代码可在 https://github.com/atsukisato/FastPLBF 获取。

英文摘要:

A Bloom filter is a memory-efficient data structure for approximate membership queries used in numerous fields of computer science. Recently, learned Bloom filters that achieve better memory efficiency using machine learning models have attracted attention. One such filter, the partitioned learned Bloom filter (PLBF), achieves excellent memory efficiency. However, PLBF requires a $O(N^3k)$ time complexity to construct the data structure, where $N$ and $k$ are the hyperparameters of PLBF. One can improve memory efficiency by increasing $N$, but the construction time becomes extremely long. Thus, we propose two methods that can reduce the construction time while maintaining the memory efficiency of PLBF. First, we propose fast PLBF, which can construct the same data structure as PLBF with a smaller time complexity $O(N^2k)$. Second, we propose fast PLBF++, which can construct the data structure with even smaller time complexity $O(Nk\log N + Nk^2)$. Fast PLBF++ does not necessarily construct the same data structure as PLBF. Still, it is almost as memory efficient as PLBF, and it is proved that fast PLBF++ has the same data structure as PLBF when the distribution satisfies a certain constraint. Our experimental results from real-world datasets show that (i) fast PLBF and fast PLBF++ can construct the data structure up to 233 and 761 times faster than PLBF, (ii) fast PLBF can achieve the same memory efficiency as PLBF, and (iii) fast PLBF++ can achieve almost the same memory efficiency as PLBF. The codes are available at https://github.com/atsukisato/FastPLBF .

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

↑