arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2512.10173cs.SE
收藏

ATLAS:大规模验证代码合成的自动化工具包

ATLAS: Automated Toolkit for Large-Scale Verified Code Synthesis

University of Cambridge(剑桥大学);Amazon Web Services(亚马逊云科技)

Mantas Baksys, Stefan Zetzsche, Olivier Bouissou, Remi Delmas, Soonho Kong, Sean B. Holden

AI总结:

ATLAS通过生成验证代码提升LLM在形式验证领域的性能,其在DafnyBench和DafnySynthesis上的表现显著提升。

摘要:

大型语言模型已经能够生成功能性代码,但确保输出真正符合程序员的意图仍然困难。测试可以提高信任度,但对于安全关键应用,形式验证通过机器验证的证明提供了唯一的真正保证。然而,验证的代码在主流语言或数学定理证明方面仍然较少,限制了LLM在该领域的能力。我们提出了ATLAS,一个自动化流程,用于合成验证程序以解决这一数据瓶颈。应用于TACO数据集中的Python解决方案,ATLAS生成了2700个经过验证的Dafny程序,每个都有高质量的规范和机器验证的证明。通过任务分解,我们提取了19000个训练示例。在该数据上微调Qwen 2.5 7B Coder,其在DafnyBench上的表现从32.4%提升到56.9%,在DafnySynthesis上的表现从15.8%提升到65.8%,证明了合成数据生成是扩展LLM在形式验证能力的可行路径。

英文摘要:

Large language models have become proficient at generating functional code, but ensuring the output truly matches the programmer's intent remains difficult. Testing improves trust, yet for safety-critical applications, formal verification provides the only true guarantees through machine-checked proofs. However, verified code remains scarce compared to mainstream languages or mathematical theorem proving, limiting LLM capabilities in this domain. We present ATLAS, an automated pipeline that synthesizes verified programs to address this data bottleneck. Applied to the TACO dataset of Python solutions to LeetCode-style problems, ATLAS generates 2.7K verified Dafny programs, each with high-quality specifications and machine-checked proofs. Through task decomposition, we extract 19K training examples. Fine-tuning Qwen 2.5 7B Coder on this data improves performance from 32.4% to 56.9% on DafnyBench and from 15.8% to 65.8% on DafnySynthesis, demonstrating that synthetic data generation is a viable path to scaling LLM capabilities for formal verification.

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

↑