Logo del repository
  1. Home
 
Opzioni

Enhancing Large Language Models-Based Code Generation by Leveraging Genetic Improvement

Giovanni Pinna
•
Damiano Ravalico
•
Luigi Rovito
altro
Andrea De Lorenzo
2024
  • conference object

Abstract
In recent years, the rapid advances in neural networks for Natural Language Processing (NLP) have led to the development of Large Language Models (LLMs), able to substantially improve the state-of-the-art in many NLP tasks, such as question answering and text summarization. Among them, one particularly interesting application is automatic code generation based only on the problem description. However, it has been shown that even the most effective LLMs available often fail to produce correct code. To address this issue, we propose an evolutionary-based approach using Genetic Improvement (GI) to improve the code generated by an LLM using a collection of user-provided test cases. Specifically, we employ Grammatical Evolution (GE) using a grammar that we automatically specialize—starting from a general one—for the output of the LLM. We test 25 different problems and 5 different LLMs, showing that the proposed method is able to improve in a statistically significant way the code generated by LLMs. This is a first step in showing that the combination of LLMs and evolutionary techniques can be a fruitful avenue of research.
DOI
10.1007/978-3-031-56957-9_7
WOS
WOS:001212387300007
Archivio
https://hdl.handle.net/11368/3071899
info:eu-repo/semantics/altIdentifier/scopus/2-s2.0-85190702146
https://link.springer.com/chapter/10.1007/978-3-031-56957-9_7
Diritti
open access
license:copyright editore
license:digital rights management non definito
license uri:iris.pri02
license uri:iris.pri00
FVG url
https://arts.units.it/request-item?handle=11368/3071899
Soggetti
  • Evolutionary Computat...

  • Evolutionary Algorith...

  • Large Language Model

  • Artificial Intelligen...

  • Machine Learning

  • Neural Network

  • Code Generation

  • Genetic Improvement

  • Grammatical Evolution...

  • Genetic Programming

google-scholar
Get Involved!
  • Source Code
  • Documentation
  • Slack Channel
Make it your own

DSpace-CRIS can be extensively configured to meet your needs. Decide which information need to be collected and available with fine-grained security. Start updating the theme to match your nstitution's web identity.

Need professional help?

The original creators of DSpace-CRIS at 4Science can take your project to the next level, get in touch!

Realizzato con Software DSpace-CRIS - Estensione mantenuta e ottimizzata da 4Science

  • Impostazioni dei cookie
  • Informativa sulla privacy
  • Accordo con l'utente finale
  • Invia il tuo Feedback