VeruSAGE:Rust系统代理验证的研究
VeruSAGE-Bench: A Benchmark Suite for Rust System Verification
AI总结:
本文研究LLM在Rust系统验证中的能力,提出VeruSAGE-Bench基准测试集,并设计不同代理系统以匹配不同LLM的特性,结果显示最佳组合能完成超过80%的验证任务。
摘要:
大型语言模型(LLMs)在理解和开发代码方面表现出色,但其严格推理和证明代码正确性的能力仍存疑。本文全面研究LLMs在Rust系统软件正确性证明中的能力。我们构建了一个新的系统验证基准测试集VeruSAGE-Bench,包含从八个开源Verus验证Rust系统中提取的849个证明任务。此外,我们设计了不同的代理系统以匹配不同LLM的优缺点(o4-mini、GPT-5、Sonnet 4和Sonnet 4.5)。研究表明,不同工具和代理设置对于激发不同类型LLM的系统验证能力至关重要。本研究中最佳的LLM-代理组合能够完成VeruSAGE-Bench中超过80%的系统验证任务。它还能够完成超过90%的一组未包含在VeruSAGE-Bench中的系统证明任务,因为这些任务尚未被人类专家完成。这一结果展示了LLM辅助开发已验证系统软件的巨大潜力。
英文摘要:
Large language models (LLMs) have shown impressive capability to understand and develop code. However, their capability to rigorously reason about and formally prove the correctness of software systems remains in question. Current benchmarks for formal proof generation focus on isolated tasks, typically algorithmic-style problems utilizing basic data structures. We curate a new benchmark suite for system-level proof generation, VeruSAGE-Bench, which consists of 849 proof tasks extracted from eight open-source Verus-verified Rust systems, covering operating systems, storage systems, memory allocators, and more. These tasks are much more complicated than those in previous benchmarks, containing on average more than 20x the formal specification (in Lines of Code) and requiring a much broader array of verification techniques. We evaluate six LLMs on VeruSAGE-Bench (o4-mini, GPT-5, Sonnet 4, Sonnet 4.5, Opus 4.5, Qwen3.5), and demonstrate that different models and agentic setups lead to vastly different success rates and costs. We also show that the best models possess impressive capability in writing correctness proofs and hence should inspire new ways of developing trustworthy software. Meanwhile, some difficult tasks in VeruSAGE-Bench stress even the best model, forcing long reasoning time (over an hour on the hardest tasks, 15.3 min per task on average), high token cost (USD 13.65 per task on average), and proof failures, which we hope will guide future improvements in models and agents. This is particularly true for a harder no-lemma version of VeruSAGE-Bench, where the helper lemmas written by human experts are removed: there, the best model proves only 41% of the tasks from the hardest project, at USD 96 per task.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。