基数估计的不可合并草图
Non-Mergeable Sketching for Cardinality Estimation
摘要:
基数估计可能是最简单的非平凡的统计问题,可以通过草图解决。HyperLogLog、MinHash和PCSA等工业部署的草图是可合并的,这意味着可以在分布式环境中绘制大型数据集,然后将其合并为整个数据集的单个草图。在过去的十年中,已经开发了各种各样的草图,这些草图是不可合并的,但由于其他原因而具有吸引力。它们更简单,它们的基数估计是严格无偏的,并且它们具有显著更低的方差。我们在一个合理的水平竞争环境中评估素描方案,根据他们的记忆方差乘积(MVP)。例如,在一个示例中,占用$5m$位并且其相对方差为$2/m$(标准误差$\sqrt{2/m}$)的草图具有$10$的MVP。我们的贡献如下。科恩和丁独立地发现了我们所说的鞅变换,用于将可合并的草图转换为不可合并的草图。我们提出了一个简单的方法来分析极限MVP的鞅型草图。我们证明了\Martingale{}变换在不可合并的世界中是最优的,特别是\Martingale{} \fishmonger{}在可线性化的草图中是最优的,MVP为$H_0/2 \approx 1.63$。例如,在一个示例中,这是一个间接的证据,证明要达到1%的标准误差,我们不能做得比一个200字节的草图更好。\Martingale{} \fishmonger{}既不简单也不实用。我们开发了一个新的可合并的草图称为\Curtain{},罢工之间的简单性和效率很好的平衡,并证明\Martingale{} \Curtain{}有限制$\MVP\approx 2.31$。它可以通过$O(1)$内存访问进行更新,并且它的经验方差比\Martingale{} \LogLog(HyperLogLog的一个实用的不可合并版本)低。
英文摘要:
Cardinality estimation is perhaps the simplest non-trivial statistical problem that can be solved via sketching. Industrially-deployed sketches like HyperLogLog, MinHash, and PCSA are mergeable, which means that large data sets can be sketched in a distributed environment, and then merged into a single sketch of the whole data set. In the last decade a variety of sketches have been developed that are non-mergeable, but attractive for other reasons. They are simpler, their cardinality estimates are strictly unbiased, and they have substantially lower variance. We evaluate sketching schemes on a reasonably level playing field, in terms of their memory-variance product (MVP). E.g., a sketch that occupies $5m$ bits and whose relative variance is $2/m$ (standard error $\sqrt{2/m}$) has an MVP of $10$. Our contributions are as follows. Cohen and Ting independently discovered what we call the Martingale transform for converting a mergeable sketch into a non-mergeable sketch. We present a simpler way to analyze the limiting MVP of Martingale-type sketches. We prove that the \Martingale{} transform is optimal in the non-mergeable world, and that \Martingale{} \fishmonger{} in particular is optimal among linearizable sketches, with an MVP of $H_0/2 \approx 1.63$. E.g., this is circumstantial evidence that to achieve 1\% standard error, we cannot do better than a 2 kilobyte sketch. \Martingale{} \fishmonger{} is neither simple nor practical. We develop a new mergeable sketch called \Curtain{} that strikes a nice balance between simplicity and efficiency, and prove that \Martingale{} \Curtain{} has limiting $\MVP\approx 2.31$. It can be updated with $O(1)$ memory accesses and it has lower empirical variance than \Martingale{} \LogLog, a practical non-mergeable version of HyperLogLog.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。