arXiv AI By Yinsheng Yao, Hongxiang Zhang, Weixi Tong, Tianyi Zhang

FLARE: Fine-Grained Diagnostic Feedback for LLM Code Refinement

Read the original on arXiv AI →

arXiv:2606. 03852v1 Announce Type: cross Abstract: Large language models often generate code with bugs.

Machine-generated by The Flow from the publisher's headline and feed description — not written or checked by a human. The full article lives at arXiv AI.

arXiv Machine Learning
Sep 15

Introspective Uncertainty Estimation for LLM-Based Code Generation

The thesis explores Introspective Uncertainty Estimation (IUE) for large language models (LLMs) in code generation, aiming to determine whether hidden-state representations can indicate functional correctness at both response and line levels. Using LiveCodeBench and BigCodeBench, the study finds that hidden states provide a strong signal for overall correctness, with static single-token probes performing best, while dynamic strategies offer no consistent advantage. Although line-level fault localization is more challenging, a conditional Top‑K ranking approach remains effective, suggesting a two‑stage workflow that first screens responses for risk and then prioritizes line‑level checks.

By Thomas Klassert
Hugging Face Trending Papers
Nov 5

Which Signals of Code Correctness Survive Distribution Shift? Hidden-State and Causal Predictors of Program and Verdict Correctness

The paper investigates how execution‑free predictors of code correctness—based on model output probabilities, sampled solutions, or hidden states—perform when faced with distribution and language shifts. Six predictors from four families were evaluated on Qwen3‑Coder‑30B and gpt‑oss‑20b across LiveCodeBench, BigCodeBench, and Python, C++ and Java. Causal localization methods improved robustness for verdict correctness under language shift, while predictors generally transferred better between benchmarks for program correctness but struggled to rank candidates within the same problem.