Fine-Tuning on Diverse Reasoning Chains Drives Within-Inference CoT Refinement in LLMs

Haritz Puerto, Tilek Chubakov, Xiaodan Zhu, Harish Tayyar Madabushi, Iryna Gurevych

TL;DR

Researchers have developed Diverse Chain of Thought (DCoT), a fine-tuning method that enables LLMs to generate and refine multiple reasoning paths sequentially within a single inference step. By allowing the model to "see" its previous attempt, DCoT facilitates autonomous self-correction, leading to significant performance gains across various model families (1.3B to 70B parameters) without requiring external feedback or multiple independent calls.

What Problem Does This Paper Address?

Chain of Thought (CoT) prompting has revolutionized how we use LLMs for complex reasoning by asking them to "think step-by-step." However, standard CoT is typically a "one-shot" process: the model generates one path and sticks to it. If that path is flawed, the final answer is wrong.

Existing solutions like Self-Consistency generate multiple reasoning chains in parallel and use a majority vote to pick the best answer. While effective, this approach is computationally expensive and, crucially, the reasoning chains are independent—the model cannot learn from or refine a previous mistake during the generation process. True "self-correction" usually requires a separate critic model or multiple iterative prompts, which adds complexity and latency. The authors of this paper ask: Can we train a single model to refine its own reasoning internally, in one go?

Methods

The authors introduce Diverse Chain of Thought (DCoT). The core innovation lies in how the training data is structured and how the model is prompted at inference time.

  1. Sequential Training: Instead of training a model on individual (question, reasoning_chain) pairs, DCoT concatenates multiple valid, diverse reasoning chains for the same question into a single sequence: (question, [CoT_1, CoT_2, ..., CoT_k]).
  2. Single Inference Step: During inference, the model is prompted to generate $k$ different reasoning chains. Because LLMs generate text token-by-token, the generation of the second chain ($CoT_2$) is naturally conditioned on the first ($CoT_1$). This allows the model to recognize a dead-end or a logical error in its first attempt and try a different strategy.
  3. Instruction Template: They use a specific template to control the number of chains:
  4. Prompt: [Question] ... [Number of answers] k
    • Response: [Answer 1] CoT_1 [Answer 2] CoT_2 ... [Final answer] answer
Figure 2: We train on a series of CoTs to make the model learn how to generate multiple CoTs in one inference step. DCoT and CoT have the same amount of CoTs. However, DCoT is trained with different amounts of k CoTs for a given query. At inference time, users can pick any k.

Datasets

The models were trained on a mixture of nine diverse datasets covering science, logic, math, and symbolic reasoning, including GSM8K, ARC, HotpotQA, and StrategyQA.

To test generalization, they evaluated the models on "unseen" tasks (tasks not present in the training set) such as AQuA (math), CSQA (commonsense), and SVAMP (math word problems). They also used Big Bench Hard to check if DCoT helps in scenarios where standard CoT usually fails for smaller models.

Key Insights and Ideas

  • Refinement, not just Repetition: Manual analysis proved that the model isn't just generating random variations. In many cases, if the first chain reached an incorrect conclusion, the second chain adopted a different reasoning pattern to arrive at the correct one.
  • The Power of $k=2$: The researchers found a "sweet spot." Most performance gains are achieved by moving from one chain to two ($k=2$). Adding a third or fourth chain ($k=3, 4$) showed diminishing returns, suggesting that one chance to "re-think" is often enough.
  • Large State Spaces Matter: DCoT is most effective for tasks with a large number of possible answers (like numeric math problems or span extraction). In binary "Yes/No" tasks, there is less room for meaningful refinement.
  • Zero-Cost Compatibility: DCoT is a "safe drop-in replacement." A DCoT-trained model performing a single chain ($k=1$) performs just as well as a standard CoT model. Furthermore, it can be combined with other techniques like Self-Consistency for even higher accuracy.
Figure 1: Diverse CoT (k = 2) generates k CoTs in a single inference step and selects the correct answer.

Key Results

The authors demonstrated consistent improvements across model families (Phi and LLaMA-2) and scales.

  • Performance Boost: On average, DCoT outperformed the CoT baseline across all models. For example, Phi-2 (2.7B) saw an average accuracy increase from 60.85% to 62.6%.
  • Numeric Reasoning: The gains were particularly sharp in math. On GSM8K, LLaMA-2 13B improved from 42.53% to 44.28%.
  • Efficiency: Generating a second chain adds tokens, but the authors calculated the cost increment to be a negligible $0.00007 per call (based on LLaMA-2 13B rates), making it a highly cost-effective way to boost reliability.
Table 1: Main results comparing DCoT to CoT and Self-Consistency (SC) across different tasks and model sizes.

Limitations and Future Work

  • Context Window: The number of refinements ($k$) is limited by the model's maximum context length.
  • Diversity Guarantee: While the model is trained to be diverse, it doesn't guarantee a different reasoning path at inference time, especially if it is very confident in its first answer.
  • Model Scale: The authors noted that very small models (under 100B parameters) struggle to perform DCoT through prompting alone; fine-tuning is essential to unlock this "within-inference" refinement capability.
  • Future Directions: The team plans to explore applying DCoT to other prompting styles, like code-based reasoning or graph-of-thought, and finding ways to scale $k$ more effectively without external feedback.

Summary updated

BibTeX
@inproceedings{puerto2025fine,
  author = {Haritz Puerto and Tilek Chubakov and Xiaodan Zhu and Harish Tayyar Madabushi and Iryna Gurevych},
  title = {{Fine-Tuning on Diverse Reasoning Chains Drives Within-Inference CoT Refinement in LLMs}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure