Seedlabs
Source research

A Survey on Large Language Models for Code Generation

Juyong Jiang, Fan Wang, Jiasi Shen, Sungju Kim, Sunghun Kim · 2026 · 1497 citationsRead the paper

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.

What the full text shows

Deployed in practice
  • Claude-3.5-Sonnet achieved the highest Pass@1 score on the HumanEval benchmark among listed models. — 92.0% Pass@1 (HumanEval benchmark)
  • DeepSeek-Coder-V2-Instruct showed high performance among open-source models on HumanEval. — 90.2% Pass@1 (HumanEval benchmark)
  • GPT-4o-0513 demonstrated strong performance on HumanEval. — 91.0% Pass@1 (HumanEval benchmark)
  • Self-improving code generation pipelines using prompts can achieve very high accuracy. — 94.4% pass@1 (GPT-4 on HumanEval benchmark)
  • Research focus in the field is heavily weighted toward evaluation and foundation models. — 24.1% Evaluation & Benchmark, 21.5% Pre-training & Foundation Models (Analysis of 235 selected papers)
Setup
Systematic review of 235 papers; performance data extracted from original papers for HumanEval, MBPP, and BigCodeBench benchmarks.
How
The authors conducted a systematic literature review of 235 papers using automated database searches and snowballing. They developed a taxonomy for code LLMs and performed a quantitative comparative analysis of model performance across standard benchmarks.
Limitations
49% of analyzed papers are from arXiv and not peer-reviewed · LLMs struggle with repository-level context (import dependencies, parent classes) · Repository context often exceeds LLM context length limitations

Summarized by Gemma 4 from the open-access full text · 20 Nov 2026. Read it