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

代理编译:缓解LLM重跑危机以实现最小化推理成本的网络自动化

Agentic Compilation: Mitigating the LLM Rerun Crisis for Minimized-Inference-Cost Web Automation

Selfotix

Jagadeesh Chundru

AI总结:

本文提出编译与执行架构,通过分离LLM推理与浏览器执行,将每项工作流的推理成本降至0.1美元以下,实现零样本编译成功率80-94%,并证明确定性编译可经济可行地实现大规模自动化。

摘要:

LLM驱动的网络代理通过连续推理循环运行,即不断查询模型以评估浏览器状态并选择动作,对于重复性任务存在根本性的可扩展性限制。我们将此现象称为重跑危机:推理成本和API延迟与执行频率呈线性增长。对于5步工作流执行500次,连续代理的推理成本约为150.00美元;即使使用激进的缓存,这一成本仍接近15.00美元。我们提出编译与执行架构,将LLM推理与浏览器执行分离,将每项工作流的推理成本降至不到0.10美元。一次性的LLM调用处理由DOM净化模块(DSM)生成的令牌高效语义表示,并生成确定性的JSON工作流蓝图。轻量级运行时则驱动浏览器,无需进一步的模型查询。我们正式将此成本降低从O(M x N)到摊销O(1)的推理扩展,其中M是重跑次数,N是顺序动作数。在数据提取、表单填写和指纹任务上的实证评估显示零样本编译成功率80-94%。关键的是,JSON中间表示的模块化允许最小的人工在环(HITL)修补,将执行可靠性提升到接近100%。在五种前沿模型中,每编译成本在0.002美元至0.092美元之间,这些结果证明确定性编译作为一种范式,能够经济可行地实现此前在连续架构下不可行的大规模自动化。

英文摘要:

LLM-driven web agents operating through continuous inference loops -- repeatedly querying a model to evaluate browser state and select actions -- exhibit a fundamental scalability constraint for repetitive tasks. We characterize this as the Rerun Crisis: the linear growth of token expenditure and API latency relative to execution frequency. For a 5-step workflow over 500 iterations, a continuous agent incurs approximately 150.00 USD in inference costs; even with aggressive caching, this remains near 15.00 USD. We propose a Compile-and-Execute architecture that decouples LLM reasoning from browser execution, reducing per-workflow inference cost to under 0.10 USD. A one-shot LLM invocation processes a token-efficient semantic representation from a DOM Sanitization Module (DSM) and emits a deterministic JSON workflow blueprint. A lightweight runtime then drives the browser without further model queries. We formalize this cost reduction from O(M x N) to amortized O(1) inference scaling, where M is the number of reruns and N is the sequential actions. Empirical evaluation across data extraction, form filling, and fingerprinting tasks yields zero-shot compilation success rates of 80-94%. Crucially, the modularity of the JSON intermediate representation allows minimal Human-in-the-Loop (HITL) patching to elevate execution reliability to near-100%. At per-compilation costs between 0.002 USD and 0.092 USD across five frontier models, these results establish deterministic compilation as a paradigm enabling economically viable automation at scales previously infeasible under continuous architectures.

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

↑