Multi-Chain Reasoning (MCR) is a technique to improve multi-hop question answering (QA) by meta-reasoning over multiple chains of thought (CoT). Unlike traditional methods that rely on the final answers of individual reasoning chains, MCR integrates intermediate reasoning steps across chains to build a comprehensive explanation and arrive at the final answer.
Aspect | Self-Consistency (SC) | Multi-Chain Reasoning (MCR) |
---|---|---|
How techniques work | Samples multiple chains and aggregates answers by majority vote, discarding intermediate reasoning steps. | Retains and examines intermediate steps, using them to construct a unified explanation. |
Explanation quality | Lacks a cohesive explanation since it focuses solely on answers. | Generates high-quality explanations that make it easier for humans to verify answers. |
Robustness to ambiguity | Struggles with diverse reasoning chains leading to different outputs. | Mitigates this by blending insights from all chains, ensuring consistency and relevance. |
Break the main question into smaller, answerable parts. Use a decomposition model (like an LLM) to generate sub-questions and intermediate answers.
Question: "How many ants could fit into The Shard?" Decompose into:
In this step, Multi-Chain Reasoning (MCR) actually uses Self-Ask prompting technique to generate intermediate steps. Here’s a template:
Given the following question, answer it by providing follow up questions and intermediate answers. If no follow up questions are necessary, answer the question directly.
Question: Who is the mother of the director of film Polish-Russian War (Film)?
Are follow up questions needed here: Yes.
Follow up: Who is the director of the film Polish-Russian War (Film)?
Intermediate answer: The director of the film Polish-Russian War is Xawery Zuławski.
Follow up: Who is the mother of Xawery Zuławski?
Intermediate answer: The mother of Xawery Zuławski is Małgorzata Braunek.
So the final answer is: Rick Scott Małgorzata Braunek.
Question: Who is Catherine Of Pomerania, Countess Palatine Of Neumarkt’s father-in-law?
Are follow up questions needed here: Yes.
Follow up: Who is the husband of Catherine of Pomerania, Countess Palatine of Neumarkt?
Intermediate answer: The husband of Catherine of Pomerania, Countess Palatine of Neumarkt is John, Count Palatine of Neumarkt.
Follow up: Who is the father of John, Count Palatine of Neumarkt?
Intermediate answer: The father of John, Count Palatine of Neumarkt is Rupert III of the Palatinate.
So the final answer is: Rupert III of the Palatinate.
Question: [Your complex question]
Are follow up questions needed here:
Use a language model to create multiple reasoning chains for the intermediate questions.
Use chain-of-thought prompting. Here's a template for you:
Q: John has 10 apples. He gives away 4 and then receives 5 more. How many apples does he have?
A:
Final Answer: 11
Q: [Your Question]
The core innovation of Multi-Chain Reasoning (MCR) lies in this step.
Here, a "meta-reasoner" LLM analyzes and combines insights from all reasoning chains, deciding which facts are most relevant. This process ensures the final answer is accurate and supported by a cohesive explanation.
Using reasoning chains from step 2, combine them into one prompt and ask the model to produce the final answer:
Q: [Your Question]
Based on these reasoning chains, generate a final answer:
A:
Meta reasoning over multiple COTs is a powerful way to improve the reasoning and accuracy of LLMs, and is particularly useful for complex problems that require sophisticated logic to solve. While it may be time-consuming to generate enough lines of reasoning to be useful, it's definitely worth it for the resulting improvements in accuracy, reasoning, and interpretability.
Andres Caceres, a documentation writer at Learn Prompting, has a passion for AI, math, and education. Outside of work, he enjoys playing soccer and tennis, spending time with his three huskies, and tutoring. His enthusiasm for learning and sharing knowledge drives his dedication to making complex concepts more accessible through clear and concise documentation.
Yoran, O., Wolfson, T., Bogin, B., Katz, U., Deutch, D., & Berant, J. (2024). Answering Questions by Meta-Reasoning over Multiple Chains of Thought. https://arxiv.org/abs/2304.13007 ↩
The Shard is the tallest building in the United Kingdom, https://en.wikipedia.org/wiki/The_Shard ↩