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

Jelena Ilić Vulićević
4/25/2026
cs.SEcs.AIcs.LG

No confident code implementation found for this paper.

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{vulievi2026empirical,
  title  = {An Empirical Evaluation of Locally Deployed LLMs for Bug Detection in Python Code},
  author = {Jelena Ilić Vulićević},
  year   = {2026},
  eprint = {2604.23361},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2604.23361v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2604.23361.svg)](https://codeofpaper.com/paper/2604.23361)

Discussion