Sign inGet started
Paper · arXiv

Functional Entropy: Predicting Functional Correctness in LLM-Generated Code with Uncertainty Quantification

Large language models have shown impressive capabilities in code generation, yet they often produce functionally incorrect code. Uncertainty quantification (UQ) methods have emerged as a promising approach for detecting hallucinations in natural language generation, but their effectiveness for code generation tasks remains underexplored. We systematically evaluate how UQ techniques transfer to code generation across three programming languages, five LLMs, and over 1,700 problems. We find that some token-probability-based methods generalize effectively without modification, while sampling-based methods relying on natural language inference (NLI) fail because NLI models cannot distinguish f...

AuthorsDylan Bouchard, Mohit Singh Chauhan, Zeya Ahmad et al.
Primary categorycs.CL
Published27 May 2026
Last updated at source26 August 2026
cs.CLcs.AIcs.LG
Embed this entry
<iframe src="https://silytics.si/embed/item/9939f5cc-80c7-4fc3-b363-c2c4515e6e30" width="420" height="190" style="border:0" loading="lazy" title="Silytics entry"></iframe>

Free, no tracking. More about feeds and embeds.

Silytics shows public metadata from arXiv and links to the original. Information may be incomplete or out of date. Last refreshed 17 October 2026. Licenses and terms of the original apply to the work itself. Not financial, legal or professional advice.