Preprint
Article

This version is not peer-reviewed.

Differential Mutant Purging and Precondition-Bounded Probes for Oracle-Free Detection of Pseudo-Passing LLM Code

Submitted:

22 November 2026

Posted:

24 November 2026

You are already at the latest version

Abstract
Code generated by large language models (LLMs) often passes the base unit tests of a benchmark but fails stricter tests. Of 3,029 programs from ten LLMs that pass the HumanEval+ and MBPP+ base tests, 431 (14.2%) fail the extended EvalPlus tests. This study presents TIMP, a framework that flags such pseudo-passing programs without access to the extended tests or canonical solutions and without additional model queries. TIMP combines branch-coverage tracing, precondition inference from the task docstring and base examples, metamorphic checks, and DiffMut, a filter that keeps only those base-surviving mutants whose outputs differ from the candidate on precondition-valid boundary inputs. DiffMut reduces the false alarms of classical mutation survival by 52.6% (McNemar p < 0.001). The training-free gate TIMP-Cert reaches F1 = 0.337 and MCC = 0.214 at 14.3 ms per program; compared with branch coverage alone, it raises recall from 0.271 to 0.381 at the cost of lower precision (0.341 to 0.303). Used as a supervised risk ranker under leave-one-model-out (LOMO) validation, TIMP-Full reaches 0.856 ROC-AUC and places 65.9% of the defective programs in the top 20% of the ranking. Task-disjoint GroupKFold validation shows that LOMO overestimates gradient boosting, because the same tasks occur in training and test folds: ROC-AUC falls by 0.13-0.19 for the static and TIMP feature sets. On unseen tasks, TIMP feature sets still give the highest point estimates under all three classifiers tested (ROC-AUC 0.668-0.681).
Keywords: 
;  ;  ;  ;  
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.