跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 程序设计语言

arXiv:2406.09757 (cs)
[提交于 2024年6月14日 (v1),最后修订于 2024年10月15日 (此版本, v2)]

标题:Evaluating LLM-driven User-Intent Formalization for Verification-Aware Languages

作者:Shuvendu K. Lahiri
查看论文《Evaluating LLM-driven User-Intent Formalization for Verification-Aware Languages》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:Verification-aware programming languages such as Dafny and F* provide means to formally specify and prove properties of a program. Although the problem of checking an implementation against a specification can be defined mechanically, there is no algorithmic way of ensuring the correctness of the {\it user-intent formalization for programs}, expressed as a formal specification. This is because intent or requirement is expressed {\it informally} in natural language and the specification is a formal artefact. Despite, the advent of large language models (LLMs) has made tremendous strides bridging the gap between informal intent and formal program implementations recently, driven in large parts by benchmarks and automated metrics for evaluation. Recent work has proposed a framework for evaluating the {\it user-intent formalization} problem for mainstream programming languages~\cite{endres-fse24}. However, such an approach does not readily extend to verification-aware languages that support rich specifications (using quantifiers and ghost variables) that cannot be evaluated through dynamic execution. Previous work also required generating program mutants using LLMs to create the benchmark. We advocate an alternate, perhaps simpler approach of {\it symbolically testing specifications} to provide an intuitive metric for evaluating the quality of specifications for verification-aware languages. We demonstrate that our automated metric agrees closely on a human-labeled dataset of Dafny specifications for the popular MBPP code-generation benchmark, yet demonstrates cases where the human labeling is not perfect. We also outline formal verification challenges that need to be addressed to apply the technique more widely. We believe our work provides a stepping stone to enable the establishment of a benchmark and research agenda for the problem of user-intent formalization for programs.
评论: Proceedings of the 24th Conference on Formal Methods in Computer Aided Design (FMCAD 2024)
主题: 程序设计语言 (cs.PL); 机器学习 (cs.LG); 软件工程 (cs.SE)
引用方式: arXiv:2406.09757 [cs.PL]
  (或者 arXiv:2406.09757v2 [cs.PL] 对于此版本)
  https://doi.org/10.48550/arXiv.2406.09757
期刊参考: Proceedings of the 24th Conference on Formal Methods in Computer Aided Design (FMCAD 2024)
相关 DOI: https://doi.org/10.34727/2024/isbn.978-3-85448-065-5_19

提交历史

来自:Shuvendu Lahiri
[v1] 2024年6月14日 星期五 06:52:08 UTC
[v2] 2024年10月15日 星期二 21:44:50 UTC
全文链接:

访问论文:

  • 查看原文 PDF
  • 中文 PDF (下批处理)
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

cs
< 上一篇   |   下一篇 >
最新 | 近期 | 2024-10
切换浏览方式为:
cs.PL
cs.LG
cs.SE

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站