arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1410.4266cs.DS
收藏

一致的加权采样变得快速、小巧和简单

Consistent Weighted Sampling Made Fast, Small, and Easy

Bernhard Haeupler, Mark Manasse, Kunal Talwar

摘要:

使用Jaccard相似度的文档草图在减少Web页面和图像搜索结果中的近似重复方面是一种可行的有效技术,并且在文件系统同步、压缩和学习应用中也被证明是有用的。最小值抽样可以用来获得Jaccard相似性的无偏估计,并且取几百个独立一致的样本可以得到紧凑的草图,这些草图提供了对成对相似性的良好估计。随后的工作将这种技术扩展到加权集,并展示了如何产生样本,其中任何元素的哈希计算次数都是恒定的,与其权重无关。Li等人的另一个改进展示了如何通过一次计算许多(接近)独立的样本来加速草图计算。不幸的是,后一种改进仅适用于未加权的情况。在本文中,我们给出了一个简单,快速和准确的过程,减少加权集的Jaccard相似性的影响很小的未加权集。这导致了由许多(接近)独立的加权样本组成的紧凑草图,这些样本可以通过每个加权元素的散列函数评估的小常数来计算。所产生的未加权集的大小也是一个可调参数,它使我们能够在最有效的状态下运行Li等人的未加权方案。即使所涉及的集是unweighted,我们的方法给出了一个简单的解决方案,其他作品试图解决的致密化问题。与以前已知的计划,我们不会导致无偏估计。然而,我们证明,我们的减少引入的偏见是可以忽略不计的,标准差是可比的未加权的情况下。我们还经验评估我们的计划,并表明,它提供了显着的增益计算效率,没有任何可测量的损失的准确性。

英文摘要:

Document sketching using Jaccard similarity has been a workable effective technique in reducing near-duplicates in Web page and image search results, and has also proven useful in file system synchronization, compression and learning applications. Min-wise sampling can be used to derive an unbiased estimator for Jaccard similarity and taking a few hundred independent consistent samples leads to compact sketches which provide good estimates of pairwise-similarity. Subsequent works extended this technique to weighted sets and show how to produce samples with only a constant number of hash evaluations for any element, independent of its weight. Another improvement by Li et al. shows how to speedup sketch computations by computing many (near-)independent samples in one shot. Unfortunately this latter improvement works only for the unweighted case. In this paper we give a simple, fast and accurate procedure which reduces weighted sets to unweighted sets with small impact on the Jaccard similarity. This leads to compact sketches consisting of many (near-)independent weighted samples which can be computed with just a small constant number of hash function evaluations per weighted element. The size of the produced unweighted set is furthermore a tunable parameter which enables us to run the unweighted scheme of Li et al. in the regime where it is most efficient. Even when the sets involved are unweighted, our approach gives a simple solution to the densification problem that other works attempted to address. Unlike previously known schemes, ours does not result in an unbiased estimator. However, we prove that the bias introduced by our reduction is negligible and that the standard deviation is comparable to the unweighted case. We also empirically evaluate our scheme and show that it gives significant gains in computational efficiency, without any measurable loss in accuracy.

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

↑