跳到正文
arXiv cs.AI· Jorge Garcia-Carrasco, Javier Sanchis, Sandra Garcia-Ponsoda, Alejandro Mate, Juan Trujillo·· 2 小时前AI 评分50

论文提出把 LLM 智能体轨迹编译成类型化工作流,AppWorld 上成本降 98 倍、速度快 76 倍

Compiling Agent Traces into Typed Workflows for Cheaper and Faster Execution of Recurring Tasks

AI 导读

研究者提出一种方法,由编译智能体把成功轨迹编译成三分节点的有向图工作流(EXECUTE、DECIDE、GENERATE),引擎运行时仅在声明的节点调用模型,不再保留智能体循环与上下文。在 AppWorld 上,编译后的工作流解决全部留出实例,成本降低 98 倍、单次运行快 76 倍;编译一次需 3 到 5 分钟,执行 31 到 50 次即可回本。

正文 · 原文

View PDF HTML (experimental)

Abstract:LLM agents solve a wide range of digital tasks, and benchmarks now report high success on requests that span several applications and many steps. However, much of that work is repetitive: a user asks for the same kind of change again and again, such as moving an alarm or rescheduling a meeting, with different data but a familiar procedure. Running the full agent for every instance is therefore expensive. To this aim, we propose an intermediate representation for such workflows: a directed graph whose nodes fall into three categories by output space, EXECUTE for computation and tool calls, DECIDE for one bounded choice over candidates the graph declares, and GENERATE for the open-ended rest. The idea is that a compiler agent takes the successful traces and compiles them into such a representation. An engine then runs the graph, calling a model only where a node declares one, so a deployment keeps neither the agent loop nor its context. We evaluate on AppWorld, compiling from one agent's traces and running the result on held-out instances. We show that the compiled workflows solved all instances at 98 times lower cost and 76 times faster per run. Compiling a workflow took three to five minutes and paid for itself after 31 to 50 executions.
Comments: 37 pages, 8 figures, 6 tables. Submitted to Knowledge-Based Systems
Subjects: Artificial Intelligence (cs.AI); Software Engineering (cs.SE)
Cite as: arXiv:2611.36322 [cs.AI]
  (or arXiv:2611.36322v1 [cs.AI] for this version)
  https://doi.org/10.48550/arXiv.2611.36322

arXiv-issued DOI via DataCite (pending registration)

Submission history

From: Jorge García-Carrasco [view email]
[v1] Thu, 26 Nov 2026 16:11:28 UTC (139 KB)

来源:arXiv cs.AI · arxiv.org