Skip to main navigation Skip to search Skip to main content

Enhancing Genetic Improvement Mutations Using Large Language Models

  • Alexander Brownlee*
  • , James Callan
  • , Karine Even-Mendoza
  • , Alina Geiger
  • , Carol Hanna
  • , Justyna Petke
  • , Federica Sarro
  • , Dominik Sobania
  • *Corresponding author for this work
  • University of Stirling
  • University College London, UK.
  • The Johannes Gutenberg University
  • UCL University College London

Research output: Contribution to journalConference paperpeer-review

21 Citations (Scopus)
321 Downloads (Pure)

Abstract

Large language models (LLMs) have been successfully applied to software engineering tasks, including program repair. However, their application in search-based techniques such as Genetic Improvement (GI) is still largely unexplored. In this paper, we evaluate the use of LLMs as mutation operators for GI to improve the search process. We expand the Gin Java GI toolkit to call OpenAI's API to generate edits for the JCodec tool. We randomly sample the space of edits using 5 different edit types. We find that the number of patches passing unit tests is up to 75% higher with LLM-based edits than with standard Insert edits. Further, we observe that the patches found with LLMs are generally less diverse compared to standard edits. We ran GI with local search to find runtime improvements. Although many improving patches are found by LLM-enhanced GI, the best improving patch was found by standard GI.
Original languageEnglish
Pages (from-to)153-159
Number of pages7
JournalLecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
Volume14415
Early online date4 Dec 2023
DOIs
Publication statusE-pub ahead of print - 4 Dec 2023
Event15TH INTERNATIONAL SYMPOSIUM ON SEARCH-BASED SOFTWARE ENGINEERING (SSBSE) - San Francisco, California, United States, San Francisco, United States
Duration: 8 Dec 20238 Dec 2023
Conference number: 15
https://conf.researchr.org/track/ssbse-2023/ssbse-2023-challenge?#About

Keywords

  • Genetic Improvement
  • Large language models

Fingerprint

Dive into the research topics of 'Enhancing Genetic Improvement Mutations Using Large Language Models'. Together they form a unique fingerprint.

Cite this