Speeding up search with locality sensitive hashing
summary
Claims that locality sensitive hashing via random projection forests gives a practical, deployable approximate nearest‑neighbor index, implemented in Python and paired with Postgres for final filtering and exact distance checks. Tools tested include annoy, lsh_forest, FLANN and an in‑house RP forest; tradeoffs reported are about 100× speedup at roughly 60% precision (6/10 true neighbors), supports incremental adds and avoids keeping all vectors in memory, and ships as a small service that returns candidate IDs for Postgres to validate.
AI-written summary · about
chapters (18)
- 0:00Introduction
- 1:29Image search
- 4:27Similar images
- 5:08Collaborative filtering
- 6:14Data scientists
- 7:36How to make it work
- 8:28Marginal space
- 9:00Random line
- 10:58Dimensionality
- 15:16Questions
- 15:33How to generalize
- 16:29Python packages
- 18:28RPForest
- 18:41Speed
- 18:58How we use it
- 19:47Postgres
- 20:10Results
- 21:13QA
related talks
26mUsing Random Projections to Make Sense of High-Dimensional ...
01h 05mNearest Neighbor Methods I
32mAdventures with Randomized Algebra for Extreme-Scale Signal Processing
40mEfficient Reductions for k-Nearest Neighbor Search
23mErik Bernhardsson, CTO, Better Mortgage, NYC 2017
30mFuzzy Matching at Scale
49mSpectral Approaches to Nearest Neighbor Search
31mNearest Neighbor Based Greedy Coordinate Descent
