Skip to main content
QUICK REVIEW

[Paper Review] Hashing Algorithms for Large-Scale Learning

Ping Li, Anshumali Shrivastava|arXiv (Cornell University)|Jun 6, 2011
Advanced Image and Video Retrieval TechniquesComputer Science36 references105 citations
TL;DR

This paper proposes b-bit minwise hashing as a compact, memory-efficient representation for large-scale binary, high-dimensional datasets, enabling seamless integration with linear SVM and logistic regression by transforming nonlinear resemblance kernels into linear inner products. It demonstrates that b-bit hashing outperforms Vowpal Wabbit and random projections in accuracy at the same storage cost, and combining it with VW further accelerates training when b ≥ 16.

ABSTRACT

In this paper, we first demonstrate that b-bit minwise hashing, whose estimators are positive definite kernels, can be naturally integrated with learning algorithms such as SVM and logistic regression. We adopt a simple scheme to transform the nonlinear (resemblance) kernel into linear (inner product) kernel; and hence large-scale problems can be solved extremely efficiently. Our method provides a simple effective solution to large-scale learning in massive and extremely high-dimensional datasets, especially when data do not fit in memory. We then compare b-bit minwise hashing with the Vowpal Wabbit (VW) algorithm (which is related the Count-Min (CM) sketch). Interestingly, VW has the same variances as random projections. Our theoretical and empirical comparisons illustrate that usually $b$-bit minwise hashing is significantly more accurate (at the same storage) than VW (and random projections) in binary data. Furthermore, $b$-bit minwise hashing can be combined with VW to achieve further improvements in terms of training speed, especially when $b$ is large.

Motivation & Objective

  • Address the memory bottleneck in training large-scale machine learning models on datasets that exceed main memory capacity.
  • Enable efficient training of linear SVM and logistic regression on massive, high-dimensional binary data.
  • Provide a theoretically grounded, positive definite kernel representation via b-bit minwise hashing for use in learning algorithms.
  • Compare b-bit minwise hashing with Vowpal Wabbit and random projections in terms of accuracy and training efficiency.
  • Explore hybrid approaches combining b-bit hashing and VW to optimize training speed without sacrificing accuracy.

Proposed method

  • Apply b-bit minwise hashing to generate compact, low-dimensional representations of high-dimensional binary vectors, preserving resemblance estimates.
  • Prove that b-bit minwise hashing matrices are positive definite, enabling their use as valid kernels in SVM and logistic regression.
  • Transform the nonlinear resemblance kernel into a linear inner product via a simple scheme, allowing efficient linear solvers to be applied.
  • Theoretical analysis shows that b-bit hashing has lower variance than random projections and VW, especially when m ≫ k and m ≪ 2^b k.
  • Propose a hybrid method: apply VW hashing on top of b-bit minwise hashing to reduce training time while maintaining accuracy.
  • Use a single-pass, parallelizable preprocessing step to generate hashed vectors, minimizing I/O and enabling reuse across multiple learning tasks.

Experimental results

Research questions

  • RQ1Can b-bit minwise hashing be used as a positive definite kernel to enable efficient training of linear SVM and logistic regression?
  • RQ2How does the accuracy of b-bit minwise hashing compare to Vowpal Wabbit and random projections at the same storage cost?
  • RQ3What is the optimal trade-off between the number of hash tables (m) and the bit length (b) for minimizing variance and training time?
  • RQ4Can combining b-bit minwise hashing with VW further improve training speed without degrading model accuracy?
  • RQ5Under what conditions is the preprocessing cost of b-bit hashing negligible compared to I/O and computation costs in large-scale learning?

Key findings

  • b-bit minwise hashing produces positive definite kernels, providing a solid theoretical foundation for its use in SVM and logistic regression.
  • At the same storage cost, b-bit minwise hashing is significantly more accurate than Vowpal Wabbit and random projections for binary data.
  • When b = 16, using VW with m = 2^8k on top of b-bit hashing achieves the same test accuracy as direct b-bit hashing but reduces training time substantially.
  • For b = 8, combining with VW provides no further improvement, as the variance is already low and the benefit is minimal.
  • The hybrid approach of b-bit hashing followed by VW is most effective when b ≥ 16, where the training speed gains are most pronounced.
  • The preprocessing cost of b-bit minwise hashing is typically negligible, as it requires only one data scan and is trivially parallelizable.

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.