Back to AI News
arxiv

Study Finds Coding Agents Pass Hidden Tests Yet Fail on Valid Inputs Due to State Defects

A new arXiv paper examines 15 programs written by coding agents for exact optimization tasks. Despite passing all hidden tests and receiving full verifier reward, each program is incorrect on a valid input. The authors establish errors independently and trace many to defects in how the programs represent, update, or retain working state, suggesting that current evaluations miss such failures.

AI Brief

This research highlights a critical limitation in AI code generation evaluation, showing that passing hidden tests does not guarantee correctness, which is valuable for developers and researchers.

arXiv:2612.05893v1 Announce Type: new Abstract: In exact search and optimization, programs must decide which partial solutions to represent, update, and retain. An incorrect decision can remove information needed to reach the optimum, even when the program passes every hidden test. We examine fifteen programs written by coding agents for seven exact optimization tasks. Each passed every hidden test and received full verifier reward, yet each is incorrect on a valid input. We establish each error independently of the task's reference solution, using a proof, an exhaustive oracle, or a permitted plan checked by a simulator derived from the task statement. We then investigate whether the error arises from how the program represents, updates, or retains its working state. Eight programs show evidence of a specific state defect: in six, changing the implicated retention or transition decision restores an independently established comparison value on the input that exposed the error; in two, we exhibit merged or omitted histories without a restoring edit. Five more return the correct answer when switched from an approximate fallback to their own exact branch, without locating the error within the fallback. One fails on an input that activates its fallback, with no edit tested, and one remains unlocalized. No edit establishes global correctness. Some hidden suites never reached the decisions implicated in these failures; others reached them without exposing an incorrect answer. These cases establish concrete false-positive verifier outcomes, not their prevalence or any effect on training. These failures suggest that evaluations should test not only whether a program produces the correct output, but also whether its state representation, updates, and retention decisions preserve the information required for later decisions.
Be the first to rate this article.

Comments & Questions (0)

Captcha
Please be respectful — let's keep the conversation friendly.

No comments yet

Be the first to comment!