Skip to content

fix(ivf): batch flat top-nprobe routing - #248

Closed
pawangopallavudya-commits wants to merge 1 commit into
VectorDB-NTU:mainfrom
pawangopallavudya-commits:feature/ivf-blocked-topn-routing
Closed

pawangopallavudya-commits wants to merge 1 commit into
VectorDB-NTU:mainfrom
pawangopallavudya-commits:feature/ivf-blocked-topn-routing

Conversation

@pawangopallavudya-commits

Copy link
Copy Markdown

Summary

  • Add blocked top-nprobe routing for batched IVF Flat searches, processing 32 rotated queries at a time and streaming each block through routing and scanning.
  • Use centroid-tiled GEMM screening and a max-heap, skip screening when all clusters are probed, and reuse centroid norms across the batch.
  • Make flat scalar and blocked routing order candidates by float distance, then cluster ID, so ties select the same clusters.
  • Add coverage for direct routing, duplicate centroids, tile boundaries, k greater than the point count, and removed points.

Closes #218.

Testing

  • CMake Release build with portable native optimization disabled: passed.
  • Focused IVF search tests: 11 passed.
  • Full CTest suite: 499 passed; platform-guarded tests skipped.
  • clang-format 23.1.0 dry-run over all maintained C/C++ files: passed. The repository wrapper needs Bash 4+, while this Mac supplies Bash 3.2.
  • GIST1M before/after throughput and Recall@10 benchmark: not run; the dataset and the benchmark's documented Python 3.13 environment are not available here. No performance claim is made.

@github-actions github-actions Bot added the release:fixed Release category managed from the PR title label Nov 18, 2026
@gouyt13

gouyt13 commented Nov 18, 2026

Copy link
Copy Markdown
Member

Closing: #218 asks for a before/after benchmark (dataset, CPU, compiler, ISA, threads, batch sizes, nprobe and Recall@10), and this PR states that it was not run. The change exists only to improve batched search throughput, so it cannot be reviewed without one.

@gouyt13 gouyt13 closed this Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release:fixed Release category managed from the PR title

Projects

None yet

Development

Successfully merging this pull request may close these issues.

IVF-RaBitQ: route batched queries with a blocked top-nprobe assignment

2 participants