article Open access

Large language model based mutations in genetic improvement

  • Automated Software Engineering
  • Springer Science+Business Media
Research footprint

At a glance

Citations
8
References
35
Comments
0
Paper overview

Abstract

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 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 model finding test-passing edits 77% of the time. The and 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.

Record transparency

Publication details

DOI
10.1007/s10515-024-00473-6
OpenAlex
W4406635663
Document type
article
Language
EN
Source
Automated Software Engineering
Last metadata update
Community

Comments

Log in to join the discussion.

  1. No comments yet. Start the discussion.