arrow
Return

Automatic Code Generation Techniques: A Systematic Literature Review

delete2025-09-12
delete0
PRE
AI
M
Maha Alharbi *
M
Mohammad Alshayeb
DOI:10.1007/s10515-025-00551-3delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
As modern software systems become complex and the demand for rapid development cycles increases, automatic code generation techniques have attained a prominent focus in academic research and industrial practice. These techniques can significantly reduce human error, increase productivity, and ensure consistency across large codebases. However, the task of generating code automatically presents significant challenges. In this study, we investigate, identify, and analyze the existing automatic techniques for generating code from various input formats, highlighting their efficiencies and areas for potential improvement. A Systematic Literature Review (SLR) is conducted to systematically summarize and review 76 primary studies related to automatic code generation in the software engineering domain. The selected studies are investigated from several dimensions: paradigms, techniques, input types, intermediate representations, tool support, targeted programming languages, and validation methods, including performance metrics, datasets, and benchmarking status. Our investigation identified 12 main techniques, categorized into five paradigms, where the Model-to-Code paradigm and model-driven techniques are the most prevalent. Notably, 57% of the studies utilized Java, and a limited number of studies showed multilingual support. Furthermore, 72% of the selected studies did not compare their results with existing techniques, and 17% lacked validation of the proposed techniques. We also noticed a lack of detailed information about the datasets used in the validation process, where 52% of the studies omitted these details. This SLR provides several recommendations to enhance methodological rigor in future research, and it highlights opportunities for leveraging emerging technologies to improve the efficiency of the identified automatic code generation techniques.
Keywords:
Automatic code generation
Automatic programming
Programming languages
Systematic literature review

Journal

A
Automated Software Engineering
IF:
3.1
Papers:
84
Citations:
0

Organization

No organization information available
Cited Papers

Cited Papers

BLEU
err2001-01-01
err0
errOAAI
errKishore Papineni; Salim Roukos; Todd Ward; Wei-Jing Zhu
errShare
errSave
errShare
errSave
Aligning software engineering education with industrial needs: A meta-analysis
err2019-10-01
err61
PREAI
errGarousi, Vahid; Giray, Gorkem; Tuzun, Eray; Catal, Cagatay; Felderer, Michael
errShare
errSave
Large Language Models Meet NL2Code: A Survey
err2023-01-01
err0
errOAAI
errDaoguang Zan; Bei Chen; Fengji Zhang; Dianjie Lu; Bingchao Wu; Bei Guan; Wang Yongji; Jian-Guang Lou
errShare
errSave
A systematic review of code generation proposals from state machine specifications
err2012-10-01
err29
PREAI
errDominguez, Eladio; Perez, Beatriz; Rubio, Angel L.; Zapata, Maria A.
errShare
errSave
Equality and hashing for (almost) free: Generating implementations from abstraction functions
err2009-01-01
err0
PREAI
errRayside,Derek; Benjamin,Zev; Singh,Rishabh; Near,Joseph P.; Milicevic,Aleksandar; Jackson,Daniel
errShare
errSave
The Metric for Automatic Code Generation
err2020-01-01
err0
errOAAI
errZhen Li; Ying Jiang; Xiao Jiang Zhang; Hai Yan Xu
errShare
errSave
researcher View more