arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2512.13438cs.SEcs.AI
收藏

从用户界面到代理界面:UI表示的效率优化以提升LLM代理性能

From User Interface to Agent Interface: Efficiency Optimization of UI Representations for LLM Agents

Key Lab of HCST (PKU), MOE(HCST关键实验室(PKU),教育部);SCS, Peking University(SCS,北京大学);Tencent Inc.(腾讯公司);University of Texas at Dallas(德克萨斯大学达拉斯分校)

Dezhi Ran, Zhi Gong, Yuzhe Guo, Mengzhou Wu, Yuan Cao, Haochuan Lu, Hengyu Zhang, Xia Zeng, Gang Cao, Liangchao Yao, Yuetang Deng, Wei Yang, Tao Xie

AI总结:

UIFormer通过约束优化和结构分解,优化LLM代理的UI表示效率,实现令牌减少与性能提升的平衡。

摘要:

尽管大型语言模型(LLM)代理在自动化UI导航方面展现出巨大潜力,如自动化UI测试和AI助手,但其效率却常常被忽视。我们的研究发现,低效的UI表示会成为性能的关键瓶颈。然而,UI表示优化,即自动生成功能转换UI表示的程序的任务,面临两个独特的挑战。首先,缺乏布尔或acles,这是传统程序合成所依赖的用于确定语义正确性的工具,对同时优化令牌效率和完整性构成了根本挑战。其次,需要处理大型、复杂的UI树作为输入,同时生成长且复合的转换程序,使搜索空间变得广阔且容易出错。为了解决上述限制,我们提出了UIFormer,这是首个自动优化框架,通过基于约束的优化和结构分解复杂合成任务来合成UI转换程序。首先,UIFormer使用一种领域特定语言(DSL)来限制程序空间,该语言捕捉了UI特定的操作。其次,UIFormer通过基于LLM的迭代细化,结合正确性和效率奖励,为实现效率和完整性的协同优化提供指导。UIFormer作为轻量级插件,能够无缝集成到现有LLM代理中,对核心逻辑进行最小修改。在涵盖Android和Web平台的三个UI导航基准测试中,使用五个LLM进行评估,结果显示UIFormer在减少48.7%至55.8%的令牌数量的同时,保持或提高了代理性能,且运行时开销极低。在微信的现实行业部署进一步验证了UIFormer的实际影响。

英文摘要:

While Large Language Model (LLM) agents show great potential for automated UI navigation such as automated UI testing and AI assistants, their efficiency has been largely overlooked. Our motivating study reveals that inefficient UI representation creates a critical performance bottleneck. However, UI representation optimization, formulated as the task of automatically generating programs that transform UI representations, faces two unique challenges. First, the lack of Boolean oracles, which traditional program synthesis uses to decisively validate semantic correctness, poses a fundamental challenge to co-optimization of token efficiency and completeness. Second, the need to process large, complex UI trees as input while generating long, compositional transformation programs, making the search space vast and error-prone. Toward addressing the preceding limitations, we present UIFormer, the first automated optimization framework that synthesizes UI transformation programs by conducting constraint-based optimization with structured decomposition of the complex synthesis task. First, UIFormer restricts the program space using a domain-specific language (DSL) that captures UI-specific operations. Second, UIFormer conducts LLM-based iterative refinement with correctness and efficiency rewards, providing guidance for achieving the efficiency-completeness co-optimization. UIFormer operates as a lightweight plugin that applies transformation programs for seamless integration with existing LLM agents, requiring minimal modifications to their core logic. Evaluations across three UI navigation benchmarks spanning Android and Web platforms with five LLMs demonstrate that UIFormer achieves 48.7% to 55.8% token reduction with minimal runtime overhead while maintaining or improving agent performance. Real-world industry deployment at WeChat further validates the practical impact of UIFormer.

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

↑