Research map / Large language models / Language, safety and interpretability
Functional Entropy: Predicting Functional Correctness in LLM-Generated Code with Uncertainty Quantification
Dylan Bouchard, Mohit Singh Chauhan, Zeya Ahmad, Ho-Kyeong Ra
CVS Health
Read the paperPlace an idea next to itCheck your own paper ↗
11measured effects
3improved
5no clear effect
3hurt
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| replace NLI-based semantic equivalence with LLM-based functional equivalence in clustering (entropy, sets) | sampling-based UQ for code · LiveCodeBench, MultiPL-E, LiveSQLBench | AUROC: NLI 0.47-0.58 (SQL), 0.48-0.56 (Java), 0.50-0.53 (Python) -> functional 0.62-0.70 on Java | Improved |
| use functional equivalence rate instead of NLI non-contradiction probability | equivalence-rate scoring · 3 code benchmarks, 15 model-benchmark pairs | AUROC: exceeds it on 12 of 15 combinations; up to +0.16 on Python | Improved |
| use functional equivalence rate instead of NLI non-contradiction on SQL | equivalence-rate scoring · LiveSQLBench | AUROC: 0.67-0.79 vs. comparable | No clear effect |
| use functional equivalence methods vs all other UQ methods | UQ for code correctness · 15 model-benchmark combinations | AUROC: top AUROC in 11 of 15 | Improved |
| reduce sampled responses from m=10 to m=5 (ablation) | functional equivalence methods · code benchmarks | AUROC: within 0.01-0.02 of m=10 | No clear effect |
| swap judge Gemini-2.5-Flash for Gemini-2.5-Flash-Lite (ablation) | functional equivalence methods · code benchmarks | AUROC: within 0.02 | No clear effect |
| swap judge Gemini-2.5-Flash for GPT-4o-mini (ablation) | functional equivalence methods · code benchmarks | AUROC: up to -0.07 | Hurt |
| shuffle order of sampled responses before greedy clustering (ablation) | functional entropy · code benchmarks | AUROC: 2-4 percentage point range over 10 runs | No clear effect |
| add token-probability weighting of cluster probabilities (WB-NFN) | functional negentropy · code benchmarks | AUROC | No clear effect |
| use sequence probability on Gemini-2.5-Pro Python | token-probability scoring · LiveCodeBench (Python) | AUROC: 0.580 (vs. 0.766 min token negentropy) | Hurt |
| apply token-probability methods to SQL instead of Python | seq. prob. and prob. margin · LiveSQLBench | AUROC: 0.52-0.55 on Gemini-2.5-Pro/Flash | Hurt |
Open problems this paper states
- “Sampling-based methods need multiple responses per prompt, raising latency and cost over single-generation methods.” → Sampling several answers or extra passes raises inference cost. (an open problem in statistical frameworks for LLM evaluation)
Open problems in statistical frameworks for LLM evaluation
Do uncertainty and evaluation methods for LLMs still hold for open-ended generation, closed models and larger models?
- Evaluation stays on closed-answer tasks, with open-ended generation untested. · 20 papers state it
- Experiments cover English only, leaving other languages untested. · 18 papers state it
- Sampling several answers or extra passes raises inference cost. · 16 papers state it
Closest papers by meaning
- What can Large Language Models Capture about Code Functional Equivalence? (NAACL 2025 · similarity 0.89)
- Unsupervised Evaluation of Code LLMs with Round-Trip Correctness (ICML 2024 · similarity 0.88)
- How efficient is LLM-generated code? A rigorous & high-standard benchmark (ICLR 2025 · similarity 0.88)
- CodeChemist: Test-Time Scaling for Low-Resource Code Generation via Functional Knowledge Transfer (ICML 2026 · similarity 0.88)
- Kernel Language Entropy: Fine-grained Uncertainty Quantification for LLMs from Semantic Similarities (NeurIPS 2024 · similarity 0.87)
- CodeHalu: Investigating Code Hallucinations in LLMs via Execution-based Verification (AAAI 2025 · similarity 0.87)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.