NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Interleaving Retrieval with Chain-of-Thought Reasoning for Knowledge-Intensive Multi-Step Questions

Harsh Trivedi, Niranjan Balasubramanian, Tushar Khot, Ashish Sabharwal

Abstract

Prompting-based large language models (LLMs) are surprisingly powerful at generating natural language reasoning steps or Chains-of-Thoughts (CoT) for multi-step question answering (QA). They struggle, however, when the necessary knowledge is either unavailable to the LLM or not up-to-date within its parameters. While using the question to retrieve relevant text from an external knowledge source helps LLMs, we observe that this one-step retrieve-and-read approach is insufficient for multi-step QA. Here, what to retrieve depends on what has already been derived, which in turn may depend on what was previously retrieved. To address this, we propose IRCoT, a new approach for multi-step QA that interleaves retrieval with steps (sentences) in a CoT, guiding the retrieval with CoT and in turn using retrieved results to improve CoT. Using IRCoT with GPT3 substantially improves retrieval (up to 21 points) as well as downstream QA (up to 15 points) on four datasets: HotpotQA, 2WikiMultihopQA, MuSiQue, and IIRC. We observe similar substantial gains in out-of-distribution (OOD) settings as well as with much smaller models such as Flan-T5-large without additional training. IRCoT reduces model hallucination, resulting in factually more accurate CoT reasoning.

Introduction

Standard Retrieval-Augmented Generation (RAG) typically follows a linear "retrieve-then-read" pipeline. In this setup, the system takes a user's question, performs a single search against a knowledge base, and then prompts an LLM to generate an answer based on the retrieved documents. While effective for simple factoid questions, this approach often fails for complex, multi-step queries where the information required for subsequent reasoning steps is contingent upon facts discovered in earlier steps.

For instance, consider the question: "In what country was the manufacturer of the roller coaster Lost Gravity located?" A single search for this question might not directly yield the country. To solve it, a model must first identify the manufacturer (Mack Rides) and then perform a second search to find that company's headquarters. Without this iterative process, LLMs are prone to "hallucinations"—generating plausible but factually incorrect reasoning chains to bridge knowledge gaps.

The IRCoT Framework

To overcome the limitations of one-step retrieval, we introduce IRCoT (Interleaved Retrieval with Chain-of-Thought). IRCoT is a zero-training framework that alternates between reasoning and retrieval in an iterative loop.

Overview of the IRCoT process using a multi-step question about the manufacturer of the Lost Gravity roller coaster.

The process follows these core steps:

  1. Initial Retrieval: The system retrieves an initial set of documents using the original question as the query.
  2. Reasoning Step: The LLM generates the next sentence of a Chain-of-Thought (CoT) reasoning process, conditioned on the question and all previously collected documents.
  3. Retrieval Step: The newly generated reasoning sentence is used as a search query to find additional relevant documents, which are then added to the cumulative context.
  4. Iteration: Steps 2 and 3 are repeated until the model generates a final answer or reaches a predefined step limit.
  5. Final Answer Generation: The complete set of accumulated documents is provided to the model to produce the final, grounded answer.

By using intermediate reasoning steps as search queries, IRCoT can target specific missing pieces of information that the original complex question might obscure.

Experimental Evaluation

We evaluated IRCoT across four challenging multi-step QA benchmarks:

  • HotpotQA: Requires synthesizing facts from multiple Wikipedia pages.
  • 2WikiMultihopQA: Features structured reasoning paths across multiple documents.
  • MuSiQue: Designed to resist simple keyword-based retrieval strategies.
  • IIRC: Requires models to supplement a main paragraph with information from linked Wikipedia articles.

The framework was tested with various models, including GPT-3 (175B) and the Flan-T5 family (ranging from 0.7B to 11B parameters), using few-shot prompting without any additional fine-tuning.

Key Results and Insights

IRCoT demonstrates significant improvements in both retrieval quality and downstream QA accuracy. Retrieval recall improved by 11 to 21 points over standard one-step retrieval baselines.

QA performance (F1 score) of IRCoT compared to NoR (No Retrieval) and OneR (One-step Retrieval) baselines across four datasets using Flan-T5-XXL and GPT3.

Key findings include:

  • Performance Gains: Downstream QA scores (F1) increased by up to 15 points. As shown in the results, IRCoT consistently outperforms both no-retrieval and one-step retrieval baselines across all datasets.
  • The "Small Model" Advantage: A notable discovery is that smaller models using IRCoT can outperform much larger models using simpler retrieval methods. For example, Flan-T5-XL (3B) with IRCoT can surpass GPT-3 (175B) with one-step retrieval.
  • Reduced Hallucinations: By grounding each step of the reasoning chain in retrieved facts, IRCoT reduces factual errors in the reasoning process by up to 50%, leading to more reliable and interpretable outputs.
  • Robustness: The method is highly robust to out-of-distribution (OOD) scenarios, maintaining performance even when the few-shot reasoning examples are drawn from a different dataset than the test questions.

Conclusion and Future Work

IRCoT provides a powerful, training-free method for enhancing LLMs on knowledge-intensive tasks. While highly effective, the iterative nature of the process increases computational costs and latency compared to one-shot methods. Future research directions include optimizing the termination logic for the retrieval loop, implementing reranking mechanisms to manage the growing context of retrieved documents, and exploring ways to mitigate context window limitations in smaller models.

Summary updated

BibTeX
@inproceedings{trivedi2023interleaving,
  author = {Harsh Trivedi and Niranjan Balasubramanian and Tushar Khot and Ashish Sabharwal},
  title = {{Interleaving Retrieval with Chain-of-Thought Reasoning for Knowledge-Intensive Multi-Step Questions}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.acl-long.557},
}
Figure