Abstract
Large language models (LLMs) exhibit impressive emergent abilities in natural language processing, but their democratization is hindered due to huge computation requirements and closed-source nature. Recent research on advancing open-source smaller LMs by distilling knowledge from black-box LLMs has obtained promising results in the instruction-following ability. However, the reasoning ability which is more challenging to foster, is relatively rarely explored. In this paper, we propose a tailored learning approach to distill such reasoning ability to smaller LMs to facilitate the democratization of the exclusive reasoning ability. In contrast to merely employing LLM as a data annotator, we exploit the potential of LLM as a reasoning teacher by building an interactive multi-round learning paradigm. This paradigm enables the student to expose its deficiencies to the black-box teacher who then can provide customized training data in return. Further, to exploit the reasoning potential of the smaller LM, we propose self-reflection learning to motivate the student to learn from self-made mistakes. The learning from self-reflection and LLM are all tailored to the student's learning status, thanks to the seamless integration with the multi-round learning paradigm. Comprehensive experiments and analysis on mathematical and commonsense reasoning tasks demonstrate the effectiveness of our method. The code will be available at https://github.com/Raibows/Learn-to-Reason.
Introduction
While Large Language Models (LLMs) like GPT-4 demonstrate "emergent" reasoning capabilities—such as solving complex multi-step problems through Chain-of-Thought (CoT) rationales—these abilities are largely absent in smaller, open-source models (typically under 10 billion parameters). This disparity creates a significant barrier to the democratization of advanced AI reasoning.
Traditional knowledge distillation methods often treat the teacher LLM as a static data annotator, where a student model is fine-tuned on a fixed set of rationales. However, this approach is often inefficient because the teacher remains "blind" to the student's specific logical weaknesses. To address this, we propose a tailored learning approach that fosters an interactive "tutor-pupil" relationship between a large teacher LLM and a smaller student language model (LM).
The Tailored Learning Paradigm
Our approach moves beyond static distillation by introducing a Tailored Multi-Round Learning Paradigm. This framework consists of three iterative stages designed to target the student's specific logical gaps:
- The "Exam" Phase: In each round, the student model (e.g., GPT-J 6B) attempts to solve a set of reasoning tasks. We identify "mistakes" where the student fails to produce the correct rationale or final answer.
- Customized Teacher Feedback: Instead of requesting a generic solution, the student provides its incorrect rationale to the teacher LLM (ChatGPT). The prompt explicitly asks the teacher to correct the student's specific reasoning errors. This ensures the training data is directly relevant to the student's current learning state.
- Self-Reflection Learning: To help the student distinguish between valid and invalid logic, we implement a self-reflection mechanism using a triplet-loss objective. This motivates the model to pull its internal representations closer to correct teacher-provided rationales while pushing them away from its own previous incorrect attempts.
Experimental Evaluation
We evaluated our method on diverse reasoning benchmarks, covering both mathematical and commonsense domains. The "tailored" approach yielded significant performance boosts across the board.
Mathematical Reasoning
On the GSM8K dataset (grade school math), the student model's accuracy improved dramatically from a baseline of 7.2% (standard fine-tuning) to 33.1% using the full tailored method. This performance exceeds concurrent distillation methods that utilized significantly larger training datasets, highlighting the efficiency of tailored feedback.
Commonsense Reasoning
In commonsense tasks like StrategyQA, which require implicit multi-hop reasoning, the 6B student model achieved 65.9% accuracy. This result is remarkably close to the 175B teacher's performance of 68.6%, despite the student being nearly 30 times smaller.
Analysis of Self-Reflection
A key insight of this work is that a student's errors are valuable "negative samples." By incorporating these errors into the training process via self-reflection, the model learns to better navigate the reasoning space.
As shown in the t-SNE visualization above, the self-reflection mechanism helps the model's latent space better cluster valid reasoning paths while effectively separating them from invalid ones. This contrastive learning approach prevents the model from repeating its previous mistakes and leads to more robust reasoning logic.
Conclusion and Future Work
This paper demonstrates that reasoning ability can be effectively distilled into smaller models through interactive, tailored learning. By allowing the student to learn from its own failures and receive targeted guidance, we significantly narrow the gap between small open-source models and giant closed-source LLMs.
Future work includes reducing dependence on high-powered black-box teachers, as teacher errors can propagate to the student. Additionally, moving beyond final-answer correctness to "process evaluation" could further refine the learning process. Finally, applying this paradigm to even stronger open-source foundations like LLaMA holds great promise for further democratizing high-level reasoning.
Summary updated