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

Automatic adjustment of itopk size according to filtering rate #509

Draft
wants to merge 3 commits into
base: branch-24.12
Choose a base branch
from

Conversation

anaruse
Copy link
Contributor

@anaruse anaruse commented Dec 4, 2024

This PR is based on #492.

The new multi-CTA algorithm proposed in #492 can be used to obtain good recall even with high filtering rates. However, good recall cannot be obtained unless the number of search iterations, or itopk size, one of CAGRA's search parameters, is appropriately increased according to the filtering rate. Therefore, users need to find the appropriate itopk size according to the filtering rate by trial and error, which is a pain.

This PR is intended to alleviate this problem by internally calculating the filtering rate and automatically adjusting the itopk size accordingly.

@anaruse anaruse requested a review from a team as a code owner December 4, 2024 06:40
Copy link

copy-pr-bot bot commented Dec 4, 2024

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@github-actions github-actions bot added the cpp label Dec 4, 2024
@anaruse anaruse marked this pull request as draft December 4, 2024 06:40
…when the number of results is large

Fix some issues

Fix lower recall issue with new multi-cta algo

Removing redundant code and changing some parameters

Update cpp/src/neighbors/detail/cagra/search_plan.cuh

Co-authored-by: Tamas Bela Feher <[email protected]>

Remove an unnecessary line and satisfy clang-format
@cjnolet cjnolet added improvement Improves an existing functionality non-breaking Introduces a non-breaking change vector search labels Dec 5, 2024
@cjnolet
Copy link
Member

cjnolet commented Dec 5, 2024

/ok to test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cpp improvement Improves an existing functionality non-breaking Introduces a non-breaking change vector search
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

2 participants