paperbot · PL 论文追踪

全部论文 待读 收藏

Beyond Benchmarks: A Case Study of LLM-Generated Verus Specification Failures on Asterinas Vostd

超越基准:LLM 生成的 Verus 规约在 Asterinas Vostd 上的失败案例研究
ASE Proceedings of the 41st IEEE/ACM International Conference on Automated Software Engineering2026引用 0 inbox
Dugang Liu, Ding Wang, Chao Jiang, Cheng Wen, Zhiwu Xu, Zhong Ming, Yuwei Liu, Xinyi Wan, Lin Huang
crossref: 2026-10-09

AI 速览

一句话:通过工业内核验证项目案例研究,揭示 LLM 生成的 Verus 规约呈四阶段系统性失败,诊断与修复常失效。

LLM 自动生成形式规约在自包含基准上表现良好,但在工业验证项目中的有效性未知。本文在 Rust 内核验证仓库 Asterinas Vostd 上开展实证研究,分析 6 个验证目标、156 个函数级任务、50 个源文件与 7149 行代码,并考察 270 条 LLM 修复轨迹及 1587 条经审阅失败片段。结果表明,现有方法在 Vostd 上遭遇显著挑战,需面向工业验证定制框架;失败呈系统性,聚集于仓库集成、Verus 合法性、语义建模与证明构造四个阶段,分布随模型与目标而异。验证器诊断未必定位真因,修复可能回退或停滞。评估应超越最终通过/失败,关注失败位置、诊断真因与修复进展。

问题
LLM 自动生成形式规约在自包含基准任务上表现良好,但其在具有跨文件依赖与 Entity-Model 证明抽象的工业验证项目中的实际效果尚不清楚。
方法
在 Rust 内核验证仓库 Asterinas Vostd 上分析 6 个验证目标(156 个函数级任务、50 个源文件、7149 行代码),并对 DeepSeek-V4-Flash、GPT-4o、Qwen-Coder 产生的 270 条修复轨迹及 1587 条经审阅失败片段进行归类分析。
评估
通过人工审阅的失败语料统计与跨模型、跨目标对比,考察失败在四个验证阶段的分布、验证器诊断是否定位真因,以及验证器引导修复是否收敛。
原文摘要(Abstract)

Large language models (LLMs) have recently shown promise in automating formal specification generation, but their effectiveness has mainly been demonstrated on self-contained benchmark tasks. This paper examines the changes that occur when LLM-generated specifications are applied to an industrial verification project. To answer this question, we conducted experiments on Asterinas OSTD's Vostd repository, a Rust-based OS-kernel verification codebase built around cross-file dependencies and Entity--Model proof abstractions. We analyze six formal verification targets spanning 156 function-level tasks, 50 Rust source files, and 7,149 lines of code; the failure corpus contains 1,587 reviewed failure episodes nested within 270 model-specific repair traces produced by DeepSeek-V4-Flash, GPT-4o, and Qwen-Coder. Our results show that existing methods effective on benchmarks face significant challenges on Vostd, and that framework customization for industrial validation is necessary and has considerable potential. LLM-generated specifications break in systematic rather than random ways: they cluster across four verification stages (i.e., repository integration, Verus legality, semantic modeling, and proof construction), and their distributions vary across models and targets. We further show that verifier diagnostics do not always identify the true source of failure, and that verifier-guided repair can regress or stall rather than converge. These findings indicate that LLM-generated specifications fail not merely because industrial code is harder, but because failures are structured, stage-dependent, and often repaired in the wrong direction. Future evaluation and tooling should therefore move beyond final pass/fail outcomes and account for where specifications break, whether diagnostics identify the real cause, and whether repair makes progress or simply cycles through new errors.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@inproceedings{paperbot12269,
  title = {Beyond Benchmarks: A Case Study of LLM-Generated Verus Specification Failures on Asterinas Vostd},
  author = {Dugang Liu and Ding Wang and Chao Jiang and Cheng Wen and Zhiwu Xu and Zhong Ming and Yuwei Liu and Xinyi Wan and Lin Huang},
  booktitle = {ASE},
  year = {2026},
  doi = {10.1145/3832783.3834504}
}