Deductive Software Architecture Recovery via Chain-of-thought Prompting

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

4 Citations (Scopus)
255 Downloads (Pure)

Abstract

As software evolves, software architecture recovery techniques can help for effective maintenance. We envision a deductive software architecture recovery approach supported by Large Language Models (LLMs). Unlike existing inductive (bottom-up) recovery techniques, which reconstruct architecture by considering the properties observed at implementation level, our top-down approach starts with architectural properties and seeks their manifestations in the implementation. It employs a known Reference Architecture (RA) and involves two phases: RA definition and code units classification. A proof-of-concept with GPT-4 emulates deductive reasoning via chain-of-thought prompting. It demonstrates the deductive SAR approach, applying it to the Android application K-9 Mail and achieving a 70% accuracy in classifying 54 classes and 184 methods. The future plans focus on evaluating and refining the approach through ground-truth assessments, deeper exploration of reference architectures, and advancing toward automated human-like software architecture explanations. We highlight the potential for LLMs in achieving more comprehensive and explainable software architecture recovery.
Original languageEnglish
Title of host publicationICSE-NIER'24
Subtitle of host publicationProceedings of the 2024 ACM/IEEE 44th International Conference on Software Engineering: New Ideas and Emerging Results
PublisherAssociation for Computing Machinery, Inc
Pages92-96
Number of pages5
ISBN (Electronic)979-8-4007-0500-7
DOIs
Publication statusPublished - 24 May 2024
EventACM/IEEE 44th International Conference on Software Engineering: New Ideas and Emerging Results, ICSE-NIER'24 - Lisbon, Portugal
Duration: 14 Apr 202420 Apr 2024

Conference

ConferenceACM/IEEE 44th International Conference on Software Engineering
Abbreviated titleICSE-NIER'24
Country/TerritoryPortugal
CityLisbon
Period14/04/2420/04/24

Keywords

  • Software architecture
  • Software architecture recovery
  • Deductive SAR
  • Chain-of-thought prompting
  • chain-of-thought prompting
  • software architecture recovery
  • deductive SAR

Fingerprint

Dive into the research topics of 'Deductive Software Architecture Recovery via Chain-of-thought Prompting'. Together they form a unique fingerprint.

Cite this