Weighted Minwise Hashing Beats Linear Sketching for Inner Product Estimation
Preprint
Abstract
We present a new approach for computing compact sketches that can be used to approximate the inner product between pairs of high-dimensional vectors. Based on the Weighted MinHash algorithm, our approach admits strong accuracy guarantees that improve on the guarantees of popular linear sketching approaches for inner product estimation, such as CountSketch and Johnson-Lindenstrauss projection. Specifically, while our method admits guarantees that exactly match linear sketching for dense vectors, it yields significantly lower error for sparse vectors with limited overlap between non-zero entries. Such vectors arise in many applications involving sparse data. They are also important in increasingly popular dataset search applications, where inner product sketches are used to estimate data covariance, conditional means, and other quantities involving columns in unjoined tables. We complement our theoretical results by showing that our approach empirically outperforms existing linear sketches and unweighted hashing-based sketches for sparse vectors.Keywords
All Related Versions
This publication has 5 references indexed in Scilit:
- A Quantized Johnson–Lindenstrauss Lemma: The Finding of Buffon’s NeedleIEEE Transactions on Information Theory, 2015
- Sketches for size of join estimationACM Transactions on Database Systems, 2008
- An algorithmic theory of learning: Robust concepts and random projectionMachine Learning, 2006
- Database-friendly random projections: Johnson-Lindenstrauss with binary coinsJournal of Computer and System Sciences, 2003
- Universal classes of hash functionsJournal of Computer and System Sciences, 1979