arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2311.15380cs.DScs.DB
收藏

Grafite:用最优范围过滤器应对对抗性查询

Grafite: Taming Adversarial Queries with Optimal Range Filters

Marco Costa, Paolo Ferragina, Giorgio Vinciguerra

AI总结:

提出名为 Grafite 的新型范围过滤器,通过简单设计和理论保证,在固定空间下实现 $O(1)$ 查询时间和有界假阳性率,有效应对对抗性查询,并在实验中表现优于现有方法。

摘要:

范围过滤器允许检查查询范围是否与给定的键集合相交,并可能返回假阳性答案,从而将 Bloom filter 的功能从点查询推广到范围查询。现有的实用范围过滤器采用启发式方法解决此问题,导致在处理对抗性输入(例如查询与键相关的常见场景)时假阳性率和查询时间较高。我们提出了 Grafite,一种新颖的范围过滤器,它通过简单的设计和明确的理论保证解决了这些问题,且无论输入数据和查询分布如何,这些保证都成立:在每键固定 $B$ 位的空间预算下,查询时间为 $O(1)$,假阳性概率的上界为 $\ell/2^{B-2}$,其中 $\ell$ 是查询范围大小。我们的实验评估表明,Grafite 是迄今为止唯一在所有数据集、查询工作负载和范围大小的组合中实现稳健且可预测的假阳性率的范围过滤器,同时提供更快的查询和构建时间,并在相关查询情况下主导所有竞争者。作为进一步的贡献,我们引入了一种非常简单的启发式范围过滤器,其在不相关查询上的性能非常接近或优于迄今为止文献中提出的最佳启发式范围过滤器。

英文摘要:

Range filters allow checking whether a query range intersects a given set of keys with a chance of returning a false positive answer, thus generalising the functionality of Bloom filters from point to range queries. Existing practical range filters have addressed this problem heuristically, resulting in high false positive rates and query times when dealing with adversarial inputs, such as in the common scenario where queries are correlated with the keys. We introduce Grafite, a novel range filter that solves these issues with a simple design and clear theoretical guarantees that hold regardless of the input data and query distribution: given a fixed space budget of $B$ bits per key, the query time is $O(1)$, and the false positive probability is upper bounded by $\ell/2^{B-2}$, where $\ell$ is the query range size. Our experimental evaluation shows that Grafite is the only range filter to date to achieve robust and predictable false positive rates across all combinations of datasets, query workloads, and range sizes, while providing faster queries and construction times, and dominating all competitors in the case of correlated queries. As a further contribution, we introduce a very simple heuristic range filter whose performance on uncorrelated queries is very close to or better than the one achieved by the best heuristic range filters proposed in the literature so far.

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

↑