Abstract
Requiring a Large Language Model (LLM) to generate intermediary reasoning steps has been shown to be an effective way of boosting performance. In fact, it has been found that instruction tuning on these intermediary reasoning steps improves model performance. In this work, we present a novel method of further improving performance by requiring models to compare multiple reasoning chains before generating a solution in a single inference step. We call this method Divergent CoT (DCoT). We find that instruction tuning on DCoT datasets boosts the performance of even smaller, and therefore more accessible, LLMs. Through a rigorous set of experiments spanning a wide range of tasks that require various reasoning types, we show that fine-tuning on DCoT consistently improves performance over the CoT baseline across model families and scales (1.3B to 70B). Through a combination of empirical and manual evaluation, we additionally show that these performance gains stem from models generating multiple divergent reasoning chains in a single inference step, indicative of the enabling of self-correction in language models. Our code and data are publicly available at https://github.com/UKPLab/arxiv2024-divergent-cot.
Introduction
Chain of Thought (CoT) prompting—asking a model to "think step-by-step"—has significantly improved LLM performance on complex reasoning tasks. However, standard CoT typically relies on a single reasoning path. While techniques like "Self-Consistency" (SC) improve reliability by sampling multiple paths in parallel and using a majority vote, they do not allow the model to learn from its own mistakes during the generation process.
The researchers identify a critical limitation: parallel generation prevents within-inference refinement. If a model makes a calculation error early in its reasoning, it cannot "see" that error to fix it within the same output stream. To address this, the authors propose Divergent Chain of Thought (DCoT), a fine-tuning method that trains models to generate multiple reasoning paths sequentially, allowing subsequent paths to benefit from the context of previous ones.
Methodology: Divergent Chain of Thought (DCoT)
The core of DCoT is training models on sequences of multiple reasoning chains for a single question. Instead of the standard (Question, single CoT) pair, the model is trained on (Question, [CoT_1, CoT_2, ..., CoT_k]).
Because LLMs are autoregressive, when the model generates the second reasoning chain ($CoT_2$), the first chain ($CoT_1$) is already in its local context window. This setup enables the model to recognize errors or logical gaps in its initial attempt and refine its logic in the second attempt. To generate training data, the researchers used GPT-3.5 with diverse "triggers" (e.g., "Let's think like a detective") to produce multiple valid but distinct reasoning paths for the same question.
Experimental Setup
The method was evaluated across several model families and sizes, including Phi-1.5 (1.3B), Phi-2 (2.7B), and LLaMA-2 (7B, 13B, and 70B). The evaluation suite covered a broad range of reasoning types, including numeric reasoning (GSM8K), logic and symbolic reasoning (BGQA, LLC), and commonsense tasks (ARC, StrategyQA).
Key Results
DCoT consistently outperformed the standard CoT baseline across all tested model scales and task categories.
Key findings from the empirical evaluation include:
- Broad Improvement: As shown in the results table, DCoT leads to significant gains. For instance, LLaMA-2 70B's average score improved from 66.96 to 68.63. The method is particularly effective for tasks with large result state spaces, such as numeric math problems.
- The Power of Two: Most performance gains were realized by moving from $k=1$ to $k=2$. Additional chains ($k=3, 4$) provided diminishing returns, suggesting that a single "second look" is often sufficient for error correction.
- Self-Correction in Action: Qualitative analysis confirmed that models often corrected arithmetic or logical errors made in the first chain when generating the second. This "aha!" moment of self-correction is a primary driver of the observed performance gains.
- Efficiency and Compatibility: DCoT is computationally efficient, adding only a marginal cost per inference step. Furthermore, it is compatible with other techniques; combining DCoT with Self-Consistency (DCoT + SC) often yielded the highest overall performance.
Conclusion
DCoT fine-tuning provides a simple yet powerful way to enable self-correction in LLMs. By training models to generate and compare multiple reasoning paths sequentially, DCoT boosts performance across a wide array of tasks without requiring external feedback or complex multi-step pipelines. This approach makes high-level reasoning more accessible, even for smaller model scales.
Summary updated