LLM-based Class Diagram Derivation from User Stories with Chain-of-Thought Promptings
Research output: Chapters, Conference Papers, Creative and Literary Works › RGC 32 - Refereed conference paper (with host publication) › peer-review
Author(s)
Related Research Unit(s)
Detail(s)
Original language | English |
---|---|
Title of host publication | Proceedings - 2024 IEEE 48th Annual Computers, Software, and Applications Conference, COMPSAC 2024 |
Publisher | Institute of Electrical and Electronics Engineers, Inc. |
Pages | 45-50 |
ISBN (print) | 9798350376968 |
Publication status | Published - 2024 |
Publication series
Name | Proceedings - IEEE Annual Computers, Software, and Applications Conference, COMPSAC |
---|
Conference
Title | 48th IEEE International Conference on Computers, Software, and Applications (COMPSAC 2024) |
---|---|
Location | Osaka University |
Place | Japan |
City | Osaka |
Period | 2 - 4 July 2024 |
Link(s)
Abstract
In agile requirements engineering, user stories are the primary means of capturing project requirements. However, deriving conceptual models, such as class diagrams, from user stories requires significant manual effort. This paper explores the potential of leveraging Large Language Models (LLMs) and a tailored Chain-of- Thought (CoT) prompting technique to automate this task. We conducted a comprehensive preliminary study to investigate different prompting techniques applied to the task. The study involved comparing LLM-based approaches with guided and unguided human extraction to evaluate the effectiveness of the proposed LLM-based techniques. Our findings demonstrate that LLM-based approaches, particularly when combined with well-crafted few-shot prompts, outperform guided human extraction in identifying classes. However, we also identified areas of suboptimal performance through qualitative analysis. The proposed CoT prompting technique offers a promising pathway to automate the derivation of class diagrams in agile projects, reducing the reliance on manual effort. Our study contributes valuable insights and directions for future research in this field. © 2024 IEEE.
Research Area(s)
- chain of thought prompting, large language models, Requirements engineering, user story
Citation Format(s)
LLM-based Class Diagram Derivation from User Stories with Chain-of-Thought Promptings. / Li, Yishu; Keung, Jacky; Ma, Xiaoxue et al.
Proceedings - 2024 IEEE 48th Annual Computers, Software, and Applications Conference, COMPSAC 2024. Institute of Electrical and Electronics Engineers, Inc., 2024. p. 45-50 (Proceedings - IEEE Annual Computers, Software, and Applications Conference, COMPSAC).
Proceedings - 2024 IEEE 48th Annual Computers, Software, and Applications Conference, COMPSAC 2024. Institute of Electrical and Electronics Engineers, Inc., 2024. p. 45-50 (Proceedings - IEEE Annual Computers, Software, and Applications Conference, COMPSAC).
Research output: Chapters, Conference Papers, Creative and Literary Works › RGC 32 - Refereed conference paper (with host publication) › peer-review