跳到主要导航 跳到搜索 跳到主要内容

NL2CTL: Automatic Generation of Formal Requirements Specifications via Large Language Models

  • East China Normal University
  • Guangzhou Institute of Technology
  • Xidian University

科研成果: 书/报告/会议事项章节 › 会议稿件 › 同行评审

摘要

Reducing the gap between natural language requirements and precise formal specifications is a critical task in requirements engineering. In recent years, requirement engineering is becoming increasingly complex alongside the growing intricacy of system engineering. Most requirements are expressed in natural language, which can be incomplete and ambiguous. However, formal languages with strict semantics can accurately represent certain temporal logic properties and allow for automated verification and analysis. This often limits the application of verification techniques, as writing formal specifications is a manual, error-prone, and time-consuming task. To address this, this paper proposes a framework that leverages Large Language Models (LLMs) to achieve automated conversion of natural language requirements to Computation Tree Logic (CTL). To address the issue of dataset scarcity, we leveraged the interactive and generative capabilities of LLMs. By constructing a random generation algorithm and utilizing prompt engineering, we generated an NL-CTL dataset using LLMs. The generated dataset was then used to fine-tune the T5-Large model, enhancing its generative capacity. To improve generalization, this paper proposes the use of the GPT-3.5 Atomic Proposition (AP) Recognition method, which eliminates the constraints of using the framework across different domains. A series of experimental evaluations showed that the fine-tuned LLM achieved an accuracy of 46.4%, whereas the LLM with few-shot learning using only prompt engineering achieved only 2% accuracy, demonstrating the feasibility of this approach.

源语言英语
主期刊名Formal Methods and Software Engineering - 25th International Conference on Formal Engineering Methods, ICFEM 2024, Proceedings
编辑Kazuhiro Ogata, Dominique Mery, Meng Sun, Shaoying Liu
出版商Springer Science and Business Media Deutschland GmbH
页1-17
页数17
ISBN(印刷版)9789819606160
DOI
出版状态已出版 - 2024
活动25th International Conference on Formal Engineering Methods, ICFEM 2024 - Hiroshima, 日本
期限: 2 12月 2024 → 6 12月 2024

丛书

姓名Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
卷15394 LNCS
ISSN(印刷版)0302-9743
ISSN(电子版)1611-3349

会议

会议25th International Conference on Formal Engineering Methods, ICFEM 2024
国家/地区日本
市Hiroshima
时期2/12/24 → 6/12/24

学术指纹

探究 'NL2CTL: Automatic Generation of Formal Requirements Specifications via Large Language Models' 的科研主题。它们共同构成独一无二的学术指纹。

引用此