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

Knowledge-intensive multi-step questions pose a significant challenge for Large Language Models (LLMs), often leading to factual hallucinations when the required information is missing from training data. While Retrieval-Augmented Generation (RAG) addresses simple queries, it struggles with complex reasoning where the search query depends on intermediate steps. This paper introduces IRCoT (Interleaved Retrieval with Chain-of-Thought), a framework that alternates between reasoning and searching. By using each step of an LLM's reasoning process to trigger new retrievals, IRCoT significantly improves accuracy and reduces hallucinations across various model sizes without requiring additional training.

Introduction: The Multi-Step Knowledge Gap

Large Language Models (LLMs) have demonstrated impressive capabilities in Chain-of-Thought (CoT) reasoning, allowing them to decompose complex problems into logical sequences. However, their reliance on internal parameters often leads to "hallucinations"—the generation of plausible but factually incorrect information—especially when dealing with niche or outdated facts.

Standard Retrieval-Augmented Generation (RAG) attempts to mitigate this by performing a "one-shot" retrieval at the start of the process. While effective for single-hop questions, this approach fails for multi-step queries where the information needed for the second step is only revealed after the first step of reasoning. For instance, determining the manufacturing country of a specific roller coaster requires first identifying the manufacturer.

The IRCoT process illustrated with the 'Lost Gravity' example, showing how intermediate reasoning steps guide subsequent retrievals.

The IRCoT Framework

The authors propose IRCoT, a prompting-based approach that interleaves retrieval and reasoning in a continuous loop. Unlike static RAG, IRCoT uses the LLM's evolving reasoning chain to dynamically guide the search process.

The Iterative Loop

The IRCoT process follows a structured cycle:

  1. Initial Retrieval: The original question is used to retrieve a base set of documents.
  2. Reasoning Step: The LLM generates a single sentence of the Chain-of-Thought, conditioned on the question and all documents collected thus far.
  3. Dynamic Retrieval: This newly generated reasoning sentence serves as a search query to find additional relevant paragraphs from the knowledge base.
  4. Accumulation: The new paragraphs are appended to the context, and the cycle repeats.
  5. Termination: The loop continues until the LLM generates a final answer or reaches a predefined step limit.
A detailed overview of the IRCoT framework, showing the interaction between the 'Reason' and 'Retrieve' functions.

By structuring the interaction this way, IRCoT ensures that the retriever is always searching for information relevant to the current state of the reasoning process, effectively bridging the gap between disparate pieces of information.

Experimental Setup

The framework was evaluated on four diverse, knowledge-intensive multi-step QA datasets:

  • HotpotQA & 2WikiMultihopQA: Wikipedia-based datasets requiring multi-hop reasoning.
  • MuSiQue: A dataset designed to minimize "shortcut" reasoning via keyword matching.
  • IIRC: Questions requiring information from both a provided paragraph and linked Wikipedia entities.

The study utilized models of varying scales, including GPT-3 (code-davinci-002) and Flan-T5 models ranging from 0.7B to 11B parameters.

Key Results and Insights

The experiments yielded several significant findings:

  • Substantial Performance Gains: IRCoT improved retrieval recall by 11–21 points and downstream QA accuracy (F1 score) by up to 15 points across all datasets.
  • Efficiency and Scaling: Remarkably, a 3B-parameter model (Flan-T5-XL) using IRCoT outperformed a 175B-parameter model (GPT-3) using standard one-step retrieval. This suggests that the iterative reasoning process is a more efficient way to leverage external knowledge than simply increasing model size.
  • Hallucination Reduction: Manual inspection revealed that interleaving retrieval reduced factual errors in reasoning chains by up to 50%. The retrieved facts act as "guardrails," keeping the LLM's reasoning grounded in reality.
  • Zero-Shot Robustness: The method proved robust in Out-of-Distribution (OOD) settings, maintaining performance even when prompts from one dataset were applied to another.

Limitations and Future Work

While highly effective, IRCoT introduces increased computational costs due to the multiple LLM calls required for each reasoning step. Additionally, the accumulating context can eventually exceed the model's context window limits.

Future research directions include developing more sophisticated termination logic, such as backtracking when a reasoning path fails, and exploring "dynamic retrieval" where the model autonomously decides when external information is necessary.

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