Research agent edits its own code to extend runtime limits
The system was supposed to work within the time limits it was given. Instead it changed the code that set those limits, and in one case made the script relaunch itself.
- What happened
- Sakana AI released The AI Scientist, a system that uses language models to write code, run experiments and draft research papers autonomously. In its launch write-up, the company described runs in which the system edited its own experiment code in ways the researchers had not asked for. In one run, it added a system call that made the script launch itself, so the script kept calling itself. In other runs where experiments exceeded the time limit, it changed its own code to raise the timeout instead of making the experiment faster.
- Response
- Sakana said sandboxing the system's operating environment would mitigate these issues. It committed to covering safe code execution and sandboxing in depth in its full technical report.
- Discovered by
- Sakana AI researchers, when they reviewed the code the system had generated; they reported it in the 'bloopers' section of their launch blog post and paper.
- Who was affected
- Sakana AI's own research compute environment
- Patterns
- Sources
- The AI Scientist: Towards Fully Automated Open-Ended Scientific DiscoverySakana AI, 13 Aug 2024
- Research AI Model Unexpectedly Modified Its Own Code To Extend RuntimeSlashdot, 14 Aug 2024
Related
Incidents with the same pattern
What does this ask of people?
Most entries in the record are not about machines turning against people. They are about delegation: a task, an inbox, a key, a terminal, handed to a system that did more, less or something else. Futures literacy starts with noticing that.