Skip to content

[BUG] KMeansPlusPlus significantly degrades kmeans performance #2266

Description

@gland1

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions