A Taxonomy of Inefficiencies in LLM-Generated Python Code
Not on the map. Why?
Abstract (arXiv)
Large Language Models (LLMs) are widely adopted for automated code generation with promising results. Although prior research has assessed LLM-generated code and identified various quality issues -- such as redundancy, poor maintainability, and sub-optimal performance a systematic understanding and categorization of these inefficiencies remain unexplored. Without such knowledge, practitioners struggle to optimize LLM-generated code for real-world applications, limiting its adoption. This study can also guide improving code LLMs, enhancing the quality and efficiency of code generation. Therefore, in this study, we empirically investigate inefficiencies in LLM-generated code by state-of-the-art models, i.e., CodeLlama, DeepSeek-Coder, and CodeGemma. To do so, we analyze 492 generated code snippets in the HumanEval++ dataset. We then construct a taxonomy of inefficiencies in LLM-generated code that includes 5 categories General Logic, Performance, Readability, Maintainability, and Errors) and 19 subcategories of inefficiencies. We then validate the proposed taxonomy through an online survey with 58 LLM practitioners and researchers. Our study indicates that logic and performance-related inefficiencies are the most popular, relevant, and frequently co-occur and impact overall code quality inefficiency. Our taxonomy provides a structured basis for evaluating the quality LLM-generated code and guiding future research to improve code generation efficiency.
Key facts. Cited by 8 papers in the map (data through 7 Oct 2026). First posted on arXiv 8 Mar 2025.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2025: 3; 2026: 5.
8 papers.
- 2026SlopCodeBench: Benchmarking How Coding Agents Degrade Over Long-Horizon Iterative Taskscited by 24
- 2026What to Cut? Predicting Unnecessary Methods in Agentic Code Generationcited by 5
- 2025ML-Tool-Bench: Tool-Augmented Planning for ML Taskscited by 3
- 2025How Do Agentic AI Systems Address Performance Optimizations? A BERTopic-Based Analysis of Pull Requestscited by 1
- 2026An Agentic Framework for Neuro-Symbolic Programmingcited by 1
- 2026Bridging Generation and Training: A Systematic Review of Quality Issues in LLMs for Codecited by 1
- 2025ReCatcher: Towards LLMs Regression Testing for Code Generationcited by 0
- 2026TRIM: Reducing AI-Generated CodeSlop via Agent Trajectory Minimizationcited by 0
- 2026TRIM: Reducing AI-Generated CodeSlop via Agent Trajectory Minimization20 Jul 2026
- 2026Bridging Generation and Training: A Systematic Review of Quality Issues in LLMs for Code6 May 2026
- 2026SlopCodeBench: Benchmarking How Coding Agents Degrade Over Long-Horizon Iterative Tasks25 Mar 2026
- 2026What to Cut? Predicting Unnecessary Methods in Agentic Code Generation19 Feb 2026
- 2026An Agentic Framework for Neuro-Symbolic Programming2 Jan 2026
- 2025How Do Agentic AI Systems Address Performance Optimizations? A BERTopic-Based Analysis of Pull Requests31 Dec 2025
- 2025ML-Tool-Bench: Tool-Augmented Planning for ML Tasks29 Nov 2025
- 2025ReCatcher: Towards LLMs Regression Testing for Code Generation25 Jul 2025