Requirement traceability can meaningfully support practitioners in a wide range of software engineering and maintenance tasks. However, manually maintaining traceability information is laborious and error-prone. Automated traceability link recovery techniques can address this issue. Existing approaches for requirement-to-code traceability link recovery (TLR), however, either require project-specific training or fail to produce results of sufficient quality for realworld use. In this master’s thesis, we explore the use of context in automated requirement traceability link recovery between requirements and source code artifacts. Building directly on the existing Linking-Software-System-Artifacts (LiSSA) framework and recent work in related tasks, we leverage both embeddings and large language models (LLMs) to investigate how contextual information can enhance traceability link retrieval. Our evaluation shows that, while context can be beneficial and improve both the precision and recall of LiSSA’s retrieval when applied appropriately, these improvements are modest and depend on the careful selection of strategies and preprocessing techniques. We also implement and evaluate an agentic approach to requirement-to-code TLR. Our findings indicate that, while LLM-based agents can recover some of the trace links (TLs) present in a project, the agent’s initial prompting and the tools available to it have a substantial impact on the results. Nevertheless, both the precision and recall of our agentic approach currently fall short of traditional Information Retrieval (IR)-based techniques.
| Related KIT institution | Institute of Information Security and Dependability (KASTEL) |
|---|---|
| Language | English |
| KITopen ID | 1000190417 |
| Publisher | Karlsruher Institut für Technologie (KIT) |
| Supervisors | Dominik Fuchß Tobias Hey |
| Referenced in | OpenAlex |