Incoherence as Oracle-less Measure of Error in LLM-Based Code Generation
26 Jun · Thomas Valentin, Ardi Madadi, Gaetano Sapia +1 · arXiv:2507.00057
Generating code from a natural language programming task is one of the most successful applications of Large Language Models (LLMs). Yet, the generated program may be buggy. Without an oracle, such as an existing, correct implementation or a formal specification, can we somehow estimate how likely the generated program is correct? In this paper, we propose a measure of incorrectness, called *incoherence*, that can…