HyperMinHash: MinHash in LogLog space

Yun William Yu, Griffin M. Weber
10/23/2017
8 citations
cs.DScs.DB

Official code: axiomhq/hyperminhash (308 stars, Go, MIT, last commit 2018-03-09). 1 more implementation below.

Abstract

In this extended abstract, we describe and analyze a lossy compression of MinHash from buckets of size $O(\log n)$ to buckets of size $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.

Show full abstract

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+ ε$ on a Jaccard index $ t $, given a random oracle, HyperMinHash needs $O\left(ε^{-2} \left( \log\log n + \log \frac{1}{ t ε} \right)\right)$ space. HyperMinHash allows estimating Jaccard indices of 0.01 for set cardinalities on the order of $10^{19}$ with relative error of around 10\% using 64KiB of memory; MinHash can only estimate Jaccard indices for cardinalities of $10^{10}$ with the same memory consumption.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
axiomhq/hyperminhashOfficial308GoMIT2018-03-09
yunwilliamyu/hyperminhashOfficial57PythonCC0-1.02020-02-19
MIT

HyperMinHash: Bringing intersections to HyperLogLog

30818GoNov 17, 20178 years agoMIT
estimationhyperloglog
CC0-1.0

LogLog space version of MinHash by combining ideas from HyperLogLog and b-bit MinHash

578Python, ShellOct 21, 20176 years agoCC0-1.0

Similar Papers

Cite this paper

@article{yu2017hyperminhash,
  title  = {HyperMinHash: MinHash in LogLog space},
  author = {Yun William Yu and Griffin M. Weber},
  year   = {2017},
  eprint = {1710.08436},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1710.08436}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1710.08436.svg)](https://codeofpaper.com/paper/1710.08436)

Discussion