AIFeed

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

Summary

arXiv:2611.36322v1 Announce Type: new 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…

Original text(via arXiv cs.AI)

Computer Science > Artificial Intelligence

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

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

Access Paper:

  • HTML (experimental)

Additional Features

  • Audio Summary

Current browse context:

References & Citations

  • Google Scholar
  • Semantic Scholar

BibTeX formatted citation

Bookmark

Bibliographic and Citation Tools

Code, Data and Media Associated with this Article

Demos

Recommenders and Search Tools

arXivLabs: experimental projects with community collaborators

arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.

Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.

Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.

The text above was extracted automatically from the source page and may miss images, tables or code blocks. The original is authoritative.

Published by arXiv cs.AI
This site only summarises and aggregates; copyright stays with the original author. Headlines and summaries follow the source — where they differ, the original wins.
Read the original ↗