Blind to What They Can Fix: A Detection Gap in Self-Improving Agents

Teng Cao, Yu Deng and Kristian Kersting (TU Darmstadt and hessian.AI) test whether agents that improve task programs through recursive self-improvement also write runtime checks that catch failures when the environment changes.
Ask this paper
Setup. Agents write programs that run a task without calling a model at each step, then improve them by running, studying failures and revising. Five task domains, up to seven author models.
Detection gap. Agents bring their programs to high scores, but when the environment changes, the checks they were told to write stay silent on half or more of the resulting failures in four of five domains.
Repair is not the problem. A monitor built from records of normal runs catches most of these failures in three domains, and the same agents usually repair them once called.
Prompting closes part of it. Stating that the checks are the only thing that will call the agent back closed most of the gap for Codex but not for the open models. The authors argue self-improvement evaluations should report detection and repair separately.
Abstract
AI agents can write programs that carry out a task without calling a model at every step, so the task runs fast and its logic stays open to inspection. Agents improve these programs by running them, studying their failures, and revising the code, a form of recursive self-improvement (RSI). We ask whether this process also yields runtime checks that can be trusted. In five task domains, with up to seven author models, agents bring their programs to high scores. Yet when the environment changes, the checks they were told to write stay silent on half or more of the resulting failures in four domains. These failures can be detected and repaired: a monitor built from records of normal runs catches most of them in three domains, and the same agents usually repair them once called. The checks do not examine the recorded relations that reveal the failures, and the strongest agent writes checks that catch most of them once told that its checks are the only thing that calls it back. An unreported failure stays unrepaired, which limits what self-improvement is worth in autonomous operation. Evaluations of self-improvement should measure not only scores but also whether a system notices its own failures.