paper-with-me

홈 › Papers

Code-MUE: Measuring Code LLMs' Uncertainty through Execution-based Semantic Interaction Graphs

2026-07-14 · Xiaoning Ren, Yinxing Xue, Lei Ma, Yuheng Huang arxiv

As Code Large Language Models (LLMs) become central to modern software engineering, their inherent stochasticity poses significant real-world risks, where even minor errors can lead to severe functional, security, or safety consequences. Reliable automation, therefore, demands the ability to distinguish between confident, well-supported predictions and stochastic guessing. However, existing uncertainty estimation methods face a critical gap: white and grey-box techniques are often inapplicable to closed-source models, while standard "black-box" text metrics fail to capture the unique fragility of code, where syntactic variation does not always imply semantic divergence. To bridge this syntax-semantics gap, we introduce Code-MUE, a purely black-box framework that measures uncertainty through execution-based Semantic Interaction Graphs. Different from prior approaches that rely on superficial textual similarity, Code-MUE grounds uncertainty in observable runtime behavior, calculating the Von Neumann entropy of the solution space to quantify global semantic diversity. A large-scale empirical study across eight state-of-the-art LLMs demonstrates that Code-MUE achieves a strong negative correlation with functional correctness (Spearman's correlation up to -0.98), significantly outperforming lexical and embedding-based baselines while enabling robust risk detection and selective prediction in practical workflows.

📄 PDF Abstract BibTeX arXiv:2607.12273

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Measuring Human Value Expression in Social Media Texts: Calibrated LLM Annotation and Encoder Transfer

2026-06-09 · Maria Milkova, Maksim Rudnev arxiv

Measuring subjective constructs in naturally occurring social media text requires annotation procedures that are theoretically grounded, empirically validated, and transferable to an encoder model for scalable prediction…

CSS: Contrastive Semantic Similarity for Uncertainty Quantification of LLMs

2024-06-05 · Shuang Ao, Stefan Rueger, Advaith Siddharthan

Despite the impressive capability of large language models (LLMs), knowing when to trust their generations remains an open challenge. The recent literature on uncertainty quantification of natural language generation (NL…

ClusteringNatural Language InferenceQuestion AnsweringSemantic Similarity+3

The Fools are Certain; the Wise are Doubtful: Exploring LLM Confidence in Code Completion

2025-08-22 · Zoe Kotti, Konstantina Dritsa, Diomidis Spinellis, Panos Louridas arxiv

Code completion entails the task of providing missing tokens given a surrounding context. It can boost developer productivity and serve as a code discovery tool. Code completion has recently been approached with Large La…

Code Completion

Cycles of Thought: Measuring LLM Confidence through Stable Explanations

2024-06-05 · Evan Becker, Stefano Soatto

In many high-risk machine learning applications it is essential for a model to indicate when it is uncertain about a prediction. While large language models (LLMs) can reach and even surpass human-level accuracy on a var…

Uncertainty Quantification

URAG: A Benchmark for Uncertainty Quantification in Retrieval-Augmented Large Language Models

2026-03-02 · Vinh Nguyen, Cuong Dang, Jiahao Zhang, Hoa Tran 외 arxiv

Retrieval-Augmented Generation (RAG) has emerged as a widely adopted approach for enhancing LLMs in scenarios that demand extensive factual knowledge. However, current RAG evaluations concentrate primarily on correctness…

Question Answering