AgentPRO: Coordinating Compiler Optimizations for LLM Agent Workflows
Jie Ren, Zheng Wang
Key points
From the paper's conclusion- We present AgentPRO, a compiler framework for optimizing agent workflows as execution information becomes available.
Abstract
LLM agents repeatedly return to a model to generate actions and interpret tool results, incurring repeated context processing and generation overhead. Yet a value needed to execute an action need not be observed by the model to generate that action. This distinction creates an optimization opportunity: reconsider where model decisions are necessary, together with the work performed between them. We present AgentPRO, a compiler framework for optimizing agent workflows as execution information becomes available. AgentPRO organizes planned duties, generation regions, and concrete operations in a hierarchical representation, distinguishing execution dependencies from observations required for generation. Region transformations combine compatible duties into fewer model requests, while operation transformations reduce redundant context and tool work. These scopes interact: eliminating a redundant read can remove an observation requirement that otherwise separates generation regions. AgentPRO coordinates transformations using initial plans, current observations, and historical execution profiles through just-in-time, adaptive, and profile-guided optimization. Runtime guards check state-dependent assumptions and retain fallback paths. We implement guarded workflow transformations for AppWorld agents. On 115 tasks selected by successful historical baseline executions, automatic AgentPRO reduces all-attempt mean token consumption by 41.85% and mean component time by 6.61% relative to those baselines, successfully completing 110 of 115 tasks.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- CB-Orchestrator: Adaptive Workflow Optimization for LLM Agents via Contextual BanditsarXiv · 2026
- The Control-Flow Tax: Specialized Decision Routing for LLM Agent WorkflowsarXiv · 2026
- Beyond Prompts: Measuring and Optimizing LLM Tool-Agent HarnessesarXiv · 2026
- AgentWeave: Routing Before Reasoning for Efficient Function Calling in Tool-Rich Language ModelsarXiv · 2026
- EnvOpt: Automated Optimization for Agent EnvironmentsarXiv · 2026
- WorkflowOps: Learning Agent Collaboration Priors for Multi-Agent Workflow OrchestrationarXiv · 2026