Repository navigation
Conversation
|
Benchmark, main (4685c05) vs this branch (b9119f3). Same benchmark source built on both, same data, 20 queries,
At Updated after the imputation walk changed to skip probed partitions. Recall moves a few points between index builds, so to isolate that change I ran the previous revision (8c9bc13) and this one on the same built index. The 1-vector-query tables are identical. On the 64-vector table with 200 queries, recall@10 is 0.86 -> 0.85 at default Data:
The last table ranks 10 of only 20 rows, about 6 of them within 1% of the 10th, so its recall is a weak signal in both columns. Without the probe ranking fix in #11707, the large-row tables miss the query's own row for 4 to 8 of 20 queries at the new partition count. |
Xuanwo
left a comment
There was a problem hiding this comment.
[AI] rank_past_probes says an unobserved document can never be imputed a probed partition’s similarity. Probe selection uses L2, while missing_similarity walks partitions by dot product. Unequal centroid norms can put those walks in different orders.
For q = (1, 0), take centroids A = (0.6, 0) and B = (0.7, 0.7) with populations 100 and 1. With one probe, L2 selects A (closeness 0.42 versus 0.21), so a base rank of 1 rises to 101. The dot-product walk visits B first, then reaches 101 in A and returns the probed similarity, 0.6.
Could you add this unequal-norm case to the tests and describe the token-count adjustment as a heuristic? If excluding probed similarities is part of the scoring contract, the imputation walk needs to account for which partitions were probed.
8c9bc13 to
b9119f3
Compare
|
@Xuanwo addressed |
|
Combined effect of the four multivector changes. "Before" is main without any of them; "after" is main with #11809 (merged) plus #11707, this PR and #11713. IVF_PQ, default partitions and nprobes, 100 queries, local disk; ranges are over three index builds. Every run returns the source row first.
The 20-row table ranks 10 of 20 rows, with several within 1% of the 10th, so its recall is a weak signal. |
A multivector index took its default partition count from the row count, so a table of many-vector rows got a handful of partitions, or one, and every query scored nearly every vector. The count now comes from the vectors the rows hold. Finer partitions exposed WARP's default imputation rank. With partitions sized for vectors the walk to `t'` stops inside the query token's best partition, so a document no probe observed was imputed almost the best similarity and outranked observed ones; recall fell as nprobes grew. By default the walk now covers only the partitions the query token did not probe, which is where an unobserved document's tokens are. An explicit `t'` still walks every partition.
b9119f3 to
03cb97f
Compare
There was a problem hiding this comment.
The earlier benchmark documents faster queries with lower unrefined recall, which the PR accepts. Recall-sensitive workloads can use refinement or tune probe counts. No blocking issues found.
A multivector index took its default partition count from the row count, so a table of many-vector rows got a handful of partitions, or one, and every query scored nearly every vector. The count now comes from the vectors the rows hold.
Finer partitions exposed WARP's default imputation rank. With partitions sized for vectors the walk to
t'stops inside the query token's best partition, so a document no probe observed was imputed almost the best similarity and outranked observed ones; recall fell asnprobesgrew. By default the walk now covers only the partitions the query token did not probe, which is where an unobserved document's tokens are. An explicitt'still walks every partition.Recall without refine is a few points lower than with one coarse partition, the usual IVF trade. Index build memory for rows of many vectors is unchanged here and is a follow-up.