RexRerankers: SOTA Rankers for Product Discovery and AI Assistants
Jan 24, 2026
Rahul Bajaj, Anuj Garg, Jaya Nupur
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:
Amazebay-Catalog:
product metadata for 37M items across categories
Amazebay-Relevance:
6M query–product pairs with graded relevance scores, covering ~364k unique queries and ~3M products
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.
01
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:
Candidate generation (retrieval): quickly fetch a few hundred to a few thousand potentially relevant
items from millions
Reranking: apply a stronger model to reorder those candidates by relevance
Post-processing & business logic: enforce constraints (availability, compliance, diversity),
personalize, and format results
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:
Variant and attribute mismatch: size, color, material, compatibility, fit
Category intent: “running shoes” vs “shoe laces,” “sofa” vs “sofa cover”
Query language is messy: shorthand, typos, multi-intent queries, and colloquial attributes (“work bag
that fits 16 inch laptop”)
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:
Accurate on fine-grained product relevance
Robust to noisy or ambiguous supervision
Practical to deploy with latency and cost constraints
Capable of handling indirect utility queries
02
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:
Exact duplicate removal: deterministic normalization (Unicode NFKC, whitespace collapse, punctuation
stripping), followed by hashing of canonicalized structured fields (title, brand, category path, key
attributes).
Near-duplicate consolidation: approximate similarity joins over text fields using locality-sensitive
signatures (MinHash) to collapse minor formatting or templating differences.
Schema harmonization: all product records are mapped into a unified schema with explicit field
boundaries (title, brand, category, features, description), allowing controlled ablation studies
(title-only vs full-text representations) downstream.
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:
Index A (Title-only): embeddings derived from title (and optionally brand tokens) to favor
navigational/head queries.
Index B (Full text): embeddings derived from title + description + bullet_features + structured
attributes to favor attribute-rich/utility queries.
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:
top-128 candidates from Index A
top-128 candidates from Index B
union → 256 candidates/query (deduplicated by product text)
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:
avoids long-form generation latency,
reduces variance from free-form outputs,
enables uncertainty estimation using logit margins/entropy
We apply multiple layers of filtering and postprocessing to ensure the resulting datasets reflect true
relevance rather than obvious artifacts:
Candidate-level pruning: remove trivially irrelevant pairs using high-precision heuristics
Deduplication across splits: ensure no duplicate query strings and no duplicate product ids leak
across training vs evaluation
Semantic decontamination: prevent inadvertent overlap between benchmark and training distributions by
removing benchmark queries (and/or query paraphrases) that are semantically too close to training queries
under embedding similarity thresholds. This guards against “semantic contamination” where evaluation
becomes a nearest-neighbor lookup of training supervision rather than a generalization test.
03
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 training (train backbone + head)
The model is trained to predict a full probability distribution over relevance grades (not just a single
score). This helps the backbone learn representations that capture both expected relevance and
uncertainty / ambiguity.
Phase 2: Scalar alignment (freeze backbone, train new MSE head only)
The distributional head is removed and replaced by a scalar regression head trained with MSE. The
backbone is frozen, so Phase 2 only adapts the output interface to match downstream systems that expect a
single score, without changing the learned representation. The step makes the model adaptable to usage
with standard frameworks.
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:
and then normalized:
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.
Use a smooth “closeness to boundary” bump (Gaussian/RBF):
Then define dynamic sigma:
This produces targets that are heteroscedastic by design, matching the real annotation process
more closely than uniform smoothing.
σ rises near the transitions 0.2, 0.5 and 0.8
near a transition the target is spread over neighbouring bins
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:
Outcome of Phase 1: The backbone learns representations that support:
Distributional training is powerful for learning robust representations, but many production systems and
ranking pipelines ultimately need a single scalar score:
for blending with other signals
for thresholds / filtering
for straightforward scoring in reranking
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:
Remove the distributional head
Add a scalar regression head
Freeze the backbone, train only the new head
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:
~10% inference speedup for the FP8 model vs. the BF16 RexReranker-0.6B baseline
~15–20% inference speedup for the MXFP4 model vs. the same baseline
04
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:
Hard negatives: semantically proximate but non-relevant products that survive dense retrieval yet fail
graded relevance
Lexical confounders: pairs with high token overlap that induce false positives in sparse or shallow
rankers
Substitutes and near-substitutes: products that are plausible alternatives within the same intent
cluster but differ along a critical constraint (color, size, pack count, model year, etc)
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.
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.
nDCG@5nDCG@10RexRerankers in black, other models in grey
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.
RexReranker-0.6B
Qwen3-Reranker-8B
Qwen3-Reranker-4B
Nemotron-Rerank-1B
jina-reranker-v3
zerank-2
Qwen3-Reranker-0.6B
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.
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
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.
Table 2. Classification rerankers on ERESS, Amazon-ESCI and WANDS, grouped by model
size. The best score in each size group is in bold.