Abstract
Large Language Models (LLMs) demonstrate remarkable reasoning capabilities but are often too computationally expensive for practical deployment. Knowledge distillation, particularly Chain-of-Thought (CoT) distillation, aims to transfer these capabilities to Small Language Models (SLMs). However, standard distillation often propagates LLM hallucinations and logic errors. This paper introduces "Mind's Mirror," a novel methodology that distills both reasoning steps and self-evaluation capabilities. By training SLMs on diverse reasoning paths and their corresponding critiques, the resulting models become more robust and capable of "comprehensive thinking," significantly outperforming traditional distillation methods.
Introduction
The deployment of Large Language Models (LLMs) like GPT-4 is limited by their massive scale. Knowledge distillation offers a path forward by training smaller "student" models to mimic "teacher" models. While Chain-of-Thought (CoT) distillation—where students learn intermediate reasoning steps—has shown promise, it suffers from a "garbage in, garbage out" problem. If the teacher hallucinates or provides flawed logic, the student inherits these errors. Furthermore, relying on a single reasoning path limits the student's understanding of the problem space.
Methodology: The Mind's Mirror Pipeline
The proposed "Mind’s Mirror" framework addresses these limitations through a four-step distillation process designed to capture the teacher's internal logic and evaluative capacity.
- Multiple CoT Generation: The teacher LLM generates several distinct reasoning paths for each question in an unlabeled dataset.
- Self-Evaluation Generation: The LLM critiques its own reasoning, producing rationales for why a path is correct or incorrect along with a final judgment.
- Distilling Self-Evaluation: The SLM is trained via multi-task learning to distinguish between valid and invalid logic, effectively learning the boundaries of sound reasoning.
- Distilling Comprehensive Thinking: The SLM is exposed to the full diversity of generated CoTs, broadening its understanding of the reasoning "state space."
The training process utilizes a multi-task loss function that balances label prediction and rationale generation, ensuring the model learns both the "what" and the "why" of a solution.
Key Insights
A central finding of this work is that the ability to critique reasoning is as distillable as the reasoning itself. By learning to identify errors in the teacher's output, the student model builds a "mirror" of the LLM's internal logic, allowing it to avoid common pitfalls like hallucinations. For instance, an LLM might generate a flawed reasoning path but correctly identify the error in its self-evaluation. By training on both the error and the correction, the student learns deeper logical constraints. This synergy suggests that "comprehensive thinking" requires both a breadth of ideas and a mechanism to filter them.
Experimental Results
The methodology was evaluated on three benchmarks: SVAMP (math), CommonsenseQA (CQA), and Adversarial NLI (ANLI). The "Mind's Mirror" approach consistently outperformed standard fine-tuning and basic CoT distillation across all tasks and model sizes (T5-Small, Base, and Large).
On the SVAMP dataset, the method improved T5-Small accuracy by 10.1% over standard CoT distillation. Notably, the approach proved robust even when using LLM-generated pseudo-labels instead of human-annotated ground truth, effectively "cleaning" the teacher's supervision during training.
The researchers found that performance scales with the number of CoTs and self-evaluations, with 5 of each providing an optimal balance between accuracy and computational cost. Beyond this point, returns diminish, likely due to increased noise or cognitive load on the smaller model.
Conclusion
"Mind's Mirror" shifts the paradigm of model distillation from simple imitation to introspective learning. By equipping smaller models with the ability to evaluate reasoning and explore multiple logical paths, this method paves the way for more reliable and efficient AI systems. Future work will focus on extending this methodology to other architectures and more subjective task domains.
Summary updated