arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2212.09561cs.AIcs.CL
收藏

大型语言模型通过自我验证成为更好的推理器

Large Language Models are Better Reasoners with Self-Verification

The Laboratory of Cognition and Decision Intelligence for Complex Systems, IA, CAS(中国科学院自动化研究所复杂系统认知与决策智能实验室);School of Artificial Intelligence, University of Chinese Academy of Sciences(中国科学院大学人工智能学院);College of Electrical and Information Engineering, Hunan University(湖南大学电气与信息工程学院);Unisound(云知声);Shanghai Artificial Intelligence Laboratory(上海人工智能实验室)

Yixuan Weng, Minjun Zhu, Fei Xia, Bin Li, Shizhu He, Shengping Liu, Bin Sun, Kang Liu, Jun Zhao

AI总结:

针对大型语言模型在思维链推理中易受误差累积影响的问题,提出自我验证方法,通过反向验证模型推导的答案并计算验证分数来选择最优候选,有效提升了多类推理任务的性能。

摘要:

最近,借助思维链(CoT)提示,大型语言模型(LLMs),例如 GPT-3,在算术、常识和逻辑推理等几项自然语言处理任务中展现出了强大的推理能力。然而,使用 CoT 的 LLMs 需要多步提示和多 token 预测,这对个别错误高度敏感且容易受到误差累积的影响。上述问题使得 LLMs 需要具备验证答案的能力。事实上,在某些思维决策任务中推断出结论后,人们通常会通过重新验证步骤来检查它们以避免一些错误。在本文中,我们提出并证明了 LLMs 也具有类似的自我验证能力。我们将由 CoT 获得的结论作为解决原始问题的条件之一。通过对 LLM 自身推导出的答案进行反向验证,我们可以获得可解释的答案验证分数,从而选择得分最高的候选答案。实验结果表明,所提出的方法能够提升在各种算术、常识和逻辑推理数据集上的推理性能。我们的代码已在以下地址公开:https://github.com/WENGSYX/Self-Verification。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑