← Latest papers
🤖 AI

PreAct: Computer-Using Agents that Get Faster on Repeated Tasks

PreAct is a system that accelerates computer-using agents on repeated tasks by compiling successful executions into verifiable state-machine programs, enabling 8.5–13x faster replays with built-in safety checks to ensure correctness and prevent the accumulation of faulty scripts.

Original authors: Bojie Li

Published 2026-06-17
📖 4 min read☕ Coffee break read

Original authors: Bojie Li

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you have a very smart, but very expensive, robot assistant. This robot can look at your computer screen, figure out what buttons to click, and type text to get things done—like booking a meeting or adding a contact.

The problem is, this robot is wasteful. Every time you ask it to do the same task twice, it forgets everything it just did. It has to look at the screen again, think through every step from scratch, and pay a huge "thinking fee" (using expensive AI computing power) every single time. It's like hiring a tour guide who, after showing you the museum once, makes you pay for a whole new tour guide to show you the exact same museum the next day, even though they both know the layout perfectly.

PreAct is a new system that teaches this robot to be fluent instead of forgetful. Here is how it works, using some everyday analogies:

1. The "Recipe Book" vs. The "Chef"

Normally, the robot acts like a chef who tastes every ingredient and re-invents the recipe for every single meal.
PreAct changes the game. The first time the robot successfully completes a task (like adding a contact), it doesn't just forget. Instead, it writes down a perfect, step-by-step recipe (a "state-machine program").

  • The First Time: The robot uses its expensive "thinking brain" to solve the task and writes the recipe. This takes time and money.
  • The Second Time: Instead of using its expensive brain, the robot simply reads the recipe and follows the instructions. It doesn't need to think; it just acts. This makes it 8.5 to 13 times faster and almost free to run.

2. The "Safety Check" (Not Blindly Following)

You might worry: "What if the screen looks different? What if a pop-up window appears?"
If the robot just blindly followed the recipe, it might click the wrong button and break things.
PreAct is smart about this. Before it takes every single step from the recipe, it glances at the screen to make sure it looks exactly as the recipe expects.

  • If it matches: It clicks the button instantly (no thinking required).
  • If it doesn't match: It stops immediately, says "Wait, something is wrong," and calls the expensive robot brain back in to figure out the new situation.
    This is like a driver who follows a GPS route but keeps their eyes on the road. If a road is closed, they don't blindly drive into a wall; they stop and ask for new directions.

3. The "Quality Control Gate" (The Most Important Part)

Here is the tricky part: What if the robot writes a recipe that looks complete but actually fails?
Example: The recipe says "Type name, click Save." But maybe the robot forgot to actually type the name, so when it clicks Save, nothing happens. If the robot saves this bad recipe, it will fail every single time it tries to use it later.

PreAct has a strict Quality Control Gate.
Before it puts a new recipe into its library, it resets the computer and runs the recipe from scratch to see if it actually works.

  • If the recipe works: It gets added to the library.
  • If the recipe fails (even if it ran all the way to the end): It is thrown in the trash.

The paper found that without this gate, the robot's library fills up with "bad recipes," and it actually gets worse at doing tasks over time. With the gate, the robot gets better every time it repeats a task.

The Results

The researchers tested this on phones, desktop computers, and websites.

  • Speed: Repeating a task became 8.5 to 13 times faster.
  • Cost: The robot stopped paying the expensive "thinking fee" for repeated tasks.
  • Reliability: By checking the screen at every step and filtering out bad recipes, the system didn't just get faster; it got more accurate over time.

In short: PreAct turns a robot that re-invents the wheel every time into a robot that learns a skill, writes it down, and then executes that skill perfectly and instantly—until something changes, at which point it learns again. It's the difference between a student who memorizes a math problem once and a student who forgets it and has to re-learn it every day.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →