Generative Query Reformulation for Effective Adhoc Search

Xiao Wang, Sean MacAvaney, Craig Macdonald, Iadh OunisarXiv 2023

TL;DR

This paper explores using generative language models like T5 to automatically rewrite search queries, bridging the gap between how users search and how documents are written. By leveraging pseudo-relevance feedback and smart weak supervision, their "GenPRF" approach significantly boosts retrieval effectiveness across standard benchmarks, offering a simpler and more efficient alternative to heavy document-expansion models.

What Problem Does This Paper Address?

In Information Retrieval (IR), the "vocabulary mismatch" problem is a classic hurdle: users often use different words to describe a concept than the authors of relevant documents. Traditional solutions like query expansion (adding related terms to a query) or document expansion (adding predicted queries to documents at index time) help, but they have drawbacks. Statistical query expansion can be noisy, while document expansion is computationally expensive to run on every document in a massive collection.

With the rise of Large Language Models (LLMs), there's a new opportunity to perform Generative Query Reformulation. The authors want to know: Can we use models like T5 to rewrite queries into more effective versions? And can we do this efficiently without needing massive, human-labeled datasets?

Methods

The authors propose two main frameworks:

  1. GenQR: The model reformulates the query based solely on the original user input.
  2. GenPRF: The model uses Pseudo-Relevance Feedback (PRF)—taking the top-ranked documents from an initial search—as additional context to guide the reformulation.

They investigate two ways to harness these models:

  • Fine-tuning: Training a standard T5-base model on "weakly supervised" query pairs.
  • Prompting: Using an instruction-tuned model (FLAN-T5) with specific prompts to generate reformulations without additional training.

A key innovation is their Weak Supervision strategy. Since there are no large datasets of "perfectly rewritten queries," they create training pairs from existing search logs by assuming that two different queries are semantically similar if they both lead to the same relevant document. To clean this noisy data, they apply three filters:

  • Overlap Filter: Ensures the two queries return similar search results.
  • Effectiveness Filter: Ensures the "target" query in a pair actually performs better than the "source" query.
  • Stopwords Filter: Removes generic words to help the model focus on meaningful expansion terms.
Table 1: Summary of query pair training pools.

Datasets

  • Training: The MSMARCO document ranking dataset (~3.2M documents, 367K queries) was used to generate the weakly supervised training pairs.
  • Evaluation: The models were tested on four standard TREC collections:
  • TREC 2019 Deep Learning (Document and Passage tasks)
    • TREC Robust 2004 (Title and Description queries)
    • TREC Terabyte Track (GOV2)

Key Insights and Ideas

  • Filtering is a Win-Win: Applying the Overlap and Effectiveness filters reduced the training pool size significantly but maintained or even improved performance. As shown in the table below, these filters cut training time by up to 80% (from 168 minutes per epoch down to 34-55 minutes).
  • Context is King: GenPRF (using feedback documents) generally outperformed GenQR (query only). The model is better at "understanding" the user's intent when it can see snippets of what the search engine initially found.
  • Generative vs. Statistical: Unlike traditional methods like RM3, which just add a "bag of words," generative models produce well-formed, semantically rich expansions. For example, for the query "define visceral," T5PRF added precise terms like "viscera" and "body," whereas RM3 added broader, less relevant terms like "cardiac" or "fat."
  • Efficiency at Query Time: Unlike doc2query, which requires processing every document in the index, these generative models only run at query time on a handful of documents, making them much more practical for large-scale systems.
Table 2: RQ1: Comparison between weak supervision filters. Superscripts a/b denote significant improvements (paired t-test with Holm-Bonferroni correction, 𝑝< 0.05) over the indicated baseline model. The highest value in each column is boldfaced.

Key Results

  • Superior Performance: The T5PRF model significantly outperformed traditional baselines (BM25+RM3) across almost all metrics (MAP, nDCG@10, Recall) on multiple datasets.
  • Competitive with Heavyweights: T5PRF (based on a 220M parameter model) achieved results comparable to much more complex neural PRF models like BERT-QE, which uses three stages of the much larger BERT-Large model.
  • Prompting Power: FLAN-T5 (via prompting) showed impressive zero-shot capabilities, particularly on the TREC 2019 tasks, though it was more sensitive to the specific prompt used compared to the fine-tuned T5 models.
Table 3: RQ2: Effect of the PRF contextualised input. Superscripts a/b/c/d denote significant improvements (paired t-test with Holm-Bonferroni correction, 𝑝< 0.05) over the indicated baseline model(s). The highest value in each column is boldfaced.

Limitations and Future Work

  • Prompt Sensitivity: The performance of prompted models (FLAN-T5) varied significantly depending on the prompt, suggesting that "prompt engineering" is a major hurdle for zero-shot deployment.
  • Topic Drift: If the initial search results are poor, GenPRF can be misled by the "context," leading to reformulations that drift away from the user's original intent.
  • Future Directions: The authors suggest exploring more efficient inference techniques and "iterative prompt engineering" to further refine how LLMs are used for search. They also aim to improve how they select the most valuable feedback data to feed into the generator.

Summary updated

BibTeX
@misc{wang2023generative,
  author = {Xiao Wang and Sean MacAvaney and Craig Macdonald and Iadh Ounis},
  title = {{Generative Query Reformulation for Effective Adhoc Search}},
  year = {2023},
  eprint = {2308.00415},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2308.00415},
}
Figure