Jaccard指数是一个重要的项目集和布尔数据的相似性度量。在大型数据集上,由于时间和空间的限制,精确的相似性计算通常不适用于所有项目对,从而产生更快的近似方法。用于快速计算两个项目集$A$和$B$的Jaccard索引$\frac{\vert A \cap B \vert}{\vert A\cup B\vert}$的算法通常是最小散列的一种形式。大多数最小散列方案主要用于数据流处理添加,但没有一个已知的工作时,面对项目明智的删除。在本文中,我们研究可扩展的近似算法的合理集相似性,广泛的类相似性措施,包括Jaccard。受Chierichetti和Kumar [J. ACM 2015]的结果的启发,他们证明了任何有理集相似性$S$承认局部敏感哈希(LSH)方案,当且仅当相应的距离$1-S$是度量时,我们可以证明存在一个空间有效的摘要,在动态数据流中保持$(1\pm \varepsilon)$对$1-S$的乘法近似。这又产生相似性的$\varepsilon$加法近似。这些近似的存在暗示,但并不直接意味着动态数据流中的LSH方案。我们的第二个和主要的贡献,现在在于设计这样的LSH计划mainquilities在动态数据流。该方案是空间有效的,易于实现,并尽我们所知的第一种能够处理删除。
英文摘要:
The Jaccard index is an important similarity measure for item sets and Boolean data. On large datasets, an exact similarity computation is often infeasible for all item pairs both due to time and space constraints, giving rise to faster approximate methods. The algorithm of choice used to quickly compute the Jaccard index $\frac{\vert A \cap B \vert}{\vert A\cup B\vert}$ of two item sets $A$ and $B$ is usually a form of min-hashing. Most min-hashing schemes are maintainable in data streams processing only additions, but none are known to work when facing item-wise deletions. In this paper, we investigate scalable approximation algorithms for rational set similarities, a broad class of similarity measures including Jaccard. Motivated by a result of Chierichetti and Kumar [J. ACM 2015] who showed any rational set similarity $S$ admits a locality sensitive hashing (LSH) scheme if and only if the corresponding distance $1-S$ is a metric, we can show that there exists a space efficient summary maintaining a $(1\pm \varepsilon)$ multiplicative approximation to $1-S$ in dynamic data streams. This in turn also yields a $\varepsilon$ additive approximation of the similarity. The existence of these approximations hints at, but does not directly imply a LSH scheme in dynamic data streams. Our second and main contribution now lies in the design of such a LSH scheme maintainable in dynamic data streams. The scheme is space efficient, easy to implement and to the best of our knowledge the first of its kind able to process deletions.
Microsoft Research(微软研究院);The University of Queensland(昆士兰大学);Tsinghua University(清华大学)
相似性搜索(最近邻搜索)是从大型数据库中寻找与查询项距离最小的数据项的问题。已经开发了各种方法来解决这个问题,最近已经投入了大量的努力近似搜索。在本文中,我们提出了一个调查的主要解决方案之一,哈希,这已经被广泛研究,因为开拓性的工作局部敏感哈希。本文将散列算法分为两大类:局部敏感散列算法(locality sensitive hashing)和学习散列算法(learning to hash),局部敏感散列算法是根据数据分布来学习散列函数,本文从散列函数的设计、散列编码空间中的距离度量和搜索机制等方面对散列算法进行了综述。
A Generic Inverted Index Framework for Similarity Search on the GPU - Technical Report
National University of Singapore(新加坡国立大学);Univ. of Michigan, Ann Arbor(密歇根大学安娜堡分校);Nanyang Technological University(南洋理工大学);Baidu Research(百度研究院);Tencent Inc.(腾讯公司)
FLASH: Randomized Algorithms Accelerated over CPU-GPU for Ultra-High Dimensional Similarity Search
我们提出了FLASH(\textbf{F} ast \textbf{L} SH \textbf{A} lsm for \textbf{S} imilarity search accelerated with \textbf{H} PC),一个在单机上的超高维数据集的相似性搜索系统,它不需要相似性计算,是为高性能计算平台量身定制的。通过利用LSH风格的随机化索引过程,并将其与几种原则性技术相结合,如水库采样,最新进展的一次通过minwise散列,基于计数的估计,我们降低了相似性搜索的计算和并行化成本,同时保留了良好的理论保证。我们评估FLASH上的几个真正的,高维的数据集,从不同的领域,包括文本,恶意URL,点击预测,社交网络等,我们的实验揭示了新的光与数据集具有数百万个维度的困难。当前最先进的实现要么在所呈现的规模上失败,要么比闪存慢几个数量级。FLASH能够在不到10秒的时间内从零开始计算整个垃圾邮件数据集(13亿个非零值)的近似k-NN图。使用蛮力($n^2D$)在不到10秒的时间内在webspam数据集上计算一个完整的k-NN图,将需要至少20 teraflops。我们提供闪存的CPU和GPU实现,以实现结果的可复制性。