When building large software systems, engineers have to keep track of a large quantity and variety of software requirements.
To simplify the complexity of managing these requirements, traceability links can be used to make relationships between requirements explicit.
Trace links are an important tool for many software engineering tasks, such as change impact analysis or ensuring consistency, as well as regulatory compliance.
In many software projects traceability information is not available, as creating trace links manually is labor-intensive, error-prone, and expensive.
Thus, researchers are investigating automated tooling that can recover trace links from existing software projects.
Recent developments in the field make use of large language models (LLMs) for the trace link recovery (TLR) task.
While LLMs have a broad world knowledge that is encoded during their training, they generally lack the project-specific knowledge required to fully understand a software project's requirements.
This thesis proposes the use of context for LLM-based inter-requirement TLR to fill this gap.
Three types of context are investigated to improve automated requirements-to-requirements TLR performance.
The first kind is the automatic paraphrasing of requirements to increase the chance of semantic inter-requirement similarity.
Secondly, the usage of requirements as context is investigated to give the model a broader insight into project-specific information besides the requirements of a trace link candidate.
Finally, project-external trace link examples are used as context to make use of similar requirement constellations between different projects.
The last context type is the first implementation of dynamic few-shot prompting for LLM-based TLR.
The use of context is evaluated compared to a baseline system that is not using context information.
It is found that the use of context has a small but generally positive effect on TLR performance when requirement paraphrasing or external trace links are used.
Using additional requirements as context has a slight negative effect on overall TLR performance.
The effect of context on TLR performance is found to vary depending on the project the task is being performed on as well as on different parameters unique to each type of context.
| Related KIT institution | Institute of Information Security and Dependability (KASTEL) |
|---|---|
| Language | English |
| KITopen ID | 1000192935 |
| Publisher | Karlsruher Institut für Technologie (KIT) |
| Size | xi, 105 p. |
| Supervisors | Dominik Fuchß Tobias Hey |
| Referenced in | OpenAlex |