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

通过ReliableSketch在流摘要中逼近100%置信度

Approaching 100% Confidence in Stream Summary through ReliableSketch

Yuhan Wu, Hanbo Wu, Xilai Liu, Yikai Zhao, Tong Yang, Kaicheng Yang, Sha Wang, Lihua Miao, Gaogang Xie

AI总结:

提出ReliableSketch,首个将键值流中所有键误差控制在$Λ$内且失败概率为$Δ$的算法,仅需低时空开销,在CPU、FPGA和可编程交换机上实现,实验证明其在小空间下误差受控且吞吐量接近最优。

摘要:

为了近似计算键值数据流中的值之和,sketch被广泛应用于数据库和网络系统中。它们为任意给定的键提供高置信度的近似,同时确保低时空开销。尽管现有的sketch擅长估计单个键,但它们难以在所有键上集体保持这种高置信度,而这一目标在算法理论及其实际应用中都至关重要。我们提出ReliableSketch,这是首个将所有键的误差控制在小于$Λ$以内、且仅具有较小失败概率$Δ$的方法,其仅需$O(1 + Δ\ln\ln(\frac{N}Λ))$的摊销时间和$O(\frac{N}Λ + \ln(\frac{1}Δ))$的空间。此外,其简洁性使其对硬件友好,我们在CPU服务器、FPGA和可编程交换机上实现了它。实验表明,在相同的小空间下,ReliableSketch不仅将所有键的误差保持在$Λ$以下,还实现了接近最优的吞吐量,优于存在数千个不受控估计的竞争者。我们已公开源代码。

英文摘要:

To approximate sums of values in key-value data streams, sketches are widely used in databases and networking systems. They offer high-confidence approximations for any given key while ensuring low time and space overhead. While existing sketches are proficient in estimating individual keys, they struggle to maintain this high confidence across all keys collectively, an objective that is critically important in both algorithm theory and its practical applications. We propose ReliableSketch, the first to control the error of all keys to less than $Λ$ with a small failure probability $Δ$, requiring only $O(1 + Δ\ln\ln(\frac{N}Λ))$ amortized time and $O(\frac{N}Λ + \ln(\frac{1}Δ))$ space. Furthermore, its simplicity makes it hardware-friendly, and we implement it on CPU servers, FPGAs, and programmable switches. Our experiments show that under the same small space, ReliableSketch not only keeps all keys' errors below $Λ$ but also achieves near-optimal throughput, outperforming competitors with thousands of uncontrolled estimations. We have made our source code publicly available.

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

↑