NVIDIA / NVIDIA/cuvs

CAGRA -> HNSWLIB Poor Recall on Wiki Dataset

Open
#1,451 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Cuda
Stars
854
Forks
236
Avg merge
3d 3h
Merged PRs (30d)
62

Description

Dataset

97M wiki embeddings sourced from https://huggingface.co/datasets/Cohere/wikipedia-2023-11-embed-multilingual-v3-int8-binary
Query set: 10000 randomly sampled queries from this set (these were removed from the base training set)

Dataset shape

97M * 1024 int8 embeddings

Issue

With cuvs-bench, HNSWLIB recall goes to as high as 99% whereas CAGRA -> HNSWLIB the recall only gets up to 91%

cuvs-bench Index Params:
graph_build_algo: ["IVF_PQ"]
ivf_pq_build_kmeans_trainset_ratio: [10]
ivf_pq_build_pq_dim: [128]
ivf_pq_build_pq_bits: [8]
ivf_pq_search_n_probes: [2]
ivf_pq_search_refinement_rate: [1]
graph_degree: [32, 64, 96, 128]
intermediate_graph_degree: [32, 64, 96, 128]
hierarchy: ["cpu"]
ef_construction: [64, 128, 256, 512]

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported recall gap with cuvs-bench, the Wiki embeddings dataset, and the listed IVF_PQ, graph-degree, hierarchy, and ef-construction settings. Compare CAGRA -> HNSWLIB results with direct HNSWLIB results; done means identifying and correcting the cause of the recall difference or documenting a reproducible limitation.

Written by the indexing model from the issue text.

Assessment

Domain
machine-learning, performance, search
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.