Skip to main content
QUICK REVIEW

[Paper Review] Accurate Estimators for Improving Minwise Hashing and b-Bit Minwise Hashing

Ping Li, Arnd Christian König|arXiv (Cornell University)|Aug 3, 2011
Spam and Phishing DetectionComputer Science17 references5 citations
TL;DR

This paper proposes improved estimators for minwise hashing and b-bit minwise hashing by leveraging a 3-cell multinomial model that accounts for unequal set sizes and containment relationships. By incorporating probabilities of min-hash collisions, mismatches, and equal values, the new estimators significantly reduce bias and variance, especially for low-resemblance, high-containment set pairs, outperforming standard estimators in both accuracy and robustness across diverse similarity regimes.

ABSTRACT

Minwise hashing is the standard technique in the context of search and databases for efficiently estimating set (e.g., high-dimensional 0/1 vector) similarities. Recently, b-bit minwise hashing was proposed which significantly improves upon the original minwise hashing in practice by storing only the lowest b bits of each hashed value, as opposed to using 64 bits. b-bit hashing is particularly effective in applications which mainly concern sets of high similarities (e.g., the resemblance >0.5). However, there are other important applications in which not just pairs of high similarities matter. For example, many learning algorithms require all pairwise similarities and it is expected that only a small fraction of the pairs are similar. Furthermore, many applications care more about containment (e.g., how much one object is contained by another object) than the resemblance. In this paper, we show that the estimators for minwise hashing and b-bit minwise hashing used in the current practice can be systematically improved and the improvements are most significant for set pairs of low resemblance and high containment.

Motivation & Objective

  • To address the suboptimal performance of standard minwise hashing estimators in scenarios with unequal set sizes and high containment.
  • To improve estimation accuracy for b-bit minwise hashing, particularly when resemblance is low but containment is high.
  • To develop a principled framework that models the full multinomial distribution of min-hash outcomes rather than relying solely on collision probabilities.
  • To reduce bias and variance in resemblance and containment estimation by incorporating all three outcome types: equal, left-min, and right-min.
  • To provide a unified, analytically tractable estimator that outperforms existing methods across diverse similarity regimes.

Proposed method

  • Models the min-hash outcome distribution as a 3-cell multinomial with probabilities P_= (collision), P_< (S1 min < S2 min), and P_> (S1 min > S2 min).
  • Derives exact closed-form expressions for the joint probabilities of b-bit min-hash values using geometric series and normalization factors involving (1 - r)^{2^b} terms.
  • Constructs a likelihood function based on observed b-bit min-hash values and maximizes it to estimate resemblance and containment.
  • Introduces a bias-corrected estimator that combines all three outcome types, improving upon the standard estimator that only uses P_=.
  • Uses the 3-cell model to derive a new estimator that is optimal when f1 ≠ f2, particularly effective when f2/f1 is small.
  • Applies the method to both standard minwise hashing and b-bit minwise hashing, showing consistent improvements in estimation accuracy.

Experimental results

Research questions

  • RQ1How can standard minwise hashing estimators be systematically improved when set sizes are unequal?
  • RQ2What is the optimal way to estimate resemblance and containment when the resemblance is low but containment is high?
  • RQ3Can a 3-cell multinomial model of min-hash outcomes lead to more accurate estimators than the standard binomial model?
  • RQ4How does the performance of the new estimator compare to existing methods across varying resemblance and containment regimes?
  • RQ5What is the theoretical and empirical impact of using b-bit minwise hashing with the improved estimator on estimation bias and variance?

Key findings

  • The standard minwise hashing estimator (based only on collisions) is optimal only when f1 = f2; it becomes increasingly biased when set sizes are unequal.
  • The proposed estimator reduces bias significantly for low-resemblance, high-containment pairs, where standard estimators perform poorly.
  • For b-bit minwise hashing, the new estimator achieves lower variance and higher accuracy, especially when f2/f1 < 0.1, which is common in real-world datasets.
  • The improvement is most pronounced in the regime of low resemblance (R < 0.5) and high containment (T ≈ 1), where standard methods fail.
  • Empirical results on the webspam dataset show that the mean f1/f2 ratio is 5.5 with a standard deviation of 9.5, confirming the prevalence of unequal set sizes.
  • Theoretical analysis confirms that the new estimator is optimal under the 3-cell multinomial model, with closed-form expressions for all outcome probabilities.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.