Enhancing Conversational Search: Large Language Model-Aided Informative Query Rewriting

Fanghua Ye, Meng Fang, Shenghui Li, Emine Yilmaz

Abstract

Query rewriting plays a vital role in enhancing conversational search by transforming context-dependent user queries into standalone forms. Existing approaches primarily leverage human-rewritten queries as labels to train query rewriting models. However, human rewrites may lack sufficient information for optimal retrieval performance. To overcome this limitation, we propose utilizing large language models (LLMs) as query rewriters, enabling the generation of informative query rewrites through well-designed instructions. We define four essential properties for well-formed rewrites and incorporate all of them into the instruction. In addition, we introduce the role of rewrite editors for LLMs when initial query rewrites are available, forming a “rewrite-then-edit” process. Furthermore, we propose distilling the rewriting capabilities of LLMs into smaller models to reduce rewriting latency. Our experimental evaluation on the QReCC dataset demonstrates that informative query rewrites can yield substantially improved retrieval performance compared to human rewrites, especially with sparse retrievers.

Introduction

In conversational search, users interact with systems through a series of turns, often using pronouns or omitting context (e.g., "Who is Elizabeth Blackwell?" followed by "Did she do well?"). To facilitate effective retrieval using standard search engines, the system must "rewrite" these context-dependent queries into standalone, unambiguous forms.

Traditionally, human-rewritten queries have been treated as the gold standard for training query rewriting models. However, this research identifies a "human bottleneck": humans tend to be "lazy" rewriters, providing just enough information to resolve ambiguity but omitting rich contextual details that could significantly aid retrieval systems. As shown in Figure 1, an informative rewrite goes beyond simple coreference resolution to include specific details from the conversation history, providing more "surface area" for the retriever to match relevant documents.

Comparison between human and informative query rewrites.

Methodology

The proposed framework leverages Large Language Models (LLMs), specifically ChatGPT, to generate high-quality, informative rewrites through two primary strategies:

LLM as Query Rewriter

The LLM is prompted to decontextualize queries based on four essential properties: Correctness (preserving intent), Clarity (understandable in isolation), Informativeness (incorporating context), and Nonredundancy (avoiding repetition). These properties are embedded within the prompt instructions and reinforced through few-shot demonstrations.

LLM as Rewrite Editor

To further refine the output, a "rewrite-then-edit" approach is introduced. In this mode, the LLM acts as an editor, taking an initial rewrite (generated by a smaller model or a first LLM pass) and improving it to fully address coreferences and omissions. This two-step process, illustrated in Figure 4, allows for self-correction and more robust context integration.

Prompting instructions and demonstrations for LLM as query rewriter and rewrite editor.

Model Distillation

To address the latency and cost constraints of deploying LLMs in production environments, the authors distilled the LLM's rewriting capabilities into a smaller T5 model. The LLM-generated "informative" rewrites serve as silver labels for fine-tuning, allowing the smaller model to mimic the high-performance rewriting behavior at a fraction of the computational cost, achieving a 6x reduction in latency.

Evaluation

The study utilized the QReCC dataset, a large-scale open-domain conversational search benchmark. The retrieval performance was evaluated using both sparse (BM25) and dense (GTR) retrievers.

Key Results

  • Retrieval Gains: On the QReCC dataset with a sparse retriever, the informative rewrite method (ED(Self)) achieved an MRR of 49.39, significantly outperforming the human rewrite baseline of 39.81—a nearly 10-point absolute improvement.
  • Dense Retrieval Impact: Even with advanced dense retrievers like GTR, LLM-aided informative rewrites surpassed human labels (44.99 vs 43.15 MRR).
  • Ablation Success: Removing the "informativeness" requirement from the prompt led to a measurable drop in performance, confirming that the specific instruction to be "as informative as possible" is a primary driver of success.

Discussion and Conclusion

The findings suggest that human rewrites are a sub-optimal target for conversational search. By prioritizing "informativeness" over mere "unambiguity," retrieval systems can achieve substantial performance improvements. The "rewrite-then-edit" strategy proves particularly effective at capturing nuanced context that single-pass models might miss. Future work will explore "retrieval-aware" rewriting, where the rewriting process is directly optimized based on feedback from the retrieval engine rather than just linguistic properties.

Summary updated

BibTeX
@inproceedings{ye2023enhancing,
  author = {Fanghua Ye and Meng Fang and Shenghui Li and Emine Yilmaz},
  title = {{Enhancing Conversational Search: Large Language Model-Aided Informative Query Rewriting}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  url = {https://openreview.net/forum?id=B2hLomEI0f},
}
Figure