Previous work on tabulation hashing by Patrascu and Thorup from STOC'11 on simple tabulation and from SODA'13 on twisted tabulation offered Chernoff-style concentration bounds on hash based sums, e.g., the number of balls/keys hashing to a given bin, but under some quite severe restrictions on the expected values of these sums. The basic idea in tabulation hashing is to view a key as consisting of $c=O(1)$ characters, e.g., a 64-bit key as $c=8$ characters of 8-bits. The character domain $Σ$ should be small enough that character tables of size $|Σ|$ fit in fast cache. The schemes then use $O(1)$ tables of this size, so the space of tabulation hashing is $O(|Σ|)$. However, the concentration bounds by Patrascu and Thorup only apply if the expected sums are $\ll |Σ|$.
To see the problem, consider the very simple case where we use tabulation hashing to throw $n$ balls into $m$ bins and want to analyse the number of balls in a given bin. With their concentration bounds, we are fine if $n=m$, for then the expected value is $1$. However, if $m=2$, as when tossing $n$ unbiased coins, the expected value $n/2$ is $\gg |Σ|$ for large data sets, e.g., data sets that do not fit in fast cache.
To handle expectations that go beyond the limits of our small space, we need a much more advanced analysis of simple tabulation, plus a new tabulation technique that we call \emph{tabulation-permutation} hashing which is at most twice as slow as simple tabulation. No other hashing scheme of comparable speed offers similar Chernoff-style concentration bounds.
我们提供了一个变种的交叉多面体局部敏感散列相对于角距离,这是可证明的最佳渐近灵敏度和享受$\mathcal{O}(d \ln d )$散列计算时间。基于最近的结果(Andoni,Indyk,Laarhoven,Razenshteyn,Schmidt,2015),我们表明即使密集高斯矩阵被快速Johnson-Lindenstrauss变换替换,然后进行离散伪旋转,也可以保持交叉多面体LSH的最佳渐近灵敏度,从而将哈希计算时间从$\mathcal{O}(d^2)$减少到$\mathcal{O}(d \ln d )$。此外,我们的计划实现了最佳的灵敏度收敛速度。通过引入一个低随机性的Johnson-Lindenstrauss变换,我们的方案可以修改为只需要$\mathcal{O}(\ln^9(d))$随机比特
Practical Hash Functions for Similarity Estimation and Dimensionality Reduction
University of Copenhagen(哥本哈根大学);SupWiz(SupWiz公司)
散列是机器学习的几个方面中采用的降维的基本工具。然而,性能分析通常是在使用真正随机的单位代价散列函数的抽象假设下进行的,而不关心使用哪种具体的散列函数。具体的散列函数可以在足够随机输入上工作良好。问题是,当面对更结构化的输入时,它在现实世界中是否值得信任。在本文中,我们专注于散列的两个突出应用,即Li等人的单排列散列(OPH)方案的相似性估计。[NIPS'12]和Weinberger等人的特征散列(FH)。[ICML'09],这两个都有许多应用,即LSH的近似近邻搜索和SVM的大规模分类。我们认为混合制表哈希Dahlgaard等人。[FOCS'15],它被证明在许多应用中,包括OPH,表现得像一个真正的随机散列函数。在这里,我们首先展示了使用真正随机散列的FH的改进的浓度范围,然后认为混合制表对稀疏输入的表现类似。然而,我们的主要贡献是在FH,OPH和LSH中使用不同哈希方案的实验比较。我们发现,混合制表散列几乎一样快的multiply-mod-prime方案ax+b mod p. multiply-mod-prime保证工作在足够随机的数据,但我们证明,在上述应用程序中,它可能会导致偏见和现实世界和合成数据的浓度差。我们还比较了流行的MurmurHash 3,它没有经过验证的保证。在我们的实验中,混合制表和MurmurHash 3的表现都类似于真正的随机哈希。然而,混合制表比Mu…
Fast Locality Sensitive Hashing for Beam Search on GPU
Department of Computer Science, University of Southern California(南加州大学计算机科学系);Department of Computer Science and Technology, Tsinghua University(清华大学计算机科学与技术系)