Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Support ScaNN/FastScan and re-ranking for faiss Engine #1347

Open
rishabhagrawal1 opened this issue Dec 12, 2023 · 2 comments
Open
Assignees
Labels
enhancement Features Introduces a new unit of functionality that satisfies a requirement

Comments

@rishabhagrawal1
Copy link

As per mentioned in the paper "Product quantization for nearest neighbor search" and implementation using registers to store look-up tables are providing much better accuracy and latency results for recommendation task.

ScaNN performance
ScaNN performance benchmarking

FastScan performance
Comparison with HSNW: without reranking, 4-bit PQ is able to do up to 1M QPS. With re-ranking, it is at 280k QPS with 1-recall@1 = 0.9, which it 2x faster than HNSW's 140k QPS. It also uses 2.7x less memory because the graph structure does not need to be stored.

What solution would you like?
Supporting either of the two algorithms along with re-ranking support.

What alternatives have you considered?
We tried configurations suggested in billion vector blog for HNSW.

@navneet1v navneet1v added Features Introduces a new unit of functionality that satisfies a requirement and removed untriaged labels Dec 14, 2023
@navneet1v navneet1v moved this to Backlog in Vector Search RoadMap Dec 14, 2023
@heemin32
Copy link
Collaborator

Could you share how you got those result in the graph? Like test environment setup to reproduce?

@rishabhagrawal1
Copy link
Author

ScaNN results were published by ann-benchmarks and referred by ScaNN here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Features Introduces a new unit of functionality that satisfies a requirement
Projects
Status: Backlog
Development

No branches or pull requests

4 participants