Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

STaR: Bootstrapping Reasoning With Reasoning

  • Problem Fine-tuning a model to produce rationales needs costly annotated or templated rationales, while few-shot prompting alone trails models fine-tuned to predict answers directly.
  • Method Fine-tunes GPT-J on rationales it generated itself, keeping those that reach the correct answer and adding rationales produced from a hint, then repeats the loop with each new model.
  • Results Reached 72.5% accuracy on the CommonsenseQA dev set with rationalization, against 73.0% for GPT-3 fine-tuned to predict answers directly.

Why rationale generation is hard to induce

Intermediate reasoning written out before a final answer has been shown to help language models, so getting a model to produce such reasoning reliably is the practical problem.

One route builds a fine-tuning set of rationales, either by hand from human annotators or automatically from templates. Human annotation is expensive and hard to scale across problems, and templates only work where a general solution or workable heuristic already exists. The other route places a few rationale examples in the prompt. This improves over direct prompting, but such few-shot models generally fall well behind models fine-tuned on larger datasets to predict answers directly.

The STaR loop

STaR starts from a pretrained model M and a dataset of questions with ground-truth answers. A prompt containing P example questions, each with a rationale and an answer, is prepended to every training question, so the model writes a rationale and then an answer. Figure 1 shows this generation step, the filtering step and the outer fine-tuning loop, which is drawn with a dashed line.

The base model is then fine-tuned on the kept rationales, and the next round generates rationales with the newly tuned model. Each round starts again from the original pretrained weights rather than continuing from the last model, which the authors use to avoid overfitting. The cycle repeats until performance plateaus.

Rationalization for failed problems

Filtering gives no training signal for problems the model cannot solve, so improvement stops once the model stops solving new training problems. Rationalization addresses this. For each failed problem, the correct answer is placed in the prompt as a hint, and the model writes a rationale that leads to it. The authors describe the model as reasoning backward from the answer, which makes a suitable rationale easier to generate.

The hint is left out of the stored example, so the rationale appears to be the model's own unaided reasoning. Only rationalized rationales whose answer is correct join the filtered set before fine-tuning.

The authors identify two benefits: the model is exposed to difficult problems it would otherwise never train on, and the training dataset grows.

Relation to a policy gradient objective

The authors view M as a latent variable model in which a rationale r is sampled first and the answer y is predicted from it, so \( p_M(y \mid x) = \sum_r p(r \mid x)\, p(y \mid x, r) \). With the indicator reward \(\mathbf{1}(\hat{y}=y)\), the expected reward over the dataset is a sum over examples, and its gradient is the same sum with each term weighted by the indicator and the gradient of the log-probability of the sampled rationale and answer.

The indicator removes the gradient for sampled rationales that miss the correct answer, which is the filtering step in STaR. STaR approximates this objective in two ways: it decodes greedily to reduce the variance of the estimate, at the cost of possibly biased exploration, and it takes several gradient steps on the same batch. The authors leave a closer study of the link to the reinforcement learning objective for future work.

Models, datasets and training budgets

All experiments use GPT-J, a 6B-parameter model. The authors chose it because its checkpoint and fine-tuning code are publicly available and because it is large enough to produce rationales of non-trivial quality.

The first outer loop uses 40 training steps, and each later loop increases the fine-tuning steps by 20%. Learning rate warms up for 100 steps and is then held constant. The authors note that training more slowly at the start helped model performance.

For arithmetic, 50,000 questions were generated in advance, uniformly across digit lengths, and 10,000 were sampled per outer loop. Each digit length has 10 random few-shot rationale examples, and few-shot prompts cover 1 to 5 digits.

For CommonsenseQA, each of the 9,741 training questions is added to the few-shot rationale prompt. The few-shot prompt starts from the same 10 questions used in prior chain-of-thought work, with their rationales lightly edited to fix an error and make the relevant knowledge explicit.

GSM8K contains 7,473 training and 1,319 test examples of grade-school word problems.

Arithmetic results

Few-shot accuracy with scratchpads is very low: 2-digit addition is below 1% and longer sums are close to zero.

Without rationalization, the model learns one length at a time and reaches a good n-digit sum only after the (n-1)-digit sum is good.

When the authors added 9 and 10 digit problems at the 20th iteration, the model solved many of them, although none were seen during training. This extra digit training made learning less stable, and the cause is unclear.

CommonsenseQA results

Relative to the few-shot baseline the gain is +35.9%, and relative to the baseline fine-tuned to predict answers directly the gain is +12.5%. STaR with rationalization comes close to the 73.0% of GPT-3, a model 30× larger, and the authors expect accuracy would rise further on a model with stronger few-shot performance.

Choosing among five options gives about 20% correct at random, and simple heuristics reach about 30% without reasoning, so the CommonsenseQA numbers should be read against that floor.

Including few-shot prompts during fine-tuning raised accuracy from 60.9% to 68.8% without rationalization and from 69.9% to 72.5% with rationalization.

The human study used 50 sampled rationales from few-shot chain-of-thought and from STaR on questions both answered correctly, together with human-written rationales. Twenty crowdworkers each ranked rationales for 10 questions. Participants were 30% more likely to rank STaR-generated rationales above few-shot rationales (p = .039), and 74% more likely to prefer them over human-generated rationales (p < .001).

The authors do not read the second result as human-level rationale generation.

Failures often took the form of logical fallacies, such as statements on the topic that do not argue for the answer, or claims that the question implies the answer. Early in training the model sometimes answered as if about a particular individual rather than stating a general fact.

GSM8K results

Rationalization did not substantially change performance on this task.

Training was capped at the 30th iteration, after 7912 steps, to keep runs from becoming prohibitively long. The results were reached after 36 iterations without rationalization and 10 further iterations with it.

The number of calculation steps the model generated matched the human-written count in roughly 53% to 57% of cases across iterations. When they differed, the model typically used fewer steps, sometimes by skipping them and sometimes by finding a different solution.

Why rationalization rather than higher temperature

Higher-temperature sampling is an intuitive way to enlarge the training set, but the authors found it counterproductive: it raises the chance of a correct answer despite faulty reasoning, and training on such reasoning prevents generalization. Across temperatures such as 0.5 or 0.7, the authors found the resulting models worse than models trained on reasoning alone.

Generation is sequential, so sampling several outputs costs roughly proportionally more time. Generating 10 sample outputs is about 10 times slower than generating one.

The authors suggest that outputs obtained without rationalization come from examples where the model is most confident, which gives them a weaker gradient signal than rationalization examples, at least in the first iteration.

Including few-shot prompts during sampling reduces drift, where later rationales become less like the initial set. The cost is that the rationale style can match the original prompts less closely, while leaving them out gives shorter prompts and sequences. Without few-shot prompts after the first iteration, rationalization gets gradually worse as training runs longer, so hints may be needed for long training.

The authors suggest treating prompt inclusion as a hyperparameter that depends on whether prompt-style adherence or a faster loop matters more.

Limitations

The first iteration needs few-shot performance above chance, so the initial model must have some reasoning ability. GPT-2 did not bootstrap from few-shot reasoning, even on arithmetic.

Settings with high chance performance, such as binary decisions, yield many poor rationales that confound the approach, and the authors leave how to filter bad reasoning in these settings open.

CommonsenseQA contains typos, some questions are fundamentally ambiguous, and it has biases including gender bias. The authors use it anyway as a general question-answering test-bed.

The hint in rationalization is not always easy to construct from a question and answer, and the authors leave the effect of different hinting techniques for future work.

Paper info

Authors
Eric Zelikman, Yuhuai Wu, Jesse Mu, Noah D. Goodman
Venue
arXiv · Preprint
First published
2022-3-28
Added
2026-10-20
Updated
2022-5-20
Version
v2
arXiv
2203.14465
Category
cs.LG · cs.AI · cs.CL
Original paper terms
arXiv non-exclusive 1.0
What we show
Paper info and commentary

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Quote from the paper

Eric Zelikman, Yuhuai Wu, Jesse Mu, Noah D. Goodman (2022). STaR: Bootstrapping Reasoning With Reasoning. arXiv:2203.14465v2. https://arxiv.org/abs/2203.14465v2

BibTeX
@misc{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.14465v2}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up