LIVE · Thursday 3 December

Cross-Encoder Reranker vs LLM Relevance Grading in RAG: Which Replacement Fits, and What 1,000 Queries Cost

Replace a per-chunk LLM grader by matching the option to the job. Parallel calls are a quick fix, a calibrated cross-encoder covers most cases, distillation covers the rest, and monitoring belongs offline.

By Nick10 min read

Most teams replace a per-chunk LLM relevance grader with a cross-encoder reranker and a calibrated cutoff, which brings grading into the tens to hundreds of milliseconds. When a stock reranker disagrees with the LLM too often, the next step is a small lightweight retrieval evaluator trained on the LLM grader's own logged labels. If the grader only measures quality for a dashboard, it can leave the request path and run offline on sampled traffic. At list prices, grading 1,000 queries of 20 chunks with gpt-4o-mini costs about $1.86, while one self-hosted GPU costs about $584 a month whatever the volume.

The right replacement depends on what the grader is for and how closely a small model agrees

Two questions sort the options. The first is whether the grader filters chunks before generation or only scores retrieval for monitoring. The second is how closely a cheap model agrees with the current LLM grader on your own data. Both can be answered with logs that the grader already produces.

No public benchmark has tested these options on the same binary keep/drop labels. Each figure in this table comes from its source's own setup, so the speeds show orders of magnitude rather than a ranking.

Option Fits when Published speed Cost basis
Parallel LLM calls A fix is needed this week 0.9 s added at median, Fin LLM token prices
Offline LLM grading The grader feeds monitoring only Off the request path Half price at OpenAI Batch rates
ms-marco-MiniLM-L6-v2 Agreement is high on English text 1,800 docs/s on V100 Self-hosted GPU, Apache-2.0
Distilled grader Stock models disagree with the LLM About 150 ms at median, Fin Self-hosted GPU plus training
ColBERTv2 with PLAID First-stage retrieval needs work Tens of ms at 140M passages GPU plus an index of token vectors
Hybrid with deferral Hard queries need the LLM Depends on deferral rate GPU plus some LLM calls

Published head-to-head results point both ways, so neither side wins by default. In a July 2026 study of a RAG system for a scientific facility, Argonne researchers removed their Jina v3 cross-encoder and let an LLM score relevance instead. Strict vital recall on a 19-question subset fell from 64.5% to 31.8%. The authors stress that their LLM scorer was "a degraded fallback, not a comparison to a competent reranker." Fin's A/B test found the opposite, with its LLM reranker beating an open-source BGE cross-encoder on resolution rate. A reranker tuned for a domain beats a weak LLM setup, and a tuned LLM beats a stock reranker. The comparison that settles the choice is one run on your own traffic.

Teams that need relief this week should run the LLM calls in parallel

If the grader calls the LLM once per chunk in sequence, the delay is the sum of every call. Running the calls concurrently brings it closer to the slowest single call. This change needs no new model.

Fin's research team described the process on September 11, 2025. Its LLM reranker first added about 5 seconds. Four changes brought that under 1 second at the median and cut costs about eightfold:

  1. The team switched to a compact output format with no spaces, which cut output tokens by about 28%.
  2. The team asked the model to omit passages scoring below 5, which cut latency by about half.
  3. The team turned on prompt caching for the shared instructions.
  4. The team split 40 candidates into parallel batches, such as four groups, and scored them at once.

Fin also set tight per-call timeouts with no retries and fell back to a BGE cross-encoder for any batch that timed out. The team still called the remaining 0.9 seconds noticeable. Parallel calls are a first step for most teams, not the end state.

Sending every chunk in one listwise prompt is not a shortcut. RankGPT and RankZephyr rank whole lists in a prompt, but Fin found that listwise ranking gave the same resolution rate with about 40% more latency and 15% more cost than its pointwise grader.

Teams whose grader only feeds a dashboard should move it offline

Some graders do not remove chunks at all. They score retrieval so that a team can watch quality over time. That job does not need to happen while a user waits.

An offline job can grade a sample of traffic in the background. OpenAI's pricing page lists Batch rates at half of standard rates. The same job can also serve as the reference that any faster grader is checked against, and as the source of labels for training one later.

Teams whose stock cross-encoder agrees with the LLM can switch with a calibrated cutoff

A cross-encoder reads the query and one chunk together and returns one score, which is the same shape of work as an LLM grader. Sentence Transformers loads most open rerankers through its CrossEncoder class and scores pairs with predict(). Several models fit different needs:

  • The 22.7-million-parameter cross-encoder/ms-marco-MiniLM-L6-v2 is the smallest option, at 1,800 documents per second on a V100 according to its model card.
  • BAAI's bge-reranker-v2-m3, with about 0.6 billion parameters and an Apache-2.0 licence, adds multilingual support.
  • Mixedbread's mxbai-rerank-large-v2 is Apache-2.0 and lists a BEIR average of 57.49. Its card gives 0.89 seconds on an A100 without saying how many documents that covers.
  • Jina's jina-reranker-v3 scores up to 64 documents in one call, but its CC BY-NC 4.0 licence means that commercial use outside its AWS and Azure listings requires contacting Jina.
  • Cohere Rerank is a hosted API billed per search, where one search is one query with up to 100 documents. Documents longer than 500 tokens are split, and each piece counts as a document. Cohere's pricing page does not show a dollar figure for Rerank.

The score is the part that needs work. Cohere's documentation says its scores fall between 0 and 1, but "the score is query dependent." The CRAG paper shows the same effect for a trained evaluator. Its authors needed different cutoffs for each dataset: 0.59 and -0.99 on PopQA, but 0.95 and -0.91 on Biography. A 2026 reproduction kept the PopQA cutoffs on ARC-Challenge science questions, and the evaluator placed 88.3% of them in its ambiguous band.

Calibration fixes that by turning each score into a probability. In the scikit-learn guide's terms, among chunks given 0.8, about 80% should be relevant. The test takes a few steps:

  1. Sample a few thousand logged query and chunk pairs with the LLM grader's keep/drop labels, grouped by query type.
  2. Score them with two or three candidate cross-encoders.
  3. Fit a sigmoid calibrator on half the pairs, then draw a reliability diagram per query type on the other half.
  4. Measure agreement with the LLM grader and recall of the kept chunks at a conservative and an aggressive threshold.

Sigmoid calibration suits small samples and keeps the ranking unchanged, according to scikit-learn. Its guide says isotonic calibration does as well or better beyond about 1,000 samples. A minimal version of the sigmoid fit looks like this:

from sentence_transformers import CrossEncoder
from sklearn.linear_model import LogisticRegression
from sklearn.calibration import calibration_curve

model = CrossEncoder("BAAI/bge-reranker-v2-m3")
raw = model.predict(list(zip(queries, chunks)))       # raw scores
platt = LogisticRegression().fit(raw[train].reshape(-1, 1), llm_labels[train])
p_keep = platt.predict_proba(raw[test].reshape(-1, 1))[:, 1]
frac_pos, mean_pred = calibration_curve(llm_labels[test], p_keep, n_bins=10)

A conservative threshold keeps any chunk with a modest chance of relevance and protects recall. An aggressive threshold drops more chunks and shortens the prompt. If the curves for different query types sit far apart, a stock model is not enough.

Teams whose stock reranker disagrees should distill the LLM grader

The LLM grader has been producing training labels for as long as it has run. A small model trained on them learns the exact decision that the product already uses.

Fin took this route after its parallel LLM reranker. It trained a ModernBERT-large encoder on 16 million query and passage pairs labelled by the LLM. On Fin's 3,000-query benchmark, the model scored a MAP of 0.612 against 0.521 for Cohere Rerank 3.5. Fin says median latency stayed at about 150 ms and reranking costs fell 80%. RankGPT's authors distilled ChatGPT's rankings for 10,000 queries into a 435-million-parameter model that beat a 3-billion-parameter monoT5 by 1.67 nDCG points on BEIR. The CRAG authors trained a 0.77-billion-parameter T5 evaluator on about 12,600 PopQA questions. On PopQA it judged relevance with 84.3% accuracy, against 58.0% for ChatGPT.

How many labelled pairs a keep/drop grader needs for a given product has not been measured. The published cases above span about 12,600 questions to 16 million pairs.

The held-out test decides whether the distilled grader is safe. The CRAG reproduction found that the T5 evaluator relied mainly on matching named entities rather than meaning. Teams should collect cases that their product has failed on, such as negations, conditional questions and near-miss entity names, and keep them out of training. Sentence Transformers covers the training itself with num_labels=1, BinaryCrossEntropyLoss on 1 or 0 labels, and mine_hard_negatives() for chunks that look relevant but are not.

Parsec, a small language model lab, publishes open-source code that matches this pattern. Its MIT-licensed open-jev repository includes openjev-sdk for fine-tuning small decision models that score a fixed set of options in one pass. Its TOD model returns a probability per option and passes a turn to a larger LLM when it is not confident, at $0.30 per 1,000 decisions according to Parsec's TOD page. Parsec has not published a test of either tool on retrieval relevance grading.

Teams with a persistent set of hard queries can defer only doubtful chunks to the LLM

A calibrated grader makes a hybrid possible. Chunks with a probability near 0 or near 1 are settled by the small model. The rest go to the LLM in one call per query.

The cost falls with the share of chunks that the small model settles. Latency falls more slowly, because a query waits for its slowest chunk. If each of 20 chunks were deferred independently with a 10% chance, only about 12% of queries would avoid the LLM entirely. At a 1% chance, about 82% would. Deferrals cluster on hard queries in practice, so the real share has to be measured on logged traffic. The share of chunks that a distilled grader resolves at each threshold has not been published for a public dataset.

Teams that want better first-stage retrieval can consider ColBERT

ColBERT, from Omar Khattab and Matei Zaharia, stores one vector for every token of every passage, so the work at query time is cheap. Its SIGIR 2020 paper reports speeds two orders of magnitude faster than BERT rerankers, with four orders of magnitude fewer FLOPs per query. The PLAID engine reaches tens of milliseconds on GPU across 140 million passages. That design improves the candidate list itself. For a yes/no grade on 20 or 40 chunks, a cross-encoder is less infrastructure.

A worked example puts the break-even near 314,000 queries a month

The example assumes a product that serves 1 million queries a month and grades 20 chunks per query. Each LLM grading call uses 600 input tokens, made of 200 for instructions, 50 for the query and 350 for the chunk. Each call returns 5 output tokens and no extra reasoning tokens. Grading 1,000 queries therefore takes 12 million input tokens and 100,000 output tokens.

At OpenAI's standard list prices, that works out as follows:

  • With gpt-5-nano at $0.05 in and $0.40 out per million tokens, grading costs $0.64 per 1,000 queries, or $640 a month.
  • With gpt-4o-mini at $0.15 in and $0.60 out, it costs $1.86 per 1,000 queries, or $1,860 a month.
  • With gpt-5-mini at $0.25 in and $2.00 out, it costs $3.20 per 1,000 queries, or $3,200 a month.

A self-hosted cross-encoder on one NVIDIA L4 through Hugging Face Inference Endpoints costs $0.80 an hour on AWS. Running all 730 hours of a month costs about $584, or $0.58 per 1,000 queries at this volume. Against gpt-4o-mini, the GPU breaks even at about 314,000 queries a month. Below that volume, the LLM grader is cheaper in dollars but still slower. Whether one L4 carries this load has not been measured. At the V100 rate on the MiniLM model card, 20 pairs would take about 11 ms of compute, and 1 million queries a month averages under one query per second.

A hybrid adds the two costs together. If the small grader settles 90% of chunks, the remaining gpt-4o-mini calls cost about $186 a month, for a total near $770 with the GPU. Grading a 5% sample offline at Batch rates costs about $0.93 per 1,000 queries, or about $47 a month for 50,000 queries.

Sources

More in Research

All Research →