Teaching Small Language Models to Reason
While large language models (LLMs) like PaLM and GPT-3 exhibit remarkable reasoning capabilities through Chain of Thought (CoT) prompting, these abilities are typically absent in models with fewer than 10 billion parameters. This research demonstrates a method to bridge this gap by "distilling" reasoning processes from massive "teacher" models into significantly smaller "student" models, such as the T5 family.
The Reasoning Gap in Small Models
In modern AI, multi-step reasoning is often viewed as an emergent property of scale. When prompted to "think step-by-step," massive models show significant performance gains on complex tasks. However, smaller models often fail this approach, generating illogical reasoning chains that degrade final answer accuracy. This creates a challenge for deploying reasoning-capable AI on limited hardware. The authors investigate whether finetuning small models on high-quality reasoning chains can transfer this capability.
Methodology: Knowledge Distillation of Reasoning
The researchers propose a two-step knowledge distillation pipeline designed to teach small models how to "think."
- Reasoning Extraction (Teacher): High-quality CoT explanations are generated using LLMs (e.g., PaLM 540B or GPT-3 175B). To ensure accuracy, the authors use "answer-augmented" prompting, where the teacher is provided with the correct answer before generating the explanation, forcing it to produce a valid logical path.
- Reasoning Replication (Student): Smaller student models (T5 XXL, XL, and Base) are finetuned on these generated explanations. Unlike standard training, the student learns to predict the entire reasoning chain before the final answer. At inference time, the student generates its own reasoning autonomously.
Evaluation and Datasets
The method was evaluated across three distinct reasoning domains:
- Arithmetic Reasoning: Benchmarks including GSM8K (grade school math), MAWPS, and ASDiv.
- Commonsense Reasoning: StrategyQA, which requires multi-step implicit logic.
- Symbolic Reasoning: Synthetic tasks like "Last Letter Concatenation" and "Coinflip."
Key Results and Scaling Effects
The experiments demonstrate that reasoning is a teachable skill, even for models as small as 220 million parameters.
- Significant Performance Gains: On the GSM8K math benchmark, the T5 XXL (11B) model's accuracy rose from 8.11% to 21.99% through distillation. When paired with an external calculator to handle raw arithmetic, performance further jumped to 38.21%.
- Efficiency and Parity: A CoT-distilled T5 Base model (220M) matched the performance of a T5 XXL model (11B) that was 44 times larger but lacked reasoning training. Furthermore, training on just 20% of CoT-augmented data outperformed 100% of standard "answer-only" data.
- Logic vs. Knowledge: While the method excels in math and symbolic logic, it is less effective for commonsense reasoning (StrategyQA). This suggests that while small models can learn logical structures, they still struggle with the vast world knowledge inherent in larger models.
Limitations and Future Directions
Despite the success in math and logic, several hurdles remain. The current approach is limited to English and single-task settings. Additionally, the reliance on proprietary teacher models like PaLM or GPT-3 poses accessibility challenges. Future work may focus on multi-task reasoning and using LLMs to generate entirely synthetic datasets to further enhance small model capabilities.
Summary updated