Introduction
Recent advancements in Large Language Models (LLMs) like GPT-3 have highlighted their remarkable "Chain of Thought" (CoT) reasoning capabilities. However, the immense computational cost of these models makes them difficult to deploy in production environments. This research explores whether small language models (SLMs) can achieve similar reasoning prowess by "learning to explain." By distilling knowledge from a 175-billion parameter GPT-3 into a 3-billion parameter T5 model using a multi-task framework, the authors demonstrate that smaller models can indeed become highly effective reasoners, sometimes even surpassing their larger teachers.
The Challenge of Reasoning in Small Models
While LLMs excel at multi-step reasoning, SLMs typically struggle with complex logic. Previous attempts to bridge this gap using human-annotated explanations often hit a wall due to the inconsistency and noise inherent in crowdsourced data. Human explanations are frequently ungrammatical or logically flawed. This paper investigates a different path: using the highly consistent, "infinite" explanations generated by an LLM to teach an SLM how to reason.
Methodology: Distilling Reasoning
The researchers developed a pipeline to transfer reasoning capabilities from a "Teacher" LLM to a "Student" SLM.
Explanation Generation
Three strategies were employed to extract high-quality explanations from GPT-3:
- COTE (CoT with rEjection): Explanations are kept only if the LLM's final prediction is correct.
- RP (Rationalization Prompting): The LLM is provided with the correct answer and tasked with justifying it.
- CROP (The Hybrid Approach): A robust method that uses COTE when the LLM is correct and defaults to RP when it is not, ensuring a complete training set of high-quality explanations.
Multi-Task Learning (MTL)
The student model (T5) is trained on two tasks simultaneously: direct answer prediction and explanation generation followed by the answer (MT-CoT). This dual-task approach encourages the model to learn the underlying logic of a problem rather than just memorizing input-output patterns.
Experimental Setup
The approach was evaluated on three challenging benchmarks:
- CommonsenseQA: A 5-way multiple-choice task requiring everyday knowledge.
- StrategyQA: A binary (yes/no) task requiring implicit multi-hop reasoning.
- OpenbookQA: A 4-way multiple-choice task requiring the synthesis of facts and broad common knowledge.
Key Insights
- Consistency Over "Golden" Labels: Explanations generated by LLMs proved more effective for training than human-written ones, likely due to their more uniform logical structure which is easier for smaller models to learn.
- The Power of MT-CoT: Forcing the model to generate an explanation before the answer (MT-CoT) was the most successful setup, mimicking human deliberative thinking.
- Efficiency Gains: The multi-task approach showed particular strength in low-data regimes, providing a 6-8% accuracy boost with as few as 50 training samples.
Results
The distilled T5-3B model showed remarkable performance, particularly on the CommonsenseQA dataset where it outperformed its own teacher.
As shown in the table above, the T5-3B model achieved an accuracy of 82.47% on CommonsenseQA, surpassing the 60x larger GPT-3 (175B) by 9.5% in few-shot settings. Human evaluations also confirmed that the T5 model's explanations were competitive with GPT-3's 58% of the time.
Limitations and Future Work
Despite these successes, the method is sensitive to the weighting of the two training tasks and currently focuses strictly on textual reasoning. Future work may explore symbolic, mathematical, and arithmetic reasoning. Additionally, there is a risk of the student model inheriting social or racial biases present in the teacher model's explanations.
Summary updated