In this article
  1. Before you start
  2. Why interviewers ask this
  3. Qwen reranking model from first principles
  4. Worked example
  5. Trade-offs and edge cases
  6. How to answer it in an interview
  7. Common mistakes
  8. Follow-up questions
  9. Sources

Before you start

Background: retrieval-augmented generation (RAG).

Why interviewers ask this

A weak reranker choice quietly caps a whole retrieval system, because the answer generator only sees the documents the reranker keeps. A question about a named open reranker such as this one tests whether you know where it sits in the pipeline, how it differs from an embedding model, and what its score is.

A weak answer says "it ranks documents better than embeddings." A strong answer says it reads query and document together, so it cannot be precomputed, and it therefore runs only on a shortlist. A Staff-level answer adds how the score is formed, why it should be used for ordering rather than as a probability of relevance, and how to measure the gain on your own data. More practice questions are in the RAG interview questions.

Qwen reranking model from first principles

Point-wise reranking
Point-wise reranking is a way of reordering search results in which a model scores each candidate document on its own against the query, with no view of the other candidates, and the new order is simply the scores sorted from highest to lowest.
Yes-no relevance score
A yes-no relevance score is the probability a language model gives to the answer "yes" rather than "no" when asked whether a document meets a query's requirements. It is computed as a softmax over those two answer tokens only, so it falls between zero and one.
Instruction-aware reranker
An instruction-aware reranker is a reranker that takes a short written task description as part of its input, so the same model can be told what "relevant" means for web search, code search or another task by changing that one sentence.

In plain words

Picture a hiring team with a huge pile of résumés. A fast keyword scan cuts the pile to a hundred. Then a manager reads each of those hundred next to the job post, one at a time, and gives each a yes-or-no verdict with a confidence. The keyword scan is the embedding search. The manager is the reranker.

The analogy breaks in one place. The manager is a language model, and its confidence is a number from a two-answer softmax, not a hiring decision.

In one precise sentence, the Qwen3 reranker is a decoder-only language model, tuned through fine-tuning to answer "yes" or "no", whose probability of "yes" for a (query, document) pair is the pair's relevance score.

Step 1: An embedding search returns a shortlist

A reranker starts from candidates. The Qwen team says its embedding and reranking models use dual-encoder and cross-encoder architectures: the embedding model turns each text into a vector on its own, so vectors for every document can be stored and searched cheaply. The paper's evaluation retrieves the top-100 candidates with Qwen3-Embedding-0.6B and then applies rerankers to refine them.

A cross-encoder is a model that reads a query and a document together in one pass and outputs one relevance score. This two-stage pattern is called retrieve-then-rerank: a cheap first stage recalls many candidates, and a costly second stage re-scores only those. You now know the input of the reranker: a short list, not the whole corpus. The next step shows what one candidate looks like to the model.

Step 2: Each pair is wrapped in an instruction prompt

The reranker does not see two separate vectors. Here the paper says the Qwen team uses a large language model (LLM) for point-wise reranking within a single context, with the LLM chat template, framed as binary classification.

The model card shows the input format: an instruction, then the query, then the document, under a system prompt that asks the model to judge whether "the Document meets the requirements based on the Query and the Instruct" and answer only yes or no. The default instruction is "Given a web search query, retrieve relevant passages that answer the query." You can change that sentence, which is what makes the model instruction-aware. The model is a decoder-only Qwen3 language model, not a Bidirectional Encoder Representations from Transformers (BERT) style encoder, and the card's code needs transformers version 4.51.0 or later.

Step 3: The score is a softmax over the yes and no logits

The model reads the prompt and, at the final position, produces a logit for every possible next token. The reranker keeps only two: the logit for "yes" and the logit for "no". The paper says it assesses the likelihood of the next token being "yes" or "no", and the score is the softmax of those two values.

The model card's code takes the last-position logits, stacks the "no" and "yes" columns, applies a log-softmax and then an exponential on the "yes" column. That equals softmax over the two logits. With a yes logit of 2.0 and a no logit of -1.0 (illustrative), the score is 0.9526.1

Because softmax over two values is a sigmoid of their difference, the order depends only on yes minus no. The score is useful for ordering. The sources make no claim that it is a calibrated probability of relevance, so that is an inference you should state as one.

Step 4: The shortlist is sorted by score

Every candidate gets its own score, and the new order is the scores sorted from highest to lowest. Candidates are scored independently, so the model needs one forward pass per document, a full run of the network over one prompt. A depth of 100 means 100 passes for each query.1 The generator then receives only the top few documents, a small number you choose so the passages fit in its prompt, such as 5 (illustrative).

Because each pair is independent, the passes can be grouped into batches that a graphics card runs together, so the one-after-another cost shown later is an upper bound, not a prediction. Qwen publishes no latency figure, so measure it on your own hardware. You now have the full path: shortlist, prompt, score, sort.

A Qwen reranker scores each shortlisted pair with a yes-no softmaxFlow of four stages: an embedding search returns a shortlist, each query-document pair is wrapped in a chat prompt, the yes and no logits give a score, and the shortlist is sorted by score.Embedding searchshortlistChat promptinstruction, query,documentYes and no logitssoftmax scoreSorted shortlisthighest score firstDiagram: Interview Clozo, CC BY 4.0 ·interview.clozo.ai/blog/qwen-reranking-model.html

Each shortlisted document is scored on its own against the query, and the sorted scores are the new order.CC BY 4.0 — source: What is the Qwen reranking model and how does it work?
Step-by-step description
  1. An embedding search returns the candidates.
  2. Instruction, query and document form one prompt.
  3. Softmax over the yes and no logits gives the score.
  4. Candidates are sorted by score, highest first.
  • An embedding search returns a shortlist of candidates.
  • Each pair is wrapped in an instruction prompt.
  • The score is a softmax over the yes and no logits.
  • The shortlist is sorted by score.

How the model was trained

The training signal is plain next-token learning. The paper labels each pair "yes" for positive documents and "no" for negatives and trains with a loss of the form −log p(l | P(q,d)), a supervised fine-tuning loss, not a pairwise or listwise ranking loss. It also notes that the reranker's training does not include a first-stage weakly supervised training phase, which the embedding models do have.

Weakly supervised training means learning from large amounts of automatically collected, noisy pairs. The paper gives no reason for skipping it here, so any explanation is an inference; what the sources do say is that the models are built on the dense Qwen3 foundation models and trained with supervised data. The paper describes a two-stage scheme for these models: supervised fine-tuning followed by model merging, which combines several trained checkpoints into one model.

Knowing it is half the job. Saying it is the other half.

Interview Clozo is an AI interview copilot for real interview rounds: it hears the question and puts a strong answer on your screen, and you say it in your own words. See the features or how it works.

Start Free Trial →

Worked example

Four shortlisted documents show the mechanism. The logits and the embedding ranks are illustrative, not model output; the scores follow by arithmetic.1 The embedding search ranked document B first, but the reranker puts document A first because its yes logit is far above its no logit.

The new order follows yes minus no, and the score is exactly 0.5 when the two logits tie.
DocumentEmbedding rank (illustrative)Yes logitNo logitScoreReranked position
A33.0-2.00.99331
B12.0-1.00.95262
C20.50.50.53
D4-1.02.00.04744

The few lines below do the same thing in plain Python: they build the prompt in the model card's format, turn the illustrative logits into scores and sort. They call no model.

import math

def prompt(instruction, query, doc):
    return f"<Instruct>: {instruction}\n<Query>: {query}\n<Document>: {doc}"

def score(yes, no):
    return math.exp(yes) / (math.exp(yes) + math.exp(no))

logits = {"A": (3.0, -2.0), "B": (2.0, -1.0), "C": (0.5, 0.5), "D": (-1.0, 2.0)}
ranked = sorted(logits, key=lambda d: -score(*logits[d]))
print([(d, round(score(*logits[d]), 4)) for d in ranked])

The printed order is A, B, C, D with scores 0.9933, 0.9526, 0.5 and 0.0474, the same as the table. With a real model, the two logits would come from the last position of the model's output for the prompt.1

Now the real numbers the Qwen team reports. In the blog's reranking table, the first column is labeled with a retrieval score taken from the Massive Text Embedding Benchmark (MTEB), a public set of embedding and retrieval tests, and abbreviated MTEB-R. The embedding-only baseline scores 61.82, Qwen3-Reranker-0.6B scores 65.80, the 4B model 69.76 and the 8B model 69.02. The gains are +3.98, +7.94 and +7.20 points.1 These are the vendor's own results, not an independent test.

Every reranker size beats the embedding-only baseline on this column, and the 4B size edges the 8B.
SetupMTEB-R scoreGain over baseline
Embedding model only (Qwen3-Embedding-0.6B)61.82none
Qwen3-Reranker-0.6B65.80+3.98
Qwen3-Reranker-4B69.76+7.94
Qwen3-Reranker-8B69.02+7.20
Every Qwen reranker size beats the embedding-only baselineBar chart of the MTEB-R column from the Qwen team's blog table: 61.82 for the embedding model alone, 65.80 for the 0.6B reranker, 69.76 for the 4B and 69.02 for the 8B.MTEB-R score020406080Embedding onlyReranker 0.6BReranker 4BReranker 8BSetup61.8265.869.7669.02Diagram: Interview Clozo, CC BY 4.0 ·interview.clozo.ai/blog/qwen-reranking-model.html
Every Qwen reranker beats the embedding-only baseline on the blog's first column, and the 4B size edges the 8B.CC BY 4.0 — source: What is the Qwen reranking model and how does it work?
Text description of the diagram
  • The embedding-only baseline scores 61.82.
  • The 4B model scores 69.76 and the 8B model scores 69.02.

The models come in three sizes, 0.6B, 4B and 8B parameters, with 28, 36 and 36 layers and a 32K sequence length.2 The blog says they are open-sourced under the Apache 2.0 license.

The facts a reader needs about the Qwen3 reranker fit in one table, each taken from the paper, the blog or the model card.
FactValue
Sizes and layers0.6B with 28 layers, 4B with 36, 8B with 36
Context length32K
LicenceApache 2.0
Score formulae^yes / (e^yes + e^no), a softmax over the two logits
Default instruction"Given a web search query, retrieve relevant passages that answer the query."
Minimum transformers version (model card code)4.51.0

The cost is one pass per pair. Assume 5 milliseconds per pair (illustrative; Qwen publishes no latency figure). Depth 100 then costs 500 milliseconds if run one after another, while scoring a 1,000,000-document corpus (illustrative) would cost about 83.33 minutes for one query.1 That gap is why the reranker sits after retrieval. See where RAG latency and cost go.

Trade-offs and edge cases

The reranker trades speed for accuracy. It is more accurate than vectors alone because query and document interact inside the network, but nothing about a document can be stored in advance. The table compares the two Qwen model families.

The embedding model recalls and the reranker re-scoresTable comparing the Qwen embedding model and the Qwen reranker by architecture, input, output and whether document results can be precomputed.QuestionEmbeddingmodelRerankerArchitecturedual-encodercross-encoderInputone text at atimequery anddocument pairOutputa vectorone scorePrecompute documentsyesnoRolefirst-stage recallre-scores theshortlistDiagram: Interview Clozo, CC BY 4.0 ·interview.clozo.ai/blog/qwen-reranking-model.html
The embedding model can be precomputed per document; the reranker cannot, so it only re-scores a shortlist.CC BY 4.0 — source: What is the Qwen reranking model and how does it work?
Text description of the diagram
  • The embedding model is a dual-encoder and the reranker is a cross-encoder.
  • A reranker score cannot be precomputed for a document.

Edge cases to know:

  • Bigger is not always better. In the blog's table the 4B model beats the 8B on MTEB-R (69.76 against 69.02), and FollowIR (14.84 against 8.05), while the 8B leads on the other four columns, by margins as small as 0.02 points (MTEB-Code 81.22 against 81.20).1 Against the 0.6B, the 8B gains between 2.64 and 7.80 points on every column, per the blog's table.1 Test the size you can afford.
  • Scores are not thresholds. The sources give no guidance on calibration or cutoffs, so choosing "keep above a score" needs your own labeled data. Comparing scores across different instructions is also unsupported by the sources.
  • Long documents. The model supports 32K context, but the card's example script sets a maximum length of 8192, so chunk first; see chunking strategies for RAG.
  • No official depth advice. The paper evaluates a top-100 shortlist; the best depth for your corpus is a measurement, not a given.
  • Neighbours. On the blog's table the 0.6B Qwen reranker scores higher than the 0.6B Beijing Academy of Artificial Intelligence (BAAI) General Embedding (BGE) reranker on five of six columns and lower on one (71.31 against 72.16). Another open option is Jina Reranker v3.
  • Multimodal sibling. In January 2026 the Qwen team added Qwen3-VL (vision-language) rerankers in 2B and 8B sizes; the text reranker is the June 2025 series.

How to answer it in an interview

Interviewer asks

What is the Qwen reranker and how does it fit into retrieval?

A strong answer

The Qwen reranker is a cross-encoder. After an embedding model retrieves a shortlist, say the top hundred, I put an instruction, the query and one document into a chat prompt and ask the model to answer yes or no. The relevance score is the softmax of the yes and no logits at the last token, and I sort by it. It costs one forward pass per candidate, so I rerank only the shortlist. I would not treat the score as a calibrated probability, and I would verify the gain on my own evaluation set.

The spoken structure: say what it is, say where it sits, give the score, then name its cost and its limit.

Common mistakes

  • "The Qwen reranker is the embedding model." (wrong) The embedding model encodes each text separately; the reranker reads both together and emits a score. (right) "The embedding model recalls; the reranker re-scores the shortlist."
  • "It outputs a vector I can index." (wrong) Reranker scores cannot be precomputed per document. (right) "It outputs one score per query-document pair, computed at query time."
  • "The score is the probability the document is relevant." (wrong) It is a softmax over two token logits, good for ordering. (right) "I use it to order candidates and calibrate any threshold on labeled data."
  • "The 8B model always wins." (wrong) The blog's own table has the 4B ahead on two columns, MTEB-R and FollowIR. (right) "I compare sizes on my data."

Follow-up questions

How does the Qwen3 reranker compute its score?

It builds a chat prompt from the instruction, query and document, reads the logits for "yes" and "no" at the last token, and takes the softmax over those two. The result lies between zero and one.

Is the Qwen reranker the same as the Qwen embedding model?

No. Both come from the same release and the same foundation models, but the embedding model is a dual-encoder that makes vectors, while the reranker is a cross-encoder that scores pairs. See vectors and vector search for the first stage.

Which Qwen3 reranker size should you use?

Start with the smallest that meets your quality target, then compare larger ones on your own data. The vendor's table shows larger is not better on every column, and no official latency figures exist to plan from.

How many candidates should you rerank?

The paper's evaluation uses the top 100 from the embedding model. For your system, sweep the depth, since each extra candidate adds a forward pass, and watch quality against latency.

What is the difference between Qwen3-Reranker and Qwen3-VL-Reranker?

Qwen3-Reranker scores text pairs. Qwen3-VL-Reranker is the multimodal sibling from January 2026 with 2B and 8B sizes, also a cross-encoder.

How do you check that a reranker is helping?

Hold out labeled queries and compare retrieval quality with and without the reranker, then check end-to-end answers. The guide to RAG evaluation covers the metrics.

Key takeaways
  • A Qwen reranking model is a cross-encoder that scores one query-document pair per forward pass.
  • Its score is a softmax over the yes and no logits, so sort by it rather than treat it as a probability.
  • It runs after an embedding search, only on a shortlist, because nothing can be precomputed.
  • It is instruction-aware: changing the task sentence changes what relevant means.
  • Larger sizes are not better on every benchmark, so measure on your own data.

Sources

  1. Qwen3 Embedding: Advancing Text Embedding and Reranking Through Foundation Models (arXiv 2506.05176) — arXiv (Qwen Team, Alibaba), 11 Jun 2025
  2. Qwen3 Embedding blog post — Qwen team (Alibaba), 5 Jun 2025
  3. Qwen3-Reranker-0.6B model card — Qwen on Hugging Face, 29 May 2025
  4. Qwen3-VL-Embedding and Qwen3-VL-Reranker — Qwen team (Alibaba), 1 Jan 2026