Large Language Models Are Reasoning Teachers

Namgyu Ho, Laura Schmid, Se-Young Yun
12/20/2022
cs.CLcs.AIcs.LG

Official code: itsnamgyu/reasoning-teacher (346 stars, Jupyter Notebook, MIT, last commit 2025-03-07).

Abstract

Recent works have shown that chain-of-thought (CoT) prompting can elicit language models to solve complex reasoning tasks, step-by-step. However, prompt-based CoT methods are dependent on very large models such as GPT-3 175B which are prohibitive to deploy at scale.

Show full abstract

In this paper, we use these large models as reasoning teachers to enable complex reasoning in smaller models and reduce model size requirements by several orders of magnitude. We propose Fine-tune-CoT, a method that generates reasoning samples from very large teacher models to fine-tune smaller models. We evaluate our method on a wide range of public models and complex tasks. We find that Fine-tune-CoT enables substantial reasoning capability in small models, far outperforming prompt-based baselines and even the teacher model in many tasks. Additionally, we extend our method by leveraging the teacher model's ability to generate multiple distinct rationales for each original sample. Enriching the fine-tuning data with such diverse reasoning results in a substantial performance boost across datasets, even for very small models. We conduct ablations and sample studies to understand the emergence of reasoning capabilities of student models. Our code implementation and data are available at https://github.com/itsnamgyu/reasoning-teacher.

View on arXivView PDF

Code Implementations(1)

MIT

Large Language Models Are Reasoning Teachers (ACL 2023)

34624Jupyter Notebook, PythonDec 19, 20221 years agoMIT

Similar Papers

Cite this paper

@article{ho2022large,
  title  = {Large Language Models Are Reasoning Teachers},
  author = {Namgyu Ho and Laura Schmid and Se-Young Yun},
  year   = {2022},
  eprint = {2212.10071},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2212.10071}
}

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

Discussion