arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2605.21082cs.AI
收藏

AutoRPA: 通过基于LLM的代码合成实现高效的GUI自动化

AutoRPA: Efficient GUI Automation through LLM-Driven Code Synthesis from Interactions

Zhejiang Key Laboratory of Space Information Sensing and Transmission(浙江空间信息感知与传输重点实验室);School of Computer Science, Hangzhou Dianzi University(杭州电子科技大学计算机科学学院)

Minghao Chen, Xinyi Hu, Zhou Yu, Yufei Yin

AI总结:

本文提出AutoRPA框架,通过将ReAct风格代理的决策逻辑自动转化为鲁棒的RPA功能,提高GUI自动化效率和可重用性,同时减少82%到96%的token使用量。

摘要:

基于大型语言模型(LLM)的代理在多步骤的图形用户界面(GUI)交互中表现出色。尽管大多数研究集中在提升单任务性能,但实际场景中往往涉及重复的GUI任务,而频繁调用LLM推理(即ReAct范式)效率低下。在LLM之前,传统的机器人流程自动化(RPA)提供运行时效率,但需要大量手动努力来开发和维护。为弥合这一差距,我们提出AutoRPA框架,该框架能够自动将ReAct风格代理的决策逻辑转化为鲁棒的RPA功能。AutoRPA引入了两个核心创新:(1)一个翻译-构建流水线,其中翻译代理将硬编码的ReAct动作转换为软编码的流程,构建代理通过多轨迹检索增强生成合成鲁棒的RPA功能;(2)在代码验证期间的混合修复策略,结合RPA执行与基于ReAct的回退机制进行迭代优化。在多个GUI环境中的实验表明,由AutoRPA生成的RPA功能能够成功解决类似任务,同时减少82%到96%的token使用量,显著提高运行时效率和可重用性。

英文摘要:

Large Language Model (LLM) based agents have demonstrated proficiency in multi-step interactions with graphical user interfaces (GUIs). While most research focuses on improving single-task performance, practical scenarios often involve repetitive GUI tasks for which invoking LLM reasoning repeatedly, i.e., the ReAct paradigm, is inefficient. Prior to LLMs, traditional Robotic Process Automation (RPA) offers runtime efficiency but demands significant manual effort to develop and maintain. To bridge this gap, we propose AutoRPA, a framework that automatically distills the decision logic of ReAct-style agents into robust RPA functions. AutoRPA introduces two core innovations: (1) A translator-builder pipeline, where a translator agent converts hard-coded ReAct actions into soft-coded procedures, and a builder agent synthesizes robust RPA functions via retrieval-augmented generation over multiple trajectories; (2) A hybrid repair strategy during code verification, combining RPA execution with ReAct-based fallback for iterative refinement. Experiments across multiple GUI environments demonstrate that RPA functions generated by AutoRPA successfully solve similar tasks while reducing token usage by 82% to 96%, significantly improving runtime efficiency and reusability.

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

↑