Original post · AI translation
– https://arxiv.org/abs/2610.28934
标题:“后悔之前先备份:衡量编程智能体的备份意识并实现自动备份”
东北大学的一篇新论文发现,编程智能体很少备份自己更改的内容。
这些智能体完成了 86.1% 的任务,但只有在 15.2% 的情况下保存了即将被其破坏的状态。
如今,智能体会在工作文件夹之外升级软件包、编辑数据库和删除电子邮件。内置运行框架的备份只覆盖工作区,因此当用户后来需要旧状态时,旧状态已经丢失。
他们构建了 RegretBench,其中包含 205 项任务,基于人们后悔丢失数据的真实案例。他们提出的解决方案 BackUpper 会检查每次工具调用,将 rm 操作改为移至回收站,并把更棘手的情况交给一个小型子智能体处理。
在 6 个前沿模型的测试中,智能体完成了 86.1% 的任务,但只有在 15.2% 的情况下于可能导致后悔的时刻之前进行了备份。BackUpper 覆盖了每一个可能导致后悔的时刻,并将状态恢复到 92.2% 的相似度,每项任务额外花费 $0.014。
如果你的智能体会触及工作区之外的任何内容,就应在工具调用层面添加备份,而不是指望模型记得备份。
Original
New Northeastern University paper finds coding agents rarely back up what they change. That agents complete 86.1% of tasks but save the state they are about to destroy in only 15.2%. Agents now upgrade packages, edit databases, and delete emails outside their working folder. Built-in harness backups cover only the workspace, so when users later need the old state, it is gone. They built RegretBench, 205 tasks based on real cases where people regretted losing data. BackUpper, their fix, checks every tool call, turns rm into a move to trash, and sends harder cases to a small subagent. Across 6 frontier models, agents completed 86.1% of tasks but backed up before the regret moment in only 15.2%. BackUpper covered every regret moment and restored state to 92.2% similarity, at $0.014 extra per task. If your agent touches anything outside its workspace, add backups at the tool-call level instead of trusting the model to remember.