mlsanityData to 14 Oct 2026

Specification and Detection of LLM Code Smells

arXiv 2512.18020 ↗First posted 19 Dec 2025cs.SE cs.AIcited by 0

Not on the map. Why?

Abstract (arXiv)

Large Language Models (LLMs) have gained massive popularity in recent years and are increasingly integrated into software systems for diverse purposes. However, poorly integrating them in source code may undermine software system quality. Yet, to our knowledge, there is no formal catalog of code smells specific to coding practices for LLM inference. In this paper, we introduce the concept of LLM code smells and formalize five recurrent problematic coding practices related to LLM inference in software systems, based on relevant literature. We extend the detection tool SpecDetect4AI to cover the newly defined LLM code smells and use it to validate their prevalence in a dataset of 200 open-source LLM systems. Our results show that LLM code smells affect 60.50% of the analyzed systems, with a detection precision of 86.06%.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 19 of its 52 references that are in the map. First posted on arXiv 19 Dec 2025.

Builds on

19 of 52 references.

References · 19

  1. 2025Why Do Multi-Agent LLM Systems Fail?cited by 604
  2. 2024Token-Budget-Aware LLM Reasoningcited by 247
  3. 2025A Survey of Frontiers in LLM Reasoning: Inference Scaling, Learning to Reason, and Agentic Systemscited by 111
  4. 2024"We Need Structured Output": Towards User-centered Constraints on Large Language Model Outputcited by 46
  5. 2025Position is Power: System Prompts as a Mechanism of Bias in Large Language Models (LLMs)cited by 19
  6. 2024Defining and Detecting the Defects of the Large Language Model-based Autonomous Agentscited by 16
  7. 2024Are LLMs Correctly Integrated into Software Systems?cited by 15
  8. 2025Adaptively Robust LLM Inference Optimization under Prediction Uncertaintycited by 10
  9. 2025A Functional Software Reference Architecture for LLM-Integrated Systemscited by 9
  10. 2025RealHarm: A Collection of Real-World Language Model Application Failurescited by 8
  11. 2025A Taxonomy of Prompt Defects in LLM Systemscited by 8
  12. 2024BUMP: A Benchmark of Reproducible Breaking Dependency Updatescited by 5
7 more
  1. 2024Prompt Smells: An Omen for Undesirable Generative AI Outputscited by 5
  2. 2024Understanding Defects in Generated Codes by Language Modelscited by 5
  3. 2023I depended on you and you broke me: An empirical study of manifesting breaking changes in client packagescited by 4
  4. 2025Analyzing 16,193 LLM Papers for Fun and Profitscited by 4
  5. 2025Ensuring Reproducibility in Generative AI Systems for General Use Cases: A Framework for Regression Testing and Open Datasetscited by 3
  6. 2024Unboxing Default Argument Breaking Changes in 1 + 2 Data Science Librariescited by 2
  7. 2025System Message Generation for User Preferences using Open-Source Modelscited by 2

Built on by

Not cited yet.