All posts

Document Dealing Makes Listwise Reranking Better

MBBC
15 min read
Document Dealing Makes Listwise Reranking Better

TLDR:
LLM-based listwise reranking is the strongest form of reranking available. But, it comes with its own constraints: it's impossible to fit 1,000 documents of 1,024 in a single context window and get meaningful ranking. To address this, various schedules have been introduced: different ways of ordering calls, which are more or less efficient. Previous methods such as BlitzRank are strong, but paralellization and scalability have remained relatively under-studied. Today, we explore an almost-naive, extremely scalable approach, based on dealing a first stage retriever's prior, and show that it improves even existing schedules. At the thousand-document stage, it's 11 times faster than sliding windows and 20% faster than the next-fastest approach, at the same quality.

LLMs are some of the best rerankers that we currently have, but they are slow, and in the case of listwise reranking, a lot slower than they need to be.

In listwise reranking, the LLM is given a query alongside a list of passages and asked to sort them by relevance (we have written about it before). With earliest listwise approaches, a single call could only handle about 20 passages. More recent ones can take much longer window. But in practice, your first-stage retriever is often going to hand you hundreds of them, if not thousands, and a 1,000 documents of about a thousand tokens each is over a million token: even if your context window can handle it, your ranking quality will take a serious hit.

As such, every listwise reranker has to make a whole series of calls, and we'll call the way it organises them its schedule. Schedules are a pretty active area of research. Most of the time, they compete on mixes of ranking quality and token consumption. Few papers have focused on efficiency and parallelisation, which makes sense: we needed things that worked before we could optimise them!

In this blog post, we'll share some analysis on what makes a schedule, discuss where the time goes, and argue that a lot of it comes down to very simple thing: the way a schedule splits the candidates between its calls. Moreover, there is a right way to do it, which is to deal them like a deck of cards:

Two ways to split BM25's top 100 into 5 parallel calls of 20 that each keep their best 4. With contiguous chunks, all of BM25's top 20 land in the first call, which can only keep 4, so 16 of them are cut and only 4 reach the final call. Dealt like cards, every call holds 4 of the top 20, so the final call has room for all 20. With nothing to repair, two parallel rounds are enough: on the Gemini 3 Flash API, DealRank waits a median 3.4 seconds per query over 2 rounds, the sliding window 13.4 seconds over 9, for the same quality (nDCG@10 57.4 vs 57.5, averaged over six LLMs).
BM25's top 100 in 5 parallel calls of 20, each keeping its best 4 for one final call. Orange: BM25's top 20. Bars: median wait per query on the Gemini 3 Flash API, at the same quality (nDCG@10 57.4 vs 57.5, averaged over six LLMs).

Background: The original LLM listwise schedule

The first listwise reranking pattern widely adopted in the LLM era is that of RankGPT's: a sliding window. It places a window of 20 passages at the bottom of the retriever's top 100, ranks it, slides up by 10, ranks again, and so on until it reaches the top, carrying the good passages upwards as it goes, much like a pass of bubble sort would.

While it works well, and is still one of the strongest baselines around, the window cannot move until it knows which passages to carry upwards, which means that every call has to wait for the one before it. For 100 candidates this is 9 LLM calls in a row. For a thousand, this is 99 calls.

In a sliding window, these calls are necessarily sequential. Calls that don't need each other's answers, on the other hand, can run at the same time. We call a set of such calls a round: the time a query takes is roughly the slowest call of each round, added up over all the rounds. In practice, this means that reranking latency, with sufficient compute, depends on how many rounds a schedule needs, more than it depends on the total number of tokens or calls needed.

Parallelising reranking comes at a cost

After RankGPT and as listwise reranking becomes increasingly common, many other schedules have been proposed. Among them, TourRank runs tournaments, TDPart and ListK select passages around pivots, JointRank ranks overlapping blocks in a single round. Earlier this year, BlitzRank was introduced, providing an opinionated and near-optimal tournament method with a minimal number of rounds: it ranks groups, merges their winners, and then makes an extra certification call whenever it needs to double-check its top documents.

Effectively, getting fewer rounds means both running fewer calls in parallel, and ensuring that each call is as information dense as possible. So far, the fastest schedules have largely done it in the same way: they split the candidates into groups, rank all the groups at the same time, and only send the best few passages of each group, a fixed quota, to the next round. BlitzRank, for example, ranks 5 groups of 20 and sends the top 4 of each to a merge call.

While this is a lot faster, it comes with a failure mode that sequential schedules don't have: no matter how good the LLM is, if 5 excellent passages share a call that can only pass on 4, one of them is not going any further. This scenario is highly likely with the most "natural" way of making groups, which is to cut the list into contiguous chunks. In this setting, with ranks 1–20 going into the first call, 21–40 into the second, and so on.

The issue is that state-of-the-art retrievers, such as Wholembed V3 and our upcoming Wholembed V4 (you can take a sneak peek at some of its early results here) are rather good at their job. In most situations, the relevant passages are concentrated near the top of the list: the first chunk ends up with the retriever's entire top 20, of which it can only keep 4, while the chunk holding ranks 81–100 gets to send 4 passages through as well, even though it is much more likely that none of them is relevant.

DealRank: dealing and a naive algorithm is (almost) all you need

Fixing this problem has an almost trivial solution: instead of chunking the list, you deal it, going round-robin through the retriever's ranking. With 5 hands, hand 1 gets ranks 1, 6, 11, 16 and so on, hand 2 gets ranks 2, 7, 12, 17, and so on until hand 5. Every hand now holds 4 of the retriever's top 20. With a quota of 20, meaning that your final call can re-rank up to 20 documents at once, the entire top 20 of them can now theoretically advance.

Of course, we did not invent "dealing" documents in a round-robin way: knockout tournaments are seeded this way, top-k kernels on accelerators interleave their buckets for the same reason, TourRank deals its candidates (but suffers from other inefficiencies), and so on. However, this has largely been under-discussed, and under-validated.

Today, we address this, and share our findings. Even further, we propose that an extremely simple schedule consisting of a single parallelised dealt round followed by a single-call certification pass is actually, by itself, a viable schedule, which we call DealRank.

The sliding window ranks 100 passages in 9 sequential calls of 20, climbing from the bottom of the list to the top, one round per call. DealRank ranks 5 dealt hands of 20 at the same time, each drawing every 5th rank from the whole list, then their finalists in one final call: 6 calls in 2 rounds.
Each column is a round, each block a call of 20 passages.

We subsequently evaluated DealRank against a variety of existing, well-performing schedules:

nDCG@10 of each schedule minus DealRank's 57.4, averaged over six LLMs on 10 benchmarks with BM25's top 100, with 95% confidence intervals and mean rounds per query. Sliding window: +0.09 [−0.45, +0.57], 9 rounds; BlitzRank: +0.09 [−0.43, +0.67], 6.6 (2.6) rounds; TDPart: −0.28 [−1.24, +0.72], 2.9 rounds; TourRank: −1.44 [−2.72, −0.49], 5 rounds; JointRank (one round): −1.78 [−3.91, −0.29], 1 rounds. DealRank takes 2 rounds.
nDCG@10 minus DealRank's 57.4, averaged over six LLMs unless noted, with 95% CIs. Rounds per query at 100 candidates on Gemini 3 Flash. In brackets: with BlitzRank's first calls run concurrently.

Our intuition is confirmed to be true: DealRank's ranking quality does not significantly vary from that of established schedules, it reaches these results with considerably fewer rounds. Perhaps even more importantly, it is highly predictable with the number of rounds being fully deterministic based on the number of input documents, the reranker's maximum window size, and the quota of documents that can advance to a subsequent stage. In practice, this means that there is little variance in its median and p90 reranking times at similar documents lengths, whereas certification-using methods can vary considerably more.

Dealing helps everywhere it can

But beyond a naive DealRank schedule, does dealing actually improve other schedules, where the quota of documents they can advance risks throwing away good documents?

The easiest way to check is with BlitzRank, which, in its released implementation, uses chunked candidates rather than dealt ones.

And the answer is yes: dealt inputs greatly improves BlitzRank. On standard retrieval benchmarks, its standard setup needs an additional round for its certification stage on 59% of queries. With dealt inputs, this repair call is only needed on 14%. This drop is essentially free in terms of ranking quality, with both methods performing within noise of each other.

Two 10 by 10 grids of queries. On contiguous chunks, BlitzRank makes its extra repair (certification) call on 59% of queries, in 2.6 rounds and a median of 4.0 seconds per query, for an nDCG@10 of 57.8. On dealt input, it makes it on 14%, in 2.1 rounds and 3.5 seconds, for an nDCG@10 of 57.6.
Gemini 3 Flash, 100 candidates. One square per 1% of queries. Rounds and nDCG@10 over ten benchmarks, median wait over four. The nDCG@10 gap of −0.2 [−1.0, +0.8] is not significant.

An additional property of this is that dealing becomes an even better deal as your first stage retriever gets stronger: the better your retriever is, the more chunks hurt, because more and more relevant documents are in its top 20. You can read more about this in our short paper, where we prove this under a simple model of the retriever, and demonstrate it: when we take DealRank and swap its dealt hands for contiguous chunks, it loses 2.7 nDCG@10 points over BM25, and 4.4 over a stronger dense retriever such as Qwen3-Embedding-4B (and almost 9 points over Wholembed V4!).

Why not just shuffle?

Our results also show that while chunking hurts performance, random shuffling appears competitive with dealing, since it also distributes the candidates.

However, there are two issues with random splits: the first is that ranking quality is then affected by random seeds, which is ideally something we'd like to avoid, as non-determinism in ranking is always something we seek to minimise.

The second, and bigger problem, is that it is only balanced on average. On any given query, it can still put too many good passages in the same group: even when the retriever has already placed the true top 10 within its top 20, a random split cuts one of them on 12.7% of queries.

With a quota of 4, and standard retrieval benchmarks having relatively few "true relevant" documents annotated, losing a single passage this rarely is not enough to show up in nDCG@10. We can isolate this effect in an artificial setting where only 1 document can be advanced from a ranking call: there, random partitions already cost over 1 nDCG points.

And this problem gets bigger in a large number of real-world settings, where strong first-stage retrievers are used dozens of documents are needed as part of an evidence package: randomly splitting relevant documents that the retriever had correctly assessed as potentially relevant is highly undesirable behaviour.

Dealing has neither problem, as it is balanced on every single query, and has no noticeable downsides, since it takes no longer than shuffling would. It's also optimal: under the same simple retriever model as before, it is the best you can do: we show that no way of splitting the candidates into groups with equal quotas cuts fewer of the true top 10 on average.

How much faster is it?

A lot, if you are coming from a sliding window. And still a good amount, if you're coming from good methods like a parallelized BlitzRank. On the Gemini 3 Flash API, with one query at a time, DealRank's median wait is 3.4 seconds, while concurrent BlitzRank takes 4.0 seconds on its usual chunks, and the sliding window takes 13.4. When replicated on Qwen3.8-27B running on local H100 GPUs, the relative speeds of each methods stay roughly similar.

Median wait per query on the Gemini 3 Flash API, one block per round. DealRank: 3.41 seconds in 2 rounds; BlitzRank on dealt input: 3.48 seconds in 2.1 rounds, repair call on 14% of queries; BlitzRank on chunks: 3.99 seconds in 2.6 rounds, repair call on 59% of queries; Sliding window: 13.39 seconds in 9 rounds.
Median wait per query on the Gemini 3 Flash API, one query at a time, 4 benchmarks. Both BlitzRank rows run their first calls concurrently. Each bar is the median wait, split into rounds in proportion to each round's mean slowest call.

Interestingly, if we also give concurrent BlitzRank dealt input (the second bar), its median drops to 3.5 seconds, which is very nearly as fast as DealRank: most of the speed comes from dealing itself. And DealRank retains the predictability advantage: BlitzRank still occasionally needs to certify queries, meaning that certain queries vary from the median considerably more.

On top of this, DealRank reads the fewest tokens, which matters when you serve many queries at once and tokens become the bottleneck. With 8 or 32 queries in flight, it serves 1.2 times as many queries per second as concurrent BlitzRank, and 1.5 to 1.9 times as many as the sliding window.

Real workloads are a lot less neat than benchmarks

Everything in this blog post so far has mostly been about reranking the top 100. This makes sense: it is what most papers (ours included) and benchmarks evaluate. But it is not what a lot of real systems look like. In a production setting, there are many situations where users want their reranker to go through hundreds, if not thousands of candidates. This is where many schedules that look perfectly adequate when reranking a top 100 simply stop being usable.

The problem lies in round explosion: the sliding window schedule has to slide over every one of the candidates. This means means 49 calls in a row at 500 candidates, and 99 at 1,000: it will take minutes, which is far beyond acceptable latency in many settings.

BlitzRank, with its first calls ran concurrently, once again fares better than previous schedules, but its rounds still creep up mildly, to 4.2 on average at 500 candidates and 5.6 at 1,000 (and up to 7 on some queries where certifying its top 10 is particularly tricky).

Dealing, on the other hand, scales up extremely well, as it is trivial to make it hierarchical: even if we keep window sizes fixed at 20 documents, it's possible to rerank 1,000 candidates in just three rounds: an initial pass with 50 hands of 20 and keeps the top 2 of each, keeping 100 documents, which are then themselves dealt 5 hands that keep 4. The final pass is a single-call round, with the kept documents being re-ordered.

In terms of absolute number of calls, it makes about as many calls as BlitzRank, but keeps the round counts both lower and more stable, making it easier to plan around its latency.

We ran this part with an open model, Qwen3.8-27B, over the BM25 top 500 and 1,000 on 4 benchmarks, and timed it on DL19 with H100 GPUs, on out-of-the-box vLLM 0.33, one query at a time:

Calls and rounds per query at 100, 500, 1,000 candidates. DealRank: 6 / 29.9 / 55.5 calls, 2 / 3 / 3 rounds; BlitzRank, first calls concurrent: 6.4 / 28.1 / 54 calls, 2.5 / 4.2 / 5.6 rounds; BlitzRank, sequential: 6.4 / 28.2 / 54.1 calls, 6.4 / 28.2 / 54.1 rounds; Sliding window: 9 / 48.8 / 98 calls, 9 / 49 / 99 rounds. At 1,000 candidates DealRank still takes 3 rounds, against 99 for the sliding window and 5.6 on average (up to 7) for BlitzRank with concurrent first calls.
Mean per query, Qwen3.8-27B, BM25's top 100, 500 and 1,000 on four benchmarks. Sequential BlitzRank makes the same calls, one per round. Sliding-window rounds assume a full list.

Sliding window, BlitzRank and DealRank all reach similar levels of quality, well within noise of each other. Their wait, however, is very different: at 1,000 candidates, the sliding window takes 115.4 seconds per query, while DealRank takes 10.3:

Median seconds per query against the number of candidates (Qwen3.8-27B, DL19, one query at a time). DealRank: 2.88, 6.96, 10.34 s at 100, 500, 1,000; BlitzRank, first calls concurrent: 3.99, 8.01, 12.97 s at 100, 500, 1,000; BlitzRank, sequential: 8.20, 33.01, 65.08 s at 100, 500, 1,000; Sliding window: 10.63, 57.91, 115.37 s at 100, 500, 1,000. At 1,000 candidates, nDCG@10 is 71 for DealRank, 70.8 for concurrent BlitzRank and 70.8 for the sliding window, within noise.
Median seconds per query on DL19, Qwen3.8-27B, one query at a time. Same quality at 1,000 candidates, within noise: nDCG@10 of 71.0 for DealRank, 70.8 for concurrent BlitzRank and 70.8 for the sliding window (DL19, DL20, DBpedia and SciFact).

So, at 1,000 candidates, DealRank is 11 times faster than the sliding window for the same quality, and concurrent BlitzRank still takes 25% longer.

How do I use it?

The easiest way to sample how strong and efficient listwise rerankers can be is, of course, to use Mixedbread's API, where our state-of-the-art reranker already uses a dealing-based scheduled (and maybe a little bit more!). Set rerank on any store search to use it.

As for the DealRank (and dealt BlitzRank, thanks to BlitzRank being open too!) algorithm itself, it is fully open source, and the code for it is available at github.com/mixedbread-ai/dealrank. This is also where you'll find all the code needed to reproduce most of the experiments we discuss here and in the paper.

The package is designed with a 0-mandatory-dependency approach, so you can import most of its utilities and slot it into any existing pipeline. Of course, it does also bundle the option to install any dependency you need: the example below includes all you need to call rerankers from OpenAI-compatible endpoints.

Dealrank is not on PyPI yet, so for now you can install it from the repository:

git clone https://github.com/mixedbread-ai/dealrank
cd dealrank
pip install ".[openai]"
from dealrank import DealRank
from dealrank.llm import OpenAICompatible

llm = OpenAICompatible.openrouter("google/gemini-3-flash-preview")  # key from OPENROUTER_API_KEY

result = DealRank(llm, window=20, quota=4).rerank(query, passages)  # passages: your top 100, best first
top_10 = result.reorder(passages)[:10]

If you'd like to use hierarchical variant to handle more input documents, all you have to do is use HierarchicalDealRank(llm, window=20, first_quota=2, quota=4), instead, which adds the extra hierarchical dealt round(s) for you.

You can use just about any OpenAI-compatible for this through OpenAICompatible. If you'd rather bring your own client, all you need is to subclass dealrank.llm.ListwiseLLM and implement a single async method, complete(messages):

llm = OpenAICompatible.vllm("Qwen/Qwen3.8-27B", base_url="http://127.0.0.1:8000/v1")

If you are currently reranking with a sliding window, this should be close to a drop-in change. And if you maintain your own schedule with parallel groups and a quota, you can simply use a very small function to deal your candidates instead of your current sampling:

def deal_inputs(candidates, hands=5):
    if hands < 1:
        raise ValueError("hands must be at least 1")

    return [
        candidate
        for hand in range(hands)
        for candidate in candidates[hand::hands]
    ]

Conclusion

If you'd like to find out more, you can read our Tech Report on arXiv: it has some of the details we skipped here, the timing setup and more detailed results.

We have yet to find a schedule with a quota where dealing does not help, so if you do find one, we'd very much like to hear about it. And we do definitely plan on sharing more on the kind of schedules we've used and are currently using it.

DealRank-style scheduling already runs inside Mixedbread Search. Turn on reranking in any store search to get mxbai-rerank-v3.1-listwise with no extra setup.

If exploring this sort of things on the way to solving retrieval as a whole is the kind of problem that sounds like fun to you, we're also hiring and we would like to hear from you!

Citation

If you'd like to formally reference this work, please cite the associated report:

@misc{dealrank,
      title={Deal With It: On Better Schedules for Listwise Reranking},
      author={Benjamin Clavié and Herumb Shandilya and Hanna Lichtenberg and Aamir Shakir and Makoto P. Kato},
      year={2026},
      eprint={2611.22392},
      archivePrefix={arXiv},
      primaryClass={cs.IR},
      url={https://arxiv.org/abs/2611.22392},
}