Hugging Face Trending Papers

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 Machine Learning
Nov 6

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—using signals from model output probabilities, sampled solutions, or hidden states—perform under distribution and language shifts. Six predictors from four families are evaluated on Qwen3‑Coder‑30B and gpt‑oss‑20b across LiveCodeBench and BigCodeBench, and across Python, C++ and Java. Novel causal localization methods show improved robustness for verdict correctness under language shift, while program‑correctness predictors transfer better between benchmarks but struggle to rank candidates within a single problem.

By Viola Campos, Thomas Klassert, Adrian Ulges
arXiv AI
Aug 26

Evaluating Language Models on Cross-Language Code Functional Equivalence

The paper introduces PolyHuman, a dataset of human-written programs in C++, Java, and Python, to test whether large language models can judge functional equivalence across languages. Using this dataset, the authors evaluate several open-weight and proprietary LLMs, finding that models struggle more with harder problems, show language-specific biases, and rely partly on superficial similarity cues. They also observe run‑to‑run instability in GPT‑o4‑mini, concluding that current LLMs do not reliably capture functional equivalence within or across programming languages.

By Hui Sun, Anderson Uch\^oa, Rohit Gheyi, Wesley K. G. Assun\c{c}\~ao
arXiv Machine Learning
Oct 16

Causal Syntax Circuits in CodeLMs: Budget and Probe Decide What Looks Localised

The paper investigates whether the tendency of code language models to default to Python when no language is specified is driven by a small, identifiable set of internal components. Using a comprehensive pipeline—including ablation, activation patching, greedy circuit extraction, and significance testing—across 55 model-language configurations, the authors find that this preference is large, grows with model size, and persists after instruction tuning. They also show that the apparent localization of this behavior depends heavily on analysis choices such as component budget and probe design, and that interventions can sometimes alter the model’s output.

By Harsh Kumar, Tanmay Shailesh Joshi, Rahul Maity, Anusa Saha
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
arXiv AI
Nov 16

GraphScent: Calibrating Directional Relevance Signals for Bounded-Context Code Localization

GraphScent is a training‑free search controller that calibrates directional relevance signals for code localization on a single consumer GPU. It propagates relation‑conditioned log‑likelihood ratios over Typed‑AST multigraphs and resolves ties with a listwise comparison, while AST Ripple checks for missed co‑edits. The method improves exact localization from 12.8 % to 23.4 % on 31B models for lexically hard targets, without requiring target leakage or surface overlap.

By Ramesh Arvind Naagarajan