paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Beyond Correctness: Exposing LLM-generated Logical Flaws in Reasoning via Multi-step Automated Theorem Proving

超越正确性:通过多步自动定理证明揭示 LLM 生成推理中的逻辑缺陷
ICSE Proceedings of the 2026 IEEE/ACM 48th International Conference on Software Engineering2026匹配度 4/10 · 该论文用 FOL 与自动定理证明验证 LLM 自然语言推理的逻辑正确性,属于形式化方法与 LLM 的交叉,但研究目标是评测 LLM 推理本身,而非将 LLM/Agent 用于静态分析/形式化验证,也不是对 ML/Agentic 程序做静态分析;与用户核心方向仅间接相关。引用 6 inbox
Xinyi Zheng, Ningke Li, Xiaokun Luan, Wang Kailong, Ling Shi, Meng Sun, Haoyu Wang
crossref: 2026-09-12dblp: 2026-09-12arxiv: 2026-09-12

AI 速览

一句话:提出 MATP 框架,将 LLM 自然语言推理转为 FOL 并用自动定理证明逐步检测逻辑错误。

大语言模型在医疗、法律等高风险场景中的推理常因语言流畅而掩盖细微逻辑错误,现有事实核查、自洽性与规则校验方法难以发现多步推理中的复杂逻辑缺陷。为此,作者提出 MATP——一种基于多步自动定理证明的评估框架:它把自然语言推理步骤翻译为一阶逻辑,再交由自动定理证明器逐步判定其逻辑有效性,并给出细粒度的推理正确性分类。在包含 10 个 LLM 生成的 10,830 条推理实例、覆盖 PrOntoQA-OOD、ProofWriter 与 FOLIO 任务的基准上,MATP 在推理步骤验证上比基于提示的基线高出 42 个百分点以上,还揭示了模型层面的差异:推理模型比通用模型生成更逻辑一致的输出。

问题
LLM 的多步推理中常隐藏着被流畅语言掩盖的逻辑错误,现有事实核查、自洽性等方法无法系统检测复杂逻辑缺陷。
方法
MATP 将自然语言推理逐步翻译为一阶逻辑,利用自动定理证明器验证每一步的逻辑有效性,并输出细粒度的推理正确性分类。
评估
在 10 个 LLM 生成的 10,830 条推理实例(PrOntoQA-OOD、ProofWriter、FOLIO)上评估,MATP 在步骤验证上比提示基线高 42 个百分点以上,并发现推理模型比通用模型输出更逻辑一致。
原文摘要(Abstract)

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.

链接与引用

DOI 原文 · arXiv · DBLP

BibTeX
@inproceedings{abs-2512-23511,
  title = {Beyond Correctness: Exposing LLM-generated Logical Flaws in Reasoning via Multi-step Automated Theorem Proving},
  author = {Xinyi Zheng and Ningke Li and Xiaokun Luan and Wang Kailong and Ling Shi and Meng Sun and Haoyu Wang},
  booktitle = {ICSE},
  year = {2026},
  doi = {10.1145/3744916.3787820}
}