RankZephyr: Effective and Robust Zero-Shot Listwise Reranking is a Breeze!
Read first: Is ChatGPT Good at Search? Investigating Large Language Models as Re-Ranking Agents
TL;DR. RankZephyr takes RankGPT’s listwise prompt and trains an open 7B model, Zephyr-β (Mistral-based), to produce the orderings itself. Stage 1 distils RankGPT3.5 orderings of BM25 top-20 lists for 100K MS MARCO queries, with shuffled inputs. Stage 2 adds RankGPT4 orderings for 5K queries, with training on random sub-windows. With a SPLADE++ first stage it scores 0.7816 / 0.8159 nDCG@10 on DL19 / DL20, above its RankGPT4 teacher (0.7464 / 0.7076).
Key idea
Section titled “Key idea”The model is a listwise reranker exactly like RankGPT: it reads a query and up to 20 numbered passages and outputs an ordering of their identifiers. At inference it uses the same sliding window (size 20, stride 10) over the top 100. RankZephyrρ runs three progressive passes, each taking the previous ranking as input. What changes is where the training signal comes from and what the model sees during training.
- Two-stage distillation. Stage 1 follows the earlier RankVicuna recipe: 100K MS MARCO queries with BM25 top-20 lists ordered by RankGPT3.5, malformed teacher outputs filtered out, 3 epochs. Stage 2 fine-tunes on RankGPT4 orderings for 5K random queries with ADA2 candidates. The authors estimate GPT-4 orderings for all 100K queries would cost over USD 10K.
- Variable windows. For each teacher-ordered window, sample random subsets of passages (3 per query) and keep their relative order. The model then learns to rank lists of any length up to 20, at no extra teacher cost.
- Shuffled inputs. Training inputs are presented in shuffled order, so copying the given order is not a shortcut.
Results (paper-reported nDCG@10, reranking SPLADE++ ED top-100, Table 1). On DL19 / DL20 / DL21 / DL22 / NEWS / COVID, RankZephyrρ scores 0.7855 / 0.8255 / 0.7688 / 0.6628 / 0.5107 / 0.8566. RankGPT4 scores 0.7464 / 0.7076 / 0.7721 / 0.7175 / 0.5327 / 0.8792. So the student wins on MS MARCO v1 but still trails the teacher on MS MARCO v2 and the two BEIR sets. The authors point to its shorter 4,096-token training context and 2–4 points lower Judged@10. Gains shrink as the first stage improves: about 45–55% over BM25 versus 7–20% over SPLADE++ across metrics (§6.3). On NovelEval, RankZephyr gets 0.9286 nDCG@1 against GPT-4’s 0.8571, and 0.8934 nDCG@10 against 0.9045 (Table 8).
Connections
Section titled “Connections”- Before: RankGPT, which supplies the prompt, the sliding window and the teacher.
- Map: Reranker map on listwise versus pointwise cost and failure modes.
- After: Rank-R1 uses RankZephyr as a baseline and finds that on BRIGHT it does not beat BM25 on most datasets.
- Recipe: knowledge distillation. The first-stage models it reranks are on the SPLADE-v3 page.
Questions to think through
These questions have no single right answer. Write or say your answer before you open the hints. Mark a question once you could defend your answer in a reading group.
- Mechanism
A RankZephyr variant trained only on full 20-passage windows produces a valid ranking only 38.74% of the time when run with window 10 and step 5 (48.24% of outputs miss identifiers), while the variant trained on random subsets of up to 20 passages is valid 100% of the time. Explain the mechanism in terms of the output distribution the model learned, and why the fix needed no extra GPT-4 calls.
What a strong answer covers
- With fixed windows, every training target is a permutation of exactly 20 identifiers, so the model never practised ending a list at another length. At 10/5 most failures are missing (48.24%) or repeated (12.05%) identifiers (Table 3).
- The same model is fine at 2/1 (99.91%) and 20/10 (98.86%), so the failure is length-specific rather than universal; that is worth probing, not explaining away.
- Sampling p ≤ 20 passages from a teacher-ordered window and keeping their relative order gives valid targets for every length; the model learns to condition the output length on the prompt.
- No extra teacher calls: a sub-list of a teacher permutation is still a correct ordering of that sub-list, so 3 subsets per query come free from the existing GPT-4 data.
- The same reasoning explains the shuffled-input augmentation: if inputs are always in first-stage order, copying that order is a cheap shortcut the model can learn.
- Derive / compute
DL19 / DL20 nDCG@10: BM25 0.5058 / 0.4796, reranked by RankZephyr 0.7420 / 0.7086. SPLADE++ ED 0.7308 / 0.7195, reranked by RankZephyr 0.7816 / 0.8159 and by its teacher RankGPT4 0.7464 / 0.7076. Compute the relative gain of each reranking over its first stage, and explain both the diminishing returns and the case where the teacher scores below the first stage while the student does not.
What a strong answer covers
- BM25 → RankZephyr: +46.7% (DL19) and +47.7% (DL20). SPLADE++ → RankZephyr: +7.0% and +13.4%.
- RankGPT4 on SPLADE++: +2.1% on DL19 and −1.7% on DL20 (0.7076 < 0.7195), so the teacher can make a strong first stage worse.
- Diminishing returns: with a strong first stage the top is already good, so there is less to fix and more risk of breaking correct orderings.
- Possible reasons the student does better: it was trained with shuffled inputs and variable windows; its outputs are deterministic and never malformed; the teacher can refuse or produce a bad format. Pool bias also matters: Judged@10 for the best RankZephyr run is 0.942 / 0.983, so its scores are lower bounds.
- Critique
RankZephyr matches or beats GPT-4 on DL19 and DL20 after distilling from just 5K GPT-4-ordered queries. Critique what this shows about distillation, considering where the training queries come from, which candidate lists the teacher saw, and the cost and reproducibility of the teacher data. What experiment would separate learning to rerank from learning MS MARCO?
What a strong answer covers
- Training queries are MS MARCO and DL19/DL20 use the MS MARCO corpus, so these are in-domain tests; on DL21, DL22, NEWS and COVID with SPLADE++ candidates RankGPT4 still wins.
- The second stage uses GPT-4 orderings of ADA2 candidates for only 5K queries, because the authors estimate GPT-4 orderings for all 100K would cost over USD 10K; the student inherits whatever biases the teacher has on those lists.
- The released model is reproducible and deterministic, but the teachers are not: the paper averages RankGPT3.5 over six runs and RankGPT4 over three because outputs vary even at temperature 0, and the API models change over time, so regenerating the data later would produce a different student.
- Experiment: hold out entire domains (e.g. train on MS MARCO only, test on BRIGHT or a fresh post-cutoff collection), compare student and teacher on the same candidate lists with Judged@10 reported, and vary the number of GPT-4 queries (0, 1K, 5K) to see whether gains track teacher data or the Zephyr base.