Skip to main content
QUICK REVIEW

[Paper Review] Fast Pseudo-Random Fingerprints

Yoram Bachrach, Ely Porat|arXiv (Cornell University)|Sep 29, 2010
Algorithms and Data CompressionComputer Science18 references8 citations
TL;DR

This paper introduces a novel method for exponentially accelerating the computation of similarity fingerprints in massive data streams by using a pseudo-random hash family that enables fast identification of minimal hash values. By storing only a single bit per hash function and leveraging arithmetic progressions of flip locations, the approach reduces fingerprint construction time from O(b·k) to O(b·log k), achieving significant speedups while maintaining accuracy and confidence guarantees.

ABSTRACT

We propose a method to exponentially speed up computation of various fingerprints, such as the ones used to compute similarity and rarity in massive data sets. Rather then maintaining the full stream of $b$ items of a universe $[u]$, such methods only maintain a concise fingerprint of the stream, and perform computations using the fingerprints. The computations are done approximately, and the required fingerprint size $k$ depends on the desired accuracy $ε$ and confidence $δ$. Our technique maintains a single bit per hash function, rather than a single integer, thus requiring a fingerprint of length $k = O(\frac{\ln \frac{1}δ}{ε^2})$ bits, rather than $O(\log u \cdot \frac{\ln \frac{1}δ}{ε^2})$ bits required by previous approaches. The main advantage of the fingerprints we propose is that rather than computing the fingerprint of a stream of $b$ items in time of $O(b \cdot k)$, we can compute it in time $O(b \log k)$. Thus this allows an exponential speedup for the fingerprint construction, or alternatively allows achieving a much higher accuracy while preserving computation time. Our methods rely on a specific family of pseudo-random hashes for which we can quickly locate hashes resulting in small values.

Motivation & Objective

  • Address the high computational cost of generating fingerprints for massive data streams using many hash functions.
  • Reduce the time complexity of fingerprint construction from O(b·k) to O(b·log k) without sacrificing accuracy.
  • Enable the use of minimal fingerprints (one bit per hash) while maintaining statistical guarantees for similarity and rarity estimation.
  • Generalize the technique to apply beyond Jaccard similarity to other hash-based sketching methods.
  • Improve efficiency in streaming algorithms that rely on min-wise independent hashing for data summarization and similarity queries.

Proposed method

  • Use a family of pseudo-random polynomials modulo a prime p to generate min-wise independent hash functions with provable approximation guarantees.
  • Construct composite hash functions h_i(x) = f(x) + i·g(x) from two random polynomials f and g, enabling efficient computation of minimal values.
  • Leverage the fact that flip locations—where values wrap around modulo p—form an arithmetic progression, allowing logarithmic-time search.
  • Apply recursive scanning over flip locations in reverse order when the step size b > p/2 to ensure at most half the elements are examined per recursion level.
  • Optimize the search for elements smaller than a threshold t by first checking non-flip locations (if b < t), then recursively processing flip locations using arithmetic progression structure.
  • Store only one bit per hash function (indicating whether the minimal value is achieved), reducing fingerprint size to O(ln(1/δ)/ε²) bits instead of O(log u · ln(1/δ)/ε²).

Experimental results

Research questions

  • RQ1Can the computation time for constructing fingerprints in massive data streams be reduced from O(b·k) to O(b·log k) using a novel hashing strategy?
  • RQ2Is it possible to maintain accurate similarity and rarity estimates using only one bit per hash function while preserving the required confidence and accuracy?
  • RQ3Can the structure of flip locations in polynomial-based hash families be exploited to enable logarithmic-time search for minimal hash values?
  • RQ4Does the proposed method generalize to other sketching techniques beyond Jaccard similarity, such as L_p sketches or distinct element estimation?
  • RQ5Can the technique be applied to complex hash families like min-wise independent families with minimal overhead in both time and space?

Key findings

  • The proposed method reduces fingerprint construction time from O(b·k) to O(b·log k), achieving an exponential speedup in practice.
  • The fingerprint size is reduced to O(ln(1/δ)/ε²) bits, matching the theoretical lower bound for accuracy and confidence, without requiring full integer storage.
  • The method maintains the same asymptotic number of hash functions as prior approaches, ensuring no loss in statistical accuracy.
  • By exploiting the arithmetic progression structure of flip locations, the algorithm ensures that each recursive step processes at most half the elements, enabling O(log k) time complexity.
  • The technique is general and applies to any fingerprinting scheme based on minimal hash values, including Jaccard similarity, distinct element estimation, and L_p sketches.
  • The approach is robust even when b > p/2, by reversing the scan order and using p−b as the step size, preserving logarithmic runtime.

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.