Evolutionary Computation-enhanced Large Language Models for Intelligent Code Completion
- 19 January 2026
- journal article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Evolutionary Computation
- Vol. PP (1089778X) , 1
Abstract
Code completion is a context-aware code completion function available in certain programming environments. It can accelerate the coding process of applications, enhance development efficiency, and reduce costs. Compared with the code generation, code completion has advantages such as flexible adaptation to changes, high precision and pertinence, and lower performance overhead. Intelligent code completion uses artificial intelligence technology to achieve code completion more effectively. However, it faces issues such as poor interpretability, unstable performance, and high demand for computing resources. To make full use of the powerful semantic understanding, information retrieval, and text generation capabilities of Large Language Models (LLMs), as well as the strong global optimization and adaptive search capabilities of Evolutionary Computation (EC), an integrated network framework, the Evolutionary Dual-Channel Network (EDN), is proposed. EDN leverages the precise context comprehension and feature extraction capabilities of large language models to predict the nodes of the abstract syntax tree, thereby achieving code completion. To enhance the performance and interpretability of the entire framework, we use the genetic algorithm (GA), with its powerful search ability, as the main optimization method for EDN. This proposed framework combining LLMs and EC in a novel way. By using EC to optimize certain components in the network framework of LLMs, it enables a more flexible integration of LLMs and EC. Experiment results on three public corpora consisting of multiple programming languages demonstrate the effectiveness of the proposed method.Keywords
Funding Information
- Youth Science Fund Project (62422604)
- National Key Research and Development Program of China (2024YFF0509600)
- the Sichuan Science and Technology Program (2025NSFJQ0053)
- the Natural Science Foundation of Sichuan Province (2024NSFSC1070)
This publication has 57 references indexed in Scilit:
- Machine learning and deep learningElectronic Markets, 2021
- A review on genetic algorithm: past, present, and futureMultimedia Tools and Applications, 2020
- A Comprehensive Survey of Loss Functions in Machine LearningAnnals of Data Science, 2020
- Combining model finder and genetic programming into a general purpose automatic program synthesizerInformation Processing Letters, 2020
- Extending Program Synthesis Grammars for Grammar-Guided Genetic Programming2018
- A Grammar Design Pattern for Arbitrary Program Synthesis Problems in Genetic Programming2017
- Recursion in tree-based genetic programmingGenetic Programming and Evolvable Machines, 2016
- A survey on the application of recurrent neural networks to statistical language modelingComputer Speech & Language, 2015
- Learning long-term dependencies with gradient descent is difficultIEEE Transactions on Neural Networks, 1994
- Market impact of integrated software development environments1988