Study finds errors in 15 AI-written programs that passed every hidden test
In an arXiv preprint, Abhishek Kaushik and colleagues examined 15 programs written by coding agents for seven exact optimization tasks. Each program passed every hidden test, yet the authors independently verified that each returned an incorrect result on a valid input. They found evidence in eight programs that the problem involved how the program represented, updated, or retained information about partial solutions. In six of those cases, changing the implicated logic restored the expected result on the input that exposed the error. The findings cover those cases and leave the overall frequency of such failures unknown.
Why it matters
The cases show why tests for optimization code should include inputs where the correct answer depends on keeping information from earlier decisions.