# Document Dealing Makes Listwise Reranking Better

URL: https://www.mixedbread.com/blog/dealrank

Dealing candidates like cards makes LLM listwise reranking faster. DealRank, open source from Mixedbread, is 20% faster than BlitzRank at the same quality.

> **Note**
>
> **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](https://www.mixedbread.com/blog/listwise-rerank)). 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**:

> **Figure**: 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 are cut before the final call. Dealt like cards (hand 1 gets ranks 1, 6, 11, …), every hand holds 4 of the top 20, so all 20 can reach the final call. On the Gemini 3 Flash API, the sliding window waits 13.4 s per query over 9 rounds and DealRank 3.4 s over 2 rounds, with the same nDCG@10 (57.5 vs 57.4, 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](https://doi.org/10.18653/v1/2023.emnlp-main.923)'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](https://arxiv.org/abs/2406.11678) runs tournaments, [TDPart](https://arxiv.org/abs/2405.14589) and [ListK](https://arxiv.org/abs/2603.17223) select passages around pivots, [JointRank](https://arxiv.org/abs/2506.22262) ranks overlapping blocks in a single round. Earlier this year, [BlitzRank](https://arxiv.org/abs/2602.05448) 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](https://www.mixedbread.com/blog/wholembed-v3) and our upcoming Wholembed V4 (you can take a sneak peek at some of its early results [here](https://fresh-stack.github.io/)) 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](https://doi.org/10.1016/j.orl.2016.09.003), [top-k kernels on accelerators](https://arxiv.org/abs/2412.04358) 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**.

> **Figure**: The sliding window ranks 100 passages in 9 sequential calls of 20, one round per call, climbing from the bottom of the list to the top. DealRank ranks 5 dealt hands of 20 at the same time, then their finalists in one final call: 6 calls in 2 rounds.

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

> **Figure**: nDCG@10 of each schedule minus DealRank's 57.4, averaged over six LLMs (BM25 top 100, 10 benchmarks), with 95% confidence intervals. Rounds: mean per query at 100 candidates on Gemini 3 Flash; BlitzRank as released, in brackets with its first calls concurrent.

| Schedule | LLMs | Δ nDCG@10 vs DealRank | 95% CI | Rounds |
| --- | --- | --- | --- | --- |
| DealRank | 6 | – | – | 2 |
| Sliding window | 6 | +0.09 | [-0.45, +0.57] | 9 |
| BlitzRank | 6 | +0.09 | [-0.43, +0.67] | 6.6 (2.6) |
| TDPart | 6 | -0.28 | [-1.24, +0.72] | 2.9 |
| TourRank | 3 | -1.44 | [-2.72, -0.49] | 5 |
| JointRank (one round) | 6 | -1.78 | [-3.91, -0.29] | 1 |

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.

> **Figure**: BlitzRank makes its certification (repair) call on 59% of queries with contiguous chunks and on 14% with dealt input (Gemini 3 Flash, 100 candidates). Rounds per query: 2.6 on chunks, 2.1 on dealt input. Median wait: 4.0 s and 3.5 s (four benchmarks). nDCG@10 over ten benchmarks: 57.8 and 57.6, a gap of -0.21 [-0.97, +0.78] that 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](https://arxiv.org/abs/2611.22392), 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.

> **Figure**: Median wait per query on the Gemini 3 Flash API, one query at a time. Both BlitzRank rows run their first calls concurrently.

| Schedule | Median wait | Rounds | Repair call |
| --- | --- | --- | --- |
| DealRank | 3.41s | 2 | – |
| BlitzRank on dealt input | 3.48s | 2.1 | 14% of queries |
| BlitzRank on chunks | 3.99s | 2.6 | 59% of queries |
| Sliding window | 13.39s | 9 | – |

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:

> **Figure**: Reranking BM25's top 100, 500 and 1,000 candidates with Qwen3.8-27B. Mean per query over DL19, DL20, DBpedia and SciFact.

**Calls per query**

| Schedule | N=100 | N=500 | N=1000 |
| --- | --- | --- | --- |
| DealRank | 6 | 29.9 | 55.5 |
| BlitzRank, first calls concurrent | 6.4 | 28.1 | 54 |
| BlitzRank, sequential | 6.4 | 28.2 | 54.1 |
| Sliding window | 9 | 48.8 | 98 |

**Rounds per query (max)**

| Schedule | N=100 | N=500 | N=1000 |
| --- | --- | --- | --- |
| DealRank | 2 | 3 | 3 |
| BlitzRank, first calls concurrent | 2.5 (4) | 4.2 (5) | 5.6 (7) |
| BlitzRank, sequential | 6.4 | 28.2 | 54.1 |
| Sliding window | 9 | 49 | 99 |

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:

> **Figure**: Reranking BM25's top 100, 500 and 1,000 candidates with Qwen3.8-27B. Median seconds per DL19 query, one query at a time.

**Median seconds per query**

| Schedule | N=100 | N=500 | N=1000 |
| --- | --- | --- | --- |
| DealRank | 2.88s | 6.96s | 10.34s |
| BlitzRank, first calls concurrent | 3.99s | 8.01s | 12.97s |
| BlitzRank, sequential | 8.2s | 33.01s | 65.08s |
| Sliding window | 10.63s | 57.91s | 115.37s |

**nDCG@10 (DL19, DL20, DBpedia, SciFact)**

| N | DealRank | BlitzRank, first calls concurrent | Sliding window |
| --- | --- | --- | --- |
| 500 | 69.8 | 69.9 | 70.1 |
| 1000 | 71.0 | 70.8 | 70.8 |

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](https://www.mixedbread.com/blog/mxbai-rerank-v3-1-listwise) already uses a dealing-based scheduled (and maybe a little bit more!). Set `rerank` on any [store search](https://www.mixedbread.com/docs/stores/search/rerank) 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](https://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:

```bash
git clone https://github.com/mixedbread-ai/dealrank
cd dealrank
pip install ".[openai]"
```

```python
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)`:

```python
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:

```python
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](https://www.mixedbread.com/docs/stores/search/rerank) 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](https://www.mixedbread.com/careers) and we would like to hear from you!

### Citation

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

```bibtex
@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},
}
```