diff --git a/README.md b/README.md index 50eceff..03ecc3d 100644 --- a/README.md +++ b/README.md @@ -85,6 +85,7 @@ and skips any stage that already completed: | `select` | `qbench select` | Per method and k, the fastest dev point with ANN Recall@k ≥ 0.95 and nDCG@10 within 0.01 of exact float32; frozen to `selected.yaml` before any test query is read | | `selected` | `selected.yaml` | Held-out evaluation of the frozen points; misses are reported, never retuned | | `datatype` | `configs/datatype.yaml` | `turbo4` stored datatype versus float32 plus TurboQuant search copies | +| `datatype-binary` | `configs/datatype-binary.yaml` | Binary retrieval rescored against `turbo4` storage versus against float32 originals | | `ablation` | `configs/ablation.yaml` | Fixed-effort rescoring/oversampling ablation plus the extended set: binary 1.5/2-bit, scalar-8 query encoding, TurboQuant 2/1.5/1-bit, product16 | Repeat for `scifact`, `nfcorpus`, `quora` and for `bge`, or run every step in diff --git a/configs/datatype-binary.yaml b/configs/datatype-binary.yaml new file mode 100644 index 0000000..392961f --- /dev/null +++ b/configs/datatype-binary.yaml @@ -0,0 +1,25 @@ +# Binary retrieval rescored against turbo4 stored vectors, next to the same +# binary retrieval rescored against float32 originals. Oversampling 8 is the +# point binary needed in development selection; 2 matches the primary run. +expected_qdrant_version: "1.19.2" +datasets: [fiqa, scifact, nfcorpus, quora] +models: [cohere, bge] +builds: 3 +seed: 42 +hnsw: + m: 16 + ef_construct: 100 + max_indexing_threads: 8 +search: + ks: [10, 100] + hnsw_ef: [256] + rescoring: [false, true] + oversampling: [2, 8] + split: test + max_queries: 150 + warmup_queries: 50 + repeats: 5 +methods: + - {name: binary1, quantizer: binary, query_encoding: binary} + - {name: datatype_turbo4_binary1, datatype: turbo4, quantizer: binary, query_encoding: binary} + - {name: datatype_turbo4_turbo4, datatype: turbo4, quantizer: turbo, bits: 4} diff --git a/docs/protocol.md b/docs/protocol.md index 305ac65..e5320b2 100644 --- a/docs/protocol.md +++ b/docs/protocol.md @@ -70,7 +70,10 @@ modern-quantization-bench reference: binary 1.5-bit and 2-bit encodings, binary 1-bit with an 8-bit scalar query, TurboQuant bits2, bits1_5, bits1, and product16. `configs/datatype.yaml` compares float32 without quantization, float32 plus TurboQuant bits4 with and without rescoring, the -`turbo4` datatype without a search copy, and the bits1 pairing. Rescoring +`turbo4` datatype without a search copy, and the bits1 pairing. +`configs/datatype-binary.yaml` adds binary retrieval rescored against `turbo4` +storage next to binary retrieval rescored against float32 originals, plus a +`turbo4` search copy over `turbo4` storage, at oversampling 2 and 8. Rescoring against `turbo4` storage cannot restore float32 precision, and changing the stored datatype can affect index construction. diff --git a/scripts/run-workload.sh b/scripts/run-workload.sh index bc72190..27ed01d 100755 --- a/scripts/run-workload.sh +++ b/scripts/run-workload.sh @@ -9,6 +9,7 @@ # select freeze the fastest eligible point per method and k # selected held-out test evaluation of the frozen settings # datatype turbo4 stored-datatype comparison (configs/datatype.yaml) +# datatype-binary binary retrieval rescored against turbo4 storage # ablation fixed-effort rescoring/oversampling ablation (configs/ablation.yaml) # # Source scripts/vm-env.sh first so telemetry targets are exported. @@ -57,5 +58,6 @@ if [ ! -f "$out/selected.yaml" ]; then fi run_stage selected "$out/selected.yaml" run_stage datatype configs/datatype.yaml +run_stage datatype-binary configs/datatype-binary.yaml run_stage ablation configs/ablation.yaml echo "[$dataset/$model] workload complete under $out"