NVIDIA / NVIDIA/cuvs

[BUG] KMeansPlusPlus significantly degrades kmeans performance

Open
#2,266 6 comments 0 reactions 1 assignee View on GitHub

@tarang-jain is already working on this.

Since Aug 11, 2026.

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

Description

We are trying to use the new pq API to speedup diskann /aisaq pq computation.
We see there's a big performance difference if using kmeans++ or random initialization.
For example for sift1m for 256k training dataset and 12 kmeans iterations - kmeans takes:
17.5 sec if using kmeans++
6.5 sec if using random.
On an A100 GPU.
We still need the kmeans++ method as it gives roughly 1-2%+ recall improvement

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.