Skip to main content
QUICK REVIEW

[Paper Review] DartMinHash: Fast Sketching for Weighted Sets

Tobias Christiani|arXiv (Cornell University)|May 23, 2020
Video Analysis and SummarizationComputer Science29 references5 citations
TL;DR

DartMinHash introduces a novel algorithm for fast weighted minwise hashing that computes k independent minhashes in expected time O(k log k + ||x||₀ log(||x||₁ + 1/||x||₁)), significantly outperforming prior methods like BagMinhash and FastICWS. It achieves up to 30× speedups in common workloads, especially for sparse data with large k and ||x||₀, while maintaining theoretical optimality for constant-weight sets.

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. 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.

Motivation & Objective

  • To address the performance bottleneck in computing independent minhashes for weighted sets in similarity search and large-scale kernel machines.
  • To develop a sketching primitive that efficiently recovers the first t darts hitting a weighted set, enabling faster locality-sensitive hashing and minhash computation.
  • To improve upon existing algorithms like BagMinhash and FastICWS by reducing running time, especially for large k and sparse data with ||x||₁ = 1.
  • To achieve optimal expected time complexity O(LK + ||x||₀) for (L,K)-parameterized approximate near neighbor search under weighted Jaccard similarity.

Proposed method

  • The algorithm uses a dart-throwing model where darts are uniformly sampled into [0,M]^d, and the first dart hitting a set x determines its minhash value.
  • It introduces a novel data structure and sampling strategy to efficiently retrieve the first t darts that hit x in O(t + ||x||₀ log(||x||₁ + 1/||x||₁)) expected time, independent of sparsity.
  • The method leverages priority queues and weighted random sampling to avoid rejection sampling, which is slow for sparse data with low ||x||₁.
  • It supports fully independent minhash computation by simulating independent random sequences via a deterministic, efficient sampling mechanism.
  • The algorithm is designed to be optimal for constant-weight sets, matching the O(t + ||x||₀) lower bound when ||x||₁ = Θ(1).
  • It enables fast (L,K)-parameterized LSH for weighted Jaccard similarity with optimal O(LK + ||x||₀) expected time.

Experimental results

Research questions

  • RQ1Can we compute k independent minhashes for weighted sets faster than existing methods like BagMinhash and FastICWS?
  • RQ2Is it possible to achieve optimal expected time O(k log k + ||x||₀ log(||x||₁ + 1/||x||₁)) for weighted minwise hashing?
  • RQ3How does the algorithm perform under extreme values of ||x||₁, such as very small or very large weights?
  • RQ4Can the algorithm be used to accelerate (L,K)-parameterized approximate near neighbor search under weighted Jaccard similarity?
  • RQ5Does the algorithm maintain high performance across diverse data sparsity and sketch length settings?

Key findings

  • DartMinHash achieves up to 30× speedup over the runner-up algorithm (BagMinhash) when k = ||x||₀ = 4096 and ||x||₁ = 1.
  • On average, DartMinHash is 10× faster than FastICWS and 15× faster than BagMinhash across common workloads with ||x||₁ = 1.
  • The algorithm maintains a 10× speedup for k = 256 and ||x||₀ = 1024 even when ||x||₁ is extreme (e.g., 2^±64), though performance degrades at ||x||₁ = 2^±512.
  • For ||x||₁ ∈ [2^-32, 2^32], DartMinHash retains significant speedup over FastICWS and BagMinhash, with performance stable across typical real-world weight ranges.
  • When ||x||₁ is extremely small (e.g., 2^-512) or large (e.g., 2^512), FastICWS outperforms DartMinHash by 6–7×, indicating sensitivity to extreme weight values.
  • The algorithm achieves optimal expected time O(LK + ||x||₀) for (L,K)-parameterized LSH under weighted Jaccard similarity, improving upon prior work even for unweighted sets.

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.