Journal article · 2024 · Open access
AceCoder : An Effective Prompting Technique Specialized in Code Generation
ACM Transactions on Software Engineering and Methodology, 33(8), 1–26 · Published 4 July 2024 · DOI 10.1145/3675395
In brief
“AceCoder : An Effective Prompting Technique Specialized in Code Generation” is a 2024 journal article by Jia Li and 4 co-authors, published in ACM Transactions on Software Engineering and Methodology. OpenAlex counts 149 citations as of 19 November 2026. It is open access: the full text is free to read at arXiv (Cornell University).
- Citations
- 149
- Most cited in
- 2025 (60)
- Field-weighted impact
- 27.04
- References
- 43
- Authors
- 5
Abstract
Large language models (LLMs) have shown great success in code generation. LLMs take as the input a prompt and output the code. How to make prompts (i.e., Prompting Techniques ) is a key question. Existing prompting techniques are designed for natural language generation and have low accuracy in code generation. In this article, we propose a new prompting technique named AceCoder . Our motivation is that code generation meets two unique challenges (i.e., requirement understanding and code implementation). AceCoder contains two novel mechanisms (i.e., guided code generation and example retrieval) to solve these challenges. ❶ Guided code generation asks LLMs first to analyze requirements and output an intermediate preliminary (e.g., test cases). The preliminary clarifies requirements and tells LLMs “what to write.” ❷ Example retrieval selects similar programs as examples in prompts, which provide lots of relevant content (e.g., algorithms, APIs) and teach LLMs “how to write.” We apply AceCoder to four LLMs (e.g., GPT-3.5, CodeGeeX) and evaluate it on three public benchmarks using the Pass@ \(k\) . Results show that AceCoder can significantly improve the performance of LLMs on code generation. In terms of Pass@1, AceCoder outperforms the SOTA baseline by up to 56.4% in MBPP, 70.7% in MBJP, and 88.4% in MBJSP . AceCoder is effective in LLMs with different sizes (i.e., 6B–13B) and different languages (i.e., Python, Java, and JavaScript). Human evaluation shows human developers prefer programs from AceCoder .
Cite this paper
Formatted from the catalogue record. Check names, capitals and page numbers against the paper before you submit.
APA 7
Li, J., Zhao, Y., Li, Y., Li, G., & Jin, Z. G. (2024). AceCoder : An Effective Prompting Technique Specialized in Code Generation. ACM Transactions on Software Engineering and Methodology, 33(8), 1–26. https://doi.org/10.1145/3675395
MLA 9
Li, Jia, et al. “AceCoder : An Effective Prompting Technique Specialized in Code Generation.” ACM Transactions on Software Engineering and Methodology, vol. 33, no. 8, 2024, pp. 1–26. https://doi.org/10.1145/3675395.
Chicago
Li, Jia, Yunfei Zhao, Yongmin Li, Ge Li, and Zhi Gang Jin. 2024. “AceCoder : An Effective Prompting Technique Specialized in Code Generation.” ACM Transactions on Software Engineering and Methodology 33 (8): 1–26. https://doi.org/10.1145/3675395.
Harvard
Li, J. et al. (2024) ‘AceCoder : An Effective Prompting Technique Specialized in Code Generation’, ACM Transactions on Software Engineering and Methodology, 33(8), pp. 1–26. doi:10.1145/3675395.
IEEE
J. Li, Y. Zhao, Y. Li, G. Li, and Z. G. Jin, “AceCoder : An Effective Prompting Technique Specialized in Code Generation,” ACM Transactions on Software Engineering and Methodology, vol. 33, no. 8, pp. 1–26, 2024, doi: 10.1145/3675395.
BibTeX
@article{li2024acecoder,
title = {{AceCoder : An Effective Prompting Technique Specialized in Code Generation}},
author = {Li, Jia and Zhao, Yunfei and Li, Yongmin and Li, Ge and Jin, Zhi Gang},
journal = {ACM Transactions on Software Engineering and Methodology},
year = {2024},
volume = {33},
number = {8},
pages = {1--26},
doi = {10.1145/3675395},
url = {https://doi.org/10.1145/3675395}
}
Download for a reference manager: BibTeX (.bib) · RIS for Zotero, Mendeley and EndNote (.ris)
Citations by year
| Year | Citations | Share of the best year |
|---|---|---|
| 2023 | 11 | |
| 2024 | 34 | |
| 2025 | 60 | |
| 2026 | 44 |
Its field-weighted citation impact is 27.04: it has been cited 27.04 times as often as the average work of the same field, type and year (1.00 is the world average).
Topic and keywords
Physical Sciences › Computer Science › Information Systems › Software Engineering Research
- code generation
- prompting techniques
- large language models
- example retrieval
- test case generation
- program synthesis
- GPT-3.5
Work with this paper
Most-cited papers in Computer Science
- ImageNet classification with deep convolutional neural networksAlex Krizhevsky, Ilya Sutskever, Geoffrey E. Hinton · Communications of the ACM · 2017 · 114,726 citations
- Long Short-Term MemorySepp Hochreiter, Jürgen Schmidhuber · Neural Computation · 1997 · 109,097 citations
- A Mathematical Theory of CommunicationClaude E. Shannon · Bell System Technical Journal · 1948 · 91,736 citations
- Deep learningYann LeCun, Yoshua Bengio, Geoffrey E. Hinton · Nature · 2015 · 90,226 citations
- Faster R-CNN: Towards Real-Time Object Detection with Region Proposal NetworksShaoqing Ren, Kaiming He, Ross Girshick and 1 more · IEEE Transactions on Pattern Analysis and Machine Intelligence · 2016 · 74,143 citations
Questions about this paper
How do I cite this paper in APA style?
Li, J., Zhao, Y., Li, Y., Li, G., & Jin, Z. G. (2024). AceCoder : An Effective Prompting Technique Specialized in Code Generation. ACM Transactions on Software Engineering and Methodology, 33(8), 1–26. https://doi.org/10.1145/3675395
How many times has this paper been cited?
149 times, according to OpenAlex on 19 November 2026. Google Scholar and Scopus count different sets of sources, so their numbers differ.
Is this paper free to read?
Yes. It is open access at arXiv (Cornell University): sign in and open the PDF from this page.
Who wrote this paper?
Jia Li, Yunfei Zhao, Yongmin Li, Ge Li, Zhi Gang Jin.
What is the DOI of this paper?
10.1145/3675395, permanently at https://doi.org/10.1145/3675395. Sign in and open it from this page.
Bibliographic data from OpenAlex (CC0), last checked 19 November 2026. ResearchGuru does not host this paper; once you are signed in, the links open it at the publisher or the repository that does.