Zero-Shot Listwise Document Reranking with a Large Language Model

Xueguang Ma, Xinyu Zhang, Ronak Pradeep, Jimmy LinarXiv 2023 · DOI

In modern information retrieval, the "reranker" serves as the final arbiter of relevance. After an initial retriever identifies a candidate set of documents, the reranker meticulously orders them to ensure the most pertinent information appears first. Traditionally, high-performing rerankers have required extensive supervised training on human-labeled datasets. However, researchers from the University of Waterloo have introduced a paradigm shift with LRL (Listwise Reranker with a Large Language Model), a zero-shot approach that leverages the inherent reasoning capabilities of Large Language Models (LLMs) to outperform many supervised counterparts.

The Shift from Pointwise to Listwise Reranking

Most conventional search pipelines employ a "pointwise" strategy. In this model, the reranker evaluates a query against each document independently, assigning a relevance score without context from other candidates. The final ranking is simply a sort of these independent scores. The primary limitation of this approach is that the model lacks a "global view"; it cannot directly compare Document A to Document B to discern subtle differences in relevance.

Comparison of pointwise (a) and listwise (b) reranking pipelines.

LRL addresses this by presenting the LLM with a list of documents simultaneously. By processing multiple passages within a single context window, the model can utilize its self-attention mechanism to perform relative comparisons, effectively "ranking" rather than just "scoring."

Methodology: Prompting for Relevance

The LRL framework utilizes a straightforward prompting strategy to transform a general-purpose LLM into a specialized ranker. The prompt includes a set of passages (e.g., 10 documents) followed by the target query. The model is then instructed to output the identifiers of these passages in order of relevance.

To handle larger candidate pools (e.g., the top 100 documents) that exceed typical context windows, the authors implemented a sliding window strategy. The model first ranks the bottom-most documents, then slides the window upward, allowing the most relevant documents to progressively "bubble up" to the top through successive comparison passes.

Experimental Results

The researchers evaluated LRL across standard benchmarks, including the TREC Deep Learning (DL) tracks (2019-2021) and the MIRACL multilingual dataset.

Performance comparison of LRL against zero-shot and supervised baselines on TREC DL datasets.

As shown in the results table, LRL demonstrates significant improvements over previous zero-shot methods. On the DL19 dataset, LRL achieved an nDCG@10 of 0.6580, substantially outperforming the previous state-of-the-art zero-shot model, UPR (0.5910). Notably, LRL even surpassed supervised models like DPR on several metrics, despite having never seen a TREC training label.

The "listwise advantage" was further confirmed by comparing LRL to a pointwise version of the same LLM (PRL). LRL consistently yielded higher precision, proving that simultaneous document comparison is superior to isolated evaluation. Furthermore, tests on the MIRACL dataset (Chinese, Swahili, and Yoruba) indicated that this ranking logic is language-agnostic, providing strong zero-shot performance even in low-resource languages.

Conclusion and Future Directions

LRL proves that LLMs can serve as highly effective zero-shot rerankers by adopting a listwise perspective. While the method currently faces challenges regarding API costs and latency for real-time applications, it sets a new bar for zero-shot retrieval performance. Future research is expected to focus on distilling these listwise capabilities into smaller, more efficient open-source models, making high-quality reranking more accessible for production environments.

Summary updated

BibTeX
@misc{ma2023zero,
  author = {Xueguang Ma and Xinyu Zhang and Ronak Pradeep and Jimmy Lin},
  title = {{Zero-Shot Listwise Document Reranking with a Large Language Model}},
  year = {2023},
  eprint = {2305.02156},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.02156},
}
Figure