TY - JOUR AV - public Y1 - 2025/// EP - 25 TI - Large Language Model Based Mutations in Genetic Improvement KW - Large language models KW - Genetic Improvement PB - Springer Verlag N2 - 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. ID - discovery10198293 IS - 15 N1 - © 2025 Springer Nature. This article is licensed under a Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/). SP - 1 VL - 32 A1 - Brownlee, Alexander EI A1 - Callan, James A1 - Even-Mendoza, Karine A1 - Geiger, Alina A1 - Hanna, Carol A1 - Petke, Justyna A1 - Sarro, Federica A1 - Sobania, Dominik JF - Automated Software Engineering UR - https://doi.org/10.1007/s10515-024-00473-6 ER -