TL;DR
ReFormeR shifts query reformulation from an unconstrained, black-box LLM generation task into a structured, pattern-guided process. By learning a compact library of explicit reformulation strategies (such as "sense disambiguation" or "acronym expansion") from historically successful search pairs, it selects and applies targeted constraints to new queries. This approach significantly improves retrieval precision, reduces query drift, and consistently outperforms both classical feedback methods and state-of-the-art LLM expansion baselines.
What Problem Does This Paper Address?
When users type vague or short queries into a search engine, the system often struggles to find relevant documents due to a "vocabulary gap" or inherent ambiguity. Recently, researchers have used Large Language Models (LLMs) to rewrite or expand these queries. However, most current methods treat the LLM as a black box—prompting it to generate synonyms or pseudo-documents without any explicit control over how or why the query is being altered.
This lack of constraint leads to two major issues: query drift (where the LLM introduces noisy, irrelevant terms that steer the search away from the user's original intent) and a lack of interpretability (making it hard to diagnose why a specific reformulation failed or succeeded). ReFormeR addresses this gap by making the reformulation policy explicit, controllable, and transferable across different search collections.
Methods
Instead of directly asking an LLM to rewrite a query, ReFormeR breaks the process down into three distinct phases:
- Pattern Induction (Library Creation): The authors used an LLM (Qwen2.5-72B) to analyze thousands of high-performing query-reformulation pairs from past data. The LLM identified the underlying semantic transformation for each pair and consolidated them into a compact library of 10 distinct, reusable reformulation patterns (e.g., Clarify Intent, Conceptual Shift, Location Specification, Semantic Clarification).
- Context-Aware Selection: For a new, unseen query, ReFormeR first runs a baseline retrieval step (using BM25) to gather the top-$k$ documents. A trained selector model ($s_\theta$) analyzes both the query and this initial retrieval context to predict which pattern from the library is most appropriate to fix the query's specific weakness.
- Controlled Generation: Finally, a conditional generator ($G_\phi$) takes the original query, the retrieval context, and the chosen pattern to generate a targeted reformulation. This text is then concatenated with the original query to form the final search string.
Datasets
The authors utilized the following datasets for training and evaluation:
- Matches Made in Heaven (Diamond subset): A dataset consisting of MS MARCO training queries paired with ideal reformulations that achieve perfect retrieval effectiveness (MRR=1). This was used to induce the 10 core reformulation patterns.
- TREC DL 2019 & TREC DL 2020: Standard, highly reliable benchmark datasets featuring comprehensive graded relevance judgments.
- TREC DL Hard: A challenging dataset specifically annotated to evaluate deep learning search models on difficult, sparse, or ambiguous queries.
Key Insights and Ideas
- Constraints Breed Stability: Unconstrained LLMs often hallucinate or over-expand queries. Forcing the LLM to operate under the strict boundaries of a specific pattern (e.g., only specify a location or only clarify a term's sense) prevents query drift and preserves user intent.
- Diagnose Before Prescribing: By looking at the initial top-retrieved documents before reformulating, the system can diagnose what is wrong with the query. If the top results are mixed across different meanings of a word, the selector opts for Semantic Clarification.
- Plug-and-Play Compatibility: ReFormeR isn't just a standalone method; it can be embedded directly into the prompt contexts of existing state-of-the-art context-aware expansion pipelines (like Query2Doc or MUGI), boosting their performance even further.
Key Results
ReFormeR demonstrated substantial improvements across all evaluated benchmarks:
- Vs. Traditional Feedback: Compared to classical statistical expansion methods like RM3 and Rocchio, ReFormeR achieved up to a 16% improvement in nDCG@10 on TREC DL 2020 and a 26–34% increase in mAP@1k on the challenging TREC DL Hard dataset.
- Vs. Keyword LLM Methods: ReFormeR outperformed unconstrained generative methods like GenQREnsemble, improving nDCG@10 by 26% on TREC DL 2020.
- State-of-the-Art Integration: When paired with advanced dense retrieval frameworks like MUGI, the ReFormeR-enhanced variant established new best-in-class results on TREC DL Hard, achieving an mAP@1k of 0.250 and an nDCG@10 of 0.375 (relative gains of 11.6% and 8.1% over the baseline MUGI model).
Limitations and Future Work
Not discussed in the paper.
Summary updated