Skip to main content
QUICK REVIEW

[论文解读] Ribbon filter: practically smaller than Bloom and Xor

Peter C. Dillinger, Stefan Walzer|arXiv (Cornell University)|Mar 3, 2021
Caching and Content DeliveryComputer Science参考文献 49被引用 21
一句话总结

Ribbon filter 是一种新型的静态过滤器数据结构,通过使用一种新颖的实时增量布尔带状算法,对布尔变量上的带状线性系统进行求解,实现了显著低于Bloom和Xor过滤器的内存开销——低至1%以下。它在空间效率与查询速度之间提供了连续可配置的权衡,相较于Xor过滤器在空间效率上表现更优,且在广泛范围的误报率下保持了竞争力或更优的性能。

ABSTRACT

Filter data structures over-approximate a set of hashable keys, i.e. set membership queries may incorrectly come out positive. A filter with false positive rate $f \in (0,1]$ is known to require $\ge \log_2(1/f)$ bits per key. At least for larger $f \ge 2^{-4}$, existing practical filters require a space overhead of at least 20% with respect to this information-theoretic bound. We introduce the Ribbon filter: a new filter for static sets with a broad range of configurable space overheads and false positive rates with competitive speed over that range, especially for larger $f \ge 2^{-7}$. In many cases, Ribbon is faster than existing filters for the same space overhead, or can achieve space overhead below 10% with some additional CPU time. An experimental Ribbon design with load balancing can even achieve space overheads below 1%. A Ribbon filter resembles an Xor filter modified to maximize locality and is constructed by solving a band-like linear system over Boolean variables. In previous work, Dietzfelbinger and Walzer describe this linear system and an efficient Gaussian solver. We present and analyze a faster, more adaptable solving process we call "Rapid Incremental Boolean Banding ON the fly," which resembles hash table construction. We also present and analyze an attractive Ribbon variant based on making the linear system homogeneous, and describe several more practical enhancements.

研究动机与目标

  • 设计一种过滤器数据结构,使其在空间开销上优于现有的实用过滤器(如Bloom和Xor过滤器),特别是在高误报率场景下。
  • 实现空间效率与查询性能之间的连续可配置性,避免Xor和Cuckoo过滤器所受的固定对齐约束。
  • 开发一种高效且稳健的构造算法,支持动态空间调整与负载均衡。
  • 证明基于高斯消去法的构造方法在速度与空间效率上均优于基于剥除法的现有方法。

提出的方法

  • Ribbon过滤器通过将一组哈希函数应用于键,构建一个布尔变量上的带状线性系统。
  • 它采用一种新颖的实时、增量布尔带状算法——'Rapid Incremental Boolean Banding On the Fly'——在构造过程中高效求解该系统。
  • 同质Ribbon变体使用完全同质的线性系统,确保构造成功并简化了分析。
  • 均衡Ribbon变体通过分片和元数据管理引入负载均衡,进一步降低了空间开销。
  • 过滤器使用宽度参数 $ w $ 和列数 $ r $,其中 $ r $ 决定哈希函数的数量,并影响误报率。
  • 查询过程涉及使用哈希导出的索引从内存中检索 $ w $-bit 字,并通过按位运算判断成员资格。

实验结果

研究问题

  • RQ1基于高斯消去法的过滤器构造能否在构造速度和空间开销上均优于现有的基于剥除法的方案(如Xor过滤器)?
  • RQ2在不同误报率和空间开销下,Ribbon与Bloom和Xor过滤器的空间效率相比如何?
  • RQ3在保持竞争力查询性能的前提下,Ribbon的空间开销能在多大程度上降低至1%以下?
  • RQ4选择 $ w $ 和 $ r $ 如何影响Ribbon过滤器在空间效率与查询时间之间的权衡?
  • RQ5实时增量构造线性系统能否在性能与可配置性上优于批量处理或固定大小的方案?

主要发现

  • 在实验配置中,Ribbon实现了低于1%的空间开销,显著优于Bloom和Xor过滤器(通常开销为20%或以上)。
  • 对于误报率 $ f \geq 2^{-7} $,Ribbon的查询时间与Xor相当或更快,尤其在 $ w = 32 $ 时表现更优,尽管构造时间更长。
  • 同质Ribbon变体通过无重试机制确保构造成功,提供了清晰的理论基础,但在小规模部署中可能表现出更高的方差。
  • 均衡Ribbon变体通过动态负载均衡进一步降低了空间开销,但代价是构造时间与复杂度的增加。
  • 实时增量布尔带状算法相比传统高斯消去法,实现了更快且更具适应性的构造过程,尤其适用于大规模静态集合。
  • Ribbon支持 $ r $ 的整数取值下的连续可配置性,避免了Xor和Cuckoo过滤器因受限于4、8、12或16比特等友好字长而产生的对齐惩罚。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。