Article
Details
Citation
Brownlee AEI, Callan J, Even-Mendoza K, Geiger A, Hanna C, Petke J, Sarro F & Sobania D (2025) Large Language Model Based Mutations in Genetic Improvement. Automated Software Engineering, 32 (15). https://doi.org/10.1007/s10515-024-00473-6
Abstract
Ever since the first large language models (LLMs) have become available, both academics and practitioners have used them to aid software engineering tasks. However, little research as yet has been done in combining search-based software engineering (SBSE) and LLMs. In this paper, we evaluate the use of LLMs as mutation operators for genetic improvement (GI), an SBSE approach, to improve the GI search process. In a preliminary work, we explored the feasibility of combining the Gin Java GI toolkit with OpenAI LLMs in order to generate an edit for the JCodec tool. Here we extend this investigation involving three LLMs and three types of prompt, and five real-world software projects. We sample the edits at random, as well as using local search. We also conducted a qualitative analysis to understand why LLM-generated code edits break as part of our evaluation. Our results show that, compared with conventional statement GI edits, LLMs produce fewer unique edits, but these compile and pass tests more often, with the OpenAI model finding test-passing edits 77% of the time. The OpenAI and Mistral LLMs are roughly equal in finding the best run-time improvements. Simpler prompts are more successful than those providing more context and examples. The qualitative analysis reveals a wide variety of areas where LLMs typically fail to produce valid edits commonly including inconsistent formatting, generating non-Java syntax, or refusing to provide a solution.
Keywords
Large language models; Genetic imporvement
Journal
Automated Software Engineering: Volume 32, Issue 15
Status | Published |
---|---|
Funders | |
Publication date | 21/01/2025 |
Publication date online | 21/01/2025 |
Date accepted by journal | 08/10/2024 |
ISSN | 0928-8910 |
eISSN | 1573-7535 |
People (1)
Senior Lecturer in Computing Science, Computing Science and Mathematics - Division