Skip to content
This repository was archived by the owner on Nov 21, 2026. It is now read-only.

Benchmarks: product quantization arms for the dense lane (2026-11, off by default) - #419

Merged
tae898 merged 2 commits into
mainfrom
inst-pq
Oct 21, 2026
Merged

tae898 merged 2 commits into
mainfrom
inst-pq

Conversation

@tae898

@tae898 tae898 commented Oct 21, 2026

Copy link
Copy Markdown

Adds product quantization (PQ) arms to the dense lane as a separate "pq" row family beside fp32 and int8, for ArcadeDB embedded and served (quantization: 'PRODUCT'), Qdrant (product quantization x16, rescored), Milvus (HNSW_PQ, refined) and ArangoDB (FAISS IVF<nLists>,PQ32x8). Closes #416.

One PQ setting for the family: 32 subspaces of 256 centroids on 128-d SIFT (32 bytes of codes per vector), matched as closely as each engine allows and documented per engine in QUANTIZATION.md; the re-rank is each engine's own at 10 candidates per neighbour, and ArangoDB's factory has none, which its row says. LanceDB gets no PQ arm because its IVF_HNSW_PQ trains a codebook per IVF partition, a different setting. Every arm reads its index type, compression or factory back from the engine, and records recall@10 against the same ground truth, build time and index size.

Nothing runs by accident: the arms exist only under BENCH_INSTRUMENT=2026-11 and an explicit BENCH_DENSE_PQ=1 (bench_common.dense_pq_enabled), and runner.py changes are registration lines only. Both ArcadeDB arms probe the SQL rerank option at connect and refuse a build that rejects it, so a pre-fix release cannot measure exact search under a PQ label. export_web prints only PQ rows stamped instrument 2026-11. The PQ rows stay off until the measured ArcadeDB release carries ArcadeData#10516 to ArcadeData#10519.

Tests: test_dense_pq.py covers registration only under both gates (six off combinations, one on), the rerank refusal on an old engine (mock, embedded and served), the DDL and settings, and the export grouping; the full suite passes (795 passed, 15 skipped) and pre-commit is clean. Laptop smoke on siftsmall (5,000 vectors, 80 queries, container cores 12 and 13): ArcadeDB embedded on an engine build with ArcadeData#10518 recall 1.0, Milvus HNSW_PQ recall 1.0, Qdrant builds and reads back product x16 (below its indexing threshold at that size); the served ArcadeDB and ArangoDB smokes are pending. QUANTIZATION.md has the PQ column and settings, CAMPAIGN.md row 88, FAIRNESS.md the allowed difference. This is stacked on nothing: #411 is merged.

🤖 Generated with Claude Code

tae898 and others added 2 commits October 22, 2026 00:26
…strument 2026-11 and BENCH_DENSE_PQ=1

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…SS), family suffix in degree_stamp

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@tae898
tae898 merged commit 1d3c883 into main Oct 21, 2026
3 checks passed
@tae898
tae898 deleted the inst-pq branch October 21, 2026 16:14
tae898 added a commit that referenced this pull request Oct 21, 2026
…sion row; the fixture carries synthetic PQ rows (#427)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
tae898 added a commit that referenced this pull request Oct 21, 2026
…sion row; the fixture carries synthetic PQ rows (#427)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
tae898 added a commit that referenced this pull request Oct 21, 2026
* benchmarks: publish_instrument.py, BENCH_RESULTS_DIR, a 2026-11 fixture and its end-to-end publish test (#410)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* benchmarks: the test session reads the 2026-11 fixture instead of the developer's results/ (#427)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* benchmarks: export_web, the freeze, the gates, the page tools and their docs render 2026-11 rows only (#427)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* benchmarks: the freeze keeps the served-client twin, the old payloads and freezes are deleted, the allowlist names the one set (#427)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* benchmarks: e2e refusal cases use stamps that name no live instrument (#427)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* benchmarks: land_stage pulls the 2611-suffixed rows file and overlays from one suffix; stale skeleton and export_web comments go (#427)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* benchmarks: the exporter prints the PQ arms (#419) as their own precision row; the fixture carries synthetic PQ rows (#427)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Benchmarks: product quantization arms for the dense lane

1 participant