Aug 2026· International Conference on Multimedia Analysis and Pattern Recognition· pp. 37-42· 0 citations· 21 references
Abstract
Large language models (LLMs) have shown promise in automated unit test generation, yet the effectiveness of prompt engineering for small, locally-deployed open-source models remains poorly understood. Following growing interest in local LLM deployment to mitigate data exposure risks, this paper presents a controlled empirical study using Mistral 7B, Phi-3 Mini 4K Instruct, and CodeLlama 7B Instruct across four prompting strategies and a prompt-only generate-critique-refine pipeline.We first find that increasing prompt structure raises syntactic validity from 0.15 (zero-shot) to 0.58 (few-shot), yet semantic correctness does not follow: pass rate peaks at just 0.055 under instruction-based prompting and collapses to 0.000 under few-shot prompting (p > 0:05, Wilcoxon signed-rank test). We then show that iterative refinement further degrades performance across all models. Pass rate on Mistral 7B drops monotonically from 0.061 at T0 to 0.030 at T2; CodeLlama 7B deteriorates sharply from 0.549 to 0.189; and Phi-3 shows only a transient gain at T1 (0.171, up from 0.128 at T0) before reverting to near-baseline at T2 (0.122).Failure analysis identifies three recurring failure modes: error propagation, semantic drift, and corruption of previously correct outputs (Success → SyntaxError). These results demonstrate that prompt-only iterative refinement is unreliable for semantic correctness in unit test generation, and that stronger external feedback mechanisms—such as execution-guided refinement or verifier-based filtering—are necessary for meaningful progress.
This paper identifies patch verbosity as a major yet overlooked concern in LLM-based APR and proposes RECAP, a lightweight, plug-and-play adapter that attaches to existing repair frameworks after generation that achieves a substantially better size-correctness tradeoff.
Wen-Qiang Luo, J. Keung, Xiaoyu Shi et al.· 1 citation
It is shown that prompt engineering "ages" in a model-family-specific way: Newer GPT models exhibit diminishing or even negative marginal gains from structured prompting, suggesting that instruction-following and reasoning scaffolds are increasingly internalized, whereas Qwen models continue to benefit substantially fr...
A. Rudyk, Julian Oertel, Regina Hebig· 0 citations
ReMCTS, an execution-grounded, memory-augmented, LLM-guided MCTS-style search framework that organizes program candidates as tree states, retains branch-local debugging context, retrieves failure experience across branches, and distinguishes failed checks from unavailable evidence is presented.
Hui-Fei Wang, Xin-Yi Huang, Yi-Heng Sun et al.· 0 citations
This paper presents a formal mathematical model for categorizing the outcome of generated-tests into four classes, a couple of basic metrics: Bug-Revealing Rate (BRR) and Bug-Validating Rate (BVR); and two basic statistical tests to ensure that the results are rigorous.
Zeyad Farooq Lutfi· Al-Noor Journal of Engineeri...· 0 citations
This paper introduces T2L (Trace-to-Line), a reproducible research framework that narrows repository-scale code into candidate vulnerable lines through AST-based chunking, structured diagnostic information collection, and evidence-guided refinement that improves trace-to-line localization.
Large language models (LLMs) are increasingly applied to the automated repair of C/C++ security vulnerabilities, and compile rate is a commonly reported proxy for progress: whether the generated patch compiles. We argue that compile rate is a scientifically unreliable metric for single-function vulnerability repair, an...
Om Nepal, Sushant Aryal, Oluseyi Olukola et al.· 0 citations
We use cookies to run the site and, with your consent, for analytics and to show ads.
See our Cookie Policy.