Search arXiv⌕ Search

arXiv · 2612.01106

It's the Writer, Not the Reader: Why Hidden-State Probes of Code Correctness Weaken on Chat-Format Instruct Models

Abstract

Linear probes on hidden states can predict which of a code model's own attempts will fail its tests, which makes them attractive as cheap verifiers. Measured within each task, so that knowing which tasks are hard does not help, this signal is much weaker for instruction-tuned models. On six base/instruct pairs from three families (1.5B to 14B parameters) on HumanEval and MBPP, the within-task AUROC falls from 0.78 to 0.64, and 10 of 12 comparisons pass a rule fixed in advance. A cross-reading design shows that the instruct model is not a worse reader: it finds the failures in base-written programs as well as the base model does (12 of 12), while the base model cannot find the failures in instruct-written programs (11 of 12). The signal follows the writer. The same instruct weights writing in completion format recover most of it (0.74 against 0.62 in chat format). Chat-format failures read as correct to every reader we tried: they do not surprise the reader, and evidence of the error does not build up along the program. Seven other explanations account for almost none of the gap. In practice, on chat-format output a probe is no better than the writer's own token probability. Follow-up tests with rules fixed in advance show that reading the program inside the chat request changes nothing, that the gap survives removing type hints and renaming variables, and that it repeats for Qwen3-8B; on tasks that both models get partly right it is about half as large. A weak probe on an instruct model is therefore not evidence of a hidden representation.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Gaurab Panthee. 2026-12-01. It's the Writer, Not the Reader: Why Hidden-State Probes of Code Correctness Weaken on Chat-Format Instruct Models. https://searcharxiv.org/abs/2612.01106

Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite Search arXiv by Indiciae: BibTeX · RIS.

KEEP EXPLORING

Related papers

Settling the Reward Hypothesis

The reward hypothesis posits that, "all of what we mean by goals and purposes can be well thought of as maximization of the expected value of the cumulative sum of a received scalar signal (reward)." We aim to fully settle this hypothesis. This will not conclude with a simple affirmation or refutation, but rather specify completely the implicit requirements on goals and purposes under which the hypothesis holds.

cs.AI↗

Explainable Innovation Engine: Dual-Tree Agent-RAG with Methods-as-Nodes and Verifiable Write-Back

Retrieval-augmented generation (RAG) improves factual grounding, yet most systems rely on flat chunk retrieval and provide limited control over multi-step synthesis. We propose an Explainable Innovation Engine that upgrades the knowledge unit from text chunks to methods-as-nodes. The engine maintains a weighted method provenance tree for traceable derivations and a hierarchical clustering abstraction tree for efficient top-down navigation. At inference time, a strategy agent selects explicit synthesis operators (e.g., induction, deduction, analogy), composes new method nodes, and records an auditable trajectory. A verifier-scorer layer then prunes low-quality candidates and writes validated nodes back to support continual growth. Expert evaluation across six domains and multiple backbones shows consistent gains over a vanilla baseline, with the largest improvements on derivation-heavy settings, and ablations confirm the complementary roles of provenance backtracking and pruning. These results suggest a practical path toward controllable, explainable, and verifiable innovation in agentic RAG systems. Code is available at the project GitHub repository https://github.com/xiaolu-666113/Dual-Tree-Agent-RAG.

cs.AI↗

Strategic Algorithmic Monoculture: Experimental Evidence from Coordination Games

AI agents increasingly make high-stakes decisions in multi-agent environments where outcomes depend on coordination (e.g., hiring, pricing, and trading). We distinguish primary algorithmic monoculture---baseline action similarity---from strategic algorithmic monoculture, whereby agents adjust similarity in response to incentives. We design a simple experiment that cleanly separates these forces and deploy it on human and large-language-model (LLM) subjects. LLMs exhibit high levels of baseline similarity (primary monoculture) and, like humans, they regulate it in response to coordination incentives (strategic monoculture). While LLMs coordinate extremely well on the same action, they lag behind humans in sustaining heterogeneity when divergence is rewarded.

cs.AI↗