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

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

计算机科学 > 软件工程

arXiv:2502.15441 (cs)
[提交于 2025年2月21日]

标题:On the Effectiveness of Large Language Models in Writing Alloy Formulas

作者:Yang Hong, Shan Jiang, Yulei Fu, Sarfraz Khurshid
查看论文《On the Effectiveness of Large Language Models in Writing Alloy Formulas》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:Declarative specifications have a vital role to play in developing safe and dependable software systems. Writing specifications correctly, however, remains particularly challenging. This paper presents a controlled experiment on using large language models (LLMs) to write declarative formulas in the well-known language Alloy. Our use of LLMs is three-fold. One, we employ LLMs to write complete Alloy formulas from given natural language descriptions (in English). Two, we employ LLMs to create alternative but equivalent formulas in Alloy with respect to given Alloy formulas. Three, we employ LLMs to complete sketches of Alloy formulas and populate the holes in the sketches by synthesizing Alloy expressions and operators so that the completed formulas accurately represent the desired properties (that are given in natural language). We conduct the experimental evaluation using 11 well-studied subject specifications and employ two popular LLMs, namely ChatGPT and DeepSeek. The experimental results show that the LLMs generally perform well in synthesizing complete Alloy formulas from input properties given in natural language or in Alloy, and are able to enumerate multiple unique solutions. Moreover, the LLMs are also successful at completing given sketches of Alloy formulas with respect to natural language descriptions of desired properties (without requiring test cases). We believe LLMs offer a very exciting advance in our ability to write specifications, and can help make specifications take a pivotal role in software development and enhance our ability to build robust software.
主题: 软件工程 (cs.SE); 人工智能 (cs.AI); 形式语言与自动机理论 (cs.FL); 程序设计语言 (cs.PL)
引用方式: arXiv:2502.15441 [cs.SE]
  (或者 arXiv:2502.15441v1 [cs.SE] 对于此版本)
  https://doi.org/10.48550/arXiv.2502.15441
相关 DOI: https://doi.org/10.1145/3822455.3830309

提交历史

来自:Shan Jiang
[v1] 2025年2月21日 星期五 13:09:58 UTC
全文链接:

访问论文:

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

当前浏览上下文:

cs.SE
< 上一篇   |   下一篇 >
最新 | 近期 | 2025-02
切换浏览方式为:
cs
cs.AI
cs.FL
cs.PL

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

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