超越正确性:通过多步骤自动定理证明暴露LLM生成的推理中的逻辑错误
Beyond Correctness: Exposing LLM-generated Logical Flaws in Reasoning via Multi-step Automated Theorem Proving
AI总结:
MATP通过多步骤自动定理证明系统性验证LLM推理,揭示其逻辑错误并提升推理可信度。
摘要:
大型语言模型(LLMs)已展现出令人印象深刻的推理能力,导致其在医疗、法律和科学研究等高风险领域得到应用。然而,其推理过程中常常包含被流畅语言掩盖的细微逻辑错误,这对关键应用构成了重大风险。尽管现有的方法如事实核查、自一致性方法和基于规则的验证提供了部分解决方案,但它们无法检测多步骤推理中的复杂逻辑错误。为克服这些挑战,我们提出了MATP,一种通过多步骤自动定理证明系统性验证LLM推理的评估框架。MATP将自然语言推理转换为一阶逻辑(FOL),并应用自动定理证明器来评估每一步的逻辑有效性。这种方法能够识别隐藏的逻辑错误,并提供对推理正确性的细粒度分类。在包含10,830个由10个LLM在PrOntoQA-OOD、ProofWriter和FOLIO任务中生成的推理实例的基准测试中,MATP在推理步骤验证上超过了基于提示的基线方法,高出42个百分点以上。它进一步揭示了模型层面的差异,推理模型生成的逻辑更连贯的输出比通用模型更多。这些结果展示了MATP增强LLM生成推理可信度的潜力。
英文摘要:
Large Language Models (LLMs) have demonstrated impressive reasoning capabilities, leading to their adoption in high-stakes domains such as healthcare, law, and scientific research. However, their reasoning often contains subtle logical errors masked by fluent language, posing significant risks for critical applications. While existing approaches like fact-checking, self-consistency methods, and rule-based validation provide partial solutions, they fail to detect complex logical flaws in multi-step reasoning. To overcome these challenges, we present MATP, an evaluation framework for systematically verifying LLM reasoning via Multi-step Automatic Theorem Proving. MATP translates natural language reasoning into First-Order Logic (FOL) and applies automated theorem provers to assess step-by-step logical validity. This approach identifies hidden logical errors and provides fine-grained classifications of reasoning correctness. Evaluations on a benchmark comprising 10,830 reasoning instances generated by 10 LLMs across tasks from PrOntoQA-OOD, ProofWriter, and FOLIO show that MATP surpasses prompting-based baselines by over 42 percentage points in reasoning step verification. It further reveals model-level disparities, with reasoning models generating more logically coherent outputs than general models. These results demonstrate MATP's potential to enhance the trustworthiness of LLM-generated reasoning.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。