TraceLLM: Leveraging Large Language Models with Prompt Engineering for Enhanced Requirements Traceability
Nouf Alturayeif, Irfan Ahmad, Jameleddine Hassine

TL;DR
TraceLLM introduces a systematic prompt engineering framework leveraging large language models to improve requirements traceability, outperforming traditional methods and enabling semi-automated workflows across diverse domains.
Contribution
The paper presents a novel prompt engineering framework, TraceLLM, that enhances LLM-based requirements traceability with systematic prompt design, demonstration selection, and evaluation across multiple datasets.
Findings
TraceLLM achieves state-of-the-art F2 scores in traceability tasks.
Prompt quality significantly impacts traceability performance.
Diversity-based demonstration sampling improves link extraction accuracy.
Abstract
Requirements traceability, the process of establishing and maintaining relationships between requirements and various software development artifacts, is paramount for ensuring system integrity and fulfilling requirements throughout the Software Development Life Cycle (SDLC). Traditional methods, including manual and information retrieval models, are labor-intensive, error-prone, and limited by low precision. Recently, Large Language Models (LLMs) have demonstrated potential for supporting software engineering tasks through advanced language comprehension. However, a substantial gap exists in the systematic design and evaluation of prompts tailored to extract accurate trace links. This paper introduces TraceLLM, a systematic framework for enhancing requirements traceability through prompt engineering and demonstration selection. Our approach incorporates rigorous dataset splitting,…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware Engineering Research · Software Engineering Techniques and Practices · Advanced Software Engineering Methodologies
