Interleaving Retrieval with Chain-of-Thought Reasoning for Knowledge-Intensive Multi-Step Questions
Read first: Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks · Chain-of-Thought Prompting Elicits Reasoning in Large Language Models
TL;DR. In a multi-hop question, the second-hop entity usually does not appear in the question, so one retrieval with the question misses it. IRCoT fixes this with a loop:
- Retrieve with the question.
- Let the LM write one chain-of-thought sentence.
- Unless that sentence gives the answer or the step limit is reached, use it as the next BM25 query, add the results to the pool, and repeat.
With GPT3 (code-davinci-002) at a fixed budget of at most 15 paragraphs, this raises gold-paragraph recall over one-step retrieval by 11.3 to 22.6 points on four datasets. It is prompting only; nothing is trained.
Why it matters now. IRCoT is the clearest controlled demonstration that reasoning tells retrieval what to fetch next. It is also the simplest multi-step baseline for an IR researcher to reproduce: BM25, a fixed loop and a recall metric at a fixed budget. Agents such as ReAct-style searchers and Search-R1 make the loop flexible; IRCoT shows what the fixed loop already achieves.
Key idea
Section titled “Key idea”Let be the question, the pool of collected paragraphs and the CoT sentences.
- Initial retrieval. .
- Reason. Prompt the LM with the paragraphs in , the question and the CoT so far. Keep only the first new sentence, , and discard the rest.
- Stop test. Immediately after generating , check whether it contains “answer is:” or whether 8 sentences have now been written. If so, skip retrieval and return , capped at 15 paragraphs (§3.1, footnote 4).
- Retrieve (only if not stopped). , then go back to step 2.
- Read. A separate QA reader answers from . GPT3 uses a CoT reader; Flan-T5 uses a direct-answer reader.
The retriever is BM25 in Elasticsearch. The per-step is tuned on 100 dev questions. The OneR baseline retrieves once with , with tuned in 5–15. NoR answers with no retrieval at all.
A two-hop trace, IRCoT vs one-shot retrieval. This is the paper’s own example (Figure 1), condensed; the descriptions of retrieved paragraphs are ours. In what country was Lost Gravity manufactured?
One-shot (OneR): query = the question retrieved: the Lost Gravity (roller coaster) paragraph, plus lexical neighbours missing: any paragraph saying where it was manufactured reader: must guess the country from parametric memory
IRCoT retrieve(question) -> paragraph on Lost Gravity (no country of manufacture) s1: "The Lost Gravity was manufactured by Mack Rides." # infers the bridge entity retrieve(s1) -> paragraph on Mack Rides (a German company) s2: "Mack Rides is a company from Germany." retrieve(s2) -> more Germany / Mack Rides paragraphs s3: "The answer is Germany." -> stop, read from the poolThe first sentence brings in the bridge entity, Mack Rides. That entity is the only text that matches the second gold paragraph lexically.
What changed vs. prior work, and what didn’t.
| RAG / OneR | ReAct | IRCoT | |
|---|---|---|---|
| Number of retrievals | one, from the question | chosen by the LM | one per CoT sentence |
| Query | the question | written by the LM as an action | the latest CoT sentence |
| Stopping | — | LM issues finish | “answer is:” or 8 steps |
| Retriever | DPR / BM25 | Wikipedia entity lookup | BM25 over paragraphs |
| Training | RAG: end to end | none | none |
| Evaluation focus | answer accuracy | answer accuracy | gold-paragraph recall at a fixed budget, then QA |
Key results
Section titled “Key results”Retrieval recall over OneR (Figure 3, ≤15 paragraphs). Gains on HotpotQA / 2WikiMultihopQA / MuSiQue / IIRC:
| LM | HotpotQA | 2Wiki | MuSiQue | IIRC |
|---|---|---|---|---|
| Flan-T5-XXL | +7.9 | +14.3 | +3.5 | +10.2 |
| GPT3 | +11.3 | +22.6 | +12.5 | +21.2 |
QA F1 over OneR (Figure 4).
- Flan-T5-XXL: +9.4 / +15.3 / +5.0 / +2.5.
- GPT3: +7.1 / +13.2 / +7.1 on the first three datasets, and no gain on IIRC. On IIRC GPT3’s no-retrieval score is already similar, which suggests it holds the knowledge in its weights.
Factuality (§5, 40 questions per dataset, hand-labelled). The ordering of factual errors in the generated CoTs is NoR > OneR > IRCoT. IRCoT cuts factual errors relative to OneR by 50% on HotpotQA and 40% on 2WikiMultihopQA.
Robustness and scale.
- With demonstrations taken from a different dataset (out-of-distribution), IRCoT still beats OneR and NoR.
- Recall gains hold for every Flan-T5 size from base (0.2B) to XXL (11B), and for GPT3.
- QA gains hold for all sizes except the smallest.
Other systems (Table 1, EM | F1, not head-to-head). IRCoT QA with GPT3 scores:
- HotpotQA: 49.3 | 60.7.
- 2Wiki: 57.7 | 68.0.
- MuSiQue 2-hop: 34.2 | 43.8.
Reported numbers for other methods: ReAct 35.1 EM and RECITE 37.1 EM on HotpotQA; SelfAsk 40.1 EM on 2Wiki. These use different LMs, retrievers and corpora.
Setup. Each dataset has 100 dev questions for tuning and 500 sampled test questions. Results are averaged over 3 sets of 15 demonstrations.
Limitations & open questions
Section titled “Limitations & open questions”- Needs CoT ability. The authors note that this is common in LMs over 100B and less common under 20B. Flan-T5 results show it can still work at 3B with good prompts.
- Long inputs. All collected paragraphs plus demonstrations must fit in the prompt. The authors suggest reranking the pool rather than passing everything.
- Cost. One LM call per CoT sentence plus a search each step. The authors point to deciding dynamically when to retrieve as future work, which is the question Self-RAG takes up.
- Reproducibility. code-davinci-002 was deprecated after submission, so the GPT3 results cannot be exactly rerun. The Flan-T5 results and code remain.
- Lexical retriever only. All experiments use BM25. Whether CoT sentences are good queries for dense retrievers, which are trained on question-like queries, is open. So is whether a learned query rewriter beats the raw sentence.
- Open question: at an equal number of LM and search calls, does a fixed IRCoT loop beat an agent that writes its own queries? The paper’s Table 1 comparison with ReAct cannot answer this.
Connections
Section titled “Connections”- Builds on: RAG (one-step retrieval, the OneR setting), chain-of-thought, and pre-LLM multi-hop retrieval such as Baleen.
- Contemporaries, not a lineage: ReAct (2022-10-06, the LM picks actions), IRCoT (2022-12-20), and DSP (2022-12-28, a programmed pipeline).
- After: Self-RAG learns when to retrieve. Search-o1 lets a reasoning model emit queries mid-thought. RL-trained agents such as Search-R1 learn queries and stopping from reward.
- Benchmarks: classic multi-hop QA (HotpotQA, 2Wiki, MuSiQue), and retrieval vs reasoning for separating the two failure sources.
Questions to think through
These questions have no single right answer. Write or say your answer before you open the hints. Mark a question once you could defend your answer in a reading group.
- Derive / compute
A two-hop question has two gold paragraphs: P1 mentions the question's entity, P2 mentions only the bridge entity. One-step retrieval (OneR) with K = 15 retrieves P1 but never P2. IRCoT with K = 4 retrieves P1 from the question, then retrieves P2 with its first CoT sentence, then stops on its second sentence. Compute recall for both, the number of paragraphs each passes to the reader, and the number of LM and retriever calls IRCoT makes, including the reader. What is the worst case under the paper's 8-step limit?
What a strong answer covers
- OneR: recall 1/2 = 0.5, with 15 paragraphs passed to the reader; 1 retrieval call, 1 reader call.
- IRCoT: recall 2/2 = 1.0, with at most 4 + 4 = 8 paragraphs (fewer if there are duplicates).
- Calls: 2 reasoning steps (2 LM calls), 2 retrieval calls (initial plus one CoT-guided; no retrieval after the stopping sentence), plus 1 reader call: 3 LM calls and 2 retrievals.
- Worst case: 8 reasoning calls, at most 7 CoT-guided retrievals plus the initial retrieval (8 total), and 1 final reader call (9 LM calls total). The stop test runs after each reasoning step and before the next retrieval, so the eighth sentence triggers no retrieval. The pool remains capped at 15 paragraphs.
- The paper's comparison is at a fixed budget of at most 15 paragraphs, so IRCoT's gain is in which paragraphs are retrieved, not how many.
- Mechanism
Explain why a chain-of-thought sentence is a better BM25 query than the question for the second hop of a bridge question, using the paper's Lost Gravity example. Then explain the reverse direction of the paper's claim: how retrieval improves the reasoning, and why IRCoT keeps only the first generated sentence at each step.
What a strong answer covers
- The question "In what country was Lost Gravity manufactured?" shares no terms with the paragraph about Mack Rides. Once the CoT writes "Lost Gravity was manufactured by Mack Rides", that sentence contains the bridge entity, and BM25 can match it.
- Retrieval to reasoning: the next CoT sentence is generated with the newly retrieved paragraphs in context, so it is grounded in evidence rather than parametric memory. The paper reports fewer factual errors in IRCoT's CoTs than in OneR or no-retrieval CoTs.
- Keeping only the first sentence forces a retrieve step between every reasoning step. If the LM wrote the full chain at once, later sentences would be written before the supporting evidence was retrieved and could hallucinate the bridge entity.
- The loop is fixed: reason one sentence, retrieve with it, repeat. The LM does not decide whether to search or what query to write beyond the sentence itself.
- What if…
The paper reports four controls: OneR with K tuned from 5 to 15; out-of-distribution demonstrations; Flan-T5 models from 0.2B to 11B against GPT3 at 175B; and a GPT3 QA result on IIRC where IRCoT gives no gain. For each, say what it rules out or reveals.
What a strong answer covers
- Tuned OneR at the same 15-paragraph budget rules out "IRCoT just retrieves more paragraphs".
- OOD demonstrations (from another dataset) rule out "the gain comes from in-domain CoT exemplars". IRCoT still beats OneR and NoR.
- Scale: IRCoT recall beats OneR at every model size. QA beats OneR at every size except the smallest. Flan-T5-XL (3B) with IRCoT beats GPT3 (175B, 58× larger) with OneR, so better retrieval can matter more than model size.
- IIRC with GPT3: retrieval recall improves (+21.2), yet QA does not. The authors note that GPT3's no-retrieval score is already similar, which suggests the knowledge is in its weights.
- Factual error counts come from manual labels on 40 questions per dataset, so they are indicative, not precise.
- Critique
Table 1 shows IRCoT with GPT3 at 49.3 EM on HotpotQA against 35.1 for ReAct and 37.1 for RECITE, and the paper claims a new state of the art for few-shot multi-step open-domain QA. Argue how much of this comparison you should trust, and list the confounds.
What a strong answer covers
- The authors say themselves that the comparisons are not head-to-head: methods differ in API, knowledge source, LM and evaluation subset.
- ReAct used PaLM-540B with an entity-lookup Wikipedia API. IRCoT uses code-davinci-002 with BM25 over a paragraph corpus. Both the retriever and the LM differ.
- IRCoT is evaluated on 500 sampled test questions per dataset, with means over 3 demonstration sets. Others use different splits.
- The controlled evidence is the OneR vs IRCoT comparison inside the paper, which shares the LM, retriever and budget.
- code-davinci-002 was deprecated after submission, so the GPT3 numbers cannot be exactly reproduced; the Flan-T5 results can.
- Design
You want IRCoT as a baseline on BrowseComp-Plus, which has a fixed web-document corpus, a dense retriever you control, and questions needing more than two hops. Specify the query formulation, K, the stopping rule, the paragraph budget, and the measurements that would tell you whether IRCoT or an agent that writes its own queries is better.
What a strong answer covers
- Query: the CoT sentence alone (the paper's choice), or the question concatenated with the sentence. For a dense retriever, test both; the sentence alone can drift from the question.
- K and budget: small K per step (2–8, as in the paper) with a cap on total documents; BrowseComp-Plus documents are long, so truncate or chunk them.
- Stopping: keep the "answer is:" trigger and a step limit, but raise the limit above 8 for many-hop questions and log how often it is hit.
- Measure: gold-document recall at a fixed budget, answer accuracy, LM and retriever calls per question, and the fraction of steps whose query retrieves no new documents.
- Compare with a ReAct-style agent at the same call budget, to separate the value of free query writing from the value of interleaving.
- Connect
IRCoT, ReAct and DSP all interleave an LM with a retriever and appeared within twelve weeks of each other in late 2022. Compare who decides the query and when to stop in each, and explain which of IRCoT's stated limitations Self-RAG and later RL-trained search agents address.
What a strong answer covers
- IRCoT: fixed loop; the query is the latest CoT sentence; stop on "answer is:" or after 8 steps.
- ReAct: the LM chooses each action, including the query text and when to finish.
- DSP: a programmer writes the pipeline; the LM fills in hop queries using bootstrapped demonstrations.
- IRCoT's limitation, one LM call per sentence and retrieval at every step, motivates deciding when to retrieve. Self-RAG learns a Retrieve token for this.
- RL-trained agents such as Search-R1 learn both the query and the stopping decision from an outcome reward, removing the fixed loop.