Towards Understanding the Characteristics of Code Generation Errors Made by Large Language Models
Not on the map. Why?
Abstract (arXiv)
Large Language Models (LLMs) have demonstrated unprecedented capabilities in code generation. However, there remains a limited understanding of code generation errors that LLMs can produce. To bridge the gap, we conducted an in-depth analysis of code generation errors across six representative LLMs on the HumanEval dataset. Specifically, we first employed open coding and thematic analysis to distill a comprehensive taxonomy of code generation errors. We analyzed two dimensions of error characteristics -- semantic characteristics and syntactic characteristics. Our analysis revealed that LLMs often made non-trivial, multi-line code generation errors in various locations and with various root causes. We further analyzed the correlation between these errors and task complexity as well as test pass rate. Our findings highlighted several challenges in locating and fixing code generation errors made by LLMs. In the end, we discussed several future directions to address these challenges.
Key facts. Cited by 30 papers in the map (data through 14 Oct 2026). First posted on arXiv 13 Jun 2024.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2025: 12; 2026: 18.
30 papers.
Sort:
By area:
- 2025VERINA: Benchmarking Verifiable Code Generationcited by 34
- 2025A.S.E: A Repository-Level Benchmark for Evaluating Security in AI-Generated Codecited by 14
- 2025VeriStruct: AI-assisted Automated Verification of Data-Structure Modules in Veruscited by 9
- 2025BioAgents: Democratizing Bioinformatics Analysis with Multi-Agent Systemscited by 8
- 2025Beyond Synthetic Benchmarks: Evaluating LLM Performance on Real-World Class-Level Code Generationcited by 8
- 2025VeriEquivBench: An Equivalence Score for Ground-Truth-Free Evaluation of Formally Verifiable Codecited by 7
- 2026ErrorMap and ErrorAtlas: Charting the Failure Landscape of Large Language Modelscited by 6
- 2025Where Do LLMs Still Struggle? An In-Depth Analysis of Code Generation Benchmarkscited by 5
- 2025On LLMs' Internal Representation of Code Correctnesscited by 5
- 2025Why is prompting hard? Understanding prompts on binary sequence predictorscited by 4
- 2026VeriContest: A Competitive-Programming Benchmark for Verifiable Code Generationcited by 3
- 2025SRLCG: Self-Rectified Large-Scale Code Generation with Multidimensional Chain-of-Thought and Dynamic Backtrackingcited by 2
18 more
- 2025COSTAR-A: A prompting framework for enhancing Large Language Model performance on Point-of-View questionscited by 2
- 2026Intent-aligned Formal Specification Synthesis via Traceable Refinementcited by 2
- 2026UA-ChatDev: Uncertainty-Aware Multi-Agent Collaboration for Reliable Software Developmentcited by 2
- 2026Form, Not Content? A Preregistered, Placebo-Controlled Evaluation of Learned Error-Conditioned Self-Repair Through Prompts and Weights in Frozen Small Code Modelscited by 2
- 2026On Integrating Resilience and Human Oversight into LLM-Assisted Modeling Workflows for Digital Twinscited by 1
- 2026FVRuleLearner: Operator-Level Reasoning Tree (Op-Tree)-Based Rules Learning for Formal Verificationcited by 1
- 2026Effectiveness of LLM-based Software Diversity for Reliability Improvement -- an Empirical Studycited by 1
- 2026On the Robustness of LLMs' Internal Representation of Code Correctnesscited by 1
- 2026NoTB: Oracle-Free Triage of LLM-Generated RTL via Cross-Model Formal Consensuscited by 1
- 2025Think Like Human Developers: Harnessing Community Knowledge for Structured Code Reasoningcited by 0
- 2026Is Vibe Coding the Future? An Empirical Assessment of LLM Generated Codes for Construction Safetycited by 0
- 2026Task Abstention for Large Language Models in Code Generationcited by 0
- 2026Diagnosing Knowledge Gaps in LLM Tool Use: An Agentic Benchmark for Novel API Acquisitioncited by 0
- 2026Simulating Students' Java Programming Errors with Large Language Modelscited by 0
- 2026Characterizing the Quality Profile of AI-Generated C++ in Productioncited by 0
- 2026Do Uncertainty Signals Help? A Systematic Study of Uncertainty-Aware Decoding with Rollback Mechanismscited by 0
- 2026Adaptive Critical Token-Aware Retrieval for Repository-Level Code Generationcited by 0
- 2026LYNX: Analytical Program Synthesis via Grounding and Closed-Loop Refinementcited by 0
- 2026LYNX: Analytical Program Synthesis via Grounding and Closed-Loop Refinement10 Oct 2026
- 2026Adaptive Critical Token-Aware Retrieval for Repository-Level Code Generation1 Sep 2026
- 2026NoTB: Oracle-Free Triage of LLM-Generated RTL via Cross-Model Formal Consensus22 Aug 2026
- 2026On the Robustness of LLMs' Internal Representation of Code Correctness8 Aug 2026
- 2026Characterizing the Quality Profile of AI-Generated C++ in Production6 Aug 2026
- 2026Do Uncertainty Signals Help? A Systematic Study of Uncertainty-Aware Decoding with Rollback Mechanisms31 Jul 2026
- 2026Form, Not Content? A Preregistered, Placebo-Controlled Evaluation of Learned Error-Conditioned Self-Repair Through Prompts and Weights in Frozen Small Code Models14 Jul 2026
- 2026Effectiveness of LLM-based Software Diversity for Reliability Improvement -- an Empirical Study3 Jul 2026
- 2026UA-ChatDev: Uncertainty-Aware Multi-Agent Collaboration for Reliable Software Development2 Jul 2026
- 2026Simulating Students' Java Programming Errors with Large Language Models12 Jun 2026
- 2026Diagnosing Knowledge Gaps in LLM Tool Use: An Agentic Benchmark for Novel API Acquisition2 Jun 2026
- 2026Task Abstention for Large Language Models in Code Generation16 May 2026
18 more
- 2026VeriContest: A Competitive-Programming Benchmark for Verifiable Code Generation8 May 2026
- 2026Is Vibe Coding the Future? An Empirical Assessment of LLM Generated Codes for Construction Safety14 Apr 2026
- 2026Intent-aligned Formal Specification Synthesis via Traceable Refinement12 Apr 2026
- 2026On Integrating Resilience and Human Oversight into LLM-Assisted Modeling Workflows for Digital Twins26 Mar 2026
- 2026FVRuleLearner: Operator-Level Reasoning Tree (Op-Tree)-Based Rules Learning for Formal Verification6 Mar 2026
- 2026ErrorMap and ErrorAtlas: Charting the Failure Landscape of Large Language Models22 Jan 2026
- 2025On LLMs' Internal Representation of Code Correctness8 Dec 2025
- 2025Where Do LLMs Still Struggle? An In-Depth Analysis of Code Generation Benchmarks6 Nov 2025
- 2025Beyond Synthetic Benchmarks: Evaluating LLM Performance on Real-World Class-Level Code Generation30 Oct 2025
- 2025VeriStruct: AI-assisted Automated Verification of Data-Structure Modules in Verus28 Oct 2025
- 2025COSTAR-A: A prompting framework for enhancing Large Language Model performance on Point-of-View questions14 Oct 2025
- 2025VeriEquivBench: An Equivalence Score for Ground-Truth-Free Evaluation of Formally Verifiable Code7 Oct 2025
- 2025A.S.E: A Repository-Level Benchmark for Evaluating Security in AI-Generated Code25 Aug 2025
- 2025VERINA: Benchmarking Verifiable Code Generation29 May 2025
- 2025SRLCG: Self-Rectified Large-Scale Code Generation with Multidimensional Chain-of-Thought and Dynamic Backtracking1 Apr 2025
- 2025Think Like Human Developers: Harnessing Community Knowledge for Structured Code Reasoning19 Mar 2025
- 2025Why is prompting hard? Understanding prompts on binary sequence predictors15 Feb 2025
- 2025BioAgents: Democratizing Bioinformatics Analysis with Multi-Agent Systems10 Jan 2025
- 2025SRLCG: Self-Rectified Large-Scale Code Generation with Multidimensional Chain-of-Thought and Dynamic Backtrackingcited by 2
- 2026FVRuleLearner: Operator-Level Reasoning Tree (Op-Tree)-Based Rules Learning for Formal Verificationcited by 1
- 2025Think Like Human Developers: Harnessing Community Knowledge for Structured Code Reasoningcited by 0
- 2026FVRuleLearner: Operator-Level Reasoning Tree (Op-Tree)-Based Rules Learning for Formal Verification6 Mar 2026
- 2025SRLCG: Self-Rectified Large-Scale Code Generation with Multidimensional Chain-of-Thought and Dynamic Backtracking1 Apr 2025
- 2025Think Like Human Developers: Harnessing Community Knowledge for Structured Code Reasoning19 Mar 2025
- 2025VERINA: Benchmarking Verifiable Code Generationcited by 34
- 2025A.S.E: A Repository-Level Benchmark for Evaluating Security in AI-Generated Codecited by 14
- 2025VeriStruct: AI-assisted Automated Verification of Data-Structure Modules in Veruscited by 9
- 2025Beyond Synthetic Benchmarks: Evaluating LLM Performance on Real-World Class-Level Code Generationcited by 8
- 2025VeriEquivBench: An Equivalence Score for Ground-Truth-Free Evaluation of Formally Verifiable Codecited by 7
- 2026ErrorMap and ErrorAtlas: Charting the Failure Landscape of Large Language Modelscited by 6
- 2025Where Do LLMs Still Struggle? An In-Depth Analysis of Code Generation Benchmarkscited by 5
- 2025On LLMs' Internal Representation of Code Correctnesscited by 5
- 2025Why is prompting hard? Understanding prompts on binary sequence predictorscited by 4
- 2026VeriContest: A Competitive-Programming Benchmark for Verifiable Code Generationcited by 3
- 2025COSTAR-A: A prompting framework for enhancing Large Language Model performance on Point-of-View questionscited by 2
- 2026Intent-aligned Formal Specification Synthesis via Traceable Refinementcited by 2
12 most cited of 24 All 24 (JSON)
- 2026LYNX: Analytical Program Synthesis via Grounding and Closed-Loop Refinement10 Oct 2026
- 2026Adaptive Critical Token-Aware Retrieval for Repository-Level Code Generation1 Sep 2026
- 2026NoTB: Oracle-Free Triage of LLM-Generated RTL via Cross-Model Formal Consensus22 Aug 2026
- 2026On the Robustness of LLMs' Internal Representation of Code Correctness8 Aug 2026
- 2026Characterizing the Quality Profile of AI-Generated C++ in Production6 Aug 2026
- 2026Do Uncertainty Signals Help? A Systematic Study of Uncertainty-Aware Decoding with Rollback Mechanisms31 Jul 2026
- 2026Form, Not Content? A Preregistered, Placebo-Controlled Evaluation of Learned Error-Conditioned Self-Repair Through Prompts and Weights in Frozen Small Code Models14 Jul 2026
- 2026Effectiveness of LLM-based Software Diversity for Reliability Improvement -- an Empirical Study3 Jul 2026
- 2026Simulating Students' Java Programming Errors with Large Language Models12 Jun 2026
- 2026Task Abstention for Large Language Models in Code Generation16 May 2026
- 2026VeriContest: A Competitive-Programming Benchmark for Verifiable Code Generation8 May 2026
- 2026Is Vibe Coding the Future? An Empirical Assessment of LLM Generated Codes for Construction Safety14 Apr 2026
12 newest of 24 All 24 (JSON)