Introduction
Chain-of-Thought (CoT) prompting—the technique of asking a model to "think step-by-step"—has significantly improved the performance of Large Language Models (LLMs) on complex reasoning tasks. However, this capability is largely considered an "emergent" property, typically appearing only in models with over 100 billion parameters.
For practical applications, this creates a significant barrier. Deploying a 175B parameter model is often too expensive and slow for most real-world use cases. Smaller models (under 10B parameters) generally fail at CoT, often producing incoherent outputs when prompted to reason. This paper introduces Fine-tune-CoT, a method to bridge this gap by distilling the reasoning capabilities of massive "teacher" models into compact, deployable "student" models.
The Fine-tune-CoT Pipeline
The authors propose a three-step pipeline to transfer reasoning abilities from a large teacher to a smaller student:
- Reasoning Generation: A large teacher model (e.g., GPT-3
text-davinci-002) is prompted using "Zero-shot-CoT" (adding the phrase "Let's think step by step") to generate rationales for a set of training questions. - Curation: The generated samples are filtered to keep only those where the teacher reaches the correct final answer. This creates a high-quality dataset of (Question, Rationale, Answer) triplets.
- Fine-tuning: A smaller student model (ranging from 0.3B to 6.7B parameters) is fine-tuned on this curated data using a standard autoregressive language modeling objective.
The Secret Sauce: Diverse Reasoning
A key innovation of this work is "Diverse Reasoning." Instead of generating a single rationale per question, the authors use stochastic sampling to generate multiple distinct reasoning paths ($D$) for each question. This acts as a powerful form of data augmentation, teaching the student that there are multiple valid logical paths to the same correct answer.
Experimental Setup
The method was evaluated across 12 datasets in four categories of complex reasoning:
- Arithmetic: MultiArith, GSM8K, SVAMP, SingleEq, and AddSub.
- Commonsense: CommonSenseQA and StrategyQA.
- Symbolic: Last Letter Concatenation and Coin Flip.
- Other: Date Understanding and Tracking Shuffled Objects.
Student models included various sizes from the GPT-3 (ada, babbage, curie), T5, Flan-T5, and GPT-2 families.
Key Results and Insights
The experiments yielded several significant findings regarding the nature of reasoning in LLMs:
- Reasoning is Distillable: The core insight is that CoT is not just an emergent property of scale but a learnable pattern. Small models possess the capacity for reasoning but require explicit supervision to develop it.
- Scaling with Diversity: Performance improves consistently as the number of diverse reasoning paths ($D$) increases. As shown in the results, increasing $D$ from 1 to 64 can more than double accuracy for smaller models on tasks like SVAMP, often allowing them to surpass standard fine-tuning baselines.
- Student Beats Teacher: In specific tasks like Shuffled Objects and Coin Flip, fine-tuned student models actually outperformed the 175B teacher. This suggests that specialized fine-tuning allows smaller models to internalize task structures more deeply than general-purpose zero-shot prompting.
- Efficiency: Models 25x to 500x smaller than the teacher achieved comparable or superior performance on specific reasoning tasks, making them viable for edge deployment and low-latency applications.
Limitations and Future Work
While highly effective, Fine-tune-CoT has limitations. It does not always match the performance of models specifically engineered for a single task (e.g., specialized math solvers). Additionally, student models can sometimes imitate the teacher's "wordy" style without maintaining perfect logic, a phenomenon the authors suggest addressing in future work.
The method also depends on the teacher's ability to solve the task at least occasionally; if the teacher fails completely, there is no signal for the student to learn from. Future research directions include exploring more powerful teachers (like GPT-4) and investigating more complex distillation loss functions beyond simple next-token prediction.
Summary updated