RexRerankers: SOTA Rankers for Product Discovery and AI Assistants

6 of the top 10 in place7 of the top 10 in place

TL;DR

We introduce RexRerankers, a family of state-of-the-art rerankers that estimate how relevant an e-commerce product is for a given query. We open-source Amazebay, a large-scale dataset collection for training and evaluating product relevance models:

For holistic evaluation of product discovery rerankers, we also release ERESS (E-commerce Relevance Evaluation Scoring Suite): 4.7k unique queries and 72k labeled query–product pairs designed to reflect real shopping search behavior.

Finally, we open-source a training recipe for efficient, high-performing rankers using a Distributional-Pointwise Loss that treats annotation noise as signal rather than purely as error, improving robustness and calibration in real-world relevance modeling.

Introduction

Search in modern systems is a multi-stage decision pipeline optimized for speed, relevance, and user satisfaction. Whether you’re building web search, enterprise search, or product search, the dominant architecture is:

E-commerce search looks like “search” but the definition of relevance is richer and more constrained. A product can match the query text and still be a bad result due to:

RexRerankers were built for this modern product discovery setting: high-recall retrieval + strong reranking, optimized for e-commerce semantics. The goal is to make reranking models that are:

Data Curation

We construct Amazebay via a multi-stage pipeline that combines large-scale catalog normalization, controlled synthetic query generation, embedding-driven sampling, high-recall candidate retrieval, and LLM-based graded relevance annotation with aggressive quality control and leakage prevention.

We bootstrap the product corpus from the Amazon 2023 Item-Review Snapshot released by UC San Diego. Starting from the raw item metadata, we perform a two-level deduplication pass to obtain a canonical catalog of 37M unique products:

This step is critical for preventing annotation waste on redundant items and for keeping retrieval distributions stable under scale.

To ensure broad coverage of shopping intents (including long-tail and under-specified queries), we generate synthetic queries using GPT-OSS-20B under a constrained generation protocol. We explicitly stratify query generation into six intent families: Attribute-rich (high feature density), Navigational (brand/store/product-line seeking), Gift & audience-specific (recipient + occasion), Generic (category-level intent with minimal attributes), Utility (task/solution), Short & Books (very short head queries + targeted books).

Operationally, each family is produced via templated instruction sets that control attribute cardinality and value realism (e.g., size ranges, compatibility tokens), lexical noise (typos, shorthand, omitted units), query length distribution. We also apply lightweight sanity filters to remove malformed outputs.

We embed all queries using embeddinggemma-300M and perform semantic clustering per query family to avoid over-representing near-paraphrases. The objective is to build a query set with high semantic entropy while preserving the natural frequency of coarse intents.

We embed a large pool of candidates (on the order of 110M unique queries). For each query family, we cluster in embedding space, then select cluster representatives to preserve diversity while keeping annotation budgets tractable. Sampling is stratified across families and across cluster sizes to avoid collapse into dominant intent modes. This stage is what converts “a lot of generated text” into a controlled, coverage-oriented evaluation/training distribution.

We embed products using the same embedding model, with two distinct product views to improve recall under heterogeneous query styles:

To operate at tens of millions of items, we apply dimension reduction to 256 (MRL trained embeddings), then build FAISS vector indices. We retrieve a recall set by taking:

The Amazebay curation pipelineFlow diagram of the Amazebay pipeline. On the left, the Amazon 2023 Item-Review Snapshot feeds catalog normalization: raw item metadata, exact dedup, near-dup consolidation, schema harmonization, canonical catalog. On the right, synthetic query generation (generator LLM, generate synthetic queries, constrained templates, sanity filters) feeds embedding-driven sampling: embed queries, cluster, select representatives, query set. The canonical catalog and the query set meet in high-recall retrieval: the products are embedded in two product views, Index A and Index B; the query set is searched against both indexes, the top 128 from each are kept, and the two lists are united and deduplicated. The result goes to LLM graded relevance: LLM council, label and score, QC and decontamination, and finally Amazebay.CATALOGNORMALIZATIONSYNTHETIC QUERYGENERATIONEMBEDDING-DRIVENSAMPLINGHIGH-RECALLRETRIEVALLLM GRADEDRELEVANCEAmazon 2023 Item-Review SnapshotRaw item metadataExact dedupNear-dup consolidationSchema harmonizationCanonical catalogGenerator LLMGenerate synthetic queriesConstrained templatesSanity filtersEmbed queriesClusterSelect representativesQuery setEmbed productsTwo product viewsIndex AIndex BTop 128Top 128Union and dedupLLM councilLabel + scoreQC and decontamAmazebay
The Amazebay curation pipelineFlow diagram of the Amazebay pipeline. On the left, the Amazon 2023 Item-Review Snapshot feeds catalog normalization: raw item metadata, exact dedup, near-dup consolidation, schema harmonization, canonical catalog. On the right, synthetic query generation (generator LLM, generate synthetic queries, constrained templates, sanity filters) feeds embedding-driven sampling: embed queries, cluster, select representatives, query set. The canonical catalog and the query set meet in high-recall retrieval: the products are embedded in two product views, Index A and Index B; the query set is searched against both indexes, the top 128 from each are kept, and the two lists are united and deduplicated. The result goes to LLM graded relevance: LLM council, label and score, QC and decontamination, and finally Amazebay.CATALOGNORMALIZATIONSYNTHETIC QUERYGENERATIONEMBEDDING-DRIVENSAMPLINGHIGH-RECALLRETRIEVALLLM GRADEDRELEVANCEAmazon 2023Item-Review SnapshotRaw item metadataExact dedupNear-dup consolidationSchema harmonizationCanonical catalogGenerator LLMGenerate synthetic queriesConstrained templatesSanity filtersEmbed queriesClusterSelect representativesQuery setEmbed productsTwo product viewsIndex AIndex BTop 128Top 128Union and dedupLLM councilLabel + scoreQC and decontamAmazebay
Figure 1. The Amazebay curation pipeline: catalog normalization, synthetic query generation, embedding-driven sampling, high-recall retrieval over two indices, and LLM-graded relevance.

This dual-index design intentionally trades a small amount of extra retrieval compute for significantly higher recall across query families that rely on different evidence (short lexical cues vs attribute-heavy semantics).

Each (query, product) pair in the recall set is scored by an ensemble “council” of LLMs:

Rather than generating long rationales, we use structured relevance prompts that force the model to emit a single discrete label as the first token. We then take the logits of that first generated token to obtain a calibrated scalar relevance score with minimal decoding overhead.

Practical advantages of this approach:

We apply multiple layers of filtering and postprocessing to ensure the resulting datasets reflect true relevance rather than obvious artifacts:

Training Methodology

Pointwise Classification Rerankers

Relevance supervision in e-commerce is inherently noisy, ambiguous, and heteroscedastic. The same query–product pair can receive different grades depending on who labels it or which model labels it. If we force the model to learn a single true scalar target as if the label were perfectly precise, the model tends to overfit annotation artifacts and produce brittle score boundaries.

To better reflect the real data-generating process, we use a two-phase training schedule:

Phase 1

Distributional target representation (ordered relevance bins)

Instead of representing relevance as a discrete class or scalar, we define B=11 ordered bin centers in [0,1] (uniformly spaced). Each labeled grade in [0,1] is mapped into a truncated, renormalized Gaussian over bin centers:

yi∝exp⁡ (−(ci−s)22σ2) ,i=1..B y_i \propto \exp\Big(-\frac{(c_i - s)^2}{2\sigma^2}\Big), \quad i=1..B

and then normalized:

𝐲←𝐲∑i=1Byi \mathbf{y} \leftarrow \frac{\mathbf{y}}{\sum_{i=1}^{B} y_i}

This converts a single label into a soft target that preserves ordinal structure and allows supervision to encode nearby relevance.

Ambiguity modeling via a variational spread (“ambiguity knob”)

A fixed sigma collapses to near one-hot classification when too small, and becomes overly diffuse (weak gradients, poor identifiability) when too large. We therefore explicitly treat sigma as a noise-as-signal control, and introduce a score-dependent spread schedule to model non-uniform ambiguity in relevance labeling.

Empirically, judgment is most fluid around transition regions (e.g., borderline “good vs great”), while extremes are more stable.

Intuitively:

Let the transition set be:

T={0.2,0.5,0.8} T = \{0.2,\ 0.5,\ 0.8\}

Define the distance to the nearest transition:

d(y)=mint∈T⁡|y−t| d(y) = \min_{t \in T} \lvert y - t \rvert

Use a smooth “closeness to boundary” bump (Gaussian/RBF):

c(y)=exp⁡ (−12(d(y)δ)2) c(y) = \exp\!\left(-\frac{1}{2}\left(\frac{d(y)}{\delta}\right)^2\right)

Then define dynamic sigma:

σ(y)=σmin+(σmax−σmin)⋅c(y) \sigma(y) = \sigma_{\min} + (\sigma_{\max} - \sigma_{\min}) \cdot c(y)

This produces targets that are heteroscedastic by design, matching the real annotation process more closely than uniform smoothing.

The spread scheduleThe spread σ of the soft target as a function of the label y from 0 to 1. It sits at σ min away from the transitions and rises in a narrow bump to σ max at each of the three transitions 0.2, 0.5 and 0.8. Drawn with illustrative values of σ min, σ max and δ.The spread scheduleσmaxσmin00.20.50.81label yy = 0, a clear negative: σ at its minimumy = 0.2, on a transition: σ at its maximumy = 0.35, between two transitions: σ near its minimumy = 0.5, on a transition: σ at its maximumy = 0.65, between two transitions: σ near its minimumy = 0.8, on a transition: σ at its maximumy = 1, a clear positive: σ at its minimum

σ rises near the transitions 0.2, 0.5 and 0.8

A borderline label, s = 0.5The soft target for a label of 0.5, which sits on a transition: a wide bell over the 11 bin centres, largest at 0.5 (about 27 percent of the mass) and spread over the neighbouring bins from 0.2 to 0.8.A borderline label, s = 0.5bin 0: 0.1% of the targetbin 0.1: 0.8% of the targetbin 0.2: 3.6% of the targetbin 0.3: 11% of the targetbin 0.4: 21% of the targetbin 0.5: 27% of the targetbin 0.6: 21% of the targetbin 0.7: 11% of the targetbin 0.8: 3.6% of the targetbin 0.9: 0.8% of the targetbin 1: 0.1% of the target00.51the label s = 0.5bin centre

near a transition the target is spread over neighbouring bins

A clear label, s = 1.0The soft target for a label of 1.0, far from any transition: a spike at the last bin (about 88 percent of the mass), about 12 percent at 0.9 and nothing below, cut off at the edge of the range.A clear label, s = 1.0bin 0: nothing of the targetbin 0.1: nothing of the targetbin 0.2: nothing of the targetbin 0.3: nothing of the targetbin 0.4: nothing of the targetbin 0.5: nothing of the targetbin 0.6: nothing of the targetbin 0.7: nothing of the targetbin 0.8: nothing of the targetbin 0.9: 12% of the targetbin 1: 88% of the target00.51the label s = 1bin centre

far from one it is close to one-hot

Figure 2. From a graded label to a soft target over the 11 relevance bins. The spread σ(y) rises near the transitions 0.2, 0.5 and 0.8 (left), so a borderline label is spread over its neighbouring bins (centre) while a clear one stays close to one-hot (right). The shapes follow the formulas above; the values of σmin, σmax and δ used to draw them are illustrative.

KL divergence for distribution alignment

We optimize a distributional loss:

ℒKL=DKL(𝐲∥𝐲^)=∑i=1Byilog⁡yiy^i \mathcal{L}_{KL} = D_{KL}(\mathbf{y} \,\|\, \hat{\mathbf{y}}) = \sum_{i=1}^{B} y_i \log\frac{y_i}{\hat{y}_i}

Outcome of Phase 1: The backbone learns representations that support:

Phase 2: Scalar alignment with frozen backbone (remove distributional head, add MSE head)

Distributional training is powerful for learning robust representations, but many production systems and ranking pipelines ultimately need a single scalar score:

Instead of forcing the distributional model to serve as the production interface, we convert it into a scalar scorer using a careful alignment step that does not disturb the backbone.

The procedure is undertaken in 3 main steps:

This design prevents Phase 2 from unlearning the robust features acquired during distributional training. We train the scalar head using mean squared error against the original scalar label.

Generative Rerankers

In addition to classification-style encoder rankers, we introduce RexReranker-0.6B, a decoder-based generative reranker built on the Qwen3-Reranker-0.6B backbone. The scoring interface follows a generative reranking formulation: given a prompt containing (q, p), the model emits a binary judgment token (yes/no). The relevance score is derived from the model’s token-level posterior, i.e., the normalized probability (or logit) assigned to the yes token under the next-token distribution.

Specifically, we apply an MSE objective on the yes-token logit (optionally temperature-scaled) against our ground-truth graded relevance score (or its monotonic transform). This yields a lightweight, stable optimization signal while preserving the decoder reranker’s ability to understand deep semantic connections between query and product details.

Empirically, this training approach produces a model that outperforms existing open-source generative rerankers on our evaluation suite, establishing state-of-the-art nDCG metrics.

To maximize throughput and reduce cost, we also train and validate FP8 and MXFP4 variants of RexReranker-0.6B. Both quantized models retain comparable NDCG to a substantially larger model: Qwen3-Reranker-8B, while using ~13× fewer parameters and enabling significantly faster inference.

When benchmarked with vLLM, we observe:

Evaluation

We chose nDCG as our primary evaluation metric. NDCG is often better for e-commerce search because it rewards correct ordering across many relevant products and uses graded relevance, not just binary relevance. Unlike Precision@k, it credits improvements anywhere in the ranked list with stronger weight near the top. Unlike MRR, it doesn’t over-focus on the first relevant item which is important when users compare multiple products. Unlike MAP, it’s more natural for multi-intent queries and variable numbers of relevant results.

After implementing the end-to-end, data curation pipeline described above, we systematically identify:

We then stratify and balance these subsets across query types to preserve intent coverage and difficulty distribution resulting in ERESS (E-commerce Relevance Evaluation Scoring Suite). It is designed to stress-test rerankers under failure modes like high-recall retrieval errors, attribute-level mismatches, and intent ambiguity that dominate real-world product discovery while maintaining controlled representation across query classes.

Generative Rerankers

We benchmarked a set of widely used open-source rerankers on ERESS.

Scatter plot titled “Pareto: Parameters vs nDCG@5 (Rerankers)”, with parameters in billions on the horizontal axis and nDCG@5 on the vertical axis. RexReranker-0.6B sits highest, near 0.98 at 0.6 billion parameters, with RexReranker-0.6B-FP8 below it near 0.925; a shaded wedge marks the region they dominate. Qwen3-Reranker-8B is near 0.916 at 8 billion, Qwen3-Reranker-4B near 0.90 at 4 billion, Nemotron-Rerank-1B near 0.86, jina-reranker-v3 near 0.84, zerank-2 near 0.83 at 4 billion and Qwen3-Reranker-0.6B near 0.82.
Figure 3. Parameters against nDCG@5 on ERESS for the generative rerankers.

RexReranker-0.6B achieves the strongest effectiveness overall and is the clear Pareto winner: it outperforms larger decoder rerankers, including Qwen3-Reranker-8B, despite having ~13× fewer parameters (0.6B vs 8B). The FP8 deployment variant remains highly competitive, trading some headroom for substantially better serving efficiency while still beating most baselines.

Table 1. Generative rerankers on ERESS: parameter count, nDCG@5 and nDCG@10.

Model#ParamsnDCG@5nDCG@10
RexReranker-0.6B0.6B0.97940.9722
RexReranker-0.6B-FP80.6B0.92510.8871
Qwen3-Reranker-8B8.0B0.91580.9034
Qwen3-Reranker-4B4.0B0.90110.8887
Nemotron-Rerank-1B1.0B0.86140.828
jina-reranker-v30.6B0.83770.7952
zerank-24.0B0.83370.7761
Qwen3-Reranker-0.6B0.6B0.81950.8137

nDCG@5nDCG@10RexRerankers in black, other models in grey

Generative rerankers on ERESS: nDCG@5 and nDCG@10One row per model, in the order of Table 1. Each row joins an open marker at nDCG@10 to a filled marker at nDCG@5 on an axis from 0.75 to 1.00. RexReranker-0.6B scores 0.9794 and 0.9722, alone on the right; RexReranker-0.6B-FP8 0.9251 and 0.8871; Qwen3-Reranker-8B 0.9158 and 0.9034; Qwen3-Reranker-4B 0.9011 and 0.8887; Nemotron-Rerank-1B 0.8614 and 0.828; jina-reranker-v3 0.8377 and 0.7952; zerank-2 0.8337 and 0.7761; Qwen3-Reranker-0.6B 0.8195 and 0.8137.0.750.800.850.900.951.00nDCG on ERESSRexReranker-0.6B0.6BRexReranker-0.6B, nDCG@10: 0.9722RexReranker-0.6B, nDCG@5: 0.97940.9794RexReranker-0.6B-FP80.6BRexReranker-0.6B-FP8, nDCG@10: 0.8871RexReranker-0.6B-FP8, nDCG@5: 0.92510.9251Qwen3-Reranker-8B8.0BQwen3-Reranker-8B, nDCG@10: 0.9034Qwen3-Reranker-8B, nDCG@5: 0.91580.9158Qwen3-Reranker-4B4.0BQwen3-Reranker-4B, nDCG@10: 0.8887Qwen3-Reranker-4B, nDCG@5: 0.90110.9011Nemotron-Rerank-1B1.0BNemotron-Rerank-1B, nDCG@10: 0.828Nemotron-Rerank-1B, nDCG@5: 0.86140.8614jina-reranker-v30.6Bjina-reranker-v3, nDCG@10: 0.7952jina-reranker-v3, nDCG@5: 0.83770.8377zerank-24.0Bzerank-2, nDCG@10: 0.7761zerank-2, nDCG@5: 0.83370.8337Qwen3-Reranker-0.6B0.6BQwen3-Reranker-0.6B, nDCG@10: 0.8137Qwen3-Reranker-0.6B, nDCG@5: 0.81950.8195
Generative rerankers on ERESS: nDCG@5 and nDCG@10One row per model, in the order of Table 1. Each row joins an open marker at nDCG@10 to a filled marker at nDCG@5 on an axis from 0.75 to 1.00. RexReranker-0.6B scores 0.9794 and 0.9722, alone on the right; RexReranker-0.6B-FP8 0.9251 and 0.8871; Qwen3-Reranker-8B 0.9158 and 0.9034; Qwen3-Reranker-4B 0.9011 and 0.8887; Nemotron-Rerank-1B 0.8614 and 0.828; jina-reranker-v3 0.8377 and 0.7952; zerank-2 0.8337 and 0.7761; Qwen3-Reranker-0.6B 0.8195 and 0.8137.0.750.800.850.900.951.00nDCG on ERESSRexReranker-0.6B0.6BRexReranker-0.6B, nDCG@10: 0.9722RexReranker-0.6B, nDCG@5: 0.97940.9794RexReranker-0.6B-FP80.6BRexReranker-0.6B-FP8, nDCG@10: 0.8871RexReranker-0.6B-FP8, nDCG@5: 0.92510.9251Qwen3-Reranker-8B8.0BQwen3-Reranker-8B, nDCG@10: 0.9034Qwen3-Reranker-8B, nDCG@5: 0.91580.9158Qwen3-Reranker-4B4.0BQwen3-Reranker-4B, nDCG@10: 0.8887Qwen3-Reranker-4B, nDCG@5: 0.90110.9011Nemotron-Rerank-1B1.0BNemotron-Rerank-1B, nDCG@10: 0.828Nemotron-Rerank-1B, nDCG@5: 0.86140.8614jina-reranker-v30.6Bjina-reranker-v3, nDCG@10: 0.7952jina-reranker-v3, nDCG@5: 0.83770.8377zerank-24.0Bzerank-2, nDCG@10: 0.7761zerank-2, nDCG@5: 0.83370.8337Qwen3-Reranker-0.6B0.6BQwen3-Reranker-0.6B, nDCG@10: 0.8137Qwen3-Reranker-0.6B, nDCG@5: 0.81950.8195
Figure 4. The generative rerankers of Table 1 on ERESS. Filled markers are nDCG@5 and open markers nDCG@10; RexRerankers are in black, and the parameter count follows each name.

A key motivation for ERESS is that common public evaluation sets (Amazon-ESCI, WANDS) tend to under-represent modern shopping traffic especially assistant style queries (gift/audience constraints, utility/task framing, and high-attribute conversational intent). ERESS is explicitly stratified across these query families and includes harder confounders. When we slice results by query type (see radar plot), RexReranker-0.6B maintains the strongest and most consistent performance across all intent categories, emerging as the clean winner under both aggregate and stratified evaluation.

nDCG@5 on ERESS by query type, generative rerankersRadar chart with six axes, one per query type, running from 80% at the centre to 100%% at the rim. RexReranker-0.6B: Attribute-rich 97.7%, Gift and Audience Specific 97.8%, Generic 98.2%, Navigational 98.0%, Short and Books 98.3%, Utility 98.9%. Qwen3-Reranker-8B: Attribute-rich 92.1%, Gift and Audience Specific 89.9%, Generic 90.9%, Navigational 91.3%, Short and Books 92.1%, Utility 90.1%. Qwen3-Reranker-4B: Attribute-rich 90.3%, Gift and Audience Specific 89.8%, Generic 90.4%, Navigational 90.7%, Short and Books 90.1%, Utility 89.5%. Nemotron-Rerank-1B: Attribute-rich 85.0%, Gift and Audience Specific 90.6%, Generic 87.5%, Navigational 92.0%, Short and Books 87.6%, Utility 89.6%. jina-reranker-v3: Attribute-rich 81.5%, Gift and Audience Specific 88.4%, Generic 86.1%, Navigational 84.5%, Short and Books 87.4%, Utility 89.7%. zerank-2: Attribute-rich 82.0%, Gift and Audience Specific 88.2%, Generic 84.5%, Navigational 86.0%, Short and Books 85.5%, Utility 87.2%. Qwen3-Reranker-0.6B: Attribute-rich 81.6%, Gift and Audience Specific 82.8%, Generic 80.7%, Navigational 85.7%, Short and Books 82.4%, Utility 83.6%. Values read from the original chart.Attribute-richGift andAudience SpecificGenericNavigationalShort and BooksUtilityQwen3-Reranker-0.6B, Attribute-rich: 81.6%Qwen3-Reranker-0.6B, Gift and Audience Specific: 82.8%Qwen3-Reranker-0.6B, Generic: 80.7%Qwen3-Reranker-0.6B, Navigational: 85.7%Qwen3-Reranker-0.6B, Short and Books: 82.4%Qwen3-Reranker-0.6B, Utility: 83.6%zerank-2, Attribute-rich: 82.0%zerank-2, Gift and Audience Specific: 88.2%zerank-2, Generic: 84.5%zerank-2, Navigational: 86.0%zerank-2, Short and Books: 85.5%zerank-2, Utility: 87.2%jina-reranker-v3, Attribute-rich: 81.5%jina-reranker-v3, Gift and Audience Specific: 88.4%jina-reranker-v3, Generic: 86.1%jina-reranker-v3, Navigational: 84.5%jina-reranker-v3, Short and Books: 87.4%jina-reranker-v3, Utility: 89.7%Nemotron-Rerank-1B, Attribute-rich: 85.0%Nemotron-Rerank-1B, Gift and Audience Specific: 90.6%Nemotron-Rerank-1B, Generic: 87.5%Nemotron-Rerank-1B, Navigational: 92.0%Nemotron-Rerank-1B, Short and Books: 87.6%Nemotron-Rerank-1B, Utility: 89.6%Qwen3-Reranker-4B, Attribute-rich: 90.3%Qwen3-Reranker-4B, Gift and Audience Specific: 89.8%Qwen3-Reranker-4B, Generic: 90.4%Qwen3-Reranker-4B, Navigational: 90.7%Qwen3-Reranker-4B, Short and Books: 90.1%Qwen3-Reranker-4B, Utility: 89.5%Qwen3-Reranker-8B, Attribute-rich: 92.1%Qwen3-Reranker-8B, Gift and Audience Specific: 89.9%Qwen3-Reranker-8B, Generic: 90.9%Qwen3-Reranker-8B, Navigational: 91.3%Qwen3-Reranker-8B, Short and Books: 92.1%Qwen3-Reranker-8B, Utility: 90.1%RexReranker-0.6B, Attribute-rich: 97.7%RexReranker-0.6B, Gift and Audience Specific: 97.8%RexReranker-0.6B, Generic: 98.2%RexReranker-0.6B, Navigational: 98.0%RexReranker-0.6B, Short and Books: 98.3%RexReranker-0.6B, Utility: 98.9%80%85%90%95%100%
nDCG@5 on ERESS by query type, generative rerankersRadar chart with six axes, one per query type, running from 80% at the centre to 100%% at the rim. RexReranker-0.6B: Attribute-rich 97.7%, Gift and Audience Specific 97.8%, Generic 98.2%, Navigational 98.0%, Short and Books 98.3%, Utility 98.9%. Qwen3-Reranker-8B: Attribute-rich 92.1%, Gift and Audience Specific 89.9%, Generic 90.9%, Navigational 91.3%, Short and Books 92.1%, Utility 90.1%. Qwen3-Reranker-4B: Attribute-rich 90.3%, Gift and Audience Specific 89.8%, Generic 90.4%, Navigational 90.7%, Short and Books 90.1%, Utility 89.5%. Nemotron-Rerank-1B: Attribute-rich 85.0%, Gift and Audience Specific 90.6%, Generic 87.5%, Navigational 92.0%, Short and Books 87.6%, Utility 89.6%. jina-reranker-v3: Attribute-rich 81.5%, Gift and Audience Specific 88.4%, Generic 86.1%, Navigational 84.5%, Short and Books 87.4%, Utility 89.7%. zerank-2: Attribute-rich 82.0%, Gift and Audience Specific 88.2%, Generic 84.5%, Navigational 86.0%, Short and Books 85.5%, Utility 87.2%. Qwen3-Reranker-0.6B: Attribute-rich 81.6%, Gift and Audience Specific 82.8%, Generic 80.7%, Navigational 85.7%, Short and Books 82.4%, Utility 83.6%. Values read from the original chart.Attribute-richGift andAudienceSpecificGenericNavigationalShort andBooksUtilityQwen3-Reranker-0.6B, Attribute-rich: 81.6%Qwen3-Reranker-0.6B, Gift and Audience Specific: 82.8%Qwen3-Reranker-0.6B, Generic: 80.7%Qwen3-Reranker-0.6B, Navigational: 85.7%Qwen3-Reranker-0.6B, Short and Books: 82.4%Qwen3-Reranker-0.6B, Utility: 83.6%zerank-2, Attribute-rich: 82.0%zerank-2, Gift and Audience Specific: 88.2%zerank-2, Generic: 84.5%zerank-2, Navigational: 86.0%zerank-2, Short and Books: 85.5%zerank-2, Utility: 87.2%jina-reranker-v3, Attribute-rich: 81.5%jina-reranker-v3, Gift and Audience Specific: 88.4%jina-reranker-v3, Generic: 86.1%jina-reranker-v3, Navigational: 84.5%jina-reranker-v3, Short and Books: 87.4%jina-reranker-v3, Utility: 89.7%Nemotron-Rerank-1B, Attribute-rich: 85.0%Nemotron-Rerank-1B, Gift and Audience Specific: 90.6%Nemotron-Rerank-1B, Generic: 87.5%Nemotron-Rerank-1B, Navigational: 92.0%Nemotron-Rerank-1B, Short and Books: 87.6%Nemotron-Rerank-1B, Utility: 89.6%Qwen3-Reranker-4B, Attribute-rich: 90.3%Qwen3-Reranker-4B, Gift and Audience Specific: 89.8%Qwen3-Reranker-4B, Generic: 90.4%Qwen3-Reranker-4B, Navigational: 90.7%Qwen3-Reranker-4B, Short and Books: 90.1%Qwen3-Reranker-4B, Utility: 89.5%Qwen3-Reranker-8B, Attribute-rich: 92.1%Qwen3-Reranker-8B, Gift and Audience Specific: 89.9%Qwen3-Reranker-8B, Generic: 90.9%Qwen3-Reranker-8B, Navigational: 91.3%Qwen3-Reranker-8B, Short and Books: 92.1%Qwen3-Reranker-8B, Utility: 90.1%RexReranker-0.6B, Attribute-rich: 97.7%RexReranker-0.6B, Gift and Audience Specific: 97.8%RexReranker-0.6B, Generic: 98.2%RexReranker-0.6B, Navigational: 98.0%RexReranker-0.6B, Short and Books: 98.3%RexReranker-0.6B, Utility: 98.9%80%85%90%95%100%
Figure 5. nDCG@5 on ERESS by query type for the generative rerankers, from 80% at the centre to 100% at the rim. Higher scores indicate better relevance ranking performance. Values read from the original chart.

Classification Rerankers

We train an encoder-style family of RexRerankers by initializing from e-commerce domain MLM RexBERT models at four capacity tiers: micro (16.8M), mini (68M), base (149M), and large (400M) parameters. All models are trained as cross-encoders for relevance estimation and evaluated under identical ranking protocols.

We compare against strong open-source baselines across three datasets: ERESS (our suite), Amazon-ESCI, and WANDS reporting nDCG@5 / nDCG@10 (and MRR@10 where applicable). Overall, RexRerankers deliver consistent gains, particularly on ERESS where the evaluation distribution matches modern e-commerce and shopping assistant query traffic.

Grouped bar chart titled “nDCG@5 Comparison Across Datasets”, with the vertical axis running from 0.800 to 1.000. On ERESS, RexReranker-base and RexReranker-large reach about 0.98, gte-modernbert-reranker-base about 0.924 and mxbai-rerank-base-v2 about 0.844. On Amazon-ESCI the four bars are at about 0.943, 0.937, 0.927 and 0.857. On WANDS they are at about 0.954, 0.954, 0.948 and 0.825.
Figure 6. nDCG@5 on ERESS, Amazon-ESCI and WANDS for RexReranker-base, RexReranker-large and two baselines.

On ERESS, RexRerankers dominate across all model sizes, with clear scaling behavior. Performance increases monotonically with capacity, peaking at RexReranker-large (400M) with nDCG@5 = 0.9814 and nDCG@10 = 0.9748, indicating the RexBERT initialization + e-commerce supervision yields strong headroom. RexReranker models generalize strongly despite Amazon ESCI’s different labeling policy and query distribution. On WANDS, RexRerankers achieve the strongest top-k effectiveness and reciprocal rank.

Metric

RexRerankerbaseline of the same size group

Classification rerankers by size group: nDCG@5 on three datasetsnDCG@5 of the twelve classification rerankers of Table 2 on ERESS, Amazon-ESCI and WANDS, on an axis from 0.80 to 1.00, in four size groups each led by a RexReranker. ERESS, micro: RexReranker-micro 0.9666, ms-marco-MiniLM-L6-v2 0.8888, ms-marco-MiniLM-L2-v2 0.8800; mini: RexReranker-mini 0.9724, mxbai-rerank-xsmall-v1 0.8968, ms-marco-TinyBERT-L6 0.8915; base: RexReranker-base 0.9784, gte-reranker-modernbert-base 0.9240, mxbai-rerank-base-v1 0.9293; large: RexReranker-large 0.9814, mxbai-rerank-base-v2 0.8438, mxbai-rerank-large-v1 0.9376. Amazon-ESCI, micro: RexReranker-micro 0.9066, ms-marco-MiniLM-L6-v2 0.9067, ms-marco-MiniLM-L2-v2 0.9061; mini: RexReranker-mini 0.9219, mxbai-rerank-xsmall-v1 0.9128, ms-marco-TinyBERT-L6 0.9126; base: RexReranker-base 0.9427, gte-reranker-modernbert-base 0.9268, mxbai-rerank-base-v1 0.9291; large: RexReranker-large 0.9371, mxbai-rerank-base-v2 0.8567, mxbai-rerank-large-v1 0.8557. WANDS, micro: RexReranker-micro 0.9347, ms-marco-MiniLM-L6-v2 0.9330, ms-marco-MiniLM-L2-v2 0.9311; mini: RexReranker-mini 0.9475, mxbai-rerank-xsmall-v1 0.9274, ms-marco-TinyBERT-L6 0.9396; base: RexReranker-base 0.9542, gte-reranker-modernbert-base 0.9482, mxbai-rerank-base-v1 0.9493; large: RexReranker-large 0.9535, mxbai-rerank-base-v2 0.8249, mxbai-rerank-large-v1 0.8339.ERESS0.800.850.900.951.00RexReranker-micro (16.8M), ERESS nDCG@5: 0.9666ms-marco-MiniLM-L6-v2 (22.7M), ERESS nDCG@5: 0.8888ms-marco-MiniLM-L2-v2 (15.6M), ERESS nDCG@5: 0.8800RexReranker-mini (68M), ERESS nDCG@5: 0.9724mxbai-rerank-xsmall-v1 (70M), ERESS nDCG@5: 0.8968ms-marco-TinyBERT-L6 (67M), ERESS nDCG@5: 0.8915RexReranker-base (149M), ERESS nDCG@5: 0.9784gte-reranker-modernbert-base (149M), ERESS nDCG@5: 0.9240mxbai-rerank-base-v1 (184M), ERESS nDCG@5: 0.9293RexReranker-large (400M), ERESS nDCG@5: 0.9814mxbai-rerank-base-v2 (500M), ERESS nDCG@5: 0.8438mxbai-rerank-large-v1 (435M), ERESS nDCG@5: 0.9376Amazon-ESCI0.800.850.900.951.00RexReranker-micro (16.8M), Amazon-ESCI nDCG@5: 0.9066ms-marco-MiniLM-L6-v2 (22.7M), Amazon-ESCI nDCG@5: 0.9067ms-marco-MiniLM-L2-v2 (15.6M), Amazon-ESCI nDCG@5: 0.9061RexReranker-mini (68M), Amazon-ESCI nDCG@5: 0.9219mxbai-rerank-xsmall-v1 (70M), Amazon-ESCI nDCG@5: 0.9128ms-marco-TinyBERT-L6 (67M), Amazon-ESCI nDCG@5: 0.9126RexReranker-base (149M), Amazon-ESCI nDCG@5: 0.9427gte-reranker-modernbert-base (149M), Amazon-ESCI nDCG@5: 0.9268mxbai-rerank-base-v1 (184M), Amazon-ESCI nDCG@5: 0.9291RexReranker-large (400M), Amazon-ESCI nDCG@5: 0.9371mxbai-rerank-base-v2 (500M), Amazon-ESCI nDCG@5: 0.8567mxbai-rerank-large-v1 (435M), Amazon-ESCI nDCG@5: 0.8557WANDS0.800.850.900.951.00RexReranker-micro (16.8M), WANDS nDCG@5: 0.9347ms-marco-MiniLM-L6-v2 (22.7M), WANDS nDCG@5: 0.9330ms-marco-MiniLM-L2-v2 (15.6M), WANDS nDCG@5: 0.9311RexReranker-mini (68M), WANDS nDCG@5: 0.9475mxbai-rerank-xsmall-v1 (70M), WANDS nDCG@5: 0.9274ms-marco-TinyBERT-L6 (67M), WANDS nDCG@5: 0.9396RexReranker-base (149M), WANDS nDCG@5: 0.9542gte-reranker-modernbert-base (149M), WANDS nDCG@5: 0.9482mxbai-rerank-base-v1 (184M), WANDS nDCG@5: 0.9493RexReranker-large (400M), WANDS nDCG@5: 0.9535mxbai-rerank-base-v2 (500M), WANDS nDCG@5: 0.8249mxbai-rerank-large-v1 (435M), WANDS nDCG@5: 0.8339nDCG@5micro · 16.8MRexReranker-micro16.8Mms-marco-MiniLM-L6-v222.7Mms-marco-MiniLM-L2-v215.6Mmini · 68MRexReranker-mini68Mmxbai-rerank-xsmall-v170Mms-marco-TinyBERT-L667Mbase · 149MRexReranker-base149Mgte-reranker-modernbert-base149Mmxbai-rerank-base-v1184Mlarge · 400MRexReranker-large400Mmxbai-rerank-base-v2500Mmxbai-rerank-large-v1435M
Classification rerankers by size group: nDCG@5 on three datasetsnDCG@5 of the twelve classification rerankers of Table 2 on ERESS, Amazon-ESCI and WANDS, on an axis from 0.80 to 1.00, in four size groups each led by a RexReranker. ERESS, micro: RexReranker-micro 0.9666, ms-marco-MiniLM-L6-v2 0.8888, ms-marco-MiniLM-L2-v2 0.8800; mini: RexReranker-mini 0.9724, mxbai-rerank-xsmall-v1 0.8968, ms-marco-TinyBERT-L6 0.8915; base: RexReranker-base 0.9784, gte-reranker-modernbert-base 0.9240, mxbai-rerank-base-v1 0.9293; large: RexReranker-large 0.9814, mxbai-rerank-base-v2 0.8438, mxbai-rerank-large-v1 0.9376. Amazon-ESCI, micro: RexReranker-micro 0.9066, ms-marco-MiniLM-L6-v2 0.9067, ms-marco-MiniLM-L2-v2 0.9061; mini: RexReranker-mini 0.9219, mxbai-rerank-xsmall-v1 0.9128, ms-marco-TinyBERT-L6 0.9126; base: RexReranker-base 0.9427, gte-reranker-modernbert-base 0.9268, mxbai-rerank-base-v1 0.9291; large: RexReranker-large 0.9371, mxbai-rerank-base-v2 0.8567, mxbai-rerank-large-v1 0.8557. WANDS, micro: RexReranker-micro 0.9347, ms-marco-MiniLM-L6-v2 0.9330, ms-marco-MiniLM-L2-v2 0.9311; mini: RexReranker-mini 0.9475, mxbai-rerank-xsmall-v1 0.9274, ms-marco-TinyBERT-L6 0.9396; base: RexReranker-base 0.9542, gte-reranker-modernbert-base 0.9482, mxbai-rerank-base-v1 0.9493; large: RexReranker-large 0.9535, mxbai-rerank-base-v2 0.8249, mxbai-rerank-large-v1 0.8339.ERESS0.800.850.900.951.00micro · 16.8MRexReranker-micro16.8Mms-marco-MiniLM-L6-v222.7Mms-marco-MiniLM-L2-v215.6Mmini · 68MRexReranker-mini68Mmxbai-rerank-xsmall-v170Mms-marco-TinyBERT-L667Mbase · 149MRexReranker-base149Mgte-reranker-modernbert-base149Mmxbai-rerank-base-v1184Mlarge · 400MRexReranker-large400Mmxbai-rerank-base-v2500Mmxbai-rerank-large-v1435MRexReranker-micro (16.8M), ERESS nDCG@5: 0.9666ms-marco-MiniLM-L6-v2 (22.7M), ERESS nDCG@5: 0.8888ms-marco-MiniLM-L2-v2 (15.6M), ERESS nDCG@5: 0.8800RexReranker-mini (68M), ERESS nDCG@5: 0.9724mxbai-rerank-xsmall-v1 (70M), ERESS nDCG@5: 0.8968ms-marco-TinyBERT-L6 (67M), ERESS nDCG@5: 0.8915RexReranker-base (149M), ERESS nDCG@5: 0.9784gte-reranker-modernbert-base (149M), ERESS nDCG@5: 0.9240mxbai-rerank-base-v1 (184M), ERESS nDCG@5: 0.9293RexReranker-large (400M), ERESS nDCG@5: 0.9814mxbai-rerank-base-v2 (500M), ERESS nDCG@5: 0.8438mxbai-rerank-large-v1 (435M), ERESS nDCG@5: 0.9376Amazon-ESCI0.800.850.900.951.00micro · 16.8MRexReranker-micro16.8Mms-marco-MiniLM-L6-v222.7Mms-marco-MiniLM-L2-v215.6Mmini · 68MRexReranker-mini68Mmxbai-rerank-xsmall-v170Mms-marco-TinyBERT-L667Mbase · 149MRexReranker-base149Mgte-reranker-modernbert-base149Mmxbai-rerank-base-v1184Mlarge · 400MRexReranker-large400Mmxbai-rerank-base-v2500Mmxbai-rerank-large-v1435MRexReranker-micro (16.8M), Amazon-ESCI nDCG@5: 0.9066ms-marco-MiniLM-L6-v2 (22.7M), Amazon-ESCI nDCG@5: 0.9067ms-marco-MiniLM-L2-v2 (15.6M), Amazon-ESCI nDCG@5: 0.9061RexReranker-mini (68M), Amazon-ESCI nDCG@5: 0.9219mxbai-rerank-xsmall-v1 (70M), Amazon-ESCI nDCG@5: 0.9128ms-marco-TinyBERT-L6 (67M), Amazon-ESCI nDCG@5: 0.9126RexReranker-base (149M), Amazon-ESCI nDCG@5: 0.9427gte-reranker-modernbert-base (149M), Amazon-ESCI nDCG@5: 0.9268mxbai-rerank-base-v1 (184M), Amazon-ESCI nDCG@5: 0.9291RexReranker-large (400M), Amazon-ESCI nDCG@5: 0.9371mxbai-rerank-base-v2 (500M), Amazon-ESCI nDCG@5: 0.8567mxbai-rerank-large-v1 (435M), Amazon-ESCI nDCG@5: 0.8557WANDS0.800.850.900.951.00micro · 16.8MRexReranker-micro16.8Mms-marco-MiniLM-L6-v222.7Mms-marco-MiniLM-L2-v215.6Mmini · 68MRexReranker-mini68Mmxbai-rerank-xsmall-v170Mms-marco-TinyBERT-L667Mbase · 149MRexReranker-base149Mgte-reranker-modernbert-base149Mmxbai-rerank-base-v1184Mlarge · 400MRexReranker-large400Mmxbai-rerank-base-v2500Mmxbai-rerank-large-v1435MRexReranker-micro (16.8M), WANDS nDCG@5: 0.9347ms-marco-MiniLM-L6-v2 (22.7M), WANDS nDCG@5: 0.9330ms-marco-MiniLM-L2-v2 (15.6M), WANDS nDCG@5: 0.9311RexReranker-mini (68M), WANDS nDCG@5: 0.9475mxbai-rerank-xsmall-v1 (70M), WANDS nDCG@5: 0.9274ms-marco-TinyBERT-L6 (67M), WANDS nDCG@5: 0.9396RexReranker-base (149M), WANDS nDCG@5: 0.9542gte-reranker-modernbert-base (149M), WANDS nDCG@5: 0.9482mxbai-rerank-base-v1 (184M), WANDS nDCG@5: 0.9493RexReranker-large (400M), WANDS nDCG@5: 0.9535mxbai-rerank-base-v2 (500M), WANDS nDCG@5: 0.8249mxbai-rerank-large-v1 (435M), WANDS nDCG@5: 0.8339nDCG@5
Classification rerankers by size group: nDCG@10 on three datasetsnDCG@10 of the twelve classification rerankers of Table 2 on ERESS, Amazon-ESCI and WANDS, on an axis from 0.80 to 1.00, in four size groups each led by a RexReranker. ERESS, micro: RexReranker-micro 0.9540, ms-marco-MiniLM-L6-v2 0.8709, ms-marco-MiniLM-L2-v2 0.8586; mini: RexReranker-mini 0.9610, mxbai-rerank-xsmall-v1 0.8800, ms-marco-TinyBERT-L6 0.8709; base: RexReranker-base 0.9703, gte-reranker-modernbert-base 0.9118, mxbai-rerank-base-v1 0.9164; large: RexReranker-large 0.9748, mxbai-rerank-base-v2 0.8065, mxbai-rerank-large-v1 0.9261. Amazon-ESCI, micro: RexReranker-micro 0.8969, ms-marco-MiniLM-L6-v2 0.8960, ms-marco-MiniLM-L2-v2 0.8964; mini: RexReranker-mini 0.9127, mxbai-rerank-xsmall-v1 0.9005, ms-marco-TinyBERT-L6 0.9013; base: RexReranker-base 0.9326, gte-reranker-modernbert-base 0.9164, mxbai-rerank-base-v1 0.9189; large: RexReranker-large 0.9265, mxbai-rerank-base-v2 0.8432, mxbai-rerank-large-v1 0.8421. WANDS, micro: RexReranker-micro 0.9304, ms-marco-MiniLM-L6-v2 0.9376, ms-marco-MiniLM-L2-v2 0.9283; mini: RexReranker-mini 0.9412, mxbai-rerank-xsmall-v1 0.9185, ms-marco-TinyBERT-L6 0.9358; base: RexReranker-base 0.9523, gte-reranker-modernbert-base 0.9429, mxbai-rerank-base-v1 0.9450; large: RexReranker-large 0.9511, mxbai-rerank-base-v2 0.8259, mxbai-rerank-large-v1 0.8300.ERESS0.800.850.900.951.00RexReranker-micro (16.8M), ERESS nDCG@10: 0.9540ms-marco-MiniLM-L6-v2 (22.7M), ERESS nDCG@10: 0.8709ms-marco-MiniLM-L2-v2 (15.6M), ERESS nDCG@10: 0.8586RexReranker-mini (68M), ERESS nDCG@10: 0.9610mxbai-rerank-xsmall-v1 (70M), ERESS nDCG@10: 0.8800ms-marco-TinyBERT-L6 (67M), ERESS nDCG@10: 0.8709RexReranker-base (149M), ERESS nDCG@10: 0.9703gte-reranker-modernbert-base (149M), ERESS nDCG@10: 0.9118mxbai-rerank-base-v1 (184M), ERESS nDCG@10: 0.9164RexReranker-large (400M), ERESS nDCG@10: 0.9748mxbai-rerank-base-v2 (500M), ERESS nDCG@10: 0.8065mxbai-rerank-large-v1 (435M), ERESS nDCG@10: 0.9261Amazon-ESCI0.800.850.900.951.00RexReranker-micro (16.8M), Amazon-ESCI nDCG@10: 0.8969ms-marco-MiniLM-L6-v2 (22.7M), Amazon-ESCI nDCG@10: 0.8960ms-marco-MiniLM-L2-v2 (15.6M), Amazon-ESCI nDCG@10: 0.8964RexReranker-mini (68M), Amazon-ESCI nDCG@10: 0.9127mxbai-rerank-xsmall-v1 (70M), Amazon-ESCI nDCG@10: 0.9005ms-marco-TinyBERT-L6 (67M), Amazon-ESCI nDCG@10: 0.9013RexReranker-base (149M), Amazon-ESCI nDCG@10: 0.9326gte-reranker-modernbert-base (149M), Amazon-ESCI nDCG@10: 0.9164mxbai-rerank-base-v1 (184M), Amazon-ESCI nDCG@10: 0.9189RexReranker-large (400M), Amazon-ESCI nDCG@10: 0.9265mxbai-rerank-base-v2 (500M), Amazon-ESCI nDCG@10: 0.8432mxbai-rerank-large-v1 (435M), Amazon-ESCI nDCG@10: 0.8421WANDS0.800.850.900.951.00RexReranker-micro (16.8M), WANDS nDCG@10: 0.9304ms-marco-MiniLM-L6-v2 (22.7M), WANDS nDCG@10: 0.9376ms-marco-MiniLM-L2-v2 (15.6M), WANDS nDCG@10: 0.9283RexReranker-mini (68M), WANDS nDCG@10: 0.9412mxbai-rerank-xsmall-v1 (70M), WANDS nDCG@10: 0.9185ms-marco-TinyBERT-L6 (67M), WANDS nDCG@10: 0.9358RexReranker-base (149M), WANDS nDCG@10: 0.9523gte-reranker-modernbert-base (149M), WANDS nDCG@10: 0.9429mxbai-rerank-base-v1 (184M), WANDS nDCG@10: 0.9450RexReranker-large (400M), WANDS nDCG@10: 0.9511mxbai-rerank-base-v2 (500M), WANDS nDCG@10: 0.8259mxbai-rerank-large-v1 (435M), WANDS nDCG@10: 0.8300nDCG@10micro · 16.8MRexReranker-micro16.8Mms-marco-MiniLM-L6-v222.7Mms-marco-MiniLM-L2-v215.6Mmini · 68MRexReranker-mini68Mmxbai-rerank-xsmall-v170Mms-marco-TinyBERT-L667Mbase · 149MRexReranker-base149Mgte-reranker-modernbert-base149Mmxbai-rerank-base-v1184Mlarge · 400MRexReranker-large400Mmxbai-rerank-base-v2500Mmxbai-rerank-large-v1435M
Classification rerankers by size group: nDCG@10 on three datasetsnDCG@10 of the twelve classification rerankers of Table 2 on ERESS, Amazon-ESCI and WANDS, on an axis from 0.80 to 1.00, in four size groups each led by a RexReranker. ERESS, micro: RexReranker-micro 0.9540, ms-marco-MiniLM-L6-v2 0.8709, ms-marco-MiniLM-L2-v2 0.8586; mini: RexReranker-mini 0.9610, mxbai-rerank-xsmall-v1 0.8800, ms-marco-TinyBERT-L6 0.8709; base: RexReranker-base 0.9703, gte-reranker-modernbert-base 0.9118, mxbai-rerank-base-v1 0.9164; large: RexReranker-large 0.9748, mxbai-rerank-base-v2 0.8065, mxbai-rerank-large-v1 0.9261. Amazon-ESCI, micro: RexReranker-micro 0.8969, ms-marco-MiniLM-L6-v2 0.8960, ms-marco-MiniLM-L2-v2 0.8964; mini: RexReranker-mini 0.9127, mxbai-rerank-xsmall-v1 0.9005, ms-marco-TinyBERT-L6 0.9013; base: RexReranker-base 0.9326, gte-reranker-modernbert-base 0.9164, mxbai-rerank-base-v1 0.9189; large: RexReranker-large 0.9265, mxbai-rerank-base-v2 0.8432, mxbai-rerank-large-v1 0.8421. WANDS, micro: RexReranker-micro 0.9304, ms-marco-MiniLM-L6-v2 0.9376, ms-marco-MiniLM-L2-v2 0.9283; mini: RexReranker-mini 0.9412, mxbai-rerank-xsmall-v1 0.9185, ms-marco-TinyBERT-L6 0.9358; base: RexReranker-base 0.9523, gte-reranker-modernbert-base 0.9429, mxbai-rerank-base-v1 0.9450; large: RexReranker-large 0.9511, mxbai-rerank-base-v2 0.8259, mxbai-rerank-large-v1 0.8300.ERESS0.800.850.900.951.00micro · 16.8MRexReranker-micro16.8Mms-marco-MiniLM-L6-v222.7Mms-marco-MiniLM-L2-v215.6Mmini · 68MRexReranker-mini68Mmxbai-rerank-xsmall-v170Mms-marco-TinyBERT-L667Mbase · 149MRexReranker-base149Mgte-reranker-modernbert-base149Mmxbai-rerank-base-v1184Mlarge · 400MRexReranker-large400Mmxbai-rerank-base-v2500Mmxbai-rerank-large-v1435MRexReranker-micro (16.8M), ERESS nDCG@10: 0.9540ms-marco-MiniLM-L6-v2 (22.7M), ERESS nDCG@10: 0.8709ms-marco-MiniLM-L2-v2 (15.6M), ERESS nDCG@10: 0.8586RexReranker-mini (68M), ERESS nDCG@10: 0.9610mxbai-rerank-xsmall-v1 (70M), ERESS nDCG@10: 0.8800ms-marco-TinyBERT-L6 (67M), ERESS nDCG@10: 0.8709RexReranker-base (149M), ERESS nDCG@10: 0.9703gte-reranker-modernbert-base (149M), ERESS nDCG@10: 0.9118mxbai-rerank-base-v1 (184M), ERESS nDCG@10: 0.9164RexReranker-large (400M), ERESS nDCG@10: 0.9748mxbai-rerank-base-v2 (500M), ERESS nDCG@10: 0.8065mxbai-rerank-large-v1 (435M), ERESS nDCG@10: 0.9261Amazon-ESCI0.800.850.900.951.00micro · 16.8MRexReranker-micro16.8Mms-marco-MiniLM-L6-v222.7Mms-marco-MiniLM-L2-v215.6Mmini · 68MRexReranker-mini68Mmxbai-rerank-xsmall-v170Mms-marco-TinyBERT-L667Mbase · 149MRexReranker-base149Mgte-reranker-modernbert-base149Mmxbai-rerank-base-v1184Mlarge · 400MRexReranker-large400Mmxbai-rerank-base-v2500Mmxbai-rerank-large-v1435MRexReranker-micro (16.8M), Amazon-ESCI nDCG@10: 0.8969ms-marco-MiniLM-L6-v2 (22.7M), Amazon-ESCI nDCG@10: 0.8960ms-marco-MiniLM-L2-v2 (15.6M), Amazon-ESCI nDCG@10: 0.8964RexReranker-mini (68M), Amazon-ESCI nDCG@10: 0.9127mxbai-rerank-xsmall-v1 (70M), Amazon-ESCI nDCG@10: 0.9005ms-marco-TinyBERT-L6 (67M), Amazon-ESCI nDCG@10: 0.9013RexReranker-base (149M), Amazon-ESCI nDCG@10: 0.9326gte-reranker-modernbert-base (149M), Amazon-ESCI nDCG@10: 0.9164mxbai-rerank-base-v1 (184M), Amazon-ESCI nDCG@10: 0.9189RexReranker-large (400M), Amazon-ESCI nDCG@10: 0.9265mxbai-rerank-base-v2 (500M), Amazon-ESCI nDCG@10: 0.8432mxbai-rerank-large-v1 (435M), Amazon-ESCI nDCG@10: 0.8421WANDS0.800.850.900.951.00micro · 16.8MRexReranker-micro16.8Mms-marco-MiniLM-L6-v222.7Mms-marco-MiniLM-L2-v215.6Mmini · 68MRexReranker-mini68Mmxbai-rerank-xsmall-v170Mms-marco-TinyBERT-L667Mbase · 149MRexReranker-base149Mgte-reranker-modernbert-base149Mmxbai-rerank-base-v1184Mlarge · 400MRexReranker-large400Mmxbai-rerank-base-v2500Mmxbai-rerank-large-v1435MRexReranker-micro (16.8M), WANDS nDCG@10: 0.9304ms-marco-MiniLM-L6-v2 (22.7M), WANDS nDCG@10: 0.9376ms-marco-MiniLM-L2-v2 (15.6M), WANDS nDCG@10: 0.9283RexReranker-mini (68M), WANDS nDCG@10: 0.9412mxbai-rerank-xsmall-v1 (70M), WANDS nDCG@10: 0.9185ms-marco-TinyBERT-L6 (67M), WANDS nDCG@10: 0.9358RexReranker-base (149M), WANDS nDCG@10: 0.9523gte-reranker-modernbert-base (149M), WANDS nDCG@10: 0.9429mxbai-rerank-base-v1 (184M), WANDS nDCG@10: 0.9450RexReranker-large (400M), WANDS nDCG@10: 0.9511mxbai-rerank-base-v2 (500M), WANDS nDCG@10: 0.8259mxbai-rerank-large-v1 (435M), WANDS nDCG@10: 0.8300nDCG@10
Figure 7. Every model of Table 2 on the three datasets, grouped by size. Black markers are RexRerankers and open markers the baselines in the same size group; the switch changes the metric between nDCG@5 and nDCG@10.
Results table for twelve classification rerankers in four size groups, each led by a RexReranker: micro (16.8M parameters), mini (68M), base (149M) and large (400M), compared with ms-marco-MiniLM-L6-v2, ms-marco-MiniLM-L2-v2, mxbai-rerank-xsmall-v1, ms-marco-TinyBERT-L6, gte-reranker-modernbert-base, mxbai-rerank-base-v1, mxbai-rerank-base-v2 and mxbai-rerank-large-v1. Columns give nDCG@5 and nDCG@10 on ERESS, and nDCG@5, nDCG@10 and MRR@10 on Amazon-ESCI and on WANDS. On ERESS the RexRerankers score 0.9666 / 0.9540 (micro), 0.9724 / 0.9610 (mini), 0.9784 / 0.9703 (base) and 0.9814 / 0.9748 (large), the best in every group; the best baseline in each group scores between 0.8888 and 0.9376 nDCG@5.
Table 2. Classification rerankers on ERESS, Amazon-ESCI and WANDS, grouped by model size. The best score in each size group is in bold.

Models Compared: Alibaba-NLP/gte-reranker-modernbert-base, mixedbread-ai/mxbai-rerank-base-v2, mixedbread-ai/mxbai-rerank-xsmall-v1, mixedbread-ai/mxbai-rerank-base-v1, mixedbread-ai/mxbai-rerank-large-v1, cross-encoder/ms-marco-TinyBERT-L2-v2, cross-encoder/ms-marco-MiniLM-L6-v2, cross-encoder/ms-marco-MiniLM-L2-v2

Usage Examples

Classification Rerankers

Using HF transformers

from transformers import AutoModelForSequenceClassification, AutoTokenizer
import torch

model_id = "thebajajra/RexReranker-base"

tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForSequenceClassification.from_pretrained(model_id)

device = "cuda" if torch.cuda.is_available() else "cpu"
model = model.to(device).eval()

query = "best laptop for programming"
title = "MacBook Pro M3"
description = "Powerful laptop with M3 chip, 16GB RAM, perfect for developers and creative professionals"

inputs = tokenizer(
    f"Query: {query}",
    f"Title: {title}\nDescription: {description}",
    return_tensors="pt",
    truncation=True,
    max_length=min(model.config.max_position_embeddings, 7999),
).to(device)

with torch.no_grad():
    outputs = model(**inputs)
    score = outputs.logits.squeeze(-1)   # shape: [batch]
    print(f"Relevance Score: {score[0].item():.4f}")

Using Sentence Transformers

from sentence_transformers import CrossEncoder

# Load as CrossEncoder
model = CrossEncoder("thebajajra/RexReranker-base")

# Single prediction
query = "24x36 inch superhero poster"
document = "DC Comics - Justice League Cover Poster 24 x 36in"

score = model.predict([(query, document)])[0]
print(f"Score: {score:.4f}")

Generative Rerankers

Using vLLM

# Requires vllm>=0.8.5
import logging
from typing import Dict, Optional, List

import json
import logging

import torch

from transformers import AutoTokenizer, is_torch_npu_available
from vllm import LLM, SamplingParams
from vllm.distributed.parallel_state import destroy_model_parallel
import gc
import math
from vllm.inputs.data import TokensPrompt



def format_instruction(instruction, query, doc):
    text = [
        {"role": "system", "content": "Judge whether the Document meets the requirements based on the Query and the Instruct provided. Note that the answer can only be \"yes\" or \"no\"."},
        {"role": "user", "content": f"<Instruct>: {instruction}\n\n<Query>: {query}\n\n<Document>: {doc}"}
    ]
    return text

def process_inputs(pairs, instruction, max_length, suffix_tokens):
    messages = [format_instruction(instruction, query, doc) for query, doc in pairs]
    messages =  tokenizer.apply_chat_template(
        messages, tokenize=True, add_generation_prompt=False, enable_thinking=False
    )
    messages = [ele[:max_length] + suffix_tokens for ele in messages]
    messages = [TokensPrompt(prompt_token_ids=ele) for ele in messages]
    return messages

def compute_logits(model, messages, sampling_params, true_token, false_token):
    outputs = model.generate(messages, sampling_params, use_tqdm=False)
    scores = []
    for i in range(len(outputs)):
        final_logits = outputs[i].outputs[0].logprobs[-1]
        token_count = len(outputs[i].outputs[0].token_ids)
        if true_token not in final_logits:
            true_logit = -10
        else:
            true_logit = final_logits[true_token].logprob
        if false_token not in final_logits:
            false_logit = -10
        else:
            false_logit = final_logits[false_token].logprob
        true_score = math.exp(true_logit)
        false_score = math.exp(false_logit)
        score = true_score / (true_score + false_score)
        scores.append(score)
    return scores

number_of_gpu = torch.cuda.device_count()
tokenizer = AutoTokenizer.from_pretrained('thebajajra/RexReranker-0.6B')
model = LLM(model='thebajajra/RexReranker-0.6B', tensor_parallel_size=number_of_gpu, max_model_len=10000, enable_prefix_caching=True, gpu_memory_utilization=0.8)
tokenizer.padding_side = "left"
tokenizer.pad_token = tokenizer.eos_token
suffix = "<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n"
max_length=8192
suffix_tokens = tokenizer.encode(suffix, add_special_tokens=False)
true_token = tokenizer("yes", add_special_tokens=False).input_ids[0]
false_token = tokenizer("no", add_special_tokens=False).input_ids[0]
sampling_params = SamplingParams(temperature=0,
    max_tokens=1,
    logprobs=20,
    allowed_token_ids=[true_token, false_token],
)


task = 'Given a web search query, retrieve relevant passages that answer the query'
queries = ["visual fractions workbooks for children",
    "replacement motor mount for 2008 focus",
]
documents = [
    "Fractions and Decimals Workbook for Grades 4 to 5",
    "3pcs Set - Motor Mounts Kit Compatible with 08-11 Ford Focus 2.0L Auto Automatic and Manual Trans Transmission AT MT - Engine Mounts",
]

pairs = list(zip(queries, documents))
inputs = process_inputs(pairs, task, max_length-len(suffix_tokens), suffix_tokens)
scores = compute_logits(model, inputs, sampling_params, true_token, false_token)
print('scores', scores)

destroy_model_parallel()

Using HF Transformers

# Requires transformers>=4.51.0
import torch
from transformers import AutoModel, AutoTokenizer, AutoModelForCausalLM

def format_instruction(instruction, query, doc):
    if instruction is None:
        instruction = 'Given a web search query, retrieve relevant passages that answer the query'
    output = "<Instruct>: {instruction}\n<Query>: {query}\n<Document>: {doc}".format(instruction=instruction,query=query, doc=doc)
    return output

def process_inputs(pairs):
    inputs = tokenizer(
        pairs, padding=False, truncation='longest_first',
        return_attention_mask=False, max_length=max_length - len(prefix_tokens) - len(suffix_tokens)
    )
    for i, ele in enumerate(inputs['input_ids']):
        inputs['input_ids'][i] = prefix_tokens + ele + suffix_tokens
    inputs = tokenizer.pad(inputs, padding=True, return_tensors="pt", max_length=max_length)
    for key in inputs:
        inputs[key] = inputs[key].to(model.device)
    return inputs

@torch.no_grad()
def compute_logits(inputs, **kwargs):
    batch_scores = model(**inputs).logits[:, -1, :]
    true_vector = batch_scores[:, token_true_id]
    false_vector = batch_scores[:, token_false_id]
    batch_scores = torch.stack([false_vector, true_vector], dim=1)
    batch_scores = torch.nn.functional.log_softmax(batch_scores, dim=1)
    scores = batch_scores[:, 1].exp().tolist()
    return scores

tokenizer = AutoTokenizer.from_pretrained("thebajajra/RexReranker-0.6B", padding_side='left')
model = AutoModelForCausalLM.from_pretrained("thebajajra/RexReranker-0.6B").eval()
# We recommend enabling flash_attention_2 for better acceleration and memory saving.
# model = AutoModelForCausalLM.from_pretrained("thebajajra/RexReranker-0.6B", torch_dtype=torch.float16, attn_implementation="flash_attention_2").cuda().eval()
token_false_id = tokenizer.convert_tokens_to_ids("no")
token_true_id = tokenizer.convert_tokens_to_ids("yes")
max_length = 8192

prefix = "<|im_start|>system\nJudge whether the Document meets the requirements based on the Query and the Instruct provided. Note that the answer can only be \"yes\" or \"no\".<|im_end|>\n<|im_start|>user\n"
suffix = "<|im_end|>\n<|im_start|>assistant\n<think>\n\n</think>\n\n"
prefix_tokens = tokenizer.encode(prefix, add_special_tokens=False)
suffix_tokens = tokenizer.encode(suffix, add_special_tokens=False)

task = 'Given a web search query, retrieve relevant passages that answer the query'

queries = ["visual fractions workbooks for children",
    "replacement motor mount for 2008 focus",
]
documents = [
    "Fractions and Decimals Workbook for Grades 4 to 5",
    "3pcs Set - Motor Mounts Kit Compatible with 08-11 Ford Focus 2.0L Auto Automatic and Manual Trans Transmission AT MT - Engine Mounts",
]

pairs = [format_instruction(task, query, doc) for query, doc in zip(queries, documents)]

# Tokenize the input texts
inputs = process_inputs(pairs)
scores = compute_logits(inputs)

print("scores: ", scores)

References

Originally published on Hugging Face, Jan 24, 2026.