Abstract
Query Reformulation (QR) is a set of techniques used to transform a user's original search query to a text that better aligns with the user's intent and improves their search experience. Recently, zero-shot QR has been a promising approach due to its ability to exploit knowledge inherent in large language models. Inspired by the success of ensemble prompting strategies which have benefited other tasks, we investigate if they can improve query reformulation. In this context, we propose two ensemble-based prompting techniques, GenQREnsemble and GenQRFusion which leverage paraphrases of a zero-shot instruction to generate multiple sets of keywords to improve retrieval performance ultimately. We further introduce their post-retrieval variants to incorporate relevance feedback from a variety of sources, including an oracle simulating a human user and a "critic" LLM. We demonstrate that an ensemble of query reformulations can improve retrieval effectiveness by up to 18% on nDCG@10 in pre-retrieval settings and 9% on post-retrieval settings on multiple benchmarks, outperforming all previously reported SOTA results. We perform subsequent analyses to investigate the effects of feedback documents, incorporate domain-specific instructions, filter reformulations, and generate fluent reformulations that might be more beneficial to human searchers. Together, the techniques and the results presented in this paper establish a new state of the art in automated query reformulation for retrieval and suggest promising directions for future research.
Introduction
Search engines frequently encounter the "vocabulary mismatch" problem, where users provide vague or ambiguous queries that do not align with the technical or domain-specific terminology found in relevant documents. While Large Language Models (LLMs) have shown promise in expanding queries by generating additional keywords, they are highly sensitive to prompt engineering. A minor change in instruction can lead to significantly different retrieval outcomes. This research addresses this brittleness by introducing ensemble-based prompting strategies that leverage multiple diverse instructions to create more robust and effective query reformulations.
Methodology
The core of the proposed approach lies in two ensemble strategies designed to capture a broader "semantic net" of the user's intent.
GenQREnsemble
In the pre-retrieval GenQREnsemble method, a base instruction is paraphrased $N$ times using an LLM. The original user query $q_0$ is then processed by the LLM $N$ times, each time paired with a different paraphrased instruction $I_i$. The resulting keyword sets $k_i$ are concatenated into a single "bag-of-words" reformulated query used for document retrieval.
GenQRFusion and Relevance Feedback
GenQRFusion takes a different approach by generating $N$ separate reformulated queries. Each query retrieves its own set of documents, which are then merged using Reciprocal Rank Fusion (RRF).
To further enhance performance, the authors introduced post-retrieval variants (denoted with -RF). These models incorporate Relevance Feedback by prepending snippets from top-ranked documents to the prompt, allowing the LLM to refine its keyword generation based on actual search results. Additionally, a "critic" LLM (GPT-4) can be employed to filter irrelevant terms or transform keyword lists into fluent, human-readable sentences.
Experimental Results
The methods were evaluated across four diverse benchmarks: TREC 19 Passage Ranking (TP19), TREC Robust 2004 (TR04), Webis Touche (WT), and DBPedia Entity (DE).
Key findings include:
- Performance Gains: GenQREnsemble improved retrieval effectiveness by up to 18% on nDCG@10 in pre-retrieval settings.
- Robustness: The ensemble approach significantly reduced the performance degradation often seen when a single prompt fails to capture a query's context.
- Feedback Efficacy: The inclusion of relevance feedback consistently boosted scores, with the GenEnsemblePRF variant outperforming standard Pseudo-Relevance Feedback (PRF) baselines like RM3.
Conclusion
By ensembling multiple views of search intent through paraphrased prompting and result fusion, this work establishes a new state-of-the-art for automated query reformulation. While the computational cost of running multiple prompts remains a consideration for real-time systems, the significant gains in retrieval accuracy and robustness provide a strong foundation for future research in generative search technologies.
Summary updated