STaR: Bootstrapping Reasoning With Reasoning

Eric Zelikman, Yuhuai Wu, Jesse Mu, Noah D. Goodman
3/28/2022
1,252 citations
cs.LGcs.AIcs.CL

Official code: ezelikman/STaR (235 stars, Python, Apache-2.0, last commit 2023-02-21).

Abstract

Generating step-by-step "chain-of-thought" rationales improves language model performance on complex reasoning tasks like mathematics or commonsense question-answering. However, inducing language model rationale generation currently requires either constructing massive rationale datasets or sacrificing accuracy by using only few-shot inference.

Show full abstract

We propose a technique to iteratively leverage a small number of rationale examples and a large dataset without rationales, to bootstrap the ability to perform successively more complex reasoning. This technique, the "Self-Taught Reasoner" (STaR), relies on a simple loop: generate rationales to answer many questions, prompted with a few rationale examples; if the generated answers are wrong, try again to generate a rationale given the correct answer; fine-tune on all the rationales that ultimately yielded correct answers; repeat. We show that STaR significantly improves performance on multiple datasets compared to a model fine-tuned to directly predict final answers, and performs comparably to fine-tuning a 30$\times$ larger state-of-the-art language model on CommensenseQA. Thus, STaR lets a model improve itself by learning from its own generated reasoning.

View on arXivView PDF

Code Implementations(1)

ezelikman/STaROfficial100%
Apache-2.0

Code for STaR: Bootstrapping Reasoning With Reasoning (NeurIPS 2022)

23527Python, Jupyter NotebookOct 3, 20223 years agoApache-2.0

Similar Papers

Cite this paper

@article{zelikman2022star,
  title  = {STaR: Bootstrapping Reasoning With Reasoning},
  author = {Eric Zelikman and Yuhuai Wu and Jesse Mu and Noah D. Goodman},
  year   = {2022},
  eprint = {2203.14465},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2203.14465}
}

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

Discussion