arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2503.12686cs.LGcs.PLcs.SE
收藏

将大语言模型的形式化推理失败理解为抽象解释器的问题

Understanding Formal Reasoning Failures in LLMs as Abstract Interpreters

University of Southern California(南加州大学)

Jacqueline L. Mitchell, Brian Hyeongseok Kim, Chenyu Zhou, Chao Wang

AI总结:

本研究针对LLM用于程序验证时语义推理机制不明的问题,提出两种激发抽象解释推理的提示策略,在SV-COMP基准的22个程序上评估了多款前沿LLM,分析了不变量可靠性与推理错误模式,为LLM与程序验证交叉研究提供了新方向。

摘要:

大语言模型(LLM)正越来越多地被用于程序验证,但人们对其在此过程中如何对程序语义进行推理知之甚少。本研究聚焦于用于不变量生成的基于抽象解释的推理,提出了两种旨在激发LLM开展此类推理的新型提示策略。我们在软件验证领域广泛使用的SV-COMP基准测试集的22个程序上,针对多个最先进的LLM评估了这些策略。我们既分析了生成的不变量的可靠性,也分析了模型推理错误中的关键主题模式。本研究旨在凸显LLM与程序验证交叉领域的新研究机遇,以推动LLM应用于验证任务并提升其在该应用中的推理能力。

英文摘要:

Large language models (LLMs) are increasingly used for program verification, and yet little is known about \emph{how} they reason about program semantics during this process. In this work, we focus on abstract interpretation based-reasoning for invariant generation and introduce two novel prompting strategies that aim to elicit such reasoning from LLMs. We evaluate these strategies across several state-of-the-art LLMs on 22 programs from the SV-COMP benchmark suite widely used in software verification. We analyze both the soundness of the generated invariants and the key thematic patterns in the models' reasoning errors. This work aims to highlight new research opportunities at the intersection of LLMs and program verification for applying LLMs to verification tasks and advancing their reasoning capabilities in this application.

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

↑