Manuscript Offprint

arXiv:2609.05637

Better Together: Complementary Query Rewriting Under a Strong RAG Baseline

Sara Shanian, Xiaoqin Yi, Pavlo Ruban, Kurt MacDonald

Abstract

A popular way to improve Retrieval-Augmented Generation (RAG) is to rewrite the user's question into several variants and search with all of them. We test whether this actually helps once the underlying search is already strong. Under one fixed, competitive pipeline (BGE dense retrieval, cross-encoder reranking, and MMR diversification), we compare four query-rewriting strategies (S1–S4) against two strong LLM baselines (HyDE, Query2Doc) on three datasets (HotpotQA, AmbigNQ, and the 512K-document EnterpriseRAG-Bench) over three seeds with paired-bootstrap significance tests.

Our headline result is that rewriting alone is at best competitive with a strong baseline, but combining methods yields outsized gains because different strategies fail on different questions. A post-hoc union of four methods (S1+S3+S4+HyDE; seed-42 analysis) improves HIT@10 over the dense baseline by +12.5 points on enterprise-style data (51.70 vs 39.22), and a five-method union reaches 52.98 (+13.8 over baseline). Budget-matched controls (TopK-100 reranking, multi-pass HNSW) capture only ~40% of this gain, confirming that complementarity, not retrieval budget, is the primary driver. On HotpotQA the union adds +1.6 to +1.8 points (p<0.001p < 0.001), saturating the all-method oracle; on AmbigNQ the same fusion hurts (−2.4-2.4 below the best solo, p<0.001p < 0.001), and we analyze when and why. Because rewriting is expensive (one LLM call each), we turn this into a cost-aware heuristic evaluated in simulation: a confidence-gated router that runs rewriting only when the baseline's own top-1 score is low. It captures about half of the enterprise full-merge gain (+4.3 HIT@10 over the baseline) while paying the rewriting cost on <40% of queries, and automatically declines to rewrite on AmbigNQ, sidestepping the loss that blind merging causes. A downstream answer-quality evaluation confirms that the router improves F1 by +1.92 (p<0.01p < 0.01) at roughly 40% of the expansion cost. In short: treat query rewriting as a complementary coverage source, applied through cost-aware routing, not as a standalone replacement for a strong baseline.

1 Introduction

Retrieval-Augmented Generation (RAG) grounds Large Language Model (LLM) answers in documents retrieved from a corpus (Lewis et al., 2020). A widely held belief, baked into popular tooling (LangChain, 2025), is that searching with a single query is brittle, and that rewriting the query into several variants improves coverage (Li et al., 2024; Zhang et al., 2025).

We put this belief to the test, and add one missing ingredient: a strong baseline. Most prior comparisons rewrite on top of a weak retriever (a bare bi-encoder, no reranking), which makes almost any rewrite look good. We instead fix a competitive modern pipeline: BGE dense retrieval, a cross-encoder reranker, and Maximal Marginal Relevance (MMR) diversification. We then ask: does rewriting still help on top of that? In plain terms, the answer is:

(i) Alone, rewriting is competitive at best. On all three datasets, multi-query rewriting strategies (S2–S4) match or modestly beat the no-LLM baseline (S1), and LLM document-generation methods (HyDE, Query2Doc) perform similarly. No single strategy dominates across datasets.

(ii) Together, they win. Methods fail on different questions, so merging them beats the best single method, hugely so on enterprise data: a post-hoc ensemble reaches 52.98% HIT@10 (+13.8 over the S1 baseline), within ~2.8 points of the all-method oracle (55.74). Budget-matched baselines capture only ~40% of this gain, confirming that complementarity, not retrieval depth, is the driver.

Contributions. (1) A controlled, statistically rigorous comparison of six methods under one fixed strong pipeline, three datasets, three seeds (Sections 3–5.1). (2) The complementarity result: rewriting helps by combination, not replacement, validated against budget-matched controls (Sections 5.2–5.3). (3) A negative result with its mechanism: why combining fails on AmbigNQ (Section 6). (4) A cost-aware, confidence-gated router that, in simulation, realizes about half of the enterprise full-merge gain (+4.3 HIT@10) at <40% of the rewriting cost and self-disables where rewriting hurts (Sections 5.4–5.5). (5) A downstream answer-quality evaluation showing that the router improves answer F1 by +1.92 (p<0.01p < 0.01) over the baseline while preserving near-full-merge quality.

References (20)