arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2109.03337stat.MLcs.LG
收藏

C-MinHash:严格地将$K$排列减少到两个

C-MinHash: Rigorously Reducing $K$ Permutations to Two

Cognitive Computing Lab(认知计算实验室);Baidu Research(百度研究院)

Xiaoyun Li, Ping Li

摘要:

Minwise hash(MinHash)算法是一种重要而实用的生成随机哈希值的算法,它能在海量二进制(0/1)数据中逼近Jaccard(相似性)相似性。MinHash的基本理论要求对数据集中的每个数据向量应用数百甚至数千个独立的随机排列,以便获得可靠的结果(例如,)在海量数据中建立大规模学习模型或近似近邻搜索。本文提出了{ \bf循环MinHash(C-MinHash)},并给出了令人惊讶的理论结果,即我们只需要\textbf{two}独立的随机置换.对于C-MinHash,我们首先对数据向量进行初始排列,然后使用第二次排列生成哈希值。基本上,第二个置换通过循环移位被重复使用$K$次以产生$K$散列。与经典MinHash不同,这些$K$哈希值显然是相关的,但我们能够提供严格的证明,我们仍然获得了Jaccard相似性的无偏估计,并且理论方差一致小于具有$K$独立排列的经典MinHash。C-MinHash的理论证明需要一些非平凡的努力。数值实验证明了理论的正确性,并验证了C-MinHash算法的有效性。

英文摘要:

Minwise hashing (MinHash) is an important and practical algorithm for generating random hashes to approximate the Jaccard (resemblance) similarity in massive binary (0/1) data. The basic theory of MinHash requires applying hundreds or even thousands of independent random permutations to each data vector in the dataset, in order to obtain reliable results for (e.g.,) building large-scale learning models or approximate near neighbor search in massive data. In this paper, we propose {\bf Circulant MinHash (C-MinHash)} and provide the surprising theoretical results that we just need \textbf{two} independent random permutations. For C-MinHash, we first conduct an initial permutation on the data vector, then we use a second permutation to generate hash values. Basically, the second permutation is re-used $K$ times via circulant shifting to produce $K$ hashes. Unlike classical MinHash, these $K$ hashes are obviously correlated, but we are able to provide rigorous proofs that we still obtain an unbiased estimate of the Jaccard similarity and the theoretical variance is uniformly smaller than that of the classical MinHash with $K$ independent permutations. The theoretical proofs of C-MinHash require some non-trivial efforts. Numerical experiments are conducted to justify the theory and demonstrate the effectiveness of C-MinHash.

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

↑