[Paper Review] Optimal Densification for Fast and Accurate Minwise Hashing
This paper proposes an optimal densification scheme for minwise hashing that achieves the same variance and collision probability as vanilla minwise hashing while maintaining the same low computational cost of $O(d + k)$, significantly improving accuracy over prior densification methods, especially for sparse data. The method uses carefully tailored 2-universal hash functions to eliminate variance bias.
Minwise hashing is a fundamental and one of the most successful hashing algorithm in the literature. Recent advances based on the idea of densification~\cite{Proc:OneHashLSH_ICML14,Proc:Shrivastava_UAI14} have shown that it is possible to compute $k$ minwise hashes, of a vector with $d$ nonzeros, in mere $(d + k)$ computations, a significant improvement over the classical $O(dk)$. These advances have led to an algorithmic improvement in the query complexity of traditional indexing algorithms based on minwise hashing. Unfortunately, the variance of the current densification techniques is unnecessarily high, which leads to significantly poor accuracy compared to vanilla minwise hashing, especially when the data is sparse. In this paper, we provide a novel densification scheme which relies on carefully tailored 2-universal hashes. We show that the proposed scheme is variance-optimal, and without losing the runtime efficiency, it is significantly more accurate than existing densification techniques. As a result, we obtain a significantly efficient hashing scheme which has the same variance and collision probability as minwise hashing. Experimental evaluations on real sparse and high-dimensional datasets validate our claims. We believe that given the significant advantages, our method will replace minwise hashing implementations in practice.
Motivation & Objective
- To address the high variance in existing densification techniques for minwise hashing, which reduces accuracy despite improved runtime.
- To develop a densification scheme that matches the theoretical variance of vanilla minwise hashing while preserving computational efficiency.
- To enable practical deployment of minwise hashing in large-scale systems by eliminating accuracy degradation due to variance in densified sketches.
- To validate that the proposed method achieves variance-optimal performance across diverse sparse, high-dimensional datasets.
Proposed method
- Introduces a novel densification scheme using 2-universal hash functions to ensure variance-optimality.
- Employs a modified one-permutation hashing framework where each hash is computed in $O(d + k)$ time using a single pass over non-zero elements.
- Derives a theoretical variance formula (Equation 19) that matches empirical results, proving the scheme is variance-optimal.
- Uses a randomized hashing strategy that avoids costly permutations and mod operations, enabling high-speed computation.
- Applies the method to generate $k$ minwise hashes with minimal bias and optimal collision probability equal to Jaccard similarity.
- Employs a two-step hashing process: first, a base hash maps non-zero indices; second, a secondary hash ensures uniform distribution across bins.
Experimental results
Research questions
- RQ1Can a densification scheme be designed that achieves the same variance as vanilla minwise hashing while maintaining $O(d + k)$ runtime?
- RQ2Does the proposed method significantly reduce variance compared to existing densification techniques, especially for sparse data?
- RQ3Can the theoretical variance of the proposed scheme be validated empirically across real-world datasets?
- RQ4Is the proposed method both faster than traditional minwise hashing and more accurate than prior densification methods?
Key findings
- The proposed optimal densification scheme achieves variance indistinguishable from vanilla minwise hashing, with MSE values matching the theoretical bound $\frac{R(1-R)}{k}$.
- For sparse datasets like RCV1 and News20, the proposed method reduces MSE by up to 2–3 orders of magnitude compared to existing densification schemes at $k = 2^{14}$.
- The method maintains $O(d + k)$ runtime, making it 10–18x faster than traditional minwise hashing for $k = 300$ on real datasets.
- Theoretical variance predictions closely match empirical estimates, validating the correctness of the derived variance formula (Equation 19).
- Existing densification schemes exhibit non-zero limiting variance that does not decay with increasing $k$, confirming their suboptimality.
- The number of empty bins in one-permutation hashing drops significantly with optimal densification, with 90%+ of bins filled at $k = 300$, enabling effective indexing and kernel learning.
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.