mlsanityData to 24 Nov 2026

Beyond Strict Rules: Assessing the Effectiveness of Large Language Models for Code Smell Detection

arXiv 2601.09873 ↗Submitted 14 Jan 2026cs.SEcited by 1

Not on the map. Why?

Abstract (arXiv)

Code smells are symptoms of potential code quality problems that may affect software maintainability, thus increasing development costs and impacting software reliability. Large language models (LLMs) have shown remarkable capabilities for supporting various software engineering activities, but their use for detecting code smells remains underexplored. However, unlike the rigid rules of static analysis tools, LLMs can support flexible and adaptable detection strategies tailored to the unique properties of code smells. This paper evaluates the effectiveness of four LLMs -- DeepSeek-R1, GPT-5 mini, Llama-3.3, and Qwen2.5-Code -- for detecting nine code smells across 30 Java projects. For the empirical evaluation, we created a ground-truth dataset by asking 76 developers to manually inspect 268 code-smell candidates. Our results indicate that LLMs perform strongly for structurally straightforward smells, such as Large Class and Long Method. However, we also observed that different LLMs and tools fare better for distinct code smells. We then propose and evaluate a detection strategy that combines LLMs and static analysis tools. The proposed strategy outperforms LLMs and tools in five out of nine code smells in terms of F1-Score. However, it also generates more false positives for complex smells. Therefore, we conclude that the optimal strategy depends on whether Recall or Precision is the main priority for code smell detection.

Key facts. Cited by 1 paper in the map (data through 24 Nov 2026). Submitted 14 Jan 2026.

Builds on

No reference list yet.

Built on by

Cited by year (2026 to 24 Nov)

Citing papers per year: 2026: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2026SmellCC: A Tool for Automated Code Smells Remediation ↗
  2. 2026SmellBench: Evaluating LLM Agents on Architectural Code Smell Repair
  3. 2025LLM-Based Detection of Tangled Code Changes for Higher-Quality Method-Level Bug Datasets
  4. 2026REFINE: A Multi-Agent LLM Approach for Evidence-Guided Code Refactoring
  5. 2026Mitigating LLM Sycophancy in Code Smell Detection Using Evidence-Guided Reasoning Prompts
  6. 2026SmellBench: Towards Fine-Grained Evaluation of Code Agents on Refactoring Tasks
  7. 2025Measuring how changes in code readability attributes affect code quality evaluation by Large Language Models
  8. 2025Large Language Model Critics for Execution-Free Evaluation of Code Changes