News for hackers. Stuff that matters.
Re:Approximate Nearest Neighbors Oh Yeah by erikbern on Monday October 30, 2023 @06:04PM (#38076582)
Annoy author here. What you're describing is Locality Sensitive Hashing (LSH) which is something I spent a lot of time trying back in 2009-2012 but never got it working. It has some elegant theoretical properties, but empirically it always has terrible performance. The reason I don't think it works well is that data often lies near a lower-dimensionality manifold that may have some sort of shape. LSH would "waste" most splits (because it doesn't understand the data distribution) but using trees (and finding splits such that the point set is partitioned well) ends up "discovering" the data distribution better.

(but HNSW is generally much better than this tree paritioning scheme)

Re:Approximate Nearest Neighbors Oh Yeah by esafak on Tuesday October 31, 2023 @12:07AM (#38080167)
The solution to that is balanced LSH, which ensures each hyperplane divides the data evenly by moving its offset, if I recall.