Skip to main content
QUICK REVIEW

[Paper Review] A Review for Weighted MinHash Algorithms

Wei Wu, Bin Li|arXiv (Cornell University)|Nov 12, 2018
Text and Document Classification TechnologiesComputer Science5 citations
TL;DR

This paper provides a comprehensive review and comparative analysis of weighted MinHash algorithms for estimating generalized Jaccard similarity in large-scale data workloads. It categorizes existing methods into quantization-based, 'active index'-based, and other approaches, introduces a Python toolbox for implementation, and evaluates performance across accuracy, runtime, and variance sensitivity, identifying ICWS and I²CWS as top performers in balancing accuracy and efficiency.

ABSTRACT

Data similarity (or distance) computation is a fundamental research topic which underpins many high-level applications based on similarity measures in machine learning and data mining. However, in large-scale real-world scenarios, the exact similarity computation has become daunting due to "3V" nature (volume, velocity and variety) of big data. In such cases, the hashing techniques have been verified to efficiently conduct similarity estimation in terms of both theory and practice. Currently, MinHash is a popular technique for efficiently estimating the Jaccard similarity of binary sets and furthermore, weighted MinHash is generalized to estimate the generalized Jaccard similarity of weighted sets. This review focuses on categorizing and discussing the existing works of weighted MinHash algorithms. In this review, we mainly categorize the Weighted MinHash algorithms into quantization-based approaches, "active index"-based ones and others, and show the evolution and inherent connection of the weighted MinHash algorithms, from the integer weighted MinHash algorithms to real-valued weighted MinHash ones (particularly the Consistent Weighted Sampling scheme). Also, we have developed a python toolbox for the algorithms, and released it in our github. Based on the toolbox, we experimentally conduct a comprehensive comparative study of the standard MinHash algorithm and the weighted MinHash ones.

Motivation & Objective

  • To systematically categorize and analyze existing weighted MinHash algorithms for generalized Jaccard similarity estimation.
  • To evaluate the trade-offs between accuracy, runtime, and variance sensitivity across 12 weighted MinHash methods.
  • To develop and release a comprehensive Python toolbox implementing MinHash and all 12 weighted MinHash algorithms for reproducible research and benchmarking.
  • To investigate the limitations of existing methods in streaming and concept-drifting data environments and identify open challenges.

Proposed method

  • Categorizes weighted MinHash algorithms into three groups: quantization-based (transforming weights into binary subelements), 'active index'-based (sampling only key subelements), and other specialized methods.
  • Employs the Consistent Weighted Sampling (CWS) framework as a theoretical foundation, particularly emphasizing ICWS, I²CWS, PCWS, and CCWS variants.
  • Uses the generalized Jaccard similarity formula as the target measure, with hash functions designed to preserve probability proportional to weight.
  • Applies the Beta and Gamma distributions in CWS-based schemes to directly sample from continuous weight distributions, improving efficiency over uniform sampling.
  • Implements a custom Python toolbox with optimized code for all 13 algorithms (standard MinHash + 12 weighted variants), enabling reproducible benchmarking.
  • Conducts large-scale experiments on synthetic and real-world datasets to compare accuracy (via RMSE), runtime, and sensitivity to weight variance.

Experimental results

Research questions

  • RQ1How do different weighted MinHash algorithms compare in terms of accuracy, runtime, and sensitivity to weight variance?
  • RQ2What are the inherent trade-offs between theoretical correctness, computational efficiency, and practical applicability in weighted MinHash methods?
  • RQ3Which algorithm performs best in balancing accuracy and efficiency across diverse data distributions?
  • RQ4How do existing methods scale in streaming environments with expanding feature spaces and concept drift?
  • RQ5Can the CWS framework be further optimized for memory efficiency and concept drift adaptation?

Key findings

  • ICWS and its variants (I²CWS and PCWS) achieve the best balance between accuracy and runtime, outperforming other methods in most benchmark scenarios.
  • CCWS runs more efficiently than ICWS and related methods due to direct sampling from Beta and Gamma distributions, but its performance degrades with high weight variance.
  • The [Shrivastava, 2016] method shows strong accuracy and speed, except on Syn3A0.2B due to small weights reducing the effective sampling ratio.
  • Methods requiring pre-scanning of the full feature space (e.g., [Gollapudi et al., 2006]) are infeasible for streaming data, limiting real-time deployment.
  • Chum et al. (2008) is the fastest but biased and lacks theoretical error bounds, making it unsuitable for accurate similarity estimation.
  • The study identifies a critical need for CWS-based methods that support concept drift and dynamic feature expansion in streaming data workloads.

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.