[论文解读] Large Language Models are Better Reasoners with Self-Verification
本文提出一种自验证方法,使大型语言模型(LLMs)能够通过反向验证自身思维链(CoT)输出来提升推理能力。通过遮蔽原始条件并从CoT推导出的结论中重新预测这些条件,LLMs生成可解释的验证分数,以选择最一致的答案,在无需微调的情况下,在算术、常识和逻辑推理基准上达到最先进性能。
Recently, with the chain of thought (CoT) prompting, large language models (LLMs), e.g., GPT-3, have shown strong reasoning ability in several natural language processing tasks such as arithmetic, commonsense, and logical reasoning. However, LLMs with CoT require multi-step prompting and multi-token prediction, which is highly sensitive to individual mistakes and vulnerable to error accumulation. The above issues make the LLMs need the ability to verify the answers. In fact, after inferring conclusions in some thinking decision tasks, people often check them by re-verifying steps to avoid some mistakes. In this paper, we propose and prove that LLMs also have similar self-verification abilities. We take the conclusion obtained by CoT as one of the conditions for solving the original problem. By performing a backward verification of the answers that LLM deduced for itself, we can obtain interpretable answer validation scores to select the candidate answer with the highest score. Experimental results demonstrate that the proposed method can improve the reasoning performance on various arithmetic, commonsense, and logical reasoning datasets. Our code is publicly available at: https://github.com/WENGSYX/Self-Verification.
研究动机与目标
- 为解决思维链(CoT)推理中的错误累积问题,使LLMs能够自验证其推理输出。
- 消除对人工标注验证器或微调模型进行答案验证的依赖。
- 在少样本和零样本设置下,无需额外训练即可提升推理性能。
- 通过生成逐步验证分数,增强LLM预测的可解释性。
提出的方法
- 在前向推理中,LLMs 使用思维链(CoT)提示生成候选答案。
- 在反向验证中,模型遮蔽一个或多个原始条件,并从CoT推导出的结论中重新预测这些条件。
- 通过测量预测值与原始条件值之间的一致性来计算验证分数。
- 该方法使用少样本提示,引导模型在无需微调的情况下执行反向验证。
- 根据验证分数对候选答案进行排序,选择最一致的答案。
- 该方法端到端应用,无需梯度更新或额外模型训练。
实验结果
研究问题
- RQ1LLMs能否有效自验证其推理输出,以减少多步推理中的错误累积?
- RQ2与标准CoT相比,自验证在算术、常识和逻辑推理任务上的性能提升如何?
- RQ3自验证能否仅通过提示工程实现,而无需微调或外部验证器?
- RQ4自验证在多大程度上增强了LLM预测的可解释性和可靠性?
- RQ5自验证是否能在多种推理任务上泛化,并优于现有基于CoT的方法?
主要发现
- 该自验证方法在无需微调的情况下,将GSM8K数据集上的推理准确率从60.8%提升至65.1%。
- 在SingleEq数据集中,性能从91.01%提升至93.40%。
- 该方法在多个推理基准上均实现了稳定提升,包括AQuA和数学应用题。
- 自验证通过提供可解释的、逐步的验证分数,增强了预测的可靠性。
- 当与自一致性及Least-to-Most提示结合时,自验证进一步提升了前向推理基线的性能。
- 该方法表明,LLMs可通过极少提示实现推理的自主验证,无需外部验证器或微调。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。