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

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

Abstract

Requiring a large language model (LLM) to generate intermediary reasoning steps, known as Chain of Thought (CoT), has been shown to be an effective way of boosting performance. Previous approaches have focused on generating multiple independent CoTs, combining them through ensembling or other post-hoc strategies to enhance reasoning. In this work, we introduce a novel approach where LLMs are fine-tuned to generate a sequence of Diverse Chains of Thought (DCoT) within a single inference step, which is fundamentally different from prior work that primarily operate on parallel CoT generations. DCoT allows LLMs to gain the ability to perform within-inference refinement of reasoning chains without requiring external feedback. Through a rigorous set of experiments spanning a wide range of tasks that require various reasoning types, we show that fine-tuning on DCoT improves performance over the CoT baseline across model families and scales (1.3B to 70B). These improvements are particularly impactful for tasks with a large result state space, such as those involving numeric answers. Our work is also significant because both quantitative analyses and manual evaluations reveal the observed gains stem from the models' ability to refine an initial reasoning chain by generating a second, improved chain within the same inference step, demonstrating previously elusive self-improvement.

Introduction

Standard Chain of Thought (CoT) prompting encourages Large Language Models (LLMs) to "think out loud" before answering. While effective, models often make "hallucination" errors or logical slips in that single path. Existing solutions like Self-Consistency generate multiple reasoning chains in parallel and use a majority vote to pick the best answer. However, these chains are independent; the model cannot learn from its own mistakes during the process. Other "self-correction" methods usually require multiple separate API calls or external feedback to tell the model it was wrong.

The challenge addressed here is: Can we enable an LLM to autonomously refine its reasoning within a single, continuous generation? We introduce Diverse Chain of Thought (DCoT), a fine-tuning method that trains LLMs to generate multiple reasoning chains sequentially within a single inference step.

Conceptual comparison between standard CoT and DCoT, illustrating how DCoT allows for internal logic refinement.

Methodology

The core innovation of DCoT is a shift in how training data is structured to encourage sequential refinement:

  1. Sequential Concatenation: Instead of training on pairs of (Question, CoT), models are trained on (Question, [CoT_1, CoT_2, ..., CoT_k]).
  2. Instructional Triggers: A specific prompt format is used: [Question] ... [Number of answers] k. The model is then trained to output a response formatted as [Answer 1] ... [Answer k] [Final Answer].
  3. Data Generation: To create the training set, GPT-3.5 Turbo generated multiple correct but diverse reasoning paths for the same question by using different "triggers" (e.g., "Let's think like a detective" vs. "Let's be concise").
  4. Single Inference Step: Because the model sees the previous chains in its own context window during generation, it can naturally pivot if it notices an inconsistency in an earlier chain.

Experimental Setup

The models were trained and evaluated on a diverse battery of tasks including in-domain tasks like ARC (Science), GSM8K (Math), and StrategyQA, as well as out-of-domain tasks like AQuA and CSQA. Evaluations spanned multiple model families and scales, including Phi-1.5 (1.3B), Phi-2 (2.7B), and LLaMA-2 (7B, 13B, and 70B).

Results and Analysis

DCoT outperformed the standard CoT baseline across all tested model families. On the GSM8K math benchmark, LLaMA-2 13B saw an improvement from 42.53% to 44.28% with DCoT.

Main results showing DCoT performance improvements over CoT across various benchmarks and model sizes.

The Power of the "Draft"

Manual analysis revealed that when the first reasoning chain (DCoT@1) was wrong, the model often used the second chain (DCoT@2) to correct its logic, treating the first chain as a "rough draft." Most performance gains occur when moving from one chain to two ($k=2$), with diminishing returns for $k=3$ or $k=4$, suggesting that a single "re-think" is often enough to catch most errors.

State Space and Efficiency

DCoT is most effective on tasks with a "large result state space"—tasks like math or span extraction where there are many possible wrong answers. It is less effective on binary (Yes/No) tasks where there is less room for nuanced refinement. Importantly, fine-tuning on DCoT does not hurt performance when only one answer is requested ($k=1$). Furthermore, DCoT is cost-efficient; the extra tokens for a second chain cost approximately $0.00007 per model call, making it a highly efficient way to boost accuracy.

Conclusion

DCoT demonstrates that LLMs can be trained to perform within-inference refinement, effectively catching their own errors without external feedback. Future work includes addressing context window constraints for higher $k$ values and exploring sequential refinement in non-textual formats like code prompting.

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