arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1208.1259cs.LGcs.IRcs.ITmath.ITstat.COstat.ML
收藏

一种用于高效搜索和学习的排列散列算法

One Permutation Hashing for Efficient Search and Learning

Cornell University(康奈尔大学);Stanford University(斯坦福大学);Rutgers University(罗格斯大学)

Ping Li, Art Owen, Cun-Hui Zhang

摘要:

最近,b比特最小哈希方法已被应用于大规模线性学习和次线性时间近邻搜索。minwise哈希的主要缺点是昂贵的预处理成本,因为该方法需要应用(例如,)k=200到500个数据排列。如果新的数据点(例如,新文档或图像)尚未被处理,这在面向用户的应用中可能是一个重要问题。我们开发了一个非常简单的解决方案,基于一个排列散列。从概念上讲,给定一个大规模的二进制数据矩阵,我们只对列进行一次置换,并将置换后的列均匀地划分为k个bin;对于每个数据向量,我们只需存储每个bin中的最小非零位置。有趣的概率分析(通过实验验证)表明,我们的一个置换方案应该执行非常类似于原始(k-置换)minwise散列。事实上,由于“无替换样本”效应,一个置换方案甚至可以稍微更准确。我们在webspam数据集上训练线性SVM和逻辑回归的实验表明,与原始的k-排列方案相比,这种排列散列方案可以达到相同(甚至略好)的精度。为了测试我们的方法的鲁棒性,我们还用小的news 20数据集进行了实验,该数据集非常稀疏,每个数据向量中平均只有500个非零值。有趣的是,当k在news 20数据集上不太小时,我们的一个置换方案明显优于k-置换方案。总之,我们的方法可以达到至少相同的精度作为原始的k-置换方案,在只有1/k的原始预处理成本。

英文摘要:

Recently, the method of b-bit minwise hashing has been applied to large-scale linear learning and sublinear time near-neighbor search. The major drawback of minwise hashing is the expensive preprocessing cost, as the method requires applying (e.g.,) k=200 to 500 permutations on the data. The testing time can also be expensive if a new data point (e.g., a new document or image) has not been processed, which might be a significant issue in user-facing applications. We develop a very simple solution based on one permutation hashing. Conceptually, given a massive binary data matrix, we permute the columns only once and divide the permuted columns evenly into k bins; and we simply store, for each data vector, the smallest nonzero location in each bin. The interesting probability analysis (which is validated by experiments) reveals that our one permutation scheme should perform very similarly to the original (k-permutation) minwise hashing. In fact, the one permutation scheme can be even slightly more accurate, due to the "sample-without-replacement" effect. Our experiments with training linear SVM and logistic regression on the webspam dataset demonstrate that this one permutation hashing scheme can achieve the same (or even slightly better) accuracies compared to the original k-permutation scheme. To test the robustness of our method, we also experiment with the small news20 dataset which is very sparse and has merely on average 500 nonzeros in each data vector. Interestingly, our one permutation scheme noticeably outperforms the k-permutation scheme when k is not too small on the news20 dataset. In summary, our method can achieve at least the same accuracy as the original k-permutation scheme, at merely 1/k of the original preprocessing cost.

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

↑