Large Language Model assisted Transformation of Software Variants into a Software Product Line
Software systems often evolve into multiple variants to meet diverse requirements. This is usually achieved with the clone-and-own approach, where an existing variant is copied and modified. While efficient in the short term, this approach presents challenges for long-term maintenance. A suitable solution to overcome this, is to re-engineer the variants into a software product line (SPL). However, this process is labor-intensive and prone to errors. Although initial studies explore the use of large language models (LLMs) to assist in the re-engineering tasks, they do not address challenges such as hallucination and limited context windows, which restricts the applicability.In this paper, we present a novel approach to assist the transformation of cloned software variants into an SPL using an LLM. To mitigate hallucination, we propose a self-refinement feedback loop to validate the generated SPL. Additionally, we introduce a variation point filtering technique that reduces the input size, while preserving essential information. To quantify and evaluate the generated output, we propose the use of existing metrics that can be employed for the evaluation. Our evaluation demonstrates the effectiveness of the self-refinement feedback loop and variation point filtering based on an existing case study. The results, benchmarked against the proposed variability metrics, indicate that the generated SPL maintains equivalent complexity and potential for reusability, to the system it is compared against.
Authors
- Nasser Jazdi (ORCID: https://orcid.org/0000-0001-6722-0911)
- Michael Weyrich (ORCID: https://orcid.org/0000-0003-3176-9288)
- Johannes Stümpfle (ORCID: https://orcid.org/0000-0002-0745-158X)
- Devansh Atray
Institutions
- University of Stuttgart (DE)
Publication Details
- Published
- 2025-04-27
- DOI
- https://doi.org/10.1109/icsr66718.2025.00008
- Citations
- 3
- Primary Topic
- Advanced Software Engineering Methodologies
- Type
- article
- Field-Weighted Citation Impact
- 7.44
Funders
- Ministry of Education