Git Product home page Git Product logo

Comments (6)

jegou avatar jegou commented on May 27, 2024

Please look at the benchmarks we provide on various kind of data:
https://github.com/facebookresearch/faiss/wiki/Indexing-1G-vectors

which shows that indeed Faiss offers some improvement versus the previous solutions on typical data. Faiss is a library, so please read the papers cited in the wiki, which are the ones introducing the techniques themselves, such as the Polysemous codes.

More generally, in my opinion the question is vague because an acceleration of exact search (like the one we propose in Faiss both for Exact distance calculation or approximate one with PQ) is actually the best way to fight the curse of dimensionality when the conditions are the worst, i.e,. for random data with D very high.

Regards

from faiss.

iNDicat0r avatar iNDicat0r commented on May 27, 2024

Thanks for the prompt response.
What would you consider a high D ? I am talking about 2048 dimensions in my case..

from faiss.

jegou avatar jegou commented on May 27, 2024

The question is not really the (extrinsic) observable dimensionality, but the true internal complexity of the data. 2048 dimensions generated with rand or randn would be very high dimensional and you would need brute-force for that (such as IndexFlat, its GPU counterpart or IndexPQ/LSH).

2048 dimensions coming from the real world (e.g., neural net features) means vectors typically easier to index. Only empirical tests will tell you if you can index with non-exhaustive index, depending also on the desired accuracy/speed-up trade-off.

from faiss.

iNDicat0r avatar iNDicat0r commented on May 27, 2024

The dimensions are from neural net features, i will try to observe the performance based on different configurations.

from faiss.

jegou avatar jegou commented on May 27, 2024

If they are neural nets features, then they should be highly redundant and I would suggest to use the PCA pre-processing (available in Faiss):
https://github.com/facebookresearch/faiss/wiki/Pre--and-post-processing#pre-transforming-the-data

from faiss.

iNDicat0r avatar iNDicat0r commented on May 27, 2024

Excelent! Thanks

from faiss.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.