Locality-Sensitive Hashing and Banding
Derive the candidate probability of banded similarity signatures and relate the parameters to missed matches and extra verification.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 2
- Reading time
- 1 min
In this article2 chapters
One band is a conjunction of agreements
Suppose each independent signature position for two objects matches with probability \(s\), as in MinHash for sets. Split the signature into \(b\) bands of \(r\) positions. A pair becomes a candidate if all positions in at least one band agree. Ignoring collisions in the band encoding, the probability is
\[ 1-(1-s^r)^b . \]
For \(r=4,b=8\), similarity \(0.8\) gives candidate probability about \(0.985\). Similarity \(0.2\) gives about \(0.013\).
Candidate generation and similarity estimation use separate guarantees
A larger \(r\) reduces casual matches. A larger \(b\) introduces more candidates. Exact verification of candidates can remove false positives but cannot recover pairs omitted during candidate generation. Independence and the chosen similarity measure determine whether the curve predicts performance. Approximate nearest neighbor search compares this kind of retrieval tradeoff to graph and quantization methods.[1][2]