[Paper Review] SuperMinHash - A New Minwise Hashing Algorithm for Jaccard Similarity Estimation
This paper introduces SuperMinHash, a novel minwise hashing algorithm that improves upon MinHash by reducing estimator variance and enhancing runtime efficiency. By leveraging a hierarchical hashing structure with parameterized uniformity, SuperMinHash achieves lower variance in Jaccard similarity estimation while maintaining linear pass-through performance, outperforming MinHash and prior alternatives in both precision and scalability for large-scale set similarity tasks.
This paper presents a new algorithm for calculating hash signatures of sets which can be directly used for Jaccard similarity estimation. The new approach is an improvement over the MinHash algorithm, because it has a better runtime behavior and the resulting signatures allow a more precise estimation of the Jaccard index.
Motivation & Objective
- To address the limitations of MinHash and existing minwise hashing methods in terms of estimator variance and computational efficiency for Jaccard similarity estimation.
- To develop a streaming-friendly algorithm that maintains low variance and high precision, especially for small and medium-sized sets.
- To reduce the variance of Jaccard index estimators below that of MinHash and one-permutation hashing while preserving single-pass processing capability.
- To enable efficient signature computation and merging for union operations, overcoming limitations of densified hashing schemes.
Proposed method
- SuperMinHash uses a hierarchical hashing structure where each hash value is derived from a uniform distribution over a range of values, parameterized by a uniformity parameter u.
- The algorithm computes signature values by selecting the minimum hash value from a set of uniformly distributed random values, with the distribution adjusted to reduce variance in the Jaccard estimator.
- It employs a recursive construction of hash functions that ensures the probability of matching signature values across sets corresponds to the Jaccard index, while minimizing the covariance between different hash positions.
- The method uses a modified uniform distribution over intervals to control the probability of collision between sets, leading to a variance formula dependent on α(m,u), a function of signature size m and uniformity parameter u.
- The algorithm is designed to be a single-pass streaming algorithm, enabling efficient processing of large or in-memory data sets.
- It avoids densification issues by ensuring all signature positions are deterministically computed, preserving estimator bias and enabling union operations on signatures.
Experimental results
Research questions
- RQ1Can a minwise hashing algorithm be designed that achieves lower variance in Jaccard similarity estimation than MinHash while maintaining linear time complexity?
- RQ2How does the variance of the Jaccard estimator in SuperMinHash compare to MinHash and one-permutation hashing across different data set sizes?
- RQ3Can a single-pass streaming algorithm be constructed that avoids the precision loss of densified signatures while maintaining low computational cost?
- RQ4What is the optimal parameterization of the uniformity parameter u to minimize estimator variance for a given signature size m?
Key findings
- The variance of the Jaccard index estimator in SuperMinHash is strictly lower than that of MinHash for the same signature size m, due to a variance factor of α(m,u), which is less than 1.
- The estimator variance in SuperMinHash is given by Var(Ĵ) = J(1−J)/m × α(m,u), where α(m,u) < 1, proving a strict improvement over MinHash’s variance of J(1−J)/m.
- For small data sets with |D| ≪ m, SuperMinHash maintains higher precision than densified one-permutation hashing, which suffers from quadratic runtime and reduced accuracy.
- The algorithm achieves a runtime complexity of O(n + m log²m), which is significantly better than MinHash’s O(mn) for large m, while remaining competitive for small data sets.
- Unlike densified hashing schemes, SuperMinHash signatures can be directly merged to compute the signature of a union set, preserving estimator properties.
- The method is provably unbiased and maintains the key property that P(hj(A) = hj(B)) = J, ensuring the estimator remains valid and consistent.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.