DartMinHash: Fast Sketching for Weighted Sets

Tobias Christiani
5/23/2020
cs.DScs.IRcs.LG

Official code: tobc/dartminhash (12 stars, C++, MIT, last commit 2025-12-08).

Abstract

Weighted minwise hashing is a standard dimensionality reduction technique with applications to similarity search and large-scale kernel machines. We introduce a simple algorithm that takes a weighted set $x \in \mathbb{R}_{\geq 0}^{d}$ and computes $k$ independent minhashes in expected time $O(k \log k + \Vert x \Vert_{0}\log( \Vert x \Vert_1 + 1/\Vert x \Vert_1))$, improving upon the state-of-the-art BagMinHash algorithm (KDD '18) and representing the fastest weighted minhash algorithm for sparse data.

Show full abstract

Our experiments show running times that scale better with $k$ and $\Vert x \Vert_0$ compared to ICWS (ICDM '10) and BagMinhash, obtaining $10$x speedups in common use cases. Our approach also gives rise to a technique for computing fully independent locality-sensitive hash values for $(L, K)$-parameterized approximate near neighbor search under weighted Jaccard similarity in optimal expected time $O(LK + \Vert x \Vert_0)$, improving on prior work even in the case of unweighted sets.

View on arXivView PDF

Code Implementations(1)

tobc/dartminhashOfficial100%
MIT

DartMinHash: Fast Sketching for Weighted Sets

124C++, MakefileMay 23, 202011 months agoMIT

Similar Papers

Cite this paper

@article{christiani2020dartminhash,
  title  = {DartMinHash: Fast Sketching for Weighted Sets},
  author = {Tobias Christiani},
  year   = {2020},
  eprint = {2005.11547},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2005.11547}
}

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/2005.11547.svg)](https://codeofpaper.com/paper/2005.11547)

Discussion