Should you use TypeSafe's Jev — a "System One" model that returns calibrated probabilities instead of text — as a production reranker, or a dedicated cross-encoder?
This is a small, auditable benchmark that answers that on two BEIR datasets, measuring the three things the decision actually turns on: ranking quality, cost per query, and tail latency. Both systems are used out of the box, both score all 100 candidates in a single request, and both run at the same concurrency — so the latencies are directly comparable. Every raw API response is shipped in the repo, so the numbers can be recomputed without an API key.
Neither model ranks better. Jev is ~2x faster with a much tighter tail. Qwen is 4x cheaper.
| Qwen3-Reranker-0.6B | Jev (Noul) | winner | |
|---|---|---|---|
| nDCG@10, SciFact | 0.7481 | 0.7699 | Jev, +0.022 (p=0.011) |
| nDCG@10, NFCorpus | 0.3569 | 0.3623 | tie, +0.005 (p=0.53) |
| cost / query @ depth 100 | $0.00045 | $0.00178 | Qwen, 3.9x cheaper |
| latency p50 | 1.11–1.22s | 0.64–0.65s | Jev, ~1.8x faster |
| latency p95 | 1.69–2.10s | 0.76–0.78s | Jev, ~2.4x faster |
Decide on latency or cost, not on nDCG. The quality gap is significant on one dataset, absent on the other, and disappears in one repeat run out of three — it is not a stable enough signal to choose on. The latency and cost gaps are large, consistent across both datasets, and reproducible.
So: if your reranker runs inside a user-facing latency budget, Jev holds p95 under 0.8s and it barely moves. If your constraint is cost at volume, Qwen is four times cheaper for quality you cannot reliably distinguish.
Depth-100 rerank over a frozen BM25 first stage. Every system sends all 100 passages in one request at 4 concurrent queries. Cost is measured input tokens at list price; latency is per-query wall time.
SciFact (300 queries, binary judgments)
| system | nDCG@10 | nDCG@5 | MRR@10 | $/query | p50 | p95 |
|---|---|---|---|---|---|---|
| BM25, no rerank | 0.6567 | 0.6341 | 0.6236 | — | — | — |
| Qwen3-Reranker-0.6B | 0.7481 | 0.7285 | 0.7235 | $0.00046 | 1.22s | 2.10s |
| Jev, generic rubric | 0.7699 | 0.7516 | 0.7451 | $0.00179 | 0.65s | 0.78s |
NFCorpus (323 queries, graded judgments)
| system | nDCG@10 | nDCG@5 | MRR@10 | $/query | p50 | p95 |
|---|---|---|---|---|---|---|
| BM25, no rerank | 0.3051 | 0.3354 | 0.5091 | — | — | — |
| Qwen3-Reranker-0.6B | 0.3569 | 0.3933 | 0.5722 | $0.00044 | 1.11s | 1.69s |
| Jev, generic rubric | 0.3623 | 0.4032 | 0.5789 | $0.00177 | 0.64s | 0.76s |
Paired Jev − Qwen, 10k bootstrap resamples plus Wilcoxon signed-rank:
| dataset | mean Δ nDCG@10 | 95% CI | p | better / worse / tied |
|---|---|---|---|---|
| SciFact | +0.0218 | [+0.0044, +0.0397] | 0.011 | 49 / 28 / 223 |
| NFCorpus | +0.0054 | [−0.0055, +0.0165] | 0.53 | 82 / 79 / 162 |
SciFact gives Jev +0.022 with a CI that excludes zero. NFCorpus, run identically, gives +0.005 with a CI that includes zero — and its upper bound (+0.0165) is below SciFact's point estimate. The two datasets disagree by more than sampling error, so the SciFact margin is a property of that dataset, not of the model.
Repeating the SciFact run twice more against a fresh cache sharpens the point:
| run | nDCG@10 | Δ vs Qwen | 95% CI | verdict |
|---|---|---|---|---|
| first | 0.7699 | +0.0218 | [+0.0044, +0.0397] | significant |
| repeat 2 | 0.7650 | +0.0169 | [−0.0002, +0.0346] | not significant |
| repeat 3 | 0.7693 | +0.0212 | [+0.0028, +0.0407] | significant |
Run-to-run SD is 0.0027 and the effect averages +0.0199, so the win is 4.1x the noise floor — it is not an artefact of one lucky run. But one repeat in three fails to clear significance, because the effect sits close enough to the threshold that ordinary non-determinism pushes it across. Treat quality as equivalent until you have measured it on your own data.
| Qwen p50 → p95 | Jev p50 → p95 | |
|---|---|---|
| SciFact | 1.22s → 2.10s (+0.88s) | 0.65s → 0.78s (+0.13s) |
| NFCorpus | 1.11s → 1.69s (+0.58s) | 0.64s → 0.76s (+0.12s) |
Jev is ~1.8x faster at the median and ~2.4x at p95, and the same numbers appear on both datasets. The tail matters more than the median here: Jev's p95 is 0.12–0.13s above its median, while Qwen's is 0.58–0.88s above. A latency budget has to be sized for the worst case, and Jev's worst case is close to its typical case.
Two hand-written SciFact-specific rubrics both scored worse than plainly asking "is this passage relevant to the query?", and neither beat Qwen significantly:
| rubric | nDCG@10 | Δ vs Qwen | p | Holm |
|---|---|---|---|---|
| generic — "is this passage relevant to the query?" | 0.7699 | +0.0218 | 0.011 | 0.032 |
| task-specific true/false criteria | 0.7612 | +0.0130 | 0.13 | 0.25 |
| 4-level graded criteria (Score) | 0.7585 | +0.0103 | 0.32 | 0.32 |
These were first drafts and were not selected on a held-out split, so this is not proof that rubric engineering can never help — but the default should be the plain question, which is also the cheapest to write and the cheapest to run.
TypeSafe's rerank cookbook issues one request per (query, passage) pair. At depth 100 that is 100 requests per query, and the documented 1,200 req/min ceiling then caps you at ~12 queries/min — unusable.
Putting the query in state and one question per passage in a single request returns
identical scores (Pearson r = 1.000 at k=10) while using one request instead of 100 and
1.56x fewer tokens, because state is charged once per request rather than once per
question. Without it, the 0.78s p95 above would be roughly ten times larger.
Requests over the 64k ceiling return HTTP 400, so oversized packs are halved and retried. That happens for 1 of 300 queries on the task-specific rubric and 4 of 300 on the graded one, and never on the generic rubric. Questions are independent, so splitting a pack can never change a score.
Recompute every published number from the shipped cache — no API key, no spend:
python3 -m venv .venv && ./.venv/bin/pip install -r requirements.txt
./scripts/download_data.sh scifact nfcorpus # corpora + qrels, not vendored
cd src
../.venv/bin/python compare.py \
run_S1a_qwen_deepinfra_scifact_test_k100.json \
run_S2_packed_jev_generic_scifact_test_k100.json \
run_S0_bm25_scifact_test.jsonCheck the analysis code itself — 26 tests, no API calls:
./.venv/bin/python tests/test_analysis.pyRe-run against the live APIs (costs money, see .env.example):
scripts/run_all.sh all # both datasets, repeats and rubrics, ~$3.70
scripts/run_all.sh nfcorpus # one dataset, ~$0.70run_rerank.py caches every response under cache/scores/, keyed by system + query +
candidate-set hash, so reruns are free, an interrupted run resumes where it stopped, and a
changed candidate list invalidates cleanly. --tag NAME namespaces that cache, which is how
the repeat runs are forced to re-call the API instead of replaying the first run's
responses.
- Frozen first stage. BM25 (k1=0.9, b=0.4, Lucene stopwords) retrieves depth-100 candidates once; every system reranks byte-identical lists, so differences can only come from the reranker.
- Harness validation. BM25 scores nDCG@10 = 0.6567 on SciFact and 0.3051 on NFCorpus,
against published Anserini anchors of 0.665 and 0.325.
build_candidates.pychecks every dataset against its anchor and warns on a miss: a harness that cannot reproduce a known baseline cannot be trusted to measure a new one. - Paired statistics. Every system sees the same queries and candidates, so comparisons use paired tests: a bootstrap 95% CI on the mean per-query difference plus Wilcoxon signed-rank, not a bare difference of means.
- Neutral tie handling. Ties keep incoming BM25 order (stable sort), so a reranker returning constant scores scores exactly like BM25 rather than randomly.
- Pointwise adapters. Each adapter returns
scores[i]forpassages[i]and never reorders; the runner sorts, so an adapter bug cannot silently advantage one system. - One request shape, one concurrency. Both adapters send all 100 passages in a single
request (
chunkinscorers.py,pack_sizeinjev.py, both 100) at 4 concurrent queries. Latency is meaningless across systems measured differently, socompare.pyreports requests/query and warns on a mismatch. - Cost. Measured input tokens x list price ($0.010/M for DeepInfra, $0.040/M for
TypeSafe; edit
RATESincompare.pyif they change).
| id | model | how it is asked |
|---|---|---|
| S0 | BM25 | first stage only |
| S1a | Qwen/Qwen3-Reranker-0.6B via DeepInfra | queries repeated once per document, title+text |
| S2 | jev-latest, Noul | "Is this passage relevant to the query?" |
| S3 | jev-latest, Noul | task-specific rubric with true/false criteria (SciFact only) |
| S4 | jev-latest, Score | 4 ordered levels, fractional expected level (SciFact only) |
S3 and S4 name "claim" and "abstract", so running them outside SciFact would compare wording rather than models; the runner refuses that combination rather than producing a plausible number.
- Two public datasets, both scientific. Both models may have seen BEIR in training, and neither dataset resembles a private production corpus. Measure on your own data before committing.
- NFCorpus recall is structurally capped. It has 38.2 relevant documents per query against a depth-100 candidate list, so recall@10 is not a meaningful comparison there; nDCG@10 is the metric to read.
- Latency is measured at 4 concurrent queries, which is a throughput setting, not a single-request cold start. Absolute numbers will shift with concurrency; the ~1.8x/~2.4x ratios held across both datasets.
- Rubrics are first drafts. S3 and S4 were not selected on a held-out split, so "the generic rubric wins" is a default recommendation, not a proven ceiling.
- Packing equivalence was verified at k=10, not k=100.
- Prices move. The ~4x cost gap is the durable finding; the absolute cents are a snapshot.
Apache-2.0. BEIR datasets carry their own licences and are downloaded, not redistributed.