MinHash & Jaccard Similarity Estimation

A technique for estimating the Jaccard similarity between sets using a small number of hash values (the minimum hash under multiple permutations or equivalent hash functions), enabling efficient similarity search and clustering of high-dimensional sparse data.

Method

For each of k hash functions, store the minimum hash value over set elements. The fraction of agreeing MinHash values estimates Jaccard similarity. Combined with LSH for sublinear retrieval. One-permutation and other efficient variants exist. Bottom-k and related sketches are related.

Applications

Near-duplicate web page detection, document clustering, plagiarism detection, recommendation (item-set similarity), genome assembly and comparison, large-scale set similarity joins.

Advantages

Simple, fast, and theoretically clean; excellent for sparse high-dimensional set data; enables massive-scale similarity computation; easy to parallelize and update.

Limitations

Estimates are approximate; number of hashes controls variance; less suitable for non-set data without suitable featurization; very unbalanced set sizes can affect estimation quality.

Alternatives

SimHash (for cosine), LSH families for other distances, exact Jaccard with inverted indexes (for moderate scale), embedding-based similarity.

Sources

Educational reference only, not professional advice.

All algorithms