arXiv AI

FLARE: Fine-Grained Diagnostic Feedback for LLM Code Refinement

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

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.

arXiv AI
Aug 28

From Static to Dynamic: Benchmarking Real-World Code Review with MCR-Bench

The paper introduces MCR-Bench, a benchmark for realistic multi‑round code review that includes 2,269 real‑world tasks across five programming languages, each annotated with fine‑grained defect information and dynamic state labels. Experiments with mainstream large language models show limited overall performance, especially as interaction rounds increase, and reveal that model accuracy varies by defect type and severity. Error analysis identifies key failure mechanisms such as cross‑round temporal misalignment and insufficient long‑range memory.

By Dewu Zheng, Yanlin Wang, Xiwen Wang, Kefeng Duan, Hongyu Zhang, Xilin Liu, Yuchi Ma, Zibin Zheng
arXiv AI
5d ago

BugGen 2.0: Rethinking the Roles of LLMs for Scalable RTL Bug Synthesis

BugGen 2.0 redefines how large language models (LLMs) are used for generating RTL bug datasets by delegating structural analysis, target selection, and validation to deterministic algorithms, while the LLM focuses on localized semantic rewriting. Across multiple IP blocks and LLMs, BugGen 2.0 achieves all requested compilable bug scenarios with a high coverage of mutation types, reduces token usage by 6.8×–15.4× compared to BugGen 1.0, and cuts simulation effort by skipping large portions of variant simulations. The approach yields a high acceptance rate of generated bugs with minimal estimation error, demonstrating lower inference and simulation costs while maintaining consistency across models and designs.

By Minh Luu, Michael Quinn, Aakash Tyagi, David Houngninou, Jiang Hu
Hugging Face Trending Papers
Jul 24

Evaluating and Mitigating the Misguidance Effect of Buggy Code in LLM-Generated Unit Tests

While Large Language Models (LLMs) show great promise for automating unit test generation, recent studies suggest that the quality of generated tests can be negatively impacted when models are prompted with buggy code. This paper presents a new metric to quantitatively measure the "misguidance effect," a phenomenon where buggy code steers LLMs toward generating tests that validate its erroneous behavior rather than expose it.