arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.25626cs.CLcs.AIcs.LGcs.LO
收藏

语言模型是高效的推理者吗?从逻辑编程的角度看

Are Language Models Efficient Reasoners? A Perspective from Logic Programming

ETH Zürich(苏黎世联邦理工学院);MPI for Intelligent Systems, Tübingen(智能系统马克斯·普朗克研究所);EPFL(苏黎世联邦理工学院);Idiap Research Institute(Idiap研究机构);Purdue University(普渡大学)

Andreas Opedal, Yanick Zengaffinen, Haruki Shirakami, Clemente Pasti, Mrinmaya Sachan, Abulhair Saparov, Ryan Cotterell, Bernhard Schölkopf

AI总结:

本文从逻辑编程角度评估语言模型的推理效率,发现其在存在无关信息时推理能力下降,生成证明常包含不必要的推理步骤。

摘要:

现代语言模型(LMs)表现出强大的演绎推理能力,但标准评估强调正确性而忽略了推理中的一个关键方面:效率。在现实世界的推理场景中,可用信息中有很多是无关的,有效的演绎推理需要识别并忽略这些干扰。我们提出了一种通过逻辑编程视角来评估LM推理效率的框架,引入了一种简单的方法将自然语言编写的证明与通过执行逻辑程序找到的最短证明对齐。效率通过测量模型避免不必要的推理的能力来量化。实证上,我们构建了一个包含各种无关公理数量的数学单词问题数据集,这些公理在语义上与目标定理的重叠程度各不相同。我们发现当前LM在这样的条件下表现出明显的准确性下降——即使在最小的、领域一致的干扰下也是如此,且它们生成的证明经常通过无关的推理路径。

英文摘要:

Modern language models (LMs) exhibit strong deductive reasoning capabilities, yet standard evaluations emphasize correctness while overlooking a key aspect of reasoning: efficiency. In real-world reasoning scenarios, much of the available information is irrelevant, and effective deductive inference requires identifying and ignoring such distractions. We propose a framework for assessing LM reasoning efficiency through the lens of logic programming, introducing a simple method to align proofs written in natural language -- as generated by an LM -- with shortest proofs found by executing the logic program. Efficiency is quantified by measuring how well a model avoids unnecessary inference. Empirically, we construct a dataset of math word problems injected with various number of irrelevant axioms that vary in semantic overlap with the goal theorem. We find that current LMs show marked accuracy declines under such conditions -- even with minimal, domain-consistent distractions -- and the proofs they generate frequently exhibit detours through irrelevant inferences.

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

↑