Skip to content

[BUG] IVF-PQ support of IP distance assumes vectors have been normalized #1875

Description

@cjnolet

IVFPQ w/ IP distance assumes vectors have been normalized, but not all users would expect or think to do this. Essentially, kmeans works with L2 distance or with IP and l2 normalized vectors. Currently if IP is used with vectors that aren't normalized then it runs into degenerate cases where most vectors are placed in a single cluster, and that causes issues for downstream algorithms (like the IVF portions).

One way to deal with this is to do normalization in-place or to normalize the input dataset then return it to its original state after the clustering is done.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status
Todo
Status
Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions