Agent JIT Compilation for Latency-Optimizing Web Agent Planning and Scheduling
Abstract
Lay Summary
Computer-use agents can now carry out meaningful tasks on the web by looking at the screen and clicking, typing, and scrolling, one step at a time. But because the model has to stop and think before every single click, these assistants are slow and often make mistakes, like clicking the wrong button. We take a different approach, borrowed from how programming languages work. First, instead of deciding each step on the fly, our system reads the whole task up front and writes a short program to carry it out, choosing the version that should run fastest and checking it for errors before it runs. Second, it decides how to execute that program: some tasks finish quickest by going one step at a time, others by doing independent parts simultaneously, and others by attempting the same step several ways at once and keeping whichever finishes first. The right execution strategy is hard to guess in advance, so our system estimates the likely time of each and chooses automatically. Across five applications, this made the assistants about ten times faster and substantially more accurate, a step toward agents that are both quicker and more reliable.