计算机科学 > 数据库
[提交于 2026年11月30日]
标题:Blocked Bloom Filters for Overlap Estimation
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Estimating the cardinality of set overlaps and set-algebra expressions over sketched sets is a common operation in marketing research and audience analytics. We develop efficient methods for these estimates over large-capacity single and blocked Bloom filters (BFs). We study cardinality and overlap estimation from truncated BFs and derive first-order variance approximations to guide partial-read budgeting. We extend these estimators to multi-block Bloom filters (MBFs) that partition a sketch into hash-routed blocks for efficient parallelization in relational databases. Truncation in MBFs becomes a choice of how many blocks we must read. Building on this, we give a three-phase method for accuracy-limited cardinality estimation of set-algebra expressions and implement it for pairwise overlaps, where reading only enough blocks to meet a user-specified precision yields a 10-100x speedup. We scale the method to the cross-overlap problem: estimating all pairwise overlaps between two collections of MBFs to the same target accuracy. Our SQL cross-overlap implementation controls I/O and storage costs through careful shared-block management, adaptive batching, and compressed block representation. We adapt a known rANS codec to compress run-length encoded sparse bit-vectors to within a few percent of the Shannon bound. We evaluate the framework on Snowflake and analyze how MBF parameters shape the accuracy vs. efficiency vs. storage trade-off.
提交历史
来自:Alexandre Evfimievski[v1] 2026年11月30日 星期一 04:48:44 UTC (212 KB)