Code-MUE: Measuring Code LLMs' Uncertainty through Execution-based Semantic Interaction Graphs
arXiv cs.CL 18 hours ago
Researchers introduced Code-MUE, a black-box framework that measures uncertainty in code-generating language models by analyzing runtime behavior through Semantic Interaction Graphs rather than text similarity. The method achieved Spearman's correlation of up to -0.98 with functional correctness across eight state-of-the-art code LLMs, substantially outperforming text-based and embedding-based alternatives. This enables better risk detection for deploying code models in production, where distinguishing confident predictions from stochastic guessing is critical for safety and security.