Research Editor selected
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.
Why it matters: 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.
AI code generationprogram verificationstate representation