LLMs能否像自动定理证明器一样进行Rust验证?VCoT-Bench:通过验证思维链进行评估
Can LLMs Reason Like Automated Theorem Provers for Rust Verification? VCoT-Bench: Evaluating via Verification Chain of Thought
AI总结:
本文提出VCoT-Bench,通过验证思维链评估LLMs在Rust验证中的能力,揭示其在不同证明类型和缺失证明情况下的脆弱性。
摘要:
随着大型语言模型(LLMs)在安全软件开发中扮演越来越重要的角色,其在Rust程序验证中满足严格要求的能力仍不明确。现有评估将Rust验证视为黑箱,仅通过二元通过或失败结果评估模型。这掩盖了模型是否真正理解验证非平凡Rust代码所需的逻辑推导。为此,我们引入VCoT-Lift框架,将低层求解器推理提升为高层、可读的验证步骤。通过将求解器级推理显式暴露为验证思维链,VCoT-Lift为细粒度评估提供了明确的真值。利用VCoT-Lift,我们引入VCoT-Bench,包含1,988个VCoT完成任务的全面基准,严格评估LLMs对整个验证过程的理解。VCoT-Bench在三个正交维度上衡量性能:对不同缺失证明程度的鲁棒性、不同证明类型的竞争力,以及对证明位置的敏感性。对十种最先进的模型的评估揭示了严重脆弱性,表明当前LLMs在推理能力上远逊于自动定理证明器。
英文摘要:
As Large Language Models (LLMs) increasingly assist secure software development, their ability to meet the rigorous demands of Rust program verification remains unclear. Existing evaluations treat Rust verification as a black box, assessing models only by binary pass or fail outcomes for proof hints. This obscures whether models truly understand the logical deductions required for verifying nontrivial Rust code. To bridge this gap, we introduce VCoT-Lift, a framework that lifts low-level solver reasoning into high-level, human-readable verification steps. By exposing solver-level reasoning as an explicit Verification Chain-of-Thought, VCoT-Lift provides a concrete ground truth for fine-grained evaluation. Leveraging VCoT-Lift, we introduce VCoT-Bench, a comprehensive benchmark of 1,988 VCoT completion tasks for rigorously evaluating LLMs' understanding of the entire verification process. VCoT-Bench measures performance along three orthogonal dimensions: robustness to varying degrees of missing proofs, competence across different proof types, and sensitivity to the proof locations. Evaluation of ten state-of-the-art models reveals severe fragility, indicating that current LLMs fall well short of the reasoning capabilities exhibited by automated theorem provers.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。