facebookresearch / faiss

A library for efficient similarity search and clustering of dense vectors.
https://faiss.ai
MIT License
31.64k stars 3.65k forks source link

Interest in non-orthogonal codebooks? #185

Closed una-dinosauria closed 3 years ago

una-dinosauria commented 7 years ago

I'm wondering if there is interest from the maintainers (and the community) on implementing some non-orthogonal variants of product quantization into faiss?

I have observed that these methods tend to perform very well on features extracted from deep neural networks, and are also pretty well suited for dot product similarity search.

Some baselines that come to my mind are

I have implemented some of these on Julia before, and ported LSQ to the GPU (e.g. here). Please do let me know if there is interest for this; since the licence has been relaxed I'd be happy to contribute some of my own research to the library.

mdouze commented 7 years ago

Hi, We have no plans of adding non-orthogonal quantization to Faiss, but we would be very grateful if you could implement an option of your choosing. If you plan to do this, I would suggest that you look around in the library's structure and propose an index structure (ie a .h file) with the required methods and fields, so that we can comment on it before you spend a lot of time in the implementation. Thanks!

una-dinosauria commented 3 years ago

I think we can close this one since #1862 has landed.