RCOT:通过逆向思维链检测并纠正推理中的事实不一致性
RCOT: Detecting and Rectifying Factual Inconsistency in Reasoning by Reversing Chain-of-Thought
AI总结:
本文提出RCoT方法,通过让LLM依据解答逆向重构问题并与原题细粒度比较,检测事实不一致,再生成细粒度反馈纠正推理,在七个算术数据集上优于多种基线。
摘要:
大型语言模型(LLM)通过结合逐步的思维链(CoT)提示,在算术推理任务上取得了可观的性能。然而,LLM在推理过程中难以保持事实一致性,表现出对给定问题的条件忽视、问题误解以及条件幻觉等倾向。现有方法使用粗粒度反馈(例如答案是否正确)来提升事实一致性。在本研究中,我们提出RCoT(Reversing Chain-of-Thought,逆向思维链),这是一种通过自动检测并纠正LLM所生成解答中的事实不一致性来提升LLM推理能力的新方法。为检测事实不一致性,RCoT首先要求LLM基于生成的解答重构问题。随后,对原始问题与重构问题进行细粒度比较,从而揭示原始解答中的事实不一致性。为纠正解答,RCoT将检测到的事实不一致性表述为细粒度反馈,以指导LLM修改解答。实验结果表明,在七个算术数据集上,RCoT相较标准CoT、Self-Consistency和Self-Refine均取得提升。此外,我们发现人工编写的细粒度反馈能够显著提升LLM的推理能力(例如,ChatGPT在GSM8K上达到94.6%的准确率),这鼓励社区进一步探索细粒度反馈生成方法。
英文摘要:
Large language Models (LLMs) have achieved promising performance on arithmetic reasoning tasks by incorporating step-by-step chain-of-thought (CoT) prompting. However, LLMs face challenges in maintaining factual consistency during reasoning, exhibiting tendencies to condition overlooking, question misinterpretation, and condition hallucination over given problems. Existing methods use coarse-grained feedback (e.g., whether the answer is correct) to improve factual consistency. In this work, we propose RCoT (Reversing Chain-of-Thought), a novel method to improve LLMs' reasoning abilities by automatically detecting and rectifying factual inconsistency in LLMs, generated solutions. To detect factual inconsistency, RCoT first asks LLMs to reconstruct the problem based on generated solutions. Then fine-grained comparisons between the original problem and the reconstructed problem expose the factual inconsistency in the original solutions. To rectify the solution, RCoT formulates detected factual inconsistency into fine-grained feedback to guide LLMs in revising solutions. Experimental results demonstrate improvements of RCoT over standard CoT, Self-Consistency and Self-Refine across seven arithmetic datasets. Moreover, we find that manually written fine-grained feedback can dramatically improve LLMs' reasoning abilities (e.g., ChatGPT reaches 94.6% accuracy on GSM8K), encouraging the community to further explore the fine-grained feedback generation methods.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。