Retrieval-Generation Synergy Augmented Large Language Models

Zhangyin Feng, Xiaocheng Feng, Dezhi Zhao, Maojin Yang, Bing Qin

TL;DR

The ITRG (Iterative Retrieval-Generation) framework creates a synergistic loop where Large Language Models (LLMs) and external retrievers help each other improve. By iteratively using LLM-generated content to refine search queries and using retrieved documents to ground LLM outputs, the system significantly boosts performance on complex, multi-step reasoning tasks.

What Problem Does This Paper Address?

While Large Language Models (LLMs) are impressive, they suffer from two major hurdles in knowledge-intensive tasks: limited "parametric" knowledge (what they learned during training) and a tendency to hallucinate.

Current solutions generally fall into two camps:

  1. Retrieve-then-read (RAG): Find relevant documents in a database and feed them to the LLM.
  2. Generate-then-read: Ask the LLM to generate its own "internal" documents to help it think before answering.

The authors argue these methods are isolated. Standard retrieval often fails because of the "semantic gap" between a short question and a detailed document. Conversely, LLM-generated documents can be factually wrong. This paper introduces ITRG, a framework that treats retrieval and generation as a collaborative, iterative process rather than a one-off pipeline.

High-level comparison of retrieval and generation methods

Methods

The core of ITRG is an iterative loop consisting of two main steps:

  • Generation Augmented Retrieval (GAR): Instead of just searching with the original question, the system uses the LLM’s output from the previous step to expand the query. These "pseudo-documents" provide more context, helping the retriever find more relevant information from the external corpus (like Wikipedia).
  • Retrieval Augmented Generation (RAG): The LLM then takes the newly retrieved documents and the original question to generate a more accurate document.

The authors propose two specific strategies for the RAG step:

  • Refine: The LLM updates its previous generation using only the newly discovered documents.
  • Refresh: To prevent the model from getting "stuck" on its own previous errors or hallucinations, the model starts from scratch in each iteration, generating a new document based on the question and the entire set of currently retrieved documents.

This process repeats for a set number of iterations ($T=5$ in their experiments), allowing the model to "follow a reasoning path" for complex questions.

The iterative ITRG framework in action

Datasets

The researchers evaluated ITRG on four open-domain question-answering benchmarks:

  • Single-hop QA: Natural Questions (NQ) and TriviaQA.
  • Multi-hop QA: 2WikiMultiHopQA and HotpotQA (tasks requiring connecting multiple pieces of information).

They tested these across 0-shot, 1-shot, and 5-shot settings using LLaMA-33B as the backbone model.

Key Insights and Ideas

  • The Power of the Loop: The most significant "aha moment" is that retrieval and generation are mutually beneficial. Better generation leads to better search queries, which leads to better documents, which leads back to even better generation.
  • Bridging the Semantic Gap: GAR effectively uses the LLM as a "translator" that turns a brief user question into a richer context that matches the language of the document corpus.
  • Overcoming Hallucinations via "Refresh": The "Refresh" strategy proved particularly effective. By ignoring its own previous (potentially hallucinated) output and focusing on the retrieved evidence, the model avoids the "garbage in, garbage out" trap.
  • Multi-step Reasoning: For multi-hop questions, the iterative nature mimics how a human might research: find one clue, use it to search for the next, and piece the story together.

Key Results

ITRG consistently outperformed strong baselines, including GPT-3.5 (text-davinci-003) and vanilla LLaMA-33B.

  • Single-hop Performance: On Natural Questions (5-shot), ITRG (refresh) achieved an Exact Match (EM) score of 38.0, significantly higher than the vanilla LM's 32.4.
  • Multi-hop Breakthroughs: The gains were even more pronounced in complex tasks. On 2WikiMultiHopQA, ITRG (refresh) in a zero-shot setting (32.2 EM) actually outperformed the vanilla LM in a 5-shot setting (31.8 EM).
  • Iteration Matters: Performance generally improved with each iteration. As shown in the paper's analysis, both the final answer accuracy and the "recall" (the quality of the generated documents) trended upward as the loop progressed.

Exact match performance on single-hop QA Exact match performance on multi-hop QA

Limitations and Future Work

  • Computational Cost: Because ITRG requires multiple calls to an LLM per question, it is significantly more expensive and slower than single-pass methods.
  • Fixed Iterations: The study used a fixed $T=5$. In the future, a "dynamic stopping" mechanism—where the model decides it has enough information to answer—could improve efficiency.
  • Retrieval Quality: The system still relies on the initial quality of the dense retriever. If the retriever cannot find the "seed" information in the first step, the subsequent iterations may struggle to recover.

Summary updated

BibTeX
@inproceedings{feng2024retrieval,
  author = {Zhangyin Feng and Xiaocheng Feng and Dezhi Zhao and Maojin Yang and Bing Qin},
  title = {{Retrieval-Generation Synergy Augmented Large Language Models}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2024},
  doi = {10.1109/icassp48485.2024.10448015},
}
Figure