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

快速相似性摘要(Sketching)

Fast Similarity Sketching

Søren Dahlgaard, Mathias Bæk Tejs Langhede, Jakob Bæk Tejs Houen, Mikkel Thorup

AI总结:

本文研究相似性摘要问题,针对经典 MinHash 算法运行时间 O(t·|A|) 的缺点,探索在保持 Jaccard 相似度强集中性的前提下实现更快速摘要生成的方法。

摘要:

我们考虑“相似性摘要”问题:给定一个全集 $[u] = \{0,\ldots, u-1\}$,我们希望有一个随机函数 $S$,将子集 $A\subseteq [u]$ 映射为大小为 $t$ 的向量 $S(A)$,使得集合 $A$ 和 $B$ 之间的 Jaccard 相似度 $J(A,B) = |A\cap B|/|A\cup B|$ 得以保持。更精确地说,定义 $X_i = [S(A)[i] = S(B)[i]]$ 以及 $X = \sum_{i\in [t]} X_i$。我们希望 $E[X_i]=J(A,B)$,并且希望 $X$ 强烈集中在 $E[X] = t \cdot J(A,B)$ 附近(即 Chernoff 型界)。这是一个基本问题,通过经典的 MinHash 算法在数据挖掘、大规模分类、计算机视觉、相似性搜索等领域得到了大量应用。向量 $S(A)$ 也被称为“摘要(sketches)”。强集中性至关重要,因为我们常常希望为许多集合 $B_1,\ldots,B_n$ 生成摘要,以便之后对于一个查询集合 $A$,能够找到(其中一个)最相似的 $B_i$。此时关键的是,不能有任何 $B_i$ 由于摘要中的误差而看起来与 $A$ 相似得多。开创性的 $t\times\textit{MinHash}$ 算法使用 $t$ 个随机哈希函数 $h_1,\ldots, h_t$,并将 $\left ( \min_{a\in A} h_1(A),\ldots, \min_{a\in A} h_t(A) \right )$ 存储为 $A$ 的摘要。然而,MinHash 的主要缺点是其 $O(t\cdot |A|)$ 的运行时间,而寻找具有类似性质且运行时间更快的摘要一直是多篇论文的研究主题。(续……)

英文摘要:

We consider the $\textit{Similarity Sketching}$ problem: Given a universe $[u] = \{0,\ldots, u-1\}$ we want a random function $S$ mapping subsets $A\subseteq [u]$ into vectors $S(A)$ of size $t$, such that the Jaccard similarity $J(A,B) = |A\cap B|/|A\cup B|$ between sets $A$ and $B$ is preserved. More precisely, define $X_i = [S(A)[i] = S(B)[i]]$ and $X = \sum_{i\in [t]} X_i$. We want $E[X_i]=J(A,B)$, and we want $X$ to be strongly concentrated around $E[X] = t \cdot J(A,B)$ (i.e. Chernoff-style bounds). This is a fundamental problem which has found numerous applications in data mining, large-scale classification, computer vision, similarity search, etc. via the classic MinHash algorithm. The vectors $S(A)$ are also called $\textit{sketches}$. Strong concentration is critical, for often we want to sketch many sets $B_1,\ldots,B_n$ so that we later, for a query set $A$, can find (one of) the most similar $B_i$. It is then critical that no $B_i$ looks much more similar to $A$ due to errors in the sketch. The seminal $t\times\textit{MinHash}$ algorithm uses $t$ random hash functions $h_1,\ldots, h_t$, and stores $\left ( \min_{a\in A} h_1(A),\ldots, \min_{a\in A} h_t(A) \right )$ as the sketch of $A$. The main drawback of MinHash is, however, its $O(t\cdot |A|)$ running time, and finding a sketch with similar properties and faster running time has been the subject of several papers. (continued...)

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

↑