English static mirror for SEO/GEO · AI-assisted translation · Read Chinese original

Query Rewriting in Retrieval-Augmented Large Language Models (EMNLP 2023)

Forum topic · 小凯 · 2026-07-05

Summary

This EMNLP 2023 paper, 'Query Rewriting in Retrieval-Augmented Large Language Models,' addresses a key weakness in retrieval-augmented generation (RAG): user queries are often unsuitable as direct search inputs, causing irrelevant retrievals and hallucinated answers. The authors propose the Rewrite-Retrieve-Read (RRR) framework, which inserts a query rewriter between the user input and the web search API of a retrieval-augmented LLM. Unlike prior pipeline-style approaches where the rewriter is fixed, the rewriter in RRR is trainable: it is first fine-tuned for the rewriting task, then aligned with the frozen downstream reader LLM through reinforcement learning, optimizing the rewritten query for end-task performance. Experiments on open-domain QA benchmarks with a search-augmented GPT-3.5 setup show consistent performance gains over standard retrieval-augmented prompting, including in few-shot settings. The work reframes retrieval augmentation as a reconfigurable pipeline and demonstrates that adapting the query—rather than only the reader—yields better search results and answer quality. Source: https://aclanthology.org/2023.emnlp-main.322/

Query Rewriting in Retrieval-Augmented Large Language Models (EMNLP 2023)

Source: https://aclanthology.org/2023.emnlp-main.322/

Key points

  • Problem: In retrieval-augmented generation (RAG), raw user queries are frequently ill-formed or ambiguous as search inputs, leading to irrelevant retrieval results and hallucinated or incorrect LLM answers.
  • Proposed solution: The paper introduces the Rewrite-Retrieve-Read (RRR) framework, which adds an explicit query rewriter module between the user input and the web search API used by the retrieval-augmented LLM.
  • Trainable rewriter: Unlike previous pipeline designs where the rewriter is frozen, RRR treats rewriting as the bottleneck of the pipeline and makes it trainable:
  • 1. The rewriter is fine-tuned on query rewriting data to learn the rewriting task. 2. It is then aligned with the frozen downstream reader LLM via reinforcement learning, optimizing the rewritten query for final answer quality.
  • Results: In experiments using a search-augmented GPT-3.5 setup on open-domain QA benchmarks, RRR achieves consistent improvements over standard retrieval-augmented prompting, including in few-shot settings.
  • Conceptual contribution: The work reframes RAG as a flexible, reconfigurable pipeline in which the query—not just the reader—can be adapted.
  • Method overview

    The framework follows a four-stage inference path:

    1. Rewrite: A trainable rewriter transforms the original user query into a search-friendly query. 2. Retrieve: The rewritten query is issued to a web search API (e.g., a commercial search engine) to fetch relevant passages. 3. Read: The reader LLM conditions on the original question, retrieved passages, and few-shot examples to generate the answer. 4. Optimize: Training alternates between supervised fine-tuning of the rewriter and reinforcement learning that uses reader feedback (answer correctness) as the reward signal, while keeping the large reader LLM frozen.

    Context and relevance

  • Query rewriting and expansion sit in the broader query understanding space of search and retrieval systems, alongside related directions such as aligned query expansion, LLM-based query expansion, conversational query rewriting (e.g., Few-Shot Generative Conversational Query Rewriting, SIGIR 2020), and query decomposition for retrieval.
  • The work is frequently cited as an early, systematic demonstration that optimizing the query side of the RAG pipeline yields measurable end-task gains, anticipating later agentic approaches where retrieval strategy itself is learned.
  • Limitations noted by the community

  • Experiments rely on a web search API and GPT-3.5-class readers; results may vary with different retrievers, local corpora, or stronger reader models.
  • Quantitative results should be verified against the original PDF tables before citation.
  • Reinforcement learning over rewriters adds training complexity and depends on a reliable reward signal from the reader.
  • References

  • Original paper: *Query Rewriting for Retrieval-Augmented Large Language Models*, EMNLP 2023. https://aclanthology.org/2023.emnlp-main.322/

Tags

#retrieval-augmented-generation#query-rewriting#large-language-models#information-retrieval#reinforcement-learning#rag#emnlp-2023#search

This page is an English static mirror generated for search and AI citation. It may be a full translation or structured summary of the Chinese original. Canonical interactive discussion lives on the Chinese page: https://zhichai.net/topic/178208811