[Paper Review] Distilling Reasoning Capabilities into Smaller Language Models
This paper proposes a knowledge distillation framework that transfers chain-of-thought (CoT) reasoning capabilities from large language models to smaller ones using a novel method called SOCRATIC COT, which decomposes problems into subquestion-solution pairs. The approach significantly boosts performance of small models—achieving over 70% relative improvement on GSM8K, StrategyQA, and SVAMP—enabling a GPT-2 large model to outperform a 10× larger GPT-3 6B model in some cases.
Step-by-step reasoning approaches like chain of thought (CoT) have proved to be very effective in inducing reasoning capabilities in large language models. However, the success of the CoT approach is fundamentally tied to the model size, and billion parameter-scale models are often needed to get CoT to work. In this paper, we propose a knowledge distillation approach that leverages the step-by-step CoT reasoning capabilities of larger models and distills these abilities into smaller models. In this work, we propose an alternative reasoning scheme, Socratic CoT, that learns a decomposition of the original problem into a sequence of subproblems and uses it to guide the intermediate reasoning steps. We use Socratic CoT to train a combination of two small distilled models: a problem decomposer and a subproblem solver. In practice, given a new problem, the two distilled models work in sync to decompose and solve complex problems. On multiple reasoning datasets (GSM8K, StrategyQA, and SVAMP), our proposed distillation strategies boosts the performance of smaller models over 70% compared to the baselines. Finally, we investigate when Socratic CoT is an effective alternative to CoT, demonstrating cases where a much smaller model (GPT-2 large) can outperform a 10X larger model (GPT-3 6B). Our code is available here: https://github.com/kumar-shridhar/Distiiling-LM
Motivation & Objective
- To enable smaller language models to acquire complex reasoning abilities typically found only in large models.
- To investigate whether knowledge distillation using step-by-step reasoning from large models can effectively transfer reasoning capabilities to smaller models.
- To explore whether subquestion-based decomposition (SOCRATIC COT) improves reasoning generalization over standard CoT supervision.
- To demonstrate that smaller models can outperform larger ones when trained with the proposed distillation framework.
Proposed method
- Using a large language model as a teacher to generate step-by-step reasoning annotations for multi-step reasoning problems.
- Introducing SOCRATIC COT, a two-stage framework with a question generator and a question-answering model to decompose problems into subquestion-solution pairs.
- Training a student model on both gold-standard CoT solutions and LLM-generated subquestion-solution pairs to provide stronger supervision.
- Applying a guidance mechanism that conditions subquestion generation on intermediate equations or solution steps to improve quality.
- Fine-tuning small student models (e.g., GPT-2) using the distilled supervision from the teacher model’s reasoning outputs.
- Evaluating performance across multiple reasoning datasets: GSM8K, StrategyQA, and SVAMP under various supervision regimes.
Experimental results
Research questions
- RQ1Can reasoning capabilities from large language models be effectively distilled into smaller models without access to the teacher’s parameters?
- RQ2Does subquestion-based supervision via SOCRATIC COT lead to better reasoning performance than standard CoT supervision in small models?
- RQ3In what scenarios does SOCRATIC COT outperform standard CoT, and can it enable smaller models to surpass larger models?
- RQ4How effective is guidance in improving the quality of generated subquestions during distillation?
- RQ5Can the distillation framework be generalized across diverse reasoning datasets with varying annotation availability?
Key findings
- The proposed distillation framework improves the performance of smaller language models by over 70% relative to baseline methods on GSM8K, StrategyQA, and SVAMP.
- Using SOCRATIC COT supervision, a GPT-2 large model outperforms a 10× larger GPT-3 6B model on certain reasoning tasks.
- Guidance during subquestion generation significantly improves question quality, increasing BLEU score from 51.5 to 58.8 and BERT F1 from 0.78 to 0.81.
- Fine-tuning with LLM-generated step-by-step annotations leads to a 40% performance gain over baselines on GSM8K.
- Eliminating the need for a separate question-generation module at inference time results in significant performance degradation, indicating that subquestions are essential for effective reasoning transfer.
- The framework demonstrates that distillation using semantic decomposition via subquestions is more effective than direct CoT imitation, especially when gold CoT data is limited.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.