Skip to main content
QUICK REVIEW

[Paper Review] Improved Consistent Weighted Sampling Revisited

Wei Wu, Bin Li|arXiv (Cornell University)|Jun 5, 2017
Text and Document Classification TechnologiesComputer Science33 references4 citations
TL;DR

This paper proposes I²CWS, an improved algorithm for consistent weighted sampling that resolves a critical dependence between components in the hash code of the state-of-the-art ICWS method. By ensuring true independence of the two components while preserving constant-time complexity, I²CWS achieves more accurate estimation of generalized Jaccard similarity and outperforms ICWS and other baselines in similarity estimation, classification, and top-K retrieval tasks.

ABSTRACT

Min-Hash is a popular technique for efficiently estimating the Jaccard similarity of binary sets. Consistent Weighted Sampling (CWS) generalizes the Min-Hash scheme to sketch weighted sets and has drawn increasing interest from the community. Due to its constant-time complexity independent of the values of the weights, Improved CWS (ICWS) is considered as the state-of-the-art CWS algorithm. In this paper, we revisit ICWS and analyze its underlying mechanism to show that there actually exists dependence between the two components of the hash-code produced by ICWS, which violates the condition of independence. To remedy the problem, we propose an Improved ICWS (I$^2$CWS) algorithm which not only shares the same theoretical computational complexity as ICWS but also abides by the required conditions of the CWS scheme. The experimental results on a number of synthetic data sets and real-world text data sets demonstrate that our I$^2$CWS algorithm can estimate the Jaccard similarity more accurately, and also compete with or outperform the compared methods, including ICWS, in classification and top-$K$ retrieval, after relieving the underlying dependence.

Motivation & Objective

  • To identify and resolve a fundamental flaw in the Improved Consistent Weighted Sampling (ICWS) algorithm, where the two components of the hash code are not statistically independent, violating the core assumption of the CWS scheme.
  • To design a new algorithm that maintains the same theoretical computational complexity as ICWS while fully complying with the independence conditions required by the CWS framework.
  • To empirically validate that removing the hidden dependence improves the accuracy of generalized Jaccard similarity estimation and enhances performance in downstream tasks such as classification and top-K retrieval.
  • To provide a theoretically sound and practically efficient alternative to ICWS that maintains efficiency while improving reliability and accuracy in real-world weighted set similarity applications.

Proposed method

  • Propose I²CWS, a modified sampling procedure that generates the hash code as a pair (k*, y_k*), where k* is the element with minimum hash value and y_k* is the largest active index below the weight of k*, ensuring statistical independence between components.
  • Reformulate the sampling mechanism to avoid the implicit dependence introduced in ICWS by decoupling the generation of the element index k* and the active index y_k* using independent uniform random variables.
  • Use a uniform discretization of the original weight space (rather than the logarithm of the weight) to maintain uniformity and avoid bias in the sampling process, as in Canonical CWS, but with improved independence.
  • Introduce a novel method to sample only two critical active indices per element—y_k* and z_k*—while ensuring that their joint distribution satisfies the required independence for consistent weighted sampling.
  • Maintain worst-case constant-time complexity by directly sampling the two required indices without traversing intermediate values, preserving the efficiency of ICWS.
  • Integrate the new sampling logic into the Min-Hash framework to produce consistent, independent hash codes suitable for LSH-based similarity estimation.

Experimental results

Research questions

  • RQ1Does the ICWS algorithm truly satisfy the independence condition between the two components of its hash code, as required by the CWS scheme?
  • RQ2What is the impact of hidden dependence between the components of the ICWS hash code on the accuracy of generalized Jaccard similarity estimation?
  • RQ3Can a new algorithm be designed that maintains the constant-time complexity of ICWS while fully complying with the independence requirements of the CWS framework?
  • RQ4How does the proposed I²CWS algorithm compare to ICWS and other CWS variants in terms of similarity estimation accuracy, classification performance, and top-K retrieval effectiveness?
  • RQ5To what extent does the discarded component y_k* in ICWS contribute to downstream tasks like classification, and can its removal be justified without loss of performance?

Key findings

  • The ICWS algorithm violates the required independence condition between the two components of its hash code, which undermines the theoretical foundation of the CWS scheme.
  • The proposed I²CWS algorithm successfully restores the independence between the components (k* and y_k*) while preserving the same worst-case constant-time computational complexity as ICWS.
  • Empirical evaluation shows that I²CWS estimates the generalized Jaccard similarity more accurately than ICWS, especially in scenarios with high weight variance.
  • In classification tasks, I²CWS performs comparably to ICWS, confirming that the y_k* component contributes little to classification performance, as previously observed in [22].
  • In top-K retrieval tasks, I²CWS outperforms ICWS and other CWS variants, demonstrating that improved similarity estimation directly translates to better retrieval quality.
  • The results indicate that information retrieval is a more sensitive and appropriate task for evaluating weighted Min-Hash algorithms than classification, due to the direct reliance on similarity accuracy.

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.