arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.06947cs.AIcs.HC
收藏

CAAP:上下文感知动作规划提示,仅凭前端用户界面解决计算机任务

CAAP: Context-Aware Action Planning Prompting to Solve Computer Tasks with Front-End UI Only

Samsung SDS(三星SDS)

Junhee Cho, Jihoon Kim, Daseul Bae, Jinho Choo, Youngjune Gwon, Yeong-Dae Kwon

AI总结:

本文提出仅凭截图感知环境的LLM智能体,通过上下文感知动作规划提示(CAAP)在GUI上执行键鼠操作,无需HTML或API,在MiniWoB++和WebShop上超越此前仅依赖屏幕图像的智能体。

摘要:

软件机器人长期以来被用于机器人流程自动化(RPA),以自动化单调且重复的计算机任务。随着大型语言模型(LLMs)及其先进推理能力的出现,这些智能体如今能够处理更复杂或此前未见过的任务。然而,近期文献中基于LLM的自动化技术常常依赖HTML源代码作为输入,或依赖应用特定的API调用来执行动作,这限制了它们在特定环境中的适用性。我们提出一种基于LLM的智能体,模仿人类行为来解决计算机任务。它仅通过截图图像感知环境,随后将这些图像转换为文本供LLM处理。通过利用LLM的推理能力,我们消除了模型训练通常所需的大规模人类演示数据。该智能体仅在图形用户界面(GUI)上执行键盘和鼠标操作,无需预先提供API即可运行。为了进一步提升智能体在此设置下的表现,我们提出了一种新颖的提示策略,称为上下文感知动作规划(CAAP)提示,使智能体能够从多个角度彻底审视任务上下文。我们的智能体在MiniWoB++上取得了94.5%的平均成功率,在WebShop上取得了62.3的平均任务得分,优于所有此前仅依赖屏幕图像的智能体研究。该方法展示了更广泛应用的潜力,尤其适用于需要在台式机或智能手机上跨多个应用进行协调的任务,标志着自动化智能体领域的一项重大进展。代码和模型可在https://github.com/caap-agent/caap-agent获取。

英文摘要:

Software robots have long been used in Robotic Process Automation (RPA) to automate mundane and repetitive computer tasks. With the advent of Large Language Models (LLMs) and their advanced reasoning capabilities, these agents are now able to handle more complex or previously unseen tasks. However, LLM-based automation techniques in recent literature frequently rely on HTML source code for input or application-specific API calls for actions, limiting their applicability to specific environments. We propose an LLM-based agent that mimics human behavior in solving computer tasks. It perceives its environment solely through screenshot images, which are then converted into text for an LLM to process. By leveraging the reasoning capability of the LLM, we eliminate the need for large-scale human demonstration data typically required for model training. The agent only executes keyboard and mouse operations on Graphical User Interface (GUI), removing the need for pre-provided APIs to function. To further enhance the agent's performance in this setting, we propose a novel prompting strategy called Context-Aware Action Planning (CAAP) prompting, which enables the agent to thoroughly examine the task context from multiple perspectives. Our agent achieves an average success rate of 94.5% on MiniWoB++ and an average task score of 62.3 on WebShop, outperforming all previous studies of agents that rely solely on screen images. This method demonstrates potential for broader applications, particularly for tasks requiring coordination across multiple applications on desktops or smartphones, marking a significant advancement in the field of automation agents. Codes and models are accessible at https://github.com/caap-agent/caap-agent.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑