arXiv cs.AI· George Ma, Benjamin Mikek, Haoyu Li, Ferhat Erata, Yuhao Zhang, Zeren Shui, Behrooz Omidvar Tehrani, Jun Huan, Murali Krishna Ramanathan, Somayeh Sojoudi, Hao Zhou, Anoop Deoras·· 2 小时前AI 评分50
SWE-Proof:用机器验证的证明考察语言模型解决真实缺陷的能力
SWE-Proof: Can Language Models Resolve Real-World Issues with Machine-Checked Proofs?
AI 导读
论文提出 BenchProofer 流水线,把带正确补丁的编码任务转为形式化验证任务,从 SWE-bench Verified 构建出 500 个经过形式化验证的真实缺陷集 SWE-Proof,并扩展到 SWE-bench Pro。
正文 · 原文
Authors:George Ma, Benjamin Mikek, Haoyu Li, Ferhat Erata, Yuhao Zhang, Zeren Shui, Behrooz Omidvar Tehrani, Jun Huan, Murali Krishna Ramanathan, Somayeh Sojoudi, Hao Zhou, Anoop Deoras
Abstract:Ensuring the correctness of LLM-generated code is a core challenge for modern software engineering. Benchmarks for agentic code generation check correctness with held-out test suites, which are inherently incomplete and increasingly susceptible to memorization. Formal verification avoids both problems, but existing work covers only standalone tasks whose specifications are given as input, not real issues, which touch large repositories and state intent in vague natural language. We present BenchProofer, a pipeline that turns a coding task with a known correct patch into a formally verified one: it writes a specification for the new code, summarizes the existing functions that code calls with axioms, and admits an instance only after mechanical and adversarial gates agree. Applying it to SWE-bench Verified yields SWE-Proof, 500 real issues whose correctness is formally verified rather than tested, and it extends to SWE-bench Pro. Evaluating Claude Opus 4.8, we find that verification catches what tests miss: nearly a third of test-passing patches admit counterexamples, which a structured natural-language specification does not fix, while a correct formal one lifts resolution from 85% to 95%. Writing that specification is the hard part: an agent that must write its own gains nothing over an unaided baseline, and only 56% of those specifications pass our audit. The usual failure is faithfulness, where a specification constrains part of the required behavior and leaves the rest free. Specification quality also tracks the outcome, failing on 92% of unresolved instances against 51% of resolved ones, making faithful specification synthesis a concrete open problem. Code is available at this https URL.
| Subjects: | Machine Learning (cs.LG); Artificial Intelligence (cs.AI); Software Engineering (cs.SE) |
| Cite as: | arXiv:2609.21190 [cs.LG] |
| (or arXiv:2609.21190v3 [cs.LG] for this version) | |
| https://doi.org/10.48550/arXiv.2609.21190 arXiv-issued DOI via DataCite |
Submission history
From: George Ma [view email]
[v1]
Fri, 18 Sep 2026 01:16:53 UTC (397 KB)
[v2]
Tue, 22 Sep 2026 21:43:26 UTC (403 KB)
[v3]
Mon, 23 Nov 2026 21:51:47 UTC (396 KB)
来源:arXiv cs.AI · arxiv.org