Change search
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
Grounded Large Language Model-Based Compliance Gap Analysis for Non-Functional Requirements
Blekinge Institute of Technology, Faculty of Computing, Department of Software Engineering.
2026 (English)Independent thesis Advanced level (degree of Master (Two Years)), 20 credits / 30 HE creditsStudent thesis
Abstract [en]

Software engineering normally proceeds from requirements to design and then to im-plementation. Requirements verification examines whether requirement statements are sufficiently complete, consistent, clear, feasible, and testable. Requirements validation examines whether the specified requirements accurately reflect stakeholder needs and intended use. Design verification against requirements examines a down-stream artifact: whether a design addresses the specified requirements. This thesis concerns design verification at the documentary level. The Non-Functional Requirements (NFRs) provide the evaluation criteria, and a High-Level Design (HLD) is the design artifact examined to determine whether it documents design decisions that address those criteria. The study does not verify the implemented system.

Manually tracing NFRs to supporting design evidence is time-consuming and difficult to scale because relevant information may be implicit or distributed across a large document. Large Language Models (LLMs) may assist this task, but they can also produce plausible claims or citations that are not supported by the designated source. This thesis therefore presents and evaluates a grounded LLM-based pipeline that assesses the documentary support provided by an HLD for specified NFRs. For each requirement, the pipeline decomposes compound conditions, retrieves candidate HLD passages, assigns one of four documentary-support decisions, attributes the decision to a verbatim passage and source section when evidence is available, classifies documentary gaps using an LLM-proposed and researcher-reviewed G1–G8 scheme, and fails closed when the required source document is unavailable.

The framework was developed and evaluated using a design-science methodology in one industry-derived case comprising 60 pseudonymized NFRs 30 KPI/SLA requirements and 30 security requirements decomposed into 158 conditions and assessed against one HLD. The pipeline’s parent decisions were reported to agree with a reference prepared by one engineer for all 60 NFRs. All 60 grounded findings contained a quotation and source location. Fifty-nine citations were manually assessed, and all 59 assessed quotations were found in the HLD and judged relevant; one citation was not assessed. In one source-unavailability run, a run-level gate prevented substantive document-based assessment and produced refusal or Not Enough Information records for all 60 inputs without generating source citations.

An exploratory practitioner study collected 11 evaluations of 10 findings from two engineers. The engineers valued verifiable source evidence, but the citation-present findings and researcher-adapted citation-absent findings differed in wording, provenance, and reasoning detail, and they were presented in a fixed order. The study therefore identifies factors that influenced these engineers’ trust and intended actions but does not isolate a causal effect of citation presence.

The results demonstrate the feasibility of traceable, fail-closed LLM assistance for HLD-to-NFR document verification in the examined case. They do not establish general accuracy, citation faithfulness, implementation-level compliance, or performance on unseen projects. Human engineering review and sign-off remain necessary.

Place, publisher, year, edition, pages
2026. , p. 65
National Category
Software Engineering
Identifiers
URN: urn:nbn:se:bth-30717OAI: oai:DiVA.org:bth-30717DiVA, id: diva2:2114696
External cooperation
Ericsson
Subject / course
PA2534 Master's Thesis (120 credits) in Software Engineering
Educational program
PAADA Master Qualification Plan in Software Engineering 120,0 hp
Supervisors
Examiners
Available from: 2026-11-03 Created: 2026-11-02 Last updated: 2026-11-03Bibliographically approved

Open Access in DiVA

fulltext(1041 kB)1 downloads
File information
File name FULLTEXT01.pdfFile size 1041 kBChecksum SHA-512
792c40f7fdf262fb9bd0170883561c77256e816f20a8f025ad01b3397b1cccde88b3f2f5b9999450e2eeacdc7f1439c227a758d662eb8b28cdc31344b2290128
Type fulltextMimetype application/pdf

By organisation
Department of Software Engineering
Software Engineering

Search outside of DiVA

GoogleGoogle Scholar
Total: 1 downloads
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: 7 hits
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