Journal Article
Large Language Models

A Survey on Large Language Models for Code Generation

Juyong Jiang(The Hong Kong University of Science and Technology (Guangzhou)), Fan Wang(The Hong Kong University of Science and Technology (Guangzhou)), Jiasi Shen(Hong Kong University of Science and Technology), Sungju Kim(NAVER Cloud (South Korea)), Sunghun Kim(NAVER Cloud (South Korea))
July 8, 2025ACM Transactions on Software Engineering and Methodology247 citations

247

Citations

0

Influential Citations

ACM Transactions on Software Engineering and Methodology

Venue

2025

Year

Abstract

Large Language Models (LLMs) have garnered remarkable advancements across diverse code-related tasks, known as Code LLMs, particularly in code generation that generates source code with LLM from natural language descriptions. This burgeoning field has captured significant interest from both academic researchers and industry professionals due to its practical significance in software development, e.g., GitHub Copilot . Despite the active exploration of LLMs for a variety of code tasks, either from the perspective of Natural Language Processing (NLP) or Software Engineering (SE) or both, there is a noticeable absence of a comprehensive and up-to-date literature review dedicated to LLM for code generation. In this survey, we aim to bridge this gap by providing a systematic literature review that serves as a valuable reference for researchers investigating the cutting-edge progress in LLMs for code generation. We introduce a taxonomy to categorize and discuss the recent developments in LLMs for code generation, covering aspects such as data curation, latest advances, performance evaluation, ethical implications, environmental impact, and real-world applications. In addition, we present a historical overview of the evolution of LLMs for code generation and provide a quantitative and qualitative comparative analysis of experimental results of code LLMs, sourced from their original papers to ensure a fair comparison on the HumanEval, MBPP, and BigCodeBench benchmarks, across various levels of difficulty and types of programming tasks, to highlight the progressive enhancements in LLM capabilities for code generation. We identify critical challenges and promising opportunities regarding the gap between academia and practical development. Furthermore, we have established a dedicated resource GitHub page ( https://github.com/juyongjiang/CodeLLMSurvey ) to continuously document and disseminate the most recent advances in the field.

Analysis

Why This Paper Matters

Large Language Models (LLMs) have rapidly transformed code generation, with tools like GitHub Copilot bringing AI-assisted programming into mainstream software development. Despite this surge of interest from both academia and industry, the field has lacked a comprehensive and up-to-date literature review dedicated specifically to LLMs for code generation. This survey fills that critical gap by systematically organizing the burgeoning research landscape, providing a structured reference for newcomers and seasoned researchers alike.

The paper's significance is further amplified by its dual focus on both Natural Language Processing (NLP) and Software Engineering (SE) perspectives, acknowledging that code generation sits at the intersection of these disciplines. By introducing a taxonomy that spans data curation, model advances, evaluation, ethics, environmental impact, and real-world applications, the authors offer a holistic view that goes beyond mere model performance. This is essential for practitioners who need to navigate trade-offs in deploying code LLMs responsibly and effectively.

Moreover, the survey's commitment to ongoing updates via a dedicated GitHub repository ensures its continued relevance in a fast-moving field. The comparative analysis of experimental results across HumanEval, MBPP, and BigCodeBench provides a quantitative snapshot of progress, helping to identify state-of-the-art approaches and benchmark-specific trends. This makes the survey not just a static overview but a living resource for the community.

Technical Contributions

  • Comprehensive Taxonomy: The survey categorizes recent developments in code LLMs across multiple dimensions: data curation, latest advances, performance evaluation, ethical implications, environmental impact, and real-world applications. This taxonomy provides a structured framework for understanding the field.
  • Historical Overview: It traces the evolution of LLMs for code generation, offering context for current advancements and highlighting key milestones.
  • Comparative Benchmark Analysis: The authors conduct a quantitative and qualitative comparison of code LLMs on HumanEval, MBPP, and BigCodeBench, sourcing results from original papers to ensure fair comparison across difficulty levels and task types.
  • Identification of Challenges and Opportunities: The survey pinpoints critical gaps between academia and practical development, outlining promising directions for future research.
  • Living Resource: A dedicated GitHub page continuously documents and disseminates recent advances, ensuring the survey remains current.

Results

The survey reports a comparative analysis of experimental results from various code LLMs on three prominent benchmarks: HumanEval, MBPP, and BigCodeBench. While specific metrics are not detailed in the abstract, the analysis highlights progressive enhancements in LLM capabilities for code generation across different difficulty levels and programming task types. By sourcing results directly from original papers, the authors aim to provide a fair and consistent comparison, enabling readers to gauge the relative performance of models and identify trends. The inclusion of BigCodeBench, a more recent and challenging benchmark, underscores the survey's up-to-date coverage.

Significance

This survey is poised to become a key reference for researchers and practitioners working on code generation with LLMs. By consolidating scattered literature into a coherent taxonomy and providing comparative performance insights, it lowers the barrier to entry for new researchers and helps practitioners make informed decisions. The emphasis on ethical implications and environmental impact is particularly timely, as the AI community grapples with the responsible deployment of large models. Furthermore, by identifying the academia-industry gap, the survey encourages more applied research and collaboration, ultimately accelerating the development of more capable and reliable code generation systems. As code LLMs continue to evolve, this survey's living resource will play a vital role in keeping the community informed and aligned.