Agent JIT Compilation for Latency-Optimizing Web Agent Planning and Scheduling

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Winston, Caleb, Wang, Ron Yifeng, Mirhoseini, Azalia, Kozyrakis, Christos
Format: Preprint
Veröffentlicht: 2026
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866918531656843264
author Winston, Caleb
Wang, Ron Yifeng
Mirhoseini, Azalia
Kozyrakis, Christos
author_facet Winston, Caleb
Wang, Ron Yifeng
Mirhoseini, Azalia
Kozyrakis, Christos
contents Computer-use agents (CUAs) automate tasks specified with natural language such as "order the cheapest item from Taco Bell" by generating sequences of calls to tools such as click, type, and scroll on a browser. Current implementations follow a sequential fetch-screenshot-execute loop where each iteration requires an LLM call, resulting in high latency and frequent errors from incorrect tool use. We present agent just-in-time (JIT) compilation, a system that compiles task descriptions directly into executable code that may include LLM calls, tool calls, and parallelization. Our approach comprises three components: (1) JIT-Planner, which generates multiple code plans, validates each against tool specifications, and selects the minimum-cost candidate; (2) JIT-Scheduler, which explores parallelization strategies via Monte Carlo cost estimation from learned latency distributions; and (3) an invariant-enforcing tool protocol specifying precondition and postcondition requirements to reduce the rate of incorrect tool use. Across five applications, JIT-Planner achieves $10.4\times$ speedup and 28$\%$ higher accuracy over Browser-Use, while JIT-Scheduler achieves $2.4\times$ speedup and 9\% higher accuracy over OpenAI CUA.
format Preprint
id arxiv_https___arxiv_org_abs_2605_21470
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Agent JIT Compilation for Latency-Optimizing Web Agent Planning and Scheduling
Winston, Caleb
Wang, Ron Yifeng
Mirhoseini, Azalia
Kozyrakis, Christos
Machine Learning
Artificial Intelligence
Computer-use agents (CUAs) automate tasks specified with natural language such as "order the cheapest item from Taco Bell" by generating sequences of calls to tools such as click, type, and scroll on a browser. Current implementations follow a sequential fetch-screenshot-execute loop where each iteration requires an LLM call, resulting in high latency and frequent errors from incorrect tool use. We present agent just-in-time (JIT) compilation, a system that compiles task descriptions directly into executable code that may include LLM calls, tool calls, and parallelization. Our approach comprises three components: (1) JIT-Planner, which generates multiple code plans, validates each against tool specifications, and selects the minimum-cost candidate; (2) JIT-Scheduler, which explores parallelization strategies via Monte Carlo cost estimation from learned latency distributions; and (3) an invariant-enforcing tool protocol specifying precondition and postcondition requirements to reduce the rate of incorrect tool use. Across five applications, JIT-Planner achieves $10.4\times$ speedup and 28$\%$ higher accuracy over Browser-Use, while JIT-Scheduler achieves $2.4\times$ speedup and 9\% higher accuracy over OpenAI CUA.
title Agent JIT Compilation for Latency-Optimizing Web Agent Planning and Scheduling
topic Machine Learning
Artificial Intelligence
url https://arxiv.org/abs/2605.21470