Aha.
正在载入中英对照阅读…

arXiv:2606.31270 · 中英对照阅读

从失败中学习:计算机使用智能体的推理时自我改进

Learning from Failure: Inference-Time Self-Improvement for Computer-Use Agents

Xueqiao Sun、Xiaohan Wang、Ludwig Schmidt、Serena Yeung-Levy、Yuhui Zhang

中文速览

电脑操作智能体常常把失败轨迹直接丢掉,因而浪费了发现自身弱点的机会。研究者让大语言模型分析这些失败,归纳出定位不准、操作能力不足、缺少知识和重复操作等问题,再提出相应策略,并把策略写成经过少量人工检查的代码补丁,让智能体执行时就能改进。用这套方法后,OpenCUA-72B 在 OSWorld 上的成功率从 42.3% 提升到 48.9%,无需额外训练,推理开销也只略有增加,其他 GUI 测试和不同规模的智能体上也有类似收益。关键意义在于,失败不再只是被丢弃的结果,而能成为低成本、可持续改进智能体的经验来源。

摘要

利用多模态大语言模型(MLLM)操作计算机并完成任务的计算机使用智能体,凭借其实用性和多功能性受到了广泛关注。开发此类智能体的一项主要挑战是收集大规模、高质量的轨迹。标准方法通过自我改进循环生成合成数据:将智能体置于可验证环境中,并基于其成功轨迹进行迭代微调。尽管这一范式行之有效,却只利用成功轨迹,而丢弃失败轨迹,尽管失败中蕴含着关于模型弱点的丰富信息。在本研究中,我们探索了一种互补的失败驱动的自我改进循环,这是一种将失败轨迹转化为智能体改进的数据中心范式。具体而言,我们使用 LLM 诊断失败模式、提出推理时解决方案,并生成经人工轻量验证的代码补丁,以此升级智能体。我们在 OSWorld 基准上使用最先进的 OpenCUA-72B 模型验证了这一方法:成功率从 42.3% 提升至 48.9%,提高了 6.6 个百分点,且无需增加任何训练成本,推理开销也仅小幅增加。我们的结果表明,失败驱动的自我改进是成功驱动流程的可行补充,能够更高效地改进智能体。代码见 https://github.com/snow10072740/Learning_from_Failure。

Computer-use agents, which leverage multimodal large language models (MLLMs) to operate computers and complete tasks, have attracted significant attention for their utility and versatility. A major challenge in developing these agents is collecting large-scale, high-quality trajectories. The standard approach generates synthetic data through a self-improving loop: an agent is placed in a verifiable environment and iteratively fine-tuned on its successful trajectories. Despite its effectiveness, this paradigm exploits only successful trajectories and discards the failed ones, even though failures carry rich information about a model’s weaknesses. In this work, we explore a complementary failure-driven self-improvement loop, a data-centric paradigm that turns failed trajectories into agent improvements. Specifically, we employ an LLM to diagnose failure modes, propose inference-time solutions, and generate code patches—lightly verified by humans—that upgrade the agent. We validate this approach with the state-of-the-art OpenCUA-72B model on the OSWorld benchmark, improving the success rate from 42.3% to 48.9%, a gain of 6.6 percentage points, without any additional training cost and with only modest inference overhead. Our results demonstrate that failure-driven self-improvement is a viable complement to success-based pipelines, enabling more efficient agent improvement. Code is available at https://github.com/snow10072740/Learning_from_Failure.

术语表

computer-use agent
计算机使用智能体
multimodal large language model (MLLM)
多模态大语言模型(MLLM)
trajectory
轨迹
state–action pair
状态–动作对
verifiable environment
可验证环境
synthetic data
合成数据
successful-case loop
成功案例循环
failure-case loop
失败案例循环
failure-driven self-improvement
失败驱动的自我改进
success-driven self-training
成功驱动的自训练
failure mode
失败模式
inference-time improvement
推理时改进
code patch
代码补丁
lightweight human verification
轻量级人工验证
supervised fine-tuning (SFT)
监督微调(SFT)
grounding error
定位错误
competency gap
能力缺口
knowledge deficiency
知识缺陷
redundant loop
冗余循环
visual search
视觉搜索
terminal execution
终端执行
knowledge support
知识支持
repetition warning
重复操作警告
graphical user interface (GUI)
图形用户界面(GUI)
OSWorld
OSWorld
OpenCUA-72B
OpenCUA-72B
UI-TARS
UI-TARS
Agent S
Agent S