Distilling Reasoning Capabilities into Smaller Language Models

Kumar Shridhar, Alessandro Stolfo, Mrinmaya Sachan
12/1/2022
cs.LGcs.CL
distillation

Official code: kumar-shridhar/Distiiling-LM (8 stars, last commit 2023-05-17).

Abstract

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.

Show full abstract

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

View on arXivView PDF

Code Implementations(1)

The code for the paper : Distilling Reasoning Capabilities into Smaller Language Models

82May 17, 20233 years ago

Similar Papers

Cite this paper

@article{shridhar2022distilling,
  title  = {Distilling Reasoning Capabilities into Smaller Language Models},
  author = {Kumar Shridhar and Alessandro Stolfo and Mrinmaya Sachan},
  year   = {2022},
  eprint = {2212.00193},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2212.00193}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2212.00193.svg)](https://codeofpaper.com/paper/2212.00193)

Discussion