Manuscript Offprint
arXiv:2610.24341Optimal Fusion Weights Form Intervals, Not Points: A Latency-Aware Study of Query-Adaptive WRRF
Abstract
Reciprocal Rank Fusion (RRF) is widely used to combine sparse and dense retrievers in hybrid information retrieval, but a critical limitation is that it assigns a fixed, uniform weight to each retriever regardless of the query. Query-aware methods treat the per-query optimal weight as a single point, an assumption whose empirical validity has not been examined. We present an empirical study of eight dynamic fusion weight prediction strategies across four datasets and four sparse-dense retriever pairs. When we compare these approaches to static fusion and a per-query oracle that bounds achievable performance, several findings emerge. First, the per-query optimal fusion weight is typically an interval rather than a point. Queries can have multiple optimal intervals, and these can take on a variety of shapes. Second, 74 of 128 dynamic fusion methods tested were significantly better than standard RRF after false discovery rate correction. Third, dynamic fusion methods exhibit differing quality and latency characteristics that should be considered when choosing an appropriate fusion method. To address this last finding, we present a tiered decision framework that maps practitioner constraints, dataset properties, label availability, hardware, and latency budget to an appropriate method class. We release the code for our experiments at https://github.com/thomsonreuters/query-based-rrf.
1 Introduction
Hybrid information retrieval (IR) systems, which combine lexical signals from sparse retrievers with semantic embeddings from dense retrievers, have become the standard architecture for modern search applications (Ma et al., 2020; Berntson, 2023; Sawarkar et al., 2024). To merge these disparate sources, Reciprocal Rank Fusion (RRF) (Selberg

Query: cap on liability
Query: personal or bodily injury exception to waiver of indirect damages via indemnification carveout
Query: fraud, gross negligence or willful misconduct exception to waiver of indirect damages via indemnification carveout
Query: indemnification covers indirect claims
Figure 1: Four ACORD queries with very different optimal RRF weights (more examples in Appendix D).
and Etzioni, 1997; Cormack et al., 2009) has been adopted in practice (Ding et al., 2020; Jin et al., 2024; Rackauckas, 2024; Yu et al., 2025). RRF is effective because it operates on ranks without training, bypassing score-scale mismatches between lexical and semantic retrievers (Bruch et al., 2023).
However, standard RRF uses a fixed weight as a common default, treating all retrievers as equally valuable. Alternative score-based strategies, such as the convex combination of Bruch et al. (2023), fuse raw scores rather than ranks and require both per-retriever score normalization and a learned per-dataset weight. Consequently, this approach is less common in practice, since rank-based RRF needs neither. Weighted RRF (WRRF) makes the fusion weight tunable, and the natural follow-up is to choose it per query. We show this framing is itself wrong: optimal WRRF weights typically form intervals, not points.
Recent work has nonetheless pursued query-aware fusion weights, adjusting the WRRF parameter per query. Dynamic Alpha Tuning (DAT) (Hsu and Tzeng, 2025) uses a Large Language Model (LLM) to predict a query-specific fusion weight,
This work was conducted during the first author's internship at Thomson Reuters. © 2026 Thomson Reuters. Licensed under CC BY-NC-ND 4.0.
| Tier | Sub-tier | Method | Latency (95% CI) | Infra | Training Data | Query-aware | Top-1 Retrieval-aware |
|---|---|---|---|---|---|---|---|
| T0 | - | RRF (w = 0.5) | < 1 μs | CPU | not required | no | no |
| T1 | T1a | Mean Optimal Weight | < 1 μs | CPU | required | no | no |
| T1b | Linear Regression | 265.00 ± 3.00 μs | CPU | required | yes | no | |
| T2 | T2a | Small Encoder LM | 5.24 ± 0.04 ms | GPU (self-host) | required | yes | no |
| T2b | Small Encoder LM | 8.46 ± 0.02 ms | GPU (self-host) | required | yes | yes | |
| T3 | T3a | DAT (zero-shot) | 205.50 ± 8.55 ms | GPU (self-host)/LLM API | not required | yes | yes |
| T3b | Few-shot LLM | 225.37 ± 8.37 ms | GPU (self-host)/LLM API | required | yes | no |
Table 1: Three latency tiers motivated by inference latency clusters; training requirements or data used for supervision define sub-tiers. Latency reported as mean with 95% CI over n within-dataset means.
exemplifying the query-aware weighting paradigm but introducing substantial inference latency. In addition, how much of the improvement above standard RRF dynamic methods actually capture remains an open question.
To assess this we evaluate a spectrum of fusion weight prediction strategies, ranging from a dataset-level constant and linear regression to fine-tuned encoders, in-context LLMs, and DAT, against a per-query oracle bounding maximum performance. We measure absolute retrieval quality, headroom recovery over standard RRF, and per-query inference latency.
Our contributions are as follows:
-
We characterize optimal fusion weights as a set-valued object, showing empirically that they typically form intervals rather than points. This clarifies when standard RRF is useful while exposing the limitations of framing weight prediction as point estimation.
-
For alignment with the structure of optimal fusion weights as intervals, we use a satisficing loss to fine-tune small encoder-based weight predictors and interval-aware in-context learning for LLM-based weight prediction.
-
We quantify the benefits of dynamic fusion while highlighting gaps between each method evaluated and a per-query oracle. Our evaluations demonstrate statistically significant performance gains even after false discovery rate correction in 74 of 128 settings tested.
-
We present a tiered decision framework (Table 1) that organizes fusion weight-prediction strategies along a measured latency spectrum, mapping practitioner constraints (labels, GPU capacity, latency budgets) to actionable method choices.
To merge these retrieval streams, fusion methods have historically relied on static aggregation strategies. Early approaches rooted in social choice theory, such as Borda Count (Aslam and Montague, 2001) and round-robin interleaving (Etzioni and Selberg, 1995), often struggled with varying candidate pool sizes and ignored cross-system agreement. RRF (Selberg and Etzioni, 1997; Cormack et al., 2009) advanced retrieval fusion by applying a hyperbolic decay constant to reward consensus among retrievers.
Still, standard RRF can be brittle. An optimized convex combination of normalized scores can perform better (Bruch et al., 2023), but such approaches remain limited because they rely on static, dataset-level weights.
The intuition that fusion weights should adapt to queries has driven the development of dynamic strategies closely related to Query Performance Prediction (QPP), which aims to predict retrieval effectiveness a priori (Arabzadeh et al., 2024). Per-query weight optimization predates this line of work: Vogt and Cottrell (1999) derive a closed-form optimal weight for linearly combining two retrieval systems, and Sheldon et al. (2011) learn to weight multiple ranked lists per query, though for merging query reformulations rather than sparse-dense retrievers. Performance estimates can be translated into action in several ways.
In the context of fusion, a recent focus has been on using LLMs to calibrate retrieval parameters on the fly. AMSRAG (Dong et al., 2026) uses lightweight models such as ModernBERT (Warner et al., 2025) to classify queries into complexity tiers, then adjusts both fusion weights and the smoothing constant accordingly. Similarly, DAT (Hsu and Tzeng, 2025) uses an LLM to evaluate the top result for each retriever and assign a query-specific fusion weight.
While DAT improves retrieval quality over standard RRF, it treats fusion weight prediction as a point-estimation problem. Our in-context LLM approach contrasts with DAT in three key respects: we (1) fuse ranks rather than scores, bypassing score normalization; (2) condition the LLM on interval-valued few-shot examples rather than zero-shot prompts; and (3) rely, for runtime efficiency, on the query alone rather than candidate passages.
Beyond structural bounds, dynamic fusion introduces latency. Production pipelines keep early-stage retrieval lightweight to reserve compute budget for downstream LLM rankers (Sun et al., 2023; Tang et al., 2024) or LTR models (Liu, 2009; Li et al., 2024). Thus, while DAT-style LLM fusion improves query-aware weighting, its latency overhead is better allocated to downstream re-ranking.
We study several approaches for WRRF and compare against DAT. We chose to look at these WRRF variations because RRF is commonly used in practice and does not require standardized scores from the input retrievers. Inspired by DAT, we not only look at methods that are dataset-aware (setting the WRRF weight based on the mean optimal weight for a train split), but also consider methods that dynamically set the fusion weight for each query according to a query representation.
3 Methodology
We first formalize Weighted Reciprocal Rank Fusion (WRRF) and construct the empirical optimal weight set . We then detail a spectrum of weight-prediction strategies, spanning dataset-level constants, discriminative encoders, and in-context LLMs, evaluated against this per-query oracle.
3.1 Weighted Reciprocal Rank Fusion
Given a query , let and denote the ranked document lists returned by the sparse and dense retrievers. For a document , let denote its rank in retriever .
We define the WRRF score for document d given query q as
where is the fusion weight assigned to the sparse retriever and is the standard smoothing constant (Cormack et al., 2009; Bruch et al., 2023). Standard RRF corresponds to ; dynamic fusion aims to predict adaptively per query.
3.2 Optimal Fusion Weights
For each query, we identify its optimal weight set by sweeping with step size (a finer grid yields negligible differences; Appendix F.5) and evaluating WRRF on top-n candidate documents under metric Metric( ):
The optimal set generally forms a union of contiguous closed intervals . The optimal set may yield: (i) a single point, (ii) a single contiguous interval, (iii) disjoint intervals, or (iv) when no weight surfaces relevant documents (yielding no weight signal).
The fusion weight prediction strategies operate on the primary optimal interval , defined as the widest interval in . For point-estimation baselines requiring a scalar target , we take the midpoint (breaking ties randomly).
3.3 Evaluation Metrics
For each query, the oracle score is the maximum achievable metric value, , attained by any weight in ; averaged over the evaluation split, it upper-bounds what any predictor assigning a single weight per query can achieve. We define headroom as the gap between this oracle and standard RRF, , and each method's recovery as the fraction of that headroom it captures, .
3.4 Significance Testing
We assess each method’s improvement over standard RRF using paired two-sided Student’s t-tests over per-query metric scores (Urbano et al.,
2019). Across the resulting comparisons, we apply Benjamini—Hochberg False Discovery Rate (FDR) corrections (Benjamini and Hochberg, 1995) (Appendix F.4). For latency, we report mean run-times with 95% t-confidence intervals computed across sub-tier and tier evaluations.
3.5 Weight Prediction Strategies
To evaluate how effectively practical systems estimate fusion weights for unseen queries, we compare three families of strategies along an adaptivity-cost spectrum. We treat the trade-off between inference latency, training data dependencies, and retrieval accuracy as a central axis of our study.
3.5.1 Dataset-Level Constant
As a corpus-calibrated static alternative to standard RRF, we set to the dataset-level mean computed over training queries. This baseline incurs zero inference overhead and stores only a single global scalar per dataset pair.
3.5.2 Discriminative Query Predictors
To capture query-level variance, we train discriminative models mapping query (and optionally top retrieved passages) to weight . We evaluate three backbones of increasing capacity:
• Linear Regression (Hoerl and Kennard, 1970): Ridge regression over TF-IDF query features.
• RoBERTa (Liu et al., 2019): Encoder baseline fine-tuned on query embeddings.
• ModernBERT (Warner et al., 2025): Fine-tuned in query-only and passage-conditioned variants.
We evaluate two design choices on ModernBERT:
Target form: point vs. interval. Point targets penalize predictions that fall within valid optimal regions away from the midpoint. We contrast this against interval targets .
Loss form: MSE vs. satisficing. For point targets, we optimize mean squared error. For interval targets, we apply a satisficing loss built on the -insensitive tube of SVR (Smola and Schölkopf, 2004): rather than a fixed, symmetric around a scalar target, the tolerance zone is the query's own empirical interval , so any prediction the data already certifies as optimal incurs no penalty (Simon, 1955):
which incurs zero loss when and penalizes deviations only outside interval boundaries.
3.5.3 In-Context LLM Prediction
We formulate dynamic weight prediction as a two-stage in-context learning (ICL) pipeline.
Exemplar retrieval. For a query q, we retrieve top-k nearest neighbors from training queries using sparse lexical and dense embedding indices using a modified KATE setup (Liu et al., 2022). Deduplicating these lists produces an exemplar set capturing lexical and semantic query similarity.
Prompting and inference. We construct an ICL prompt pairing each retrieved neighbor with its optimal interval , instructing the LLM to predict scalar weight for . Presenting full interval boundaries rather than scalar point summaries preserves critical tolerance and range signals. We evaluate across model scales to test capacity dependencies and compare against DAT under matched backbones.
4 Experiments
4.1 Datasets and Metrics
We evaluate on four datasets covering different domains: MS MARCO (Nguyen et al., 2016) (web search; dev split), NQ (Kwiatkowski et al., 2019) (Wikipedia QA; dev split), NFCorpus (Boteva et al., 2016) (medical IR; test split), and ACORD (Wang et al., 2025) (legal contract retrieval; test split). Training splits are used to fit predictors and label optimal weight sets. We report MRR@10 for binary-labeled datasets for which queries typically only have one or two gold documents (MS MARCO, NQ) and nDCG@10 for graded multi-document relevance (NFCorpus, ACORD).
4.2 Retrievers
We pair two sparse and two dense retrievers into four hybrid configurations:
• Sparse: BM25 (Robertson and Zaragoza, 2009) (via Pyserini (Lin et al., 2021)) and RM3 (Abdul-Jaleel et al., 2004; Lavrenko and Croft, 2017) (BM25 pseudo-relevance feedback query expansion).
• Dense: all-MiniLM-L6-v2 (Sentence-Transformers, 2021) (lightweight bi-encoder) and Qwen3-Embedding-8B (Zhang et al., 2025) (LLM-based embedder).
We name each hybrid pair by concatenating a sparse and a dense abbreviation: BM (BM25) or RM (RM3), with the dense retriever appended in parentheses as (M) (all-MiniLM-L6-v2) or (Q) (Qwen3-Embedding-8B). For example, BM(Q) denotes BM25 and Qwen3-Embedding-8B, giving four configurations in total: BM(M), BM(Q), RM(M), RM(Q). Each retriever retrieves top-200 candidates before fusion (increasing the cutoff to 400 yielded no empirical gain).
4.3 Predictors and Comparators
Discriminative predictors. We evaluate linear regression, RoBERTa-large, and ModernBERT-large, fine-tuned end-to-end (Appendix B).
In-context LLMs & Comparators. Our ICL pipeline evaluates Qwen3-32B (Yang et al., 2025) and Ministral-3-14B-Instruct-2512 (Liu et al., 2026). Exemplars (k = 5 sparse, k = 5 dense) are retrieved over training queries as detailed in Appendix C. We evaluate DAT under these identical LLM backbones.
4.4 Latency Measurement
Per-query inference latency is benchmarked on an AWS ml.g6e.2xlarge instance (48 GB VRAM), with LLM calls routed via Amazon Bedrock (timed full round-trip). Benchmarks use batch size 1, no local caching, and a warm-up pass over full evaluation splits.
5 Results
We organize the results around three parts. §5.1 quantifies how much room exists above standard RRF for any per-query weight predictor, and how much of that room current methods recover. §5.2 characterizes the structure of the per-query optimal weight set and shows that the same characterization explains where the unrecovered headroom resides. §5.3 reports the per-query optimal weight distribution and cross-dataset patterns.
5.1 Headroom and Recovery
Table 2 reports the oracle, headroom, and each method's performance. The headroom is largest on MS MARCO and NQ (0.15–0.22), smaller on ACORD and NFCorpus (0.05–0.09). Translating these absolute differences into a comparable scale, Appendix F.3 reports each method's recovery.
Three observations stand out. First, recovery depends heavily on dense retriever capacity: when paired with the high-capacity embedder (Qwen3), several methods achieve 25–40% recovery, peaking at 61.1% (Ministral3 FS on NQ). Conversely, under the lightweight dense embedder (MiniLM), recovery drops sharply and frequently turns negative on out-of-domain datasets. Across BM25 pairings on MS MARCO and NQ, top recoveries (>25%) occur exclusively under high-capacity dense fusion. Second, median recovery across all setups is modest (12.2%). Third, headroom and recovery are decoupled: configurations with the largest raw headroom, MS MARCO and NQ under lightweight dense fusion, yield at most 18.8% recovery.
Statistical significance. Paired t-tests in Table 2 reveal a clear pattern: dynamic methods significantly outperform standard RRF in nearly all configurations on MS MARCO (31 of 32 cells) and NQ (30 of 32), but far less frequently on NFCorpus (10 of 32) and ACORD (4 of 32). This trend directly mirrors headroom scale and training sample size. Significance is most detectable where headroom is large and query counts are high (MS MARCO: 6,980; NQ: 2,893), and hardest to establish where both are small (ACORD: 57).
Adjusting for multiple comparisons across the 128 tests, 74 of the 75 raw significant cells survive Benjamini–Hochberg FDR control ( ). Testing against the stronger Mean Optimal Weight baseline (MOW) rather than standard RRF yields 48 raw significant improvements, with 46 surviving FDR (details in Appendix F.4).
Extension to 3 retrievers. we explore an extension to three retrievers(BM25, RM3, Qwen3) and report the details in Appendix F.7. Extending fusion to more retrievers elevates the oracle ceiling across all datasets. Both evaluated predictors, ModernBERT Passage Cond. and Ministral3 FS (IW), consistently outperform unweighted three-way RRF across all datasets. These gains reach statistical significance (p < .001, surviving Bonferroni correction) on MS MARCO and NQ for both models, and on NFCorpus for Ministral3 FS (IW).
5.2 Anatomy of the Optimal Weight Sets
The recovery numbers above represent statistics over heterogeneous queries. To understand where headroom resides and why it is difficult to capture, we partition each query’s optimal weight set into four categories (Table 3): empty, single point, single interval, and multi-interval.
| Method | MS MARCO (MRR@10) | NQ (MRR@10) | ACORD (nDCG@10) | NFCorpus (nDCG@10) | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| BM(M) | BM(Q) | RM(M) | RM(Q) | Avg | BM(M) | BM(Q) | RM(M) | RM(Q) | Avg | BM(M) | BM(Q) | RM(M) | RM(Q) | Avg | BM(M) | BM(Q) | RM(M) | RM(Q) | Avg | |
| Oracle (per-query best w) | .443 | .457 | .437 | .453 | .448 | .525 | .549 | .484 | .531 | .522 | .203 | .221 | .204 | .231 | .215 | .405 | .455 | .423 | .473 | .439 |
| Headroom (Oracle - RRF) | .157 | .166 | .163 | .175 | .165 | .147 | .157 | .186 | .220 | .177 | .071 | .083 | .078 | .088 | .080 | .054 | .068 | .068 | .076 | .066 |
| Standard RRF | .286 | .292 | .274 | .278 | .282 | .378 | .391 | .298 | .312 | .345 | .132 | .138 | .126 | .143 | .135 | .351 | .387 | .356 | .397 | .373 |
| Mean Optimal Weight | .295* | .314* | .289* | .309* | .302 | .381 | .417* | .332* | .378* | .377 | .132 | .137 | .132 | .143 | .136 | .348 | .397* | .355 | .403* | .376 |
| Ridge Regressor (MBW) | .296* | .317* | .289* | .310* | .303 | .383 | .416* | .330* | .377* | .377 | .138 | .137 | .130 | .145 | .137 | .349 | .397* | .356 | .402 | .376 |
| RoBERTa Regression (IW) | .300* | .321* | .295* | .312* | .307 | .387* | .418* | .333* | .384* | .380 | .126 | .154 | .125 | .154 | .140 | .350 | .398* | .356 | .402 | .376 |
| ModernBERT (IW) | .305* | .326* | .297* | .318* | .311 | .387* | .423* | .333* | .393* | .384 | .125 | .156 | .125 | .155 | .140 | .350 | .399* | .360 | .405* | .378 |
| ModernBERT Passage Cond. | .304* | .327* | .296* | .325* | .313 | .406* | .426* | .341* | .397* | .392 | .143 | .155* | .135 | .159* | .148 | .349 | .407* | .359 | .403* | .379 |
| DAT Qwen3 | .290* | .302* | .275 | .289* | .289 | .389* | .416* | .319* | .356* | .370 | .131 | .141 | .145* | .156* | .143 | .346 | .401* | .354 | .408* | .377 |
| DAT Ministral3 | .295* | .316* | .285* | .309* | .302 | .400* | .432* | .352* | .400* | .396 | .126 | .147 | .132 | .151 | .139 | .337 | .395 | .339 | .409 | .370 |
| Qwen3 FS (IW) | .304* | .335* | .295* | .328* | .315 | .391* | .433* | .347* | .411* | .396 | .137 | .143 | .126 | .142 | .137 | .351 | .403* | .356 | .406 | .379 |
| Ministral3 FS (IW) | .303* | .350* | .299* | .346* | .325 | .386 | .447* | .371* | .446* | .412 | .139 | .151 | .132 | .157 | .145 | .349 | .404* | .347 | .400 | .375 |
Table 2: Per-query performance across all four retriever pairs, with the per-dataset average (Avg). * marks the method is significantly better than standard RRF (p<.05). Best value per column in bold.
| Dataset | Retrievers | Empty | Single Point | Single Interval | Multi-Interval |
|---|---|---|---|---|---|
| MS MARCO | BM(M) | 30.2 | 0.7 | 67.1 | 2.0 |
| BM(Q) | 26.2 | 0.7 | 70.9 | 2.1 | |
| RM(M) | 30.3 | 1.0 | 66.9 | 1.8 | |
| RM(Q) | 26.7 | 0.7 | 70.5 | 2.0 | |
| NQ | BM(M) | 27.1 | 0.5 | 71.0 | 1.3 |
| BM(Q) | 20.4 | 0.7 | 77.3 | 1.7 | |
| RM(M) | 29.7 | 1.0 | 68.5 | 0.9 | |
| RM(Q) | 21.5 | 0.4 | 77.0 | 1.0 | |
| ACORD | BM(M) | 0.0 | 21.1 | 78.9 | 0.0 |
| BM(Q) | 0.0 | 19.3 | 77.2 | 3.5 | |
| RM(M) | 0.0 | 28.1 | 71.9 | 0.0 | |
| RM(Q) | 0.0 | 26.3 | 70.2 | 3.5 | |
| NFCorpus | BM(M) | 22.6 | 6.2 | 70.3 | 0.9 |
| BM(Q) | 18.9 | 5.3 | 74.9 | 0.9 | |
| RM(M) | 23.2 | 7.1 | 69.0 | 0.6 | |
| RM(Q) | 18.3 | 3.4 | 77.1 | 1.2 |
Table 3: Structural breakdown (%) of the per-query optimal weight set on the evaluation split. Values represent percentages of total queries.
Unreachable queries ( ). For 18–30% of evaluation queries on MS MARCO, NQ, and NF-Corpus, no weight in [0, 1] surfaces a relevant document within the top 10. These queries score zero across all methods; while they do not affect relative recovery percentages, they cap the absolute oracle ceiling. On MS MARCO under lightweight dense fusion (BM(M)), for instance, 30.2% of queries yield zero metrics across all weights, capping the theoretical oracle at .698 (1 – .302). Against this bound, the realized oracle of .443 corresponds to an average MRR@10 of on reachable queries.
A detailed breakdown in Appendix F.1 reveals two underlying drivers for unreachable queries. For 9% (NQ) to 34% (NFCorpus) of queries, neither retriever surfaces a relevant document within the top 200. The remaining cases occur when a relevant document appears only at deep ranks (e.g., near rank 200) in a single retriever, making it impossible to pull into the fused top-10 regardless of the weight setting.
RRF-easy queries . For a subset of reachable queries, the standard RRF weight of 0.5 already lies within the query's optimal interval ; on these queries RRF attains oracle performance by construction, so a dynamic predictor can at best match it. As shown in Figure 2, this subpopulation is largest on NQ (27.4–38.2%, peaking on BM(Q)) and MS MARCO (24.2–26.3%), moderate on NF-Corpus (15.4–24.7%), and smallest on ACORD (10.3–17.2%). This cohort partly accounts for standard RRF's resilience as a baseline; on the remaining queries, where , dynamic weighting has genuine room to improve and delivers statistically significant gains over RRF.

Figure 2: Percentage of evaluation queries for which . On these queries RRF attains the per-query oracle by construction; a dynamic predictor that selects can only match or underperform RRF.
Interval-valued optima dominate over single points. Among reachable queries ( ), optimal weight sets are predominantly intervals rather than isolated points. On MS MARCO and NQ, single-point optima occur in only of queries, whereas over 65% yield a contiguous interval and 1–2% feature disjoint intervals. Conversely, 19–28% of ACORD queries exhibit single-point optima, an artifact of its coarse metric landscape and small evaluation set. This interval dominance creates an objective misalignment when training predictors on scalar targets , as valid predictions within are penalized. While our -insensitive satisficing loss removes this penalty, it closes only a small fraction of the recovery gap (Table 7), indicating that the

Figure 3: Distribution of the per-query mean optimal weight for the BM25 and Qwen3 combination (w=0: dense only; w=0.5: RRF; w=1: sparse only). Unreachable queries omitted. Other pairs: Appendix E.
primary bottleneck is the query-level predictability of rather than loss formulation. Interval width helps explain why: queries where have intervals wider on average than queries where it does not, so the queries a predictor must move away from standard RRF to win on are also the ones with the narrowest, hardest-to-hit targets.
Grid resolution. Comparing the used to a finer grid, interval statistics are stable across all dataset–retriever-pair configurations: optimal-interval length changes by at most 0.0068, interval disagreement by at most 0.011, and the retrieval metric at the mean best weight by at most 0.0007 (Appendix F.5). The 0.01 grid is therefore not an artifact of resolution.
Why is prediction hard? Correlating a well-poorly-predicted label with 15 query features (length, term rarity, named entities, WH-type, WordNet ambiguity) shows no feature explains more than of variance in misprediction on the two large datasets (strongest MS MARCO, 0.09 NQ); even query ambiguity, our a priori hypothesis, shows essentially no correlation ( ). Mispredicted queries are not identifiable from surface properties, reinforcing that the bottleneck is intrinsic query-level unpredictability (Appendix F.6).
5.3 Per-Query Optimal Weight Distribution
Figure 3 reports the distribution of per-query mean optimal weights for BM(Q) over reachable queries ( ); full distributions in Appendix E.
On MS MARCO and NQ, distributions heavily skew toward low values of , favoring the dense retriever). Because both benchmarks are in-domain for the evaluated dense retrievers, the dense channel consistently dominates. This skew explains why the dataset-level MOW recovers a comparable fraction of headroom to complex predictors: when optimal weights are low, a single low constant closely approximates per-query optima.
On ACORD (out-of-domain legal IR), no systematic skew appears. Instead, optimal weights spread across [0, 1] with concentrations at the endpoints: 17–25% of queries favor dense-only ( ) and 8–12% favor sparse-only ( ), reflecting queries where single-channel retrieval strictly outperforms hybrid fusion. On NFCorpus under BM(Q), 15–25% of queries cluster near or , revealing distinct dense-only and balanced-fusion query cohorts; under BM(M), this mass spreads more uniformly across the interval.
6 A Decision Framework for Fusion Method Selection
Per-query inference latencies span sub- s to 280 ms and cluster into three regimes: Tier 0 and Tier 1 methods incur no per-query forward pass; Tier 2 invokes a fine-tuned encoder ([5.9, 6.8] ms, 95% CI); Tier 3 invokes an LLM ([209.1, 221.8] ms, 95% CI). Figure 4 plots quality versus latency across datasets. We organize the discussion around three latency tiers observable in the figure, separating methods by inference runtime and corresponding infrastructure. As detailed in Table 1, sub-tiers within each tier share similar latency and infrastructure but differ in terms of training requirements or supervision data.
6.1 Two Prerequisite Checks
Selecting an appropriate dynamic fusion method depends on two practical criteria.
Dataset sensitivity. Evaluating relative head-room, , reveals whether available head-room exceeds a threshold required to justify higher-tier computational overhead.
Training data availability. Tiers T1, T2, and T3b all require training queries. Without labeled data, candidate choices naturally reduce to training-free baselines (T0) or zero-shot prompts (T3a).
6.2 Tier Properties
T0 is appropriate when no labels and no LLM are available, or as a zero-latency method in hybrid retrieval. T1 applies a learned weight on CPU: T1a captures a small but consistent gain on responsive datasets (details in Appendix F.3), and T1b performs comparably to T1a. Thus, T1 is a suitable low-latency choice when no GPU is available or when a simple model is preferred for deployment. T2 shares the same latency tier across

Standard RRF
Mean Optimal Weight
Linear Regression
RoBERTa interval
ModernBERT
ModernBERT passage cond
DAT Ministral
DAT Qwen3
LLM-FS Ministral
LLM-FS Qwen3
Figure 4: Per-query latency vs. ranking quality across four datasets (MRR@10 for MS MARCO and NQ, nDCG@10 for ACORD and NFCorpus). Each point averages over 44.4 retriever combinations per dataset, for each fusion method.
sub-tiers ( ms per query), and on responsive datasets recovers much of the achievable gain at a fraction of the LLM inference latency. T2b is competitive across datasets, the strongest T2 method overall, and is a latency-effective choice when a GPU and top-1 passages are available at fusion time. T3 invokes an LLM: T3a is the only method above T0 that requires no labeled training data, while T3b is the strongest method on NQ and MS MARCO. Within-tier variation in T3 is substantial (see LLM rows of Table 7, Appendix F.3). We sample at a low temperature (0.1), so run-to-run variation is minor. T3 fits best when fusion is the final stage and the latency budget allows the LLM call; otherwise, the same budget may serve a downstream re-ranker better. Non-retrieval-aware methods (T0–T2a, T3b) depend only on the query.
7 Conclusion
Our work demonstrates that optimal fusion weights in hybrid retrieval are typically intervals, not points. For a fraction of queries, standard 50-50 RRF weights already fall inside this interval, which partly explains this strategies' resilience as a baseline.
However, across hybrid retrieval settings tested, dynamic weight prediction improves significantly over standard RRF for most MS MARCO and NQ configurations (even after FDR correction). In these and other settings evaluated headroom relative to an oracle remains, even for LLM-based predictors that exhibit higher latency. This indicates that query-level predictability in addition to headroom availability, is an important area for future work on hybrid search.
Because of the latency, compute, and data labeling costs associated with some dynamic fusion methods, we organized the static and dynamic fusion methods tested in our analysis into a tiered decision framework. The framework maps technical constraints to an appropriate method class, helping practitioners realize the potential value afforded by available fusion methods while respecting practical limitations.
Limitations
• We evaluate only on English benchmarks, where both retriever families are mature. The set-valued characterization should be language-agnostic, but the shape of the weight intervals themselves may shift in multilingual settings.
• We sample LLM predictions at temperature 0.1, so absolute LLM-method numbers may vary slightly across runs.
References
Nasreen Abdul-Jaleel, James Allan, W Bruce Croft, Fernando Diaz, Leah Larkey, Xiaoyan Li, Mark D Smucker, and Courtney Wade. 2004. Umass at trec 2004: Novelty and hard.
Negar Arabzadeh, Chuan Meng, Mohammad Alianne-jadi, and Ebrahim Bagheri. 2024. Query performance prediction: Techniques and applications in modern information retrieval. In Proceedings of the 2024 Annual International ACM SIGIR Conference on Research and Development in Information Retrieval in the Asia Pacific Region, SIGIR-AP 2024, page 291–294, New York, NY, USA. Association for Computing Machinery.
Javed A Aslam and Mark Montague. 2001. Models for metasearch. In Proceedings of the 24th annual international ACM SIGIR conference on Research and development in information retrieval, pages 276–284.
Yoav Benjamini and Yosef Hochberg. 1995. Controlling the false discovery rate: A practical and powerful approach to multiple testing. Journal of the
Royal Statistical Society: Series B (Methodological), 57(1):289–300.
Alec Berntson. 2023. Azure ai search: Outperforming vector search with hybrid retrieval and reranking. Microsoft Community Hub. Accessed on August, 19:2025.
Vera Boteva, Demian Gholipour, Artem Sokolov, and Stefan Riezler. 2016. A full-text learning to rank dataset for medical information retrieval. In European Conference on Information Retrieval, pages 716–722. Springer.
Sebastian Bruch, Siyu Gai, and Amir Ingber. 2023. An analysis of fusion functions for hybrid retrieval. ACM Trans. Inf. Syst., 42(1).
Jianlyu Chen, Shitao Xiao, Peitian Zhang, Kun Luo, Defu Lian, and Zheng Liu. 2024. M3-embedding: Multi-linguality, multi-functionality, multi-granularity text embeddings through self-knowledge distillation. In Findings of the association for computational linguistics: ACL 2024, pages 2318–2335.
Gordon V. Cormack, Charles L A Clarke, and Stefan Buettcher. 2009. Reciprocal rank fusion outperforms condorcet and individual rank learning methods. In Proceedings of the 32nd International ACM SIGIR Conference on Research and Development in Information Retrieval, SIGIR '09, page 758–759, New York, NY, USA. Association for Computing Machinery.
Keyan Ding, Kede Ma, Shiqi Wang, and Eero P Simoncelli. 2020. Image quality assessment: Unifying structure and texture similarity. IEEE transactions on pattern analysis and machine intelligence, 44(5):2567–2581.
Wenxuan Dong, Mingguang Diao, and Meiqi Yang. 2026. An adaptive multi-source retrieval-augmented generation framework integrating query complexity awareness and confidence-aware fusion. Applied Sciences, 16(5):2495.
Oren Etzioni and Erik Selberg. 1995. Multi-service search and comparison using the metacrawler. In 4th International World Wide Web Conference.
Arthur E. Hoerl and Robert W. Kennard. 1970. Ridge regression: Biased estimation for nonorthogonal problems. Technometrics, 12(1):55–67.
Hsin-Ling Hsu and Jengnan Tzeng. 2025. Dat: Dynamic alpha tuning for hybrid retrieval in retrieval-augmented generation. arXiv preprint arXiv:2503.23013.
Gautier Izacard, Mathilde Caron, Lucas Hosseini, Sebastian Riedel, Piotr Bojanowski, Armand Joulin, and Edouard Grave. 2021. Unsupervised dense information retrieval with contrastive learning. arXiv preprint arXiv:2112.09118.
Qiao Jin, Zifeng Wang, Charalampos S Floudas, Fangyuan Chen, Changlin Gong, Dara Bracken-Clarke, Elisabetta Xue, Yifan Yang, Jimeng Sun, and Zhiyong Lu. 2024. Matching patients to clinical trials with large language models. Nature communications, 15(1):9074.
Vladimir Karpukhin, Barlas Oguz, Sewon Min, Patrick Lewis, Ledell Wu, Sergey Edunov, Danqi Chen, and Wen-tau Yih. 2020. Dense passage retrieval for open-domain question answering. In Proceedings of the 2020 conference on empirical methods in natural language processing (EMNLP), pages 6769–6781.
Tom Kwiatkowski, Jennimaria Palomaki, Olivia Redfield, Michael Collins, Ankur Parikh, Chris Alberti, Danielle Epstein, Illia Polosukhin, Jacob Devlin, Kenton Lee, and 1 others. 2019. Natural questions: a benchmark for question answering research. Transactions of the Association for Computational Linguistics, 7:453–466.
Victor Lavrenko and W Bruce Croft. 2017. Relevance-based language models. In ACM SIGIR Forum, volume 51, pages 260–267. ACM New York, NY, USA.
Yongqi Li, Nan Yang, Liang Wang, Furu Wei, and Wenjie Li. 2024. Learning to rank in generative retrieval. In Proceedings of the Thirty-Eighth AAAI Conference on Artificial Intelligence and Thirty-Sixth Conference on Innovative Applications of Artificial Intelligence and Fourteenth Symposium on Educational Advances in Artificial Intelligence, AAAI'24/IAAI'24/EAAI'24. AAAI Press.
Jimmy Lin, Xueguang Ma, Sheng-Chieh Lin, Jheng-Hong Yang, Ronak Pradeep, and Rodrigo Nogueira. 2021. Pyserini: A Python toolkit for reproducible information retrieval research with sparse and dense representations. In Proceedings of the 44th Annual International ACM SIGIR Conference on Research and Development in Information Retrieval (SIGIR 2021), pages 2356–2362.
Alexander H Liu, Kartik Khandelwal, Sandeep Subramanian, Victor Jouault, Abhinav Rastogi, Adrien Sadé, Alan Jeffares, Albert Jiang, Alexandre Cahill, Alexandre Gavaudan, and 1 others. 2026. Ministral 3. arXiv preprint arXiv:2601.08584.
Jiachang Liu, Dinghan Shen, Yizhe Zhang, Bill Dolan, Lawrence Carin, and Weizhu Chen. 2022. What makes good in-context examples for GPT-3? In Proceedings of Deep Learning Inside Out (DeeLIO 2022): The 3rd Workshop on Knowledge Extraction and Integration for Deep Learning Architectures, pages 100–114, Dublin, Ireland and Online. Association for Computational Linguistics.
Tie-Yan Liu. 2009. Learning to rank for information retrieval. Found. Trends Inf. Retr., 3(3):225–331.
Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, and Veselin Stoyanov. 2019. Roberta: A robustly optimized bert pretraining approach. arXiv preprint arXiv:1907.11692.
Ji Ma, Ivan Korotkov, Keith B Hall, and Ryan T McDonald. 2020. Hybrid first-stage retrieval models for biomedical literature. In CLEF (Working Notes).
Tri Nguyen, Mir Rosenberg, Xia Song, Jianfeng Gao, Saurabh Tiwary, Rangan Majumder, and Li Deng. 2016. Ms marco: A human generated machine reading comprehension dataset.
Fabian Pedregosa, Gaël Varoquaux, Alexandre Gramfort, Vincent Michel, Bertrand Thirion, Olivier Grisel, Mathieu Blondel, Peter Prettenhofer, Ron Weiss, Vincent Dubourg, and 1 others. 2011. Scikit-learn: Machine learning in python. the Journal of machine Learning research, 12:2825–2830.
Zackary Rackauckas. 2024. Rag-fusion: a new take on retrieval-augmented generation. arXiv preprint arXiv:2402.03367.
S Robertson, Steve Walker, Susan Jones, and MHB GATFORD. 1994. Okapi at 3. In Proceedings of the 3rd Text REtrieval Conference (-3), pages 109–126.
Stephen Robertson and Hugo Zaragoza. 2009. The probabilistic relevance framework: Bm25 and beyond. Foundations and Trends in Information Retrieval, 4(1-2):1–174.
Kunal Sawarkar, Abhilasha Mangal, and Shivam Raj Solanki. 2024. Blended rag: Improving rag (retriever-augmented generation) accuracy with semantic search and hybrid query-based retrievers. In 2024 IEEE 7th International Conference on Multimedia Information Processing and Retrieval (MIPR), pages 155–161.
Erik Selberg and Oren Etzioni. 1997. The metacrawler architecture for resource aggregation on the web. IEEE expert, 12(1):11–14.
Sentence-Transformers. 2021. all-minilm-l6-v2: Sentence embeddings model. https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2.
Daniel Sheldon, Milad Shokouhi, Martin Szummer, and Nick Craswell. 2011. Lambdamerge: Merging the results of query reformulations. In Proceedings of the Fourth ACM International Conference on Web Search and Data Mining, WSDM '11, pages 795–804, New York, NY, USA. Association for Computing Machinery.
Herbert A Simon. 1955. A behavioral model of rational choice. The quarterly journal of economics, pages 99–118.
Alex J. Smola and Bernhard Schölkopf. 2004. A tutorial on support vector regression. Statistics and Computing, 14(3):199–222.
Weiwei Sun, Lingyong Yan, Xinyu Ma, Shuaiqiang Wang, Pengjie Ren, Zhumin Chen, Dawei Yin, and Zhaochun Ren. 2023. Is chatgpt good at search? investigating large language models as re-ranking
agents. In Proceedings of the 2023 conference on empirical methods in natural language processing, pages 14918–14937.
Raphael Tang, Crystina Zhang, Xueguang Ma, Jimmy Lin, and Ferhan Ture. 2024. Found in the middle: Permutation self-consistency improves listwise ranking in large language models. In Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers), pages 2327–2340, Mexico City, Mexico. Association for Computational Linguistics.
Julián Urbano, Harlley Lima, and Alan Hanjalic. 2019. Statistical significance testing in information retrieval: An empirical analysis of type i, type ii and type iii errors. In Proceedings of the 42nd International ACM SIGIR Conference on Research and Development in Information Retrieval, SIGIR'19, page 505–514, New York, NY, USA. Association for Computing Machinery.
Christopher C. Vogt and Garrison W. Cottrell. 1999. Fusion via a linear combination of scores. Information Retrieval, 1(3):151–173.
Steven H Wang, Maksim Zubkov, Kexin Fan, Sarah Harrell, Yuyang Sun, Wei Chen, Andreas Plesner, and Roger Wattenhofer. 2025. Acord: An expert-annotated retrieval dataset for legal contract drafting. arXiv preprint arXiv:2501.06582.
Benjamin Warner, Antoine Chaffin, Benjamin Clavié, Orion Weller, Oskar Hallström, Said Taghadouini, Alexis Gallagher, Raja Biswas, Faisal Ladhak, Tom Aarsen, Griffin Thomas Adams, Jeremy Howard, and Iacopo Poli. 2025. Smarter, better, faster, longer: A modern bidirectional encoder for fast, memory efficient, and long context finetuning and inference. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 2526–2547, Vienna, Austria. Association for Computational Linguistics.
An Yang, Anfeng Li, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Gao, Chengen Huang, Chenxu Lv, Chujie Zheng, Dayiheng Liu, Fan Zhou, Fei Huang, Feng Hu, Hao Ge, Haoran Wei, Huan Lin, Jialong Tang, and 41 others. 2025. Qwen3 technical report. arXiv preprint arXiv:2505.09388.
Shi Yu, Chaoyue Tang, Bokai Xu, Junbo Cui, Junhao Ran, Yukun Yan, Zhenghao Liu, Shuo Wang, Xu Han, Zhiyuan Liu, and Maosong Sun. 2025. Visrag: Vision-based retrieval-augmented generation on multi-modality documents. In International Conference on Learning Representations, volume 2025, pages 21074–21098.
Yanzhao Zhang, Mingxin Li, Dingkun Long, Xin Zhang, Huan Lin, Baosong Yang, Pengjun Xie, An Yang, Dayiheng Liu, Junyang Lin, Fei Huang, and Jingren Zhou. 2025. Qwen3 embedding: Advancing text embedding and reranking through foundation models. arXiv preprint arXiv:2506.05176.
A Dataset Statistics
Table 4 summarizes split sizes, total passage collection sizes, and qrels graded-relevance scales for all evaluation datasets (Section 4).
B Training Details
B.1 Linear Regression
We implement the linear regression baseline (Section 3.5.2) using scikit-learn (Pedregosa et al., 2011). Queries are vectorized via TfidfVectorizer with 1–4 word n-grams (ngram_range=(1,4)), English stop-word removal, sublinear term-frequency scaling (sublinear_tf=True), and document-frequency cutoffs min_df = 2 and max_df = 0.95 over an unbounded vocabulary. Ridge regression (Ridge) is fit with regularization strength , a learned intercept, and default solver selection. Predictions are clipped to [0.01, 1.0] at inference time.
B.2 RoBERTa
We fine-tune roberta-large via Hugging Face Transformers Trainer, adding a linear regression head over the pooler output with 0.01 dropout on attention and pooled representations. Queries are truncated to length 64. Optimization uses AdamW (learning rate , linear schedule, 500 warmup steps, weight decay 0.001, gradient clipping 0.5) with per-device batch size 256 and fp16 mixed precision for up to 10 epochs (seed 42). We evaluate every 200 steps and apply early stopping (patience 10) based on evaluation loss. The interval variant minimizes satisficing loss against ; the point variant minimizes MSE against scalar target .
B.3 ModernBERT
We fine-tune answerdotai/ModernBERT-large in two input configurations: a query-only variant (max length 64, batch size 256) mirroring RoBERTa, and a passage-conditioned variant ([CLS] Query [SEP] Sparse Top-1 [SEP] Dense Top-1 [EOS], max length 1024, batch size 8) taking top-1 passages from the evaluation retrievers. Both attach a linear head over the [CLS] token (dropout 0.01) and optimize against interval targets . All optimization, scheduling, loss evaluation, early-stopping criteria, and random seeds match the RoBERTa setup (Appendix B.2).
C In-Context LLM Prediction Details
C.1 Exemplar Retrieval
For target query q, we retrieve and union top-k (k = 5) training queries from two independent indices built over the training set:
Dense index. Queries are embedded via SentenceTransformers (trust_remote_code=True, normalize_embeddings=True) in bfloat16. Target q is embedded identically and scored by cosine similarity (equivalent to inner product post-normalization) to retrieve top k = 5.
Sparse index. Training query texts are indexed via with default tokenization and BM25 parameters to retrieve top .
Union and exemplar payload. Deduplicating by query_id yields up to 10 exemplars. Each exemplar carries its optimal weight interval and its training-split metric score (MRR@10 or nDCG@10) under its best weight.
C.2 LLM Generation
We evaluate Qwen3-32B and Ministral-3-14B-Instruct-2512 using the Hugging Face library with device_map="auto". Inputs are processed using official chat templates (add_generation_prompt=True) alongside left-padded batched tokenization (pad_token = eos_token). The full prompt template is shown in Figure 5.
Qwen3. Loaded via AutoModelForCausalLM with 4-bit quantization (BitsAndBytesConfig, bnb_4bit_compute_dtype=torch.bfloat16). Reasoning traces are disabled (enable_thinking=False). Generation uses max_new_tokens=10, temperature=0.1, do_sample=True, and pad_token_id=eos_token_id.
Ministral-3. Loaded in FP8 via Mistral3ForConditionalGeneration with FineGrainedFP8Config(dequantize=True). Inputs are filtered to input_ids and attention_mask. Generation uses max_new_tokens=10, temperature=0.1, and do_sample=True.
https://github.com/xhluca/bm25s
| Dataset | #Train | #Dev | #Test | #Passages | Relevance scale |
|---|---|---|---|---|---|
| MS MARCO | 502,939 | 6,980 | 43 | 8,841,823 | (train/dev); (test) |
| NQ | 92,468 | 2,893 | - | 3,040,270 | (train); (dev) |
| ACORD | 51 | 6 | 57 | 3,931 | |
| NFCorpus | 2,590 | 324 | 323 | 3,633 |
Table 4: Per-dataset statistics: number of queries in each split, total passage-collection size, and graded-relevance scale used in the qrels.
Invalid-output handling. Output strings are parsed with regular expression \d*. \d+ for floats, falling back to \b[01]\b for integers. Extracted values are clipped to [0, 1] and rounded to two decimal places. Parse failures default to .
D Per-Query nDCG Sensitivity to Fusion Weight
Figure 6 illustrates nDCG@10 across varying RRF fusion weights for nine representative ACORD queries (RM3, Qwen3). The dashed lines mark per-query optimal weights; flat plateaus around these peaks confirm that many queries exhibit optimal weight intervals rather than isolated points.
E Per-Query Optimal Weight Distribution: Full Results
Figure 7 provides the per-query mean optimal weight distributions on the evaluation split across all four retriever pairs.
F Additional Results: Recovery, Significance, and Three-Retriever Fusion
F.1 Anatomy of Unreachable Queries
Table 5 categorizes unreachable queries ( ) by candidate availability prior to fusion. This isolates complete retrieval failures (absent from both top-200 candidate lists) from depth-ranking failures (present in candidate pools but too deeply ranked to surface in the fused top 10 under any weight ).
F.2 Interval Width Statistics
Table 3 reports how often is empty, a single point, a single interval, or multi-interval, but not how wide those intervals are – the quantity that determines how hard a query is to hit. Table 6 reports the width of the primary optimal interval over reachable queries, both overall and split by whether .
F.3 Full Headroom Recovery
Table 7 presents the per-cell headroom recovery scores, across all dataset and retriever combinations.
F.4 Multiple-Testing Correction
Table 8 summarizes multiple-testing adjustments across the 128 paired t-tests described in Section 3.4 (8 query-adaptive methods × 16 dataset-retriever configurations), with Bonferroni and BH-FDR correction for the multiple-comparisons setting. We also evaluate whether a dataset-level static weight baseline (Mean Optimal Weight, MOW) independently outperforms standard RRF across its 16 configurations ( ). MOW nominally outperforms standard RRF in 9 configurations, 8 of which survive Bonferroni correction, primarily concentrated on Qwen3-paired configurations.
F.5 Grid Discretization Sensitivity
We test whether the grid () is fine enough to localize by comparing it against a finer grid. For each query and retriever pair we measure (i) the change in total optimal-interval length, (ii) interval disagreement (union – intersection) between the two grids, and (iii) the resulting change in the retrieval metric at the mean best weight. Table 9 reports the range across the four retriever pairs per dataset. The effect is negligible everywhere: interval length changes by at most 0.0068, disagreement by at most 0.011, and the retrieval metric by at most 0.0007, consistent with retrieval metrics being piecewise constant in , so a finer grid only sharpens interval endpoints rather than creating or removing them. The grid used throughout the paper is therefore not an artifact of the chosen resolution.
LLM Weight Prediction Prompt Template
System:
You are an expert search system optimizer. Your task is to predict the optimal weight for combining a sparse retriever and a dense retriever for a given search query.
STRICT CONSTRAINT:
You must output ONLY a single float number between 0.00 and 1.00. Do not include any reasoning, markdown formatting, explanation, or conversational text. Just the number.
Context (Similar Queries from Train Split):
For each historical query, you are provided its score and its optimal weights (a list of weights that yielded the best score, representing the weight given to the sparse retriever).
[1] Query: "[Example Query 1]" Optimal Weights: [0.12, 0.25] Score (nDCG@10): 0.842
...
[10] Query: "[Example Query 10]" Optimal Weights: [0.75, 0.90] Score (nDCG@10): 0.913
Task:
Based on the optimal weights of the similar context queries, predict a single optimal weight for the Target Query.
Target Query:
Query: {{target_query}}
Predicted Optimal Weight:
Figure 5: Few-shot prompt for LLM-based weight prediction.
| Dataset | Retrievers | # Unreachable | Neither in Top-200 | ≥1 in Top-200 |
|---|---|---|---|---|
| MS MARCO | BM(M) | 2106 | 20.8 | 79.2 |
| BM(Q) | 1831 | 12.9 | 87.1 | |
| RM(M) | 2115 | 20.8 | 79.2 | |
| RM(Q) | 1865 | 12.7 | 87.3 | |
| NQ | BM(M) | 785 | 20.1 | 79.9 |
| BM(Q) | 589 | 10.5 | 89.5 | |
| RM(M) | 858 | 20.0 | 80.0 | |
| RM(Q) | 621 | 9.3 | 90.7 | |
| NFCorpus | BM(M) | 73 | 34.2 | 65.8 |
| BM(Q) | 61 | 32.8 | 67.2 | |
| RM(M) | 75 | 30.7 | 69.3 | |
| RM(Q) | 59 | 32.2 | 67.8 |
Table 5: Breakdown of unreachable queries ( ) by candidate availability. “Neither in Top-200” and “≥1 in Top-200” are percentages of that row’s unreachable-query count (column 3), not of all evaluation queries, indicating whether the qrels-relevant document is absent from, or present in, at least one individual retriever’s top-200 list. ACORD has zero unreachable queries across all four retriever pairs (Table 3) and is omitted. Computed directly from the raw top-200 TREC run files for each retriever, cross-referenced against qrels.
F.6 Error Analysis: Query-Feature Correlates of Misprediction
To test whether mispredicted queries are identifiable from surface query properties, we label each query as well- or poorly-predicted (predicted weight outside vs. inside , pooled over methods) and compute point-biserial correlations against 15 query features, including length (words/characters), average term rarity, named-entity count, digit presence, WH-question type, and WordNet-based ambiguity (polysemy). Table 10 reports the strongest correlate per dataset.
No query feature explains more than of variance in misprediction on the two large datasets (strongest on MS MARCO, 0.09 on NQ), and the ambiguity signal shows essentially no correlation on any dataset (). The one directionally consistent, if weak, signal across all four

Query: cap on liability
Query: compliance with law carveout to cap on liability
Query: fraud, gross negligence or willful misconduct exception to waiver of indirect damages via indemnification carveout

Query: indemnification clauses that do not include hold harmless
Query: indemnification covers indirect claims
Query: indemnification of third party claims

Query: personal or bodily injury exception to waiver of indirect damages via indemnification carveout
Query: third party IP infringement indemnity
Query: warranty disclaimer clause that disclaims implied warranties of merchantability and fitness for a particular purpose
Figure 6: nDCG@10 vs. RRF fusion weight for nine ACORD queries (RM3+Qwen3, train, top-200). Dashed line: each query's mean optimal weight.
| Dataset | Mean Width | Median Width | Mean Width | Mean Width |
|---|---|---|---|---|
| MS MARCO | .339 | .220 | .699 | .148 |
| NQ | .431 | .340 | .759 | .181 |
| ACORD | .074 | .030 | .143 | .063 |
| NFCorpus | .270 | .075 | .780 | .088 |
Table 6: Width of the primary optimal interval (Section 3.2) over reachable queries (), aggregated across the four retriever pairs per dataset; single-point queries contribute width 0. Splitting by whether shows the gap directly: queries where standard RRF already lands inside have intervals wider on average than queries where it does not – exactly the queries a predictor must move away from to win on are also the ones with the narrowest, hardest-to-hit targets.
datasets is that longer queries with rarer terms are marginally harder to predict. Mispredicted queries are thus not identifiable from surface query properties alone, reinforcing that the per-query optimum is not predictable from the query text alone (§5.2).
F.7 Extending to k=3
Fusing three retrievers (BM25, RM3, Qwen3) across the 3-retriever simplex raises the oracle performance ceiling across all datasets compared to 2-retriever pairings (Table 11).
Table 12 evaluates Ministral3 FS (IW) and ModernBERT Passage Conditioned against unweighted 3-way RRF. Both dynamic methods consistently surpass unweighted 3-way RRF. Improvements are statistically significant (p < .001, Bonferroni-corrected) on MS MARCO, NQ, and NFCorpus (ModernBERT PC only), but non-significant on ACORD.
Training-budget caveat. ModernBERT-PC models reflect varying training budgets: NFCorpus (10 epochs), MS MARCO and NQ (capped at 20,000 steps; 0.5 and 2.4 epochs), and ACORD (48-step sanity check). The ACORD and MS MARCO/NQ ModernBERT-PC numbers are therefore not directly comparable to a converged run.

Figure 7: Distribution of the per-query mean optimal weight on the evaluation split across all four retriever pairs, for queries with .
| Method | MS MARCO | NQ | ACORD | NFCorpus | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| BM(M) | BM(Q) | RM(M) | RM(Q) | BM(M) | BM(Q) | RM(M) | RM(Q) | BM(M) | BM(Q) | RM(M) | RM(Q) | BM(M) | BM(Q) | RM(M) | RM(Q) | |
| Mean Optimal Weight | 5.6 | 13.7 | 8.7 | 17.9 | 1.9 | 16.0 | 18.2 | 30.2 | -1.1 | -1.2 | 7.1 | 0.4 | -5.3 | 15.1 | -1.0 | 7.9 |
| Ridge Regressor (MBW) | 6.5 | 15.1 | 8.9 | 18.3 | 3.0 | 15.8 | 17.2 | 29.8 | 8.2 | -1.5 | 4.8 | 2.2 | -3.9 | 15.2 | 0.0 | 7.4 |
| RoBERTa Regression (IW) | 9.0 | 17.9 | 12.5 | 19.5 | 5.7 | 16.6 | 18.5 | 32.9 | -8.9 | 19.1 | -1.4 | 12.5 | -2.1 | 16.4 | 0.3 | 7.0 |
| ModernBERT (IW) | 12.0 | 20.9 | 13.8 | 22.9 | 6.1 | 20.3 | 18.6 | 37.1 | -10.3 | 21.4 | -1.3 | 13.9 | -2.3 | 17.7 | 6.4 | 10.6 |
| ModernBERT Passage Cond. | 11.8 | 21.2 | 13.0 | 27.2 | 18.8 | 22.0 | 22.8 | 38.6 | 15.5 | 20.0 | 11.9 | 18.4 | -4.6 | 29.3 | 5.4 | 8.5 |
| DAT Qwen3 | 3.0 | 6.1 | 0.5 | 6.5 | 7.4 | 15.6 | 11.3 | 20.1 | -2.3 | 3.1 | 23.7 | 14.8 | -10.3 | 21.4 | -2.1 | 15.6 |
| DAT Ministral3 | 6.0 | 15.0 | 6.8 | 18.1 | 14.5 | 25.7 | 28.6 | 40.0 | -8.8 | 10.0 | 7.0 | 8.9 | -25.5 | 12.3 | -24.9 | 16.5 |
| Qwen3 FS (IW) | 11.5 | 26.2 | 12.5 | 28.9 | 9.0 | 26.6 | 26.0 | 45.2 | 7.2 | 5.7 | 0.0 | -0.5 | -0.1 | 23.7 | 0.3 | 12.8 |
| Ministral3 FS (IW) | 10.9 | 35.4 | 15.1 | 39.0 | 5.1 | 35.0 | 39.1 | 61.1 | 10.0 | 15.4 | 7.1 | 15.7 | -3.1 | 24.9 | -12.3 | 3.9 |
Table 7: Headroom recovery (%): (Method – RRF)/(Oracle – RRF) × 100. Standard RRF is 0% and the oracle is 100% by construction. Values below zero indicate underperformance relative to standard RRF. Best per column in bold. (Recovery ratios are derived quantities, not directly significance-tested; see Table 2 for per-cell significance on the underlying metric.)
G Licenses and Terms of Use
All datasets, models, and software used in this work are publicly released for research use and, to our knowledge, do not contain personally identifying information about private individuals or offensive content. Our use is consistent with their stated licenses and terms.
• Datasets: MS MARCO (Microsoft Non-
Commercial Research License), Natural Questions (CC BY-SA 3.0), NFCorpus (Non-commercial research use), ACORD (CC BY 4.0).
- Retrieval Software: BM25 and RM3 via Pyserini (Apache 2.0); bm25s (MIT).
• Models: all-MiniLM-L6-v2, Qwen3-
| Baseline | sig. (p<.05) | Bonferroni | BH-FDR |
|---|---|---|---|
| vs. RRF (standard) | 75 / 128 | 59 / 128 | 74 / 128 |
| vs. Mean Optimal Weight | 48 / 128 | 35 / 128 | 46 / 128 |
Table 8: Multiple-testing summary for the query-adaptive-methods-vs-baseline family (8 methods × 16 dataset-retriever-pair combinations = 128 paired t-tests per baseline). A cell counts if the method's mean is significantly higher than the baseline's (two-sided). Bonferroni ; BH-FDR at .
| Dataset | Interval len | Disagreement | Metric |
|---|---|---|---|
| MS M. | 0.0040–0.0046 | 0.0059–0.0071 | ≤0.0005 |
| NQ | 0.0033–0.0039 | 0.0043–0.0050 | ≤0.0004 |
| NFCorpus | 0.0035–0.0040 | 0.0061–0.0070 | ≤0.0003 |
| ACORD | 0.0025–0.0068 | 0.0087–0.0109 | ≤0.0007 |
Table 9: Sensitivity of to grid resolution (0.01-step vs. 0.001-step), ranges across the four retriever pairs per dataset, mean per-query values.
| Dataset | Strongest feature | Ambiguity | |
|---|---|---|---|
| MS M. | query length | +0.07 | -0.01 |
| NQ | rare/singleton terms | +0.09 | -0.02 |
| NFCorpus | term rarity (opp. sign) | -0.17 | +0.05 |
| ACORD | query length | +0.28 | +0.08 |
Table 10: Point-biserial correlation between query features and misprediction (well- vs. poorly-predicted queries), strongest feature per dataset. ACORD has only 57 eval queries; its larger coefficient is high-variance.
| Dataset | Best | ||
|---|---|---|---|
| MS MARCO | .457 | .477 | +.020 |
| NQ | .549 | .578 | +.029 |
| ACORD | .231 | .244 | +.013 |
| NFCorpus | .473 | .482 | +.009 |
Table 11: Oracle ceiling: best 2-retriever pair vs. the 3-retriever (BM25, RM3, Qwen3) simplex oracle, per-query best weight, averaged over the eval set. Metric is MRR@10 (MS MARCO, NQ) / nDCG@10 (ACORD, NFCorpus).
| Method | MS M. | NQ | ACORD | NFC. |
|---|---|---|---|---|
| Oracle | .477 | .578 | .244 | .482 |
| Headroom (Or.-RRF) | .230 | .264 | .112 | .098 |
| Standard RRF () | .247 | .314 | .132 | .384 |
| Ministral3 FS (IW) | .340* | .435* | .148 | .398* |
| ModernBERT Passage Cond. | .306* | .401* | .142 | .398* |
| Recovery (%) | ||||
| Ministral3 FS (IW) | 40.5 | 46.0 | 14.5 | 14.2 |
| ModernBERT Passage Cond. | 25.7 | 33.0 | 8.9 | 14.3 |
Table 12: fusion (BM25, RM3, Qwen3): performance and headroom recovery (%) vs. unweighted RRF. Stars: paired t-test vs. RRF, *p<.05.
Embedding-8B, ModernBERT-large, Qwen3-32B, and Ministral-3-14B-Instruct-2512 (Apache 2.0); RoBERTa-large (MIT).
- Libraries: scikit-learn and PyTorch (BSD-3-Clause); Hugging Face Transformers, Datasets, and SentenceTransformers (Apache 2.0).
H AI Assistance Disclosure
We used general-purpose AI assistants in a limited, supervised capacity: grammar and phrasing polish during writing, and brainstorming during research discussions.