https://www.mdu.se/

mdu.sePublications
System disruptions
There are recurring service disruptions on some of the search portals due to high traffic. We are working to resolve the issue, you may temporarily encounter an error message.
2425262728293027 of 78
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
Generation of Architectural Alternatives Using Retrieval-Augmented Large Language Models
Mälardalen University, Faculty of Engineering and Health Sciences, Department of Computer Science & Engineering.
2026 (English)Independent thesis Advanced level (degree of Master (One Year)), 10 credits / 15 HE creditsStudent thesis
Abstract [en]

Architectural decisions shape system quality, yet the design space is too large to explore exhaustively, so architects often fall back on familiar patterns and weigh few alternatives. Large language models can propose designs but lack organizational context, and the knowledge that would supply it lies scattered across decision records, documentation, and code.

This thesis investigates how retrieval-augmented large language models can support the generation and iterative refinement of context-aware architectural alternatives.

We propose a workflow that structures a problem description into a decision frame, composes a retrieval query from it, and retrieves from wiki pages, architecture decision records (ADRs), and a code graph. Two alternatives are generated, each with its reasoning, trade-offs, risks, and sources. The architect refines them by excluding one with a stated reason or by providing guidance, and the accepted alternative is published as an ADR and ingested back into the knowledge base. The prototype was evaluated over five scenarios using automated quantitative metrics and qualitatively with a software architect.

Retrieval reached a mean context precision of 0.921, and context recall was perfect in four of the five scenarios. Faithfulness differed between the two alternatives in every scenario, indicating that generation exposed distinct design directions rather than converging on one.

In conclusion, our work presents an approach for generating and iteratively refining architectural alternatives that are grounded in organizational knowledge and captured as reusable decision records.

Place, publisher, year, edition, pages
2026. , p. 36
National Category
Computer Sciences
Identifiers
URN: urn:nbn:se:mdh:diva-79102OAI: oai:DiVA.org:mdh-79102DiVA, id: diva2:2105892
External cooperation
Tetra Pak
Subject / course
Computer Science
Supervisors
Examiners
Available from: 2026-09-29 Created: 2026-09-28 Last updated: 2026-09-29Bibliographically approved

Open Access in DiVA

fulltext(419 kB)13 downloads
File information
File name FULLTEXT01.pdfFile size 419 kBChecksum SHA-512
e5ca9d7c8537a6ede9bfb271dd6a29b1a98150e2ce8a3358bb8354bc3757ef37b531d7922b9074cfddbea1e698b27a7ee99092a462df65d96503f9cb9a0de507
Type fulltextMimetype application/pdf

By organisation
Department of Computer Science & Engineering
Computer Sciences

Search outside of DiVA

GoogleGoogle Scholar
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

urn-nbn

Altmetric score

urn-nbn
Total: 273 hits
2425262728293027 of 78
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf