Introduction
Large Language Models (LLMs) have demonstrated a remarkable ability to solve complex problems by "thinking out loud" through Chain of Thought (CoT) prompting. However, this reasoning capability is often viewed as an emergent property exclusive to massive models with tens of billions of parameters. Smaller models typically fail when prompted to show their work, often producing illogical steps or hallucinations that degrade overall accuracy. This research explores whether reasoning can be distilled from giant models like PaLM 540B into smaller architectures, effectively teaching them to reason.
The Reasoning Gap
When models under 10 billion parameters are asked to use CoT prompting, they frequently struggle to maintain logical consistency. Instead of improving performance, the requirement to generate intermediate steps often leads to lower accuracy than direct answering. The fundamental question addressed here is whether reasoning is a byproduct of scale or a skill that can be transferred via expert demonstration.
Methodology: Knowledge Distillation for Reasoning
The researchers propose a two-step knowledge distillation pipeline designed to bridge the reasoning gap.
- CoT Generation (The Teacher): High-quality reasoning chains are generated using LLMs such as PaLM 540B and GPT-3 175B. To ensure the accuracy of these "textbooks," the authors employed a "Solution-in-Prompt" trick: the teacher model is provided with the correct answer as a hint. This helps the teacher correct potential arithmetic or logic errors, resulting in a cleaner training set for the student.
- Finetuning (The Student): Smaller "student" models, ranging from T5 Base (220M) to T5 XXL (11B), are finetuned on these teacher-generated chains. Unlike the teacher, the student is trained to generate the reasoning and the answer as a single target string, internalizing the "thinking" process as part of its standard output.
Experimental Setup
The method was evaluated across three distinct domains:
- Arithmetic Reasoning: Using datasets like GSM8K, MAWPS, and ASDiv.
- Commonsense Reasoning: Evaluated via StrategyQA, which requires multi-step implicit reasoning.
- Symbolic Reasoning: Tested through synthetic tasks like "Last Letter Concatenation" and "Coinflip" to assess out-of-distribution generalization.
Key Results
The distillation approach yielded significant performance improvements across all tested model sizes.
Breakthroughs in Arithmetic
On the GSM8K benchmark, the T5 XXL (11B) model's accuracy jumped from a baseline of 8.11% to 21.99% after distillation. When paired with an external calculator to verify the structured equations generated by the model, accuracy further soared to 38.21%.
Shrinking the Model
One of the most striking findings is the efficiency of the distilled models. A T5 Base model (220M parameters) trained with CoT distillation matched the performance of the 11B parameter T5 XXL baseline. This represents a 50x reduction in model size for equivalent performance, suggesting that reasoning patterns are highly compressible and can be effectively mimicked by smaller architectures.
Data Efficiency and Synergy
The method proved to be approximately 6x more data-efficient than standard finetuning. Training on just 20% of the CoT-enhanced data outperformed models trained on 100% of standard "answer-only" data. Furthermore, the ability of small models to produce structured logic allowed for synergy with external tools like calculators, which compensated for the models' inherent difficulties with raw arithmetic.
Limitations and Future Work
While successful, the approach has limitations. In commonsense reasoning (StrategyQA), improvements were less pronounced, likely because small models lack the vast "world knowledge" stored in larger LLMs. Additionally, while the student models are efficient at inference, the initial data generation remains dependent on expensive, massive teacher models. Future research may explore multi-task finetuning and techniques like self-consistency to further enhance the reasoning capabilities of compact models.
Summary updated