HybridCUA:学习为计算机使用代理编排GUI和CLI

·

研究论文 · 2026/09/30

计算机使用智能体(CUA)在完成数字任务方面已展现出强大能力。然而,现有CUA要么仅依赖图形用户界面(GUI)交互,这种方式往往效率低下且容易出错;要么在GUI交互之外增加特定应用的API或工具,这需要大量工程投入且难以跨应用扩展。我们认为,下一代CUA应将GUI交互与命令行界面(CLI)相结合,利用GUI的通用性和shell命令的效率。但关键挑战在于,当前模型不知道在任务执行过程中何时以及如何使用CLI。为解决这一问题,我们开发了一个数据构建流程,生成三类轨迹:仅GUI、仅CLI以及GUI与CLI交错的轨迹。该流程产生了HybridCUA-8K,包含5K条混合轨迹和3K个经过验证的RLVR任务。基于这些数据,我们提出了一个两阶段训练框架:先在构建的轨迹上进行监督微调,然后使用我们提出的CLI感知奖励进行强化学习,鼓励智能体有选择且可靠地使用CLI。实验表明,HybridCUA-9B在OSWorld上达到53.6%的准确率,比基础模型提升14.8个百分点,并在WindowsAgentArena上提升4.0个百分点。这些结果证明了混合GUI与CLI范式在计算机使用智能体中的有效性和跨平台泛化能力。

该研究提出了一种结合GUI与CLI的混合范式,有效提升了计算机使用智能体的效率和跨平台泛化能力,并通过实验验证了其优越性,对智能体交互设计具有重要参考价值。

Computer use agents (CUAs) have demonstrated strong capabilities in completing digital tasks. However, existing CUAs either rely solely on graphical user interface (GUI) interactions, which are often inefficient and error prone, or augment GUI interactions with application specific APIs or tools, which require substantial engineering effort and are difficult to scale across applications. We argue that the next generation of CUAs should combine GUI interactions with the command line interface (CLI), leveraging the generality of the GUI and the efficiency of shell commands. A critical challenge, however, is that current models do not know when or how to use the CLI during task execution. To address this challenge, we develop a data construction pipeline that produces three types of trajectories: GUI only, CLI only, and interleaved GUI and CLI trajectories. This pipeline results in HybridCUA-8K, containing 5K hybrid trajectories and 3K verified RLVR tasks. Building on these data, we propose a training framework with two stages: supervised fine tuning on the constructed trajectories, followed by reinforcement learning with our CLI aware rewards that encourages agents to use the CLI selectively and reliably. Experiments show that HybridCUA-9B achieves 53.6% accuracy on OSWorld, improving over the base model by 14.8 percentage points, and improves performance on WindowsAgentArena by 4.0 percentage points. These results demonstrate the effectiveness and cross platform generalizability of the hybrid GUI and CLI paradigm for computer use agents.

阅读原文

参与讨论