Abstract
Modern retrieval systems do not rely on a single ranking model to construct their rankings. Instead, they generally take a cascading approach where a sequence of ranking models are applied in multiple re-ranking stages. Thereby, they balance the quality of the top-K ranking with computational costs by limiting the number of documents each model re-ranks. However, the cascading approach is not the only way models can interact to form a retrieval system. We propose the concept of compound retrieval systems as a broader class of retrieval systems that apply multiple prediction models. This encapsulates cascading models but also allows other types of interactions than top-K re-ranking. In particular, we enable interactions with large language models (LLMs) which can provide relative relevance comparisons. We focus on the optimization of compound retrieval system design which uniquely involves learning where to apply the component models and how to aggregate their predictions into a final ranking. This work shows how our compound approach can combine the classic BM25 retrieval model with state-of-the-art (pairwise) LLM relevance predictions, while optimizing a given ranking metric and efficiency target. Our experimental results show optimized compound retrieval systems provide better trade-offs between effectiveness and efficiency than cascading approaches, even when applied in a self-supervised manner.
Introduction
Modern search engines face a constant tension between ranking quality and computational latency. The industry standard has long been the "cascade" approach: a sequence of increasingly complex models where a fast, cheap model (like BM25) retrieves a large candidate set, followed by progressively heavier models that re-rank smaller subsets.
However, the emergence of Large Language Models (LLMs) has challenged this paradigm. Specifically, Pairwise Relevance Prompting (PRP)—where an LLM compares two documents to determine which is more relevant—has shown state-of-the-art accuracy but carries an astronomical cost. Comparing just 1,000 documents requires nearly a million LLM calls, making it impractical for standard cascades. Researchers from Radboud University and Google DeepMind have introduced Compound Retrieval Systems to address this, moving beyond rigid sequential re-ranking to a more flexible, optimized framework.
The Compound Retrieval Framework
A Compound Retrieval System consists of three primary elements that work in concert to produce a final ranking:
- Component Models: A heterogeneous mix of models with varying costs and capabilities, including cheap lexical models (BM25), medium-cost pointwise LLM scorers, and expensive pairwise LLM comparisons.
- Selection Policy ($\pi$): A learned mechanism that decides which model to apply to which document or pair of documents. Unlike a fixed cascade, this policy can be sparse and non-linear.
- Score Aggregator ($f$): A function that synthesizes all gathered predictions into a final, unified ranking score.
Differentiable Optimization
The core innovation of this work is making the entire system design differentiable. Because the decision to run a model is discrete (a "yes/no" choice), the researchers utilized a straight-through estimator to allow gradients to flow through the selection process. This enables the system to learn the optimal "selection pattern" for any specific computational budget. Furthermore, a novel ranking distillation loss allows the system to be trained in a self-supervised manner, learning to mimic the behavior of an expensive "teacher" model at a fraction of the cost.
Experimental Results
The researchers evaluated the framework using the TREC-DL (2019-2022) benchmarks, employing BM25 for initial retrieval and Gemini 1.5 Flash for LLM-based predictions.
Efficiency and Effectiveness
The optimized compound systems significantly outperformed traditional cascading baselines. The system achieved the same ranking quality (nDCG) as a full PRP re-ranker while requiring 10 times fewer LLM calls. As shown in the performance plots, the compound approach maintains superior trade-offs across almost all budget levels.
Key Insights
- Targeted Intelligence: The system learns to concentrate its LLM budget on the most critical documents—typically those at the very top of the ranking where precision is most vital for user satisfaction.
- Emergent Strategies: The optimized policies discovered strategies humans might not manually design, such as performing pairwise comparisons only on specific "uncertain" documents or using triangular patterns in comparison matrices.
- Self-Supervision: While supervised learning with human labels yielded the best results, the self-supervised distillation approach was remarkably competitive, offering a viable path for domains where labeled data is scarce.
Limitations and Future Outlook
While the framework represents a significant leap forward, some challenges remain. The system's performance slightly lagged behind simple pointwise cascades at extremely low budgets (under 200 LLM calls), likely due to gradient approximation inaccuracies in ultra-sparse scenarios.
Future research directions include extending the framework to multi-stage compound systems, exploring non-linear aggregation functions like small neural networks, and incorporating broader model interactions such as listwise comparisons or query transformations. By moving beyond the cascade, compound retrieval systems open a new frontier for designing efficient, high-performance search architectures.
Summary updated