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

PAFFA:面向快速智能体的预谋动作

PAFFA: Premeditated Actions For Fast Agents

University of Massachusetts Amherst(马萨诸塞大学阿默斯特分校);Amazon(亚马逊)

Shambhavi Krishna, Zheng Chen, Yuan Ling, Xiaojiang Huang, Yingjie Li, Fan Yang, Xiang Li

AI总结:

提出PAFFA方法,通过构建动作库和重用LLM推理,在无需任务特定训练的情况下,大幅减少推理token并提升Web交互任务的准确性与泛化能力。

摘要:

现代AI助手在自然语言理解和工具使用方面取得了显著进展,并开始尝试与Web界面进行交互。然而,当前严重依赖重复LLM驱动HTML解析的方法计算成本高昂且容易出错,特别是在处理动态Web界面和多步骤任务时。我们提出了PAFFA(Premeditated Actions For Fast Agents),这是一种无需特定任务训练的新型推理时技术,能使LLM在完成互联网任务时更快、更准确。PAFFA构建了一个“动作库”,利用基础LLM的参数化知识预计算可跨任务泛化的浏览器交互模式。通过在任务间战略性重用LLM推理——要么通过“Dist-Map”进行与任务无关的关键交互Web元素识别,要么通过“Unravel”对新任务/站点进行首次遭遇的有状态探索——PAFFA大幅减少了87%的推理时token,同时保持了稳健的性能(与基线相比,步骤准确率达到0.57对0.50)。此外,Unravel基于探索更新其动作库的能力,允许对未见网站进行泛化和适应。总之,这项工作表明LLM推理序列可以跨提示词泛化,为以次线性token数量扩展互联网规模数据的推理时技术提供了一种方法。

英文摘要:

Modern AI assistants have made significant progress in natural language understanding and tool-use, with emerging efforts to interact with Web interfaces. However, current approaches that heavily rely on repeated LLM-driven HTML parsing are computationally expensive and error-prone, particularly when handling dynamic web interfaces and multi-step tasks. We introduce PAFFA (Premeditated Actions For Fast Agents), a method that makes LLMs faster and more accurate in completing tasks on the internet using a novel inference-time technique that requires no task-specific training. PAFFA constructs an 'Action Library', leveraging the parametric knowledge of the base LLM to pre-compute browser interaction patterns that generalize across tasks. By strategically re-using LLM inference across tasks - either via 'Dist-Map' for task-agnostic identification of key interactive web elements, or 'Unravel' for first-encounter, stateful exploration of novel tasks/sites) - PAFFA drastically reduces inference time tokens by 87% while maintaining robust performance (achieving 0.57 vs. 0.50 step accuracy compared to baseline). Further, Unravel's ability to update its action library based on explorations allows generalization and adaptation to unseen websites. In sum, this work exhibits that LLM reasoning sequences can generalize across prompts, offering a way to scale inference-time techniques for internet-scale data with sublinear token count.

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

↑