LLM-based Class Diagram Derivation from User Stories with Chain-of-Thought Promptings

Research output: Chapters, Conference Papers, Creative and Literary WorksRGC 32 - Refereed conference paper (with host publication)peer-review

1 Scopus Citations
View graph of relations

Related Research Unit(s)

Detail(s)

Original languageEnglish
Title of host publicationProceedings - 2024 IEEE 48th Annual Computers, Software, and Applications Conference, COMPSAC 2024
PublisherInstitute of Electrical and Electronics Engineers, Inc.
Pages45-50
ISBN (print)9798350376968
Publication statusPublished - 2024

Publication series

NameProceedings - IEEE Annual Computers, Software, and Applications Conference, COMPSAC

Conference

Title48th IEEE International Conference on Computers, Software, and Applications (COMPSAC 2024)
LocationOsaka University
PlaceJapan
CityOsaka
Period2 - 4 July 2024

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).

Research output: Chapters, Conference Papers, Creative and Literary WorksRGC 32 - Refereed conference paper (with host publication)peer-review