Quality assurance of LLM-generated code: Addressing non-functional quality characteristics
2026 (English)In: Journal of Systems and Software, ISSN 0164-1212, E-ISSN 1873-1228, Vol. 238, article id 112885Article in journal (Refereed) Published
Abstract [en]
In recent years, large language models have been widely integrated into software engineering workflows, supporting tasks like code generation. While prior evaluations focus on functional correctness, there is still a limited understanding of the non-functional quality characteristics of generated code. Guided by the ISO/IEC 25010 quality model, this study adopts a multi-methods approach comprising three complementary elements: a literature review of 109 papers, two industry workshops with practitioners from multiple organizations, and an empirical analysis of patching real-world software issues using three LLMs. Motivated by insights from both the literature and practitioners, the empirical study examined the quality of generated patches regarding security, maintainability, and performance efficiency, which were identified as critical code-level quality attributes. Our results indicate that existing research primarily emphasizes security, performance efficiency, and maintainability, while other quality attributes are understudied. In contrast, practitioners prioritize maintainability and readability, warning that generated code may accelerate the accumulation of technical debt. The empirical evaluation demonstrates the instability of optimizing NFQCs through prompts in practical software engineering settings. Overall, our findings expose a misalignment between academic focus, industry priorities, and observed model behavior, highlighting the need to integrate quality assurance mechanisms into LLM code generation pipelines to ensure that future generated code not only passes tests but truly passes with quality.
Place, publisher, year, edition, pages
ELSEVIER SCIENCE INC , 2026. Vol. 238, article id 112885
Keywords [en]
LLM-generated code; Code generation; Non-functional quality characteristics; Maintainability; Security; Performance efficiency
National Category
Software Engineering
Identifiers
URN: urn:nbn:se:liu:diva-223337DOI: 10.1016/j.jss.2026.112885ISI: 001740113500001Scopus ID: 2-s2.0-105034745932OAI: oai:DiVA.org:liu-223337DiVA, id: diva2:2056179
Note
Funding Agencies|Software Center project 61; Vinnova Competence Center for Continuous Digitalization [2023-00546]
2026-04-282026-04-282026-06-27