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

Yishu Li, Jacky Keung, Xiaoxue Ma, Chun Yong Chong, Jingyu Zhang, Yihan Liao

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

1 Citation (Scopus)

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.

Original languageEnglish
Title of host publicationProceedings - 2024 IEEE 48th Annual Computers, Software, and Applications Conference, COMPSAC 2024
EditorsHossain Shahriar, Hiroyuki Ohsaki, Moushumi Sharmin, Dave Towey, AKM Jahangir Alam Majumder, Yoshiaki Hori, Ji-Jiang Yang, Michiharu Takemoto, Nazmus Sakib, Ryohei Banno, Sheikh Iqbal Ahamed
Pages45-50
Number of pages6
ISBN (Electronic)9798350376968
DOIs
Publication statusPublished - 2024
Event48th IEEE Annual Computers, Software, and Applications Conference, COMPSAC 2024 - Osaka, Japan
Duration: 2 Jul 20244 Jul 2024

Publication series

NameProceedings - 2024 IEEE 48th Annual Computers, Software, and Applications Conference, COMPSAC 2024

Conference

Conference48th IEEE Annual Computers, Software, and Applications Conference, COMPSAC 2024
Country/TerritoryJapan
CityOsaka
Period2/07/244/07/24

Keywords

  • Requirements engineering
  • chain of thought prompting
  • large language models
  • user story

Fingerprint

Dive into the research topics of 'LLM-Based Class Diagram Derivation from User Stories with Chain-of-Thought Promptings'. Together they form a unique fingerprint.

Cite this