arrow
Return

Evolutionary Computation-Enhanced Large Language Models for Intelligent Code Completion

delete2026-08-01
delete1
PRE
AI
D
Dongbo Liu
T
Tan, Ziqi
G
Gary G. Yen
D
Duan, Suling
Y
Yimin Zhou
贺
贺喆南 (Zhenan He) *
DOI:10.1109/tevc.2026.3655808delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
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 LLMs to predict the nodes of the abstract syntax tree (AST), 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 combines LLMs and EC in a novel way. Using EC to optimize certain components in the network framework of LLMs, it enables a more flexible integration of LLMs and EC. Experimental results on three public corpora consisting of multiple programming languages (PLs) demonstrate the effectiveness of the proposed method.
Keywords:
Codes
Semantics
Syntactics
Genetic algorithms
Trees (botanical)
Computer languages
Feature extraction
Source coding
Large language models
Deep learning
Evolutionary computation (EC)
intelligent code completion
large language models (LLMs)

Journal

IEEE Transactions on Evolutionary Computation cover
IEEE Transactions on Evolutionary Computation
IF:
12
Papers:
1.9K
Citations:
2.4W

Organization

C
chengdu university of information technology
Scholars:
223
Papers: 88
Citations: 0
S
Sichuan University
Scholars:
6.3K
Papers: 1.5K
Citations: 0
Cited Papers

Cited Papers

No cited papers available