Skip to content

Fix IP metric distance computation in multi-bit RaBitQ#4751

Closed
alibeklfc wants to merge 1 commit intofacebookresearch:mainfrom
alibeklfc:export-D90430458
Closed

Fix IP metric distance computation in multi-bit RaBitQ#4751
alibeklfc wants to merge 1 commit intofacebookresearch:mainfrom
alibeklfc:export-D90430458

Conversation

@alibeklfc
Copy link
Contributor

Summary: The correction term in compute_ex_factors() for INNER_PRODUCT metric was causing test failures. Removing it and using the simplified formula f_add_ex = 1 - ip_resi_cent fixes the IP metric recall tests.

Differential Revision: D90430458

Summary: The correction term in compute_ex_factors() for INNER_PRODUCT metric was causing test failures. Removing it and using the simplified formula `f_add_ex = 1 - ip_resi_cent` fixes the IP metric recall tests.

Differential Revision: D90430458
@meta-cla meta-cla bot added the CLA Signed label Jan 10, 2026
@meta-codesync
Copy link
Contributor

meta-codesync bot commented Jan 10, 2026

@alibeklfc has exported this pull request. If you are a Meta employee, you can view the originating Diff in D90430458.

@meta-codesync
Copy link
Contributor

meta-codesync bot commented Jan 13, 2026

This pull request has been merged in 5e7942d.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants