English

HyperMinHash: MinHash in LogLog space

Data Structures and Algorithms 2019-07-16 v5 Databases

Abstract

In this extended abstract, we describe and analyze a lossy compression of MinHash from buckets of size O(logn)O(\log n) to buckets of size O(loglogn)O(\log\log n) by encoding using floating-point notation. This new compressed sketch, which we call HyperMinHash, as we build off a HyperLogLog scaffold, can be used as a drop-in replacement of MinHash. Unlike comparable Jaccard index fingerprinting algorithms in sub-logarithmic space (such as b-bit MinHash), HyperMinHash retains MinHash's features of streaming updates, unions, and cardinality estimation. For a multiplicative approximation error 1+ϵ1+ \epsilon on a Jaccard index t t , given a random oracle, HyperMinHash needs O(ϵ2(loglogn+log1tϵ))O\left(\epsilon^{-2} \left( \log\log n + \log \frac{1}{ t \epsilon} \right)\right) space. HyperMinHash allows estimating Jaccard indices of 0.01 for set cardinalities on the order of 101910^{19} with relative error of around 10\% using 64KiB of memory; MinHash can only estimate Jaccard indices for cardinalities of 101010^{10} with the same memory consumption.

Keywords

Cite

@article{arxiv.1710.08436,
  title  = {HyperMinHash: MinHash in LogLog space},
  author = {Yun William Yu and Griffin M. Weber},
  journal= {arXiv preprint arXiv:1710.08436},
  year   = {2019}
}

Comments

12 pages, 6 figures

R2 v1 2026-06-22T22:23:11.168Z