MaxSketch:通过随机投影在数据流中实现鲁棒的唯一计数
MaxSketch: Robust Distinct Counting in Streams via Random Projections
AI总结:
本文提出MaxSketch,利用随机高斯投影在高维噪声数据流中实现鲁棒的唯一计数,证明在几何结构下可将内存需求降低至~O(log n / ε²)。
摘要:
估计数据流中不同元素的数量在重复元素相同的情况下已知。然而在现代设置中,观测是高维且噪声的,相同对象的重复实例仅近似相似——例如不同个体的图像在像素层面可能有显著差异。经典草图如HyperLogLog依赖一致的哈希值来处理相同元素,在这种情况下会失效。最近在一般度量空间中关于鲁棒唯一计数的研究实现了~Θ(√n)的内存需求,这是最坏情况下的最优。本文证明在学习表示中常见的几何结构下,可以实现显著改进的内存保证。我们介绍了MaxSketch,一种由随机高斯投影构建的简单max线性草图,并证明其能够估计潜在对象的数量。具体而言,我们证明在这一假设下,m = ~O(log n / ε²)的随机投影(因此~O(log n / ε²)的内存)足以在(1+ε)因子内恢复真实的唯一计数。在图像流上的实验证实MaxSketch能够准确估计唯一计数,并在训练范围外泛化。我们的结果将经典流算法与现代表示学习连接起来,展示了几何结构如何从根本上减少唯一计数的复杂性。
英文摘要:
Estimating the number of distinct elements in a data stream is well understood when repeated elements are identical. In modern settings, however, observations are high-dimensional and noisy, so repeated instances of the same object are only approximately similar -- for example, different images of the same individual may vary significantly at the pixel level. Classical sketches such as HyperLogLog rely on consistent hash values for identical elements and break down in this regime. Recent work on robust distinct counting in general metric spaces achieves $\widetildeΘ(\sqrt{n})$ memory, which is tight in the worst case. We show that substantially improved memory guarantees are possible under geometric structure common in learned representations. We introduce MaxSketch, a simple max-linear sketch built from random Gaussian projections, and prove that it succeeds in estimating the number of distinct latent objects. Concretely, we show that under this assumption $m = \widetilde{O} (\log n / \varepsilon^2)$ random projections (and hence $\widetilde{O} (\log n/\varepsilon^2)$ memory) suffice to recover the true distinct count within a $(1+\varepsilon)$ factor. Experiments on image streams confirm that MaxSketch accurately estimates distinct counts and generalizes beyond the training regime. Our results bridge classical streaming algorithms and modern representation learning, showing how geometric structure can fundamentally reduce the complexity of distinct counting.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。