Top-Down Partitioning for Efficient List-Wise Ranking

Andrew Parry, Sean MacAvaney, Debasis GangulyarXiv 2024

TL;DR

This paper introduces Top-Down Partitioning (TDPart), a novel algorithm that makes document ranking with Large Language Models (LLMs) significantly faster and more efficient. By replacing the traditional sequential "sliding window" approach with a parallelizable, pivot-based method, the authors reduce the number of required LLM inferences by approximately 33% while maintaining state-of-the-art ranking accuracy.

What Problem Does This Paper Address?

In modern Information Retrieval, we often use a multi-stage pipeline: a fast "retriever" grabs a few hundred candidates, and a powerful "re-ranker" (like an LLM) puts them in the final order. LLMs have enabled list-wise ranking, where the model looks at a batch of documents simultaneously to decide their relative order.

However, LLMs have limited context windows—they might only be able to rank 20 documents at a time. To rank 100 documents, researchers typically use a "sliding window" that starts at the bottom of the list and slowly "bubbles" relevant documents to the top. The authors identify three major flaws with this:

  1. Sequentiality: You can't start the next window until the previous one finishes, making it slow.
  2. Redundancy: The best documents are re-scored over and over as the window moves.
  3. Bottom-Up Logic: It prioritizes processing the least relevant documents first, which is counter-intuitive for a task focused on the "Top-K" results.

Methods

The authors propose TDPart, which flips the logic to a top-down approach inspired by classic selection algorithms like QuickSelect.

Instead of sliding a window, the algorithm:

  1. Identifies a Pivot: It ranks the very top batch of documents to find a "pivot" element at the target rank $k$.
  2. Parallel Comparison: It then compares this pivot against all other documents down to the desired depth (e.g., rank 100) simultaneously.
  3. Candidate Selection: Any document that the LLM ranks higher than the pivot becomes a candidate for the final top-$k$ list.
  4. Final Pass: A final ranking is performed only on the selected candidates.
Figure 1: Bottom-up sliding window vs our top-down partitioning approach. Relevant documents are colored blue. In the case of our approach, the pivot document marked red is identified in the first pass and can be compared to other partitions concurrently (Shown with red arrows).

Datasets

The researchers evaluated their method using several prominent benchmarks:

  • MSMARCO: A massive dataset of 8.8 million documents.
  • TREC Deep Learning (2019 & 2020): Used for high-precision evaluation with dense human annotations.
  • BEIR Subsets (TREC-COVID and Touche): Used to test how well the algorithm generalizes to "out-of-domain" topics like COVID-19 medical info or argumentative prose.

Key Insights and Ideas

  • Order Matters: The authors discovered that list-wise LLM rankers are sensitive to the initial order of documents in their context window. They perform best when the most relevant documents are at the start of the window (descending order).
  • The Pivot as a Semantic Threshold: In traditional search, we use numerical scores to prune results. TDPart uses a document as a threshold. If the LLM says "Document A is worse than our Pivot," we can safely discard Document A without ever calculating an explicit score for it.
  • Parallelism is the Killer Feature: Because each batch is compared only to the pivot, the batches don't depend on each other. This allows engineers to saturate GPUs by running multiple ranking inferences in parallel, drastically reducing latency.

Key Results

  • Efficiency Gains: TDPart reduced the number of LLM inference calls by roughly 33% when ranking to a depth of 100.
  • Performance Parity: Despite doing less work, TDPart matched the ranking quality (measured by nDCG@10) of the much slower sliding window approach across multiple models, including RankZephyr, LiT5, and GPT-3.5.
  • Robustness: The algorithm proved effective even when the initial retrieval was "weak" (e.g., using BM25), provided the user allocates a slightly larger "budget" for candidate documents.

Limitations and Future Work

  • Pivot Sensitivity: The algorithm's success depends on the quality of the initial pivot. If the first batch of documents is entirely irrelevant, the pivot won't be a useful threshold.
  • Domain Shift: While TDPart works well in-domain, the authors noted that all list-wise rankers (not just theirs) still struggle with "out-of-domain" tasks where the difference between relevant and non-relevant documents is subtle.
  • Causal Attention: The authors suspect the LLM's preference for descending order is linked to "causal attention" (how the model reads left-to-right), but they leave the formal proof of this for future research.

Summary updated

BibTeX
@misc{parry2024top,
  author = {Andrew Parry and Sean MacAvaney and Debasis Ganguly},
  title = {{Top-Down Partitioning for Efficient List-Wise Ranking}},
  year = {2024},
  eprint = {2405.14589},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.14589},
}
Figure