mlsanityData to 13 Oct 2026

An Empirical Evaluation of Locally Deployed LLMs for Bug Detection in Python Code

arXiv 2604.23361 ↗First posted 25 Apr 2026cs.SE cs.AI cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

Large language models (LLMs) have demonstrated strong performance on a wide range of software engineering tasks, including code generation and analysis. However, most prior work relies on cloud-based models or specialized hardware, limiting practical applicability in privacy-sensitive or resource-constrained environments. In this paper, we present a systematic empirical evaluation of two locally deployed LLMs, LLaMA 3.2 and Mistral, for real-world Python bug detection using the BugsInPy benchmark. We evaluate 349 bugs across 17 projects using a zero-shot prompting approach at the function level and an automated keyword-based evaluation framework. Our results show that locally executed models achieve accuracy between 43% and 45%, while producing a large proportion of partially correct responses that identify problematic code regions without pinpointing the exact fix. Performance varies significantly across projects, highlighting the importance of codebase characteristics. The results demonstrate that local models can identify a meaningful share of bugs, though precise localization remains difficult for locally executed LLMs, particularly when handling complex and context dependent bugs in realistic development scenarios.

Key facts. No citing papers in the map yet (data through 13 Oct 2026). Builds on 12 of its 18 references that are in the map. First posted on arXiv 25 Apr 2026.

Builds on

12 of 18 references.

References · 12

  1. 2023GPT-4 Technical Reportcited by 18,278
  2. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,072
  3. 2021Evaluating Large Language Models Trained on Codecited by 8,205
  4. 2023Mistral 7Bcited by 3,123
  5. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,304
  6. 2024Bugs in Large Language Models Generated Code: An Empirical Studycited by 60
  7. 2023A Quantitative and Qualitative Evaluation of LLM-Based Explainable Fault Localizationcited by 50
  8. 2024A Systematic Literature Review on Large Language Models for Automated Program Repaircited by 37
  9. 2024BugsInPy: A Database of Existing Bugs in Python Programs to Enable Controlled Testing and Debugging Studiescited by 35
  10. 2024Bug In the Code Stack: Can LLMs Find Bugs in Large Python Code Stackscited by 6
  11. 2025Evaluating LLMs Effectiveness in Detecting and Correcting Test Smells: An Empirical Studycited by 1
  12. 2025Beyond Single Bugs: Benchmarking Large Language Models for Multi-Vulnerability Detectioncited by 1

Built on by

Not cited yet.