LLM Code Smells: A Taxonomy and Detection Approach
Not on the map. Why?
Abstract (arXiv)
Large Language Models (LLMs) are increasingly integrated into software systems for diverse purposes, due to their versatility, flexibility, and ability to simulate human reasoning to some extent. However, poor integration of LLM inference in source code can undermine software system quality. Therefore, inadequate LLM integration coding practices must be documented to help developers mitigate such issues. Following our earlier work on LLM code smells, this paper consolidates and refines the concept by presenting a self-contained taxonomy and a catalog of nine LLM code smells. We also create SpecDetect4LLM, a static source code analysis tool for their detection, and conduct extensive empirical evaluations of its detection effectiveness (precision and recall) as well as the prevalence of LLM code smells across 692 open-source software projects (171,194 source files). Our results show that LLM code smells affect 73.5% of the analyzed systems, with a detection precision of 91.3% and a recall of 71.8%.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 22 of its 251 references that are in the map. First posted on arXiv 21 May 2026.
Builds on
22 of 251 references.
References · 22
- 2023A Survey of Large Language Modelscited by 2,576
- 2025A Survey of Frontiers in LLM Reasoning: Inference Scaling, Learning to Reason, and Agentic Systemscited by 111
- 2024FastVLM: Efficient Vision Encoding for Vision Language Modelscited by 77
- 2025BudgetThinker: Empowering Budget-aware LLM Reasoning with Control Tokenscited by 29
- 2024Defining and Detecting the Defects of the Large Language Model-based Autonomous Agentscited by 16
- 2024Are LLMs Correctly Integrated into Software Systems?cited by 15
- 2025Adaptively Robust LLM Inference Optimization under Prediction Uncertaintycited by 10
- 2025A Functional Software Reference Architecture for LLM-Integrated Systemscited by 9
- 2022Code Smells for Machine Learning Applicationscited by 8
- 2025A Taxonomy of Prompt Defects in LLM Systemscited by 8
- 2025Zoomer: Adaptive Image Focus Optimization for Black-box MLLMcited by 6
- 2024BUMP: A Benchmark of Reproducible Breaking Dependency Updatescited by 5
10 more
- 2024Prompt Smells: An Omen for Undesirable Generative AI Outputscited by 5
- 2024Understanding Defects in Generated Codes by Language Modelscited by 5
- 2023I depended on you and you broke me: An empirical study of manifesting breaking changes in client packagescited by 4
- 2025Analyzing 16,193 LLM Papers for Fun and Profitscited by 4
- 2025ERGO: Efficient High-Resolution Visual Understanding for Vision-Language Modelscited by 4
- 2025Ensuring Reproducibility in Generative AI Systems for General Use Cases: A Framework for Regression Testing and Open Datasetscited by 3
- 2024Unboxing Default Argument Breaking Changes in 1 + 2 Data Science Librariescited by 2
- 2025System Message Generation for User Preferences using Open-Source Modelscited by 2
- 2025SpecDetect4ML: Detecting Non-Local ML Code Smells with Code Property Graphscited by 1
- 2025GLiSE: A Prompt-Driven and ML-Powered Tool for Automated Grey Literature Extraction in Software Engineeringcited by 1
Built on by
Not cited yet.