Prompts Matter: Insights and Strategies for Prompt Engineering in Automated Software Traceability
Authors:
- 1 September 2023
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 455-464
Abstract
Large Language Models (LLMs) have the potential to revolutionize automated traceability by overcoming the challenges faced by previous methods and introducing new possibilities. However, the optimal utilization of LLMs for automated traceability remains unclear. This paper explores the process of prompt engineering to extract link predictions from an LLM. We provide detailed insights into our approach for constructing effective prompts, offering our lessons learned. Additionally, we propose multiple strategies for leveraging LLMs to generate traceability links, improving upon previous zero-shot methods on the ranking of candidate links after prompt refinement. The primary objective of this paper is to inspire and assist future researchers and engineers by highlighting the process of constructing traceability prompts to effectively harness LLMs for advancing automatic traceability.Keywords
All Related Versions
Funding Information
- USA National Science Foundation (SHF-1901059,SHF-1909007,PFI-TT-2122689)
This publication has 12 references indexed in Scilit:
- Software traceability in the automotive domain: Challenges and solutionsJournal of Systems and Software, 2018
- Traceability in the wild2018
- Dronology2018
- Semantically Enhanced Software Traceability Using Deep Learning Techniques2017
- Software traceability: trends and future directions2014
- Information Retrieval Methods for Automated Traceability Recovery2011
- Software traceability with topic modeling2010
- Best Practices for Automated TraceabilityComputer, 2007
- Advancing candidate link generation for requirements tracing: the study of methodsIEEE Transactions on Software Engineering, 2006
- Recovering traceability links between code and documentationIEEE Transactions on Software Engineering, 2002