Practical Hash Functions for Similarity Estimation and Dimensionality Reduction
Not on the map. Why?
Abstract (arXiv)
Hashing is a basic tool for dimensionality reduction employed in several aspects of machine learning. However, the perfomance analysis is often carried out under the abstract assumption that a truly random unit cost hash function is used, without concern for which concrete hash function is employed. The concrete hash function may work fine on sufficiently random input. The question is if it can be trusted in the real world when faced with more structured input. In this paper we focus on two prominent applications of hashing, namely similarity estimation with the one permutation hashing (OPH) scheme of Li et al. [NIPS'12] and feature hashing (FH) of Weinberger et al. [ICML'09], both of which have found numerous applications, i.e. in approximate near-neighbour search with LSH and large-scale classification with SVM. We consider mixed tabulation hashing of Dahlgaard et al.[FOCS'15] which was proved to perform like a truly random hash function in many applications, including OPH. Here we first show improved concentration bounds for FH with truly random hashing and then argue that mixed tabulation performs similar for sparse input. Our main contribution, however, is an experimental comparison of different hashing schemes when used inside FH, OPH, and LSH. We find that mixed tabulation hashing is almost as fast as the multiply-mod-prime scheme ax+b mod p. Mutiply-mod-prime is guaranteed to work well on sufficiently random data, but we demonstrate that in the above applications, it can lead to bias and poor concentration on both real-world and synthetic data. We also compare with the popular MurmurHash3, which has no proven guarantees. Mixed tabulation and MurmurHash3 both perform similar to truly random hashing in our experiments. However, mixed tabulation is 40% faster than MurmurHash3, and it has the proven guarantee of good performance on all possible input.
Key facts. Cited by 7 papers in the map (data through 14 Oct 2026). First posted on arXiv 23 Nov 2017.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 1; 2022: 3; 2023: 3.
7 papers.
- 2023Unified Embedding: Battle-Tested Feature Representations for Web-Scale ML Systemscited by 14
- 2021An Introduction to Johnson-Lindenstrauss Transformscited by 11
- 2023Differentially Private One Permutation Hashing and Bin-wise Consistent Weighted Samplingcited by 3
- 2022A Lower Bound of Hash Codes' Performancecited by 2
- 2022Robust and Provable Guarantees for Sparse Random Embeddingscited by 1
- 2023Sparse Dimensionality Reduction Revisitedcited by 1
- 2022Johnson-Lindenstrauss embeddings for noisy vectors -- taking advantage of the noisecited by 0
- 2023Differentially Private One Permutation Hashing and Bin-wise Consistent Weighted Sampling13 Jun 2023
- 2023Unified Embedding: Battle-Tested Feature Representations for Web-Scale ML Systems20 May 2023
- 2023Sparse Dimensionality Reduction Revisited13 Feb 2023
- 2022A Lower Bound of Hash Codes' Performance12 Oct 2022
- 2022Johnson-Lindenstrauss embeddings for noisy vectors -- taking advantage of the noise1 Sep 2022
- 2022Robust and Provable Guarantees for Sparse Random Embeddings22 Feb 2022
- 2021An Introduction to Johnson-Lindenstrauss Transforms28 Feb 2021