EUVIMEDEUVIMED entdecken
Crossref

TraceLLM: leveraging large language models with prompt engineering for enhanced requirements traceability

Nouf Alturayeif, Irfan Ahmad, Jameleddine Hassine

Requirements Engineering · 2026-06 · 31 (1)

DOI: 10.1007/s00766-026-00460-1 ↗

Kurz gefasst

Fachartikel in der Zeitschrift Requirements Engineering, online erschienen am 19.05.2026. Verfasst von Nouf Alturayeif und 2 weiteren Autor:innen. Die Arbeit wurde bisher 6-mal zitiert (Crossref) und nennt 72 Literaturangaben. Gefördert von: Interdisciplinary Research Center for Intelligent Secure Systems, King Fahd University of Petroleum and Minerals.

AbstractBibliografische AngabenZitierenVerwandte Studien

Abstract (Originalsprache)

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, iterative prompt refinement, enrichment with contextual roles and domain knowledge, and evaluation across zero- and few-shot settings. We assess prompt generalization and robustness using eight state-of-the-art LLMs on four benchmark datasets representing diverse domains (aerospace, healthcare) and artifact types (requirements, design elements, test cases, regulations). TraceLLM achieves state-of-the-art F2 scores, outperforming traditional IR baselines, fine-tuned models, and prior LLM-based methods. We also explore the impact of demonstration selection strategies, identifying label-aware, diversity-based sampling as particularly effective. Overall, our findings highlight that traceability performance depends not only on model capacity but also critically on the quality of prompt engineering. In addition, the achieved performance suggests that TraceLLM can support semi-automated traceability workflows in which candidate links are reviewed and validated by human analysts.

Förderung

  • Interdisciplinary Research Center for Intelligent Secure Systems, King Fahd University of Petroleum and Minerals

Zitieren

APA

Alturayeif, N., Ahmad, I., & Hassine, J. (2026). TraceLLM: leveraging large language models with prompt engineering for enhanced requirements traceability. Requirements Engineering, 31(1). https://doi.org/10.1007/s00766-026-00460-1

Vancouver

Alturayeif N, Ahmad I, Hassine J. TraceLLM: leveraging large language models with prompt engineering for enhanced requirements traceability. Requirements Engineering. 2026;31(1). doi:10.1007/s00766-026-00460-1

BibTeX
@article{Alturayeif2026,
  author = {Alturayeif, Nouf and Ahmad, Irfan and Hassine, Jameleddine},
  title = {TraceLLM: leveraging large language models with prompt engineering for enhanced requirements traceability},
  journal = {Requirements Engineering},
  year = {2026},
  volume = {31},
  number = {1},
  doi = {10.1007/s00766-026-00460-1}
}
Kostenlos starten →