arXiv:2203.14465 · 中英对照阅读
STaR:自学推理器(STaR)通过推理实现推理能力自举
STaR: Self-Taught Reasoner Bootstrapping Reasoning With Reasoning
中文速览
让语言模型在数学和常识题上学会稳定地一步步推理,往往需要昂贵的大规模推理标注,光靠少量示例又不够准。研究者提出 STaR:先用少量带推理过程的例子引导模型作答,把答对的推理过程收集起来训练模型;遇到答错的题,再把标准答案告诉模型,让它倒推一段能得出该答案的推理过程,也纳入训练,然后反复迭代。实验显示,这种自我训练能提升算术、数学应用题和常识推理表现;在 CommonsenseQA 上,准确率达到 72.5%,接近参数量大 30 倍的模型。它的重要之处在于,模型可以借助少量示例和现成题目逐步积累推理能力,减少对大规模人工推理标注的依赖。
摘要
生成逐步的“思维链”推理过程,能够提升语言模型在数学或常识问答等复杂推理任务上的表现。然而,目前要诱导语言模型生成推理过程,要么需要构建庞大的推理过程数据集,要么只能采用少样本推理而牺牲准确性。我们提出一种技术,通过迭代利用少量推理过程示例和一个不含推理过程的大型数据集,自举出逐步进行更复杂推理的能力。这项名为“自学推理器(STaR)”的技术依赖一个简单的循环:在少量推理过程示例的提示下,生成推理过程以回答大量问题;如果生成的答案错误,则尝试在给定正确答案的情况下重新生成推理过程;在所有最终得出正确答案的推理过程上进行微调;然后重复这一过程。我们表明,与经过微调以直接预测最终答案的模型相比,STaR 在多个数据集上的性能显著提升;在 CommonsenseQA 常识问答数据集上,其表现与对规模大 30 $\times$ 的最先进语言模型进行微调相当。因此,STaR 使模型能够通过从自身生成的推理中学习来提升自身能力。
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. 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.
术语表
- chain-of-thought
- 思维链
- rationale
- 推理过程
- rationale generation
- 推理过程生成
- Self-Taught Reasoner (STaR)
- 自学推理器(STaR)
- bootstrapping
- 自举
- rationalization
- 合理化
- large language model (LLM)
- 大语言模型(LLM)
- in-context learning
- 上下文学习
- few-shot learning
- 少样本学习
- few-shot prompting
- 少样本提示
- direct prompting
- 直接提示
- fine-tuning
- 微调
- scratchpad
- 草稿步骤
- intermediate reasoning
- 中间推理
- intermediate task supervision
- 中间任务监督
- out-of-distribution generalization
- 分布外泛化
- in-distribution performance
- 分布内性能
- CommonsenseQA
- CommonsenseQA 常识问答数据集
- arithmetic reasoning
- 算术推理
- mathematical reasoning
- 数学推理
- commonsense reasoning
- 常识推理
- natural language inference
- 自然语言推理
- curriculum learning
- 课程学习
- Expert Iteration (ExIt)
- 专家迭代(ExIt)
- Bayesian inference
- 贝叶斯推断
- induction heads
- 归纳头
- soft prompt
- 软提示
- latent variable model
- 潜变量模型