Symbolic Chain-of-Thought Distillation: Small Models Can Also "Think" Step-by-Step

Liunian Harold Li, Jack Hessel, Youngjae Yu, Xiang Ren, Kai-Wei Chang +1 more
6/24/2023
cs.CL

No official code found. Best implementation: liunian-harold-li/scotd (16 stars, last commit 2024-04-15).

Abstract

Chain-of-thought prompting (e.g., "Let's think step-by-step") primes large language models to verbalize rationalization for their predictions. While chain-of-thought can lead to dramatic performance gains, benefits appear to emerge only for sufficiently large models (beyond 50B parameters). We show that orders-of-magnitude smaller models (125M -- 1.3B parameters) can still benefit from chain-of-thought prompting. To achieve this, we introduce Symbolic Chain-of-Thought Distillation (SCoTD), a method to train a smaller student model on rationalizations sampled from a significantly larger teacher model. Experiments across several commonsense benchmarks show that: 1) SCoTD enhances the performance of the student model in both supervised and few-shot settings, and especially for challenge sets; 2) sampling many reasoning chains per instance from the teacher is paramount; and 3) after distillation, student chain-of-thoughts are judged by humans as comparable to the teacher, despite orders of magnitude fewer parameters. We test several hypotheses regarding what properties of chain-of-thought samples are important, e.g., diversity vs. teacher likelihood vs. open-endedness. We release our corpus of chain-of-thought samples and code.

View on arXivView PDF

Code Implementations(1)

160Shell, PythonApr 15, 20242 years ago

Similar Papers

Cite this paper

@article{li2023symbolic,
  title  = {Symbolic Chain-of-Thought Distillation: Small Models Can Also "Think" Step-by-Step},
  author = {Liunian Harold Li and Jack Hessel and Youngjae Yu and Xiang Ren and Kai-Wei Chang and Yejin Choi},
  year   = {2023},
  eprint = {2306.14050},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2306.14050v2}
}

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/2306.14050.svg)](https://codeofpaper.com/paper/2306.14050)

Discussion