arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2504.09440cs.AI
收藏

基于自一致性幻觉检测增强大型语言模型的数学推理能力

Enhancing Mathematical Reasoning in Large Language Models with Self-Consistency-Based Hallucination Detection

The Hong Kong University of Science and Technology(香港理工大学);Fudan University(复旦大学)

MingShan Liu, Jialing Fang

AI总结:

提出结构化自一致性框架,在中间步骤和最终输出上强制一致性,以减少大型语言模型在定理证明、符号变换和数值计算中的幻觉,显著提升推理准确性与稳定性。

摘要:

大型语言模型(LLMs)已展现出强大的数学推理能力,但仍然容易产生幻觉,即生成看似合理实则错误的陈述,尤其是在定理证明、符号操作和数值计算中。尽管自一致性(SC)已被探索作为提高LLMs事实性的一种手段,但现有方法主要将SC应用于最终答案的选择,忽略了中间推理步骤的逻辑一致性。在这项工作中,我们引入了一个结构化的自一致性框架,旨在增强数学推理的可靠性。我们的方法在中间步骤和最终输出上强制执行自一致性,减少了逻辑不一致和幻觉。我们在三个核心数学任务上评估了我们的方法:定理证明、符号变换和数值计算。实验结果表明,SC显著提高了证明有效性、符号推理准确性和数值稳定性,同时保持了计算效率。进一步的分析揭示,结构化自一致性不仅提高了问题解决的准确性,还降低了模型生成输出的方差。这些发现强调了自一致性作为改善LLMs数学推理的稳健机制,为更可靠和可解释的AI驱动数学铺平了道路。

英文摘要:

Large language models (LLMs) have demonstrated strong mathematical reasoning capabilities but remain susceptible to hallucinations producing plausible yet incorrect statements especially in theorem proving, symbolic manipulation, and numerical computation. While self-consistency (SC) has been explored as a means to improve factuality in LLMs, existing approaches primarily apply SC to final-answer selection, neglecting the logical consistency of intermediate reasoning steps. In this work, we introduce a structured self-consistency framework designed to enhance the reliability of mathematical reasoning. Our method enforces self-consistency across intermediate steps and final outputs, reducing logical inconsistencies and hallucinations. We evaluate our approach across three core mathematical tasks: theorem proving, symbolic transformation, and numerical computation. Experimental results demonstrate that SC significantly improves proof validity, symbolic reasoning accuracy, and numerical stability while maintaining computational efficiency. Further analysis reveals that structured self-consistency not only enhances problem-solving accuracy but also reduces the variance of model-generated outputs. These findings highlight self-consistency as a robust mechanism for improving mathematical reasoning in LLMs, paving the way for more reliable and interpretable AI-driven mathematics.

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

↑