Introduction
Large Language Models (LLMs) have demonstrated remarkable reasoning capabilities through Chain of Thought (CoT) prompting. However, standard CoT typically generates a single reasoning path. While techniques like Self-Consistency (SC) improve performance by voting over multiple independent paths, they lack the ability for a model to learn from its own intermediate errors during a single generation. This paper introduces Diverse Chain of Thought (DCoT), a fine-tuning methodology that enables LLMs to generate multiple reasoning chains sequentially within a single inference step. This sequential approach allows the model to review and refine its logic in real-time, leading to significant performance gains without external feedback.
Methodology
The DCoT framework consists of three primary stages: data generation, formatting, and instruction tuning.
Data Generation and Formatting
To create a diverse training set, the authors utilized GPT-3.5 to generate multiple valid reasoning paths for various questions. Diversity was encouraged by using different "trigger" prompts (e.g., "Let's solve this by splitting it into steps" vs. "Let's think like a detective").
Unlike standard CoT training, which pairs a question with a single reasoning path $(q, CoT)$, DCoT training involves concatenating $k$ diverse reasoning paths into a single sequence: $(q, [CoT_1, CoT_2, ..., CoT_k, \text{Final Answer}])$. This structure forces the model to attend to its previous reasoning attempts ($CoT_{i-1}$) while generating the current one ($CoT_i$).
Fine-Tuning
The authors fine-tuned a range of model architectures, including Phi-1.5 (1.3B), Phi-2 (2.7B), and LLaMA-2 (7B, 13B, and 70B). During inference, the model is prompted to generate $k$ chains. This allows the context window to act as a workspace where the model can "see" its first attempt, identify potential logical flaws, and pivot to a more accurate reasoning strategy in subsequent chains.
Experimental Results
The DCoT method was evaluated across a broad spectrum of reasoning tasks, including numeric reasoning (GSM8K), science questions (ARC), and symbolic logic (Last Letter Concatenation).
Performance Gains
DCoT consistently outperformed standard CoT fine-tuning across all model scales and families. As shown in the comprehensive results table, the improvements are particularly pronounced in complex tasks like GSM8K and span extraction. For instance, LLaMA-2 13B saw an average accuracy increase from 64.39% to 66.18%.
Within-Inference Refinement
Manual analysis of the model outputs confirmed that the performance boost is driven by active self-correction. When $k=2$, the model often uses the second reasoning chain to adopt a different perspective or correct a calculation error present in the first chain. Interestingly, the authors found that $k=2$ provides the most significant marginal gain; increasing $k$ further leads to diminishing returns as models struggle to find additional unique reasoning paths.
Efficiency and Compatibility
DCoT is highly efficient. For a 13B model, generating a second reasoning chain adds a negligible cost (estimated at $0.00007 per call). Furthermore, DCoT is backward compatible: when $k=1$, the model performs on par with standard CoT-tuned models. It is also orthogonal to Self-Consistency; applying SC on top of DCoT outputs yields even higher accuracy, suggesting that sequential refinement and parallel voting capture different aspects of reasoning robustness.
Discussion and Limitations
While DCoT offers a powerful mechanism for self-refinement, it is not without limitations. Sequential generation consumes the context window more rapidly than single-path generation. Additionally, smaller models occasionally exhibit "repetition collapse," where subsequent chains merely repeat the first attempt rather than offering a novel refinement.
Conclusion
Diverse Chain of Thought (DCoT) demonstrates that LLMs can be trained to iteratively refine their own reasoning within a single inference stream. By fine-tuning on concatenated diverse reasoning paths, models learn to identify and correct their own mistakes, providing a cost-effective and scalable way to boost the reasoning capabilities of state-of-the-art language models.
Summary updated