A field guide · Vision-language models

VLMs That Act

Visual tools, GUI agents and computer use. What changes when the image is no longer a fixed input, but the current state of a screen the model can change.

GUI agentsComputer useVision-language models

From answering to acting

Most of this series has treated a vision-language model as a function. You give it an image and a question. It gives back text. The image is the same before and after the answer.

This post asks one question. What changes when the image is no longer a fixed input, but the current state of an environment that the model can change?

Start with the static case. Call the image I, the prompt x and the answer y. The model is a conditional distribution over answers.

y ∼ pθ(y ∣ I, x)a static VLM: one image, one prompt, one answer, and the episode ends

Now give the same model a computer. The image is a screenshot. The prompt is a task, such as "file a 42.50 travel expense and submit it". The output is no longer an answer. It is an action, such as a click at a point on the screen.

The click changes the screen. A field fills in, a menu opens, a page loads. The next screenshot depends on what the model just did. So the model is now a policy: a rule that picks an action from what it sees and what it has done so far.

at ∼ πθ(at ∣ It, x, ht)   st+1 = T(st, at)   It+1 = render(st+1)a visual policy: the action changes the hidden state s, and the next screenshot is a picture of that state

Here ht is the history: earlier screenshots and actions, often compressed. The symbol st is the full state of the computer. It includes things no screenshot shows, such as a record saved on a server or a tab in the background. The screenshot It is only a picture of part of that state.

Figure 1 runs this loop on a small expense app. Watch the order of events. The harness takes a screenshot. The model decides what to do. It turns a phrase such as "the Submit button" into a point. The harness clicks there. Then the screen changes, and the loop starts again.

Figure 1The computer-use loop on a mock expense form. Each turn has five stages: observe (screenshot), think (decide the next step), ground (turn a description into screen coordinates), act (inject a click or keystrokes), and let the environment produce the next screenshot. The camera zooms in during grounding because that is where pixel precision matters. The last stage checks the saved record, not the picture.

Three things change when we move from answering to acting. Each one gets its own part of this post.

Figure 2 puts the two cases side by side. The static model maps an image to an answer once. The policy is applied again and again, and its own outputs come back as inputs.

Figure 2From a static VLM to a visual policy. Left: one image and one prompt produce one answer. Right: the policy reads the current screenshot, the task and its history, emits an action, and the environment returns the next screenshot. Unrolled over time, this produces a trajectory of alternating screenshots and actions, which is also the unit of training data.

The text-agent version of this loop is covered in The Making of an AI Agent. The formal view, a partially observed decision process, is set out in Reinforcement Learning for Agents From First Principles. This post focuses on what the image adds: what the agent sees, how it points, and how it learns to do both.

Early visual-tool systems

The first systems that "acted" on images did not click anything. They called tools. In early 2023 language models were strong planners but weak at seeing. So researchers let a language model plan, and let separate vision models do the seeing.

Take a question: "How many mugs are to the left of the laptop?" A language model cannot answer from the question alone. But it can write a short plan. Find the laptop. Find the mugs. Keep the mugs whose position is left of the laptop. Count them. Each step can be handed to a vision model, such as an object detector.

Figure 3 shows this pattern step by step.

Figure 3The visual-tool loop used by systems such as VisProg and ViperGPT. A language model writes a program. Each line calls a vision expert, such as a detector. The result comes back as text or numbers. Ordinary code combines the results into an answer. The language model itself never looks at the pixels.

Several systems from this period share the pattern. They differ in how the plan is written and in which experts they can call.

All of them follow the loop from ReAct (Yao et al.): reason, call a tool, observe the result, reason again. That is the same loop as Figure 1. Only the environment is different. Here the tools read the image but do not change it. The loop moves the model's knowledge forward, not the world.

Two lessons from this period carry over to GUI agents. First, decomposing a visual task into calls is a strong idea. It makes the reasoning inspectable. Second, everything passes through text. The planner sees what the expert reports, nothing more. If the detector misses the third mug, the planner has no way to notice.

Later VLMs moved perception inside the model. Tools came back in a new role: as ways for a model that can already see to look more closely. Cropping and zooming are the main examples. They are covered in Thinking With Images. How a language model learns to call tools at all is covered in How Language Models Learn to Use Tools.

What a screen looks like to a model

A computer-use agent must first decide what to read. A human reads pixels. A program can often read much more. The operating system and the browser keep structured descriptions of every window, and an agent can ask for them.

There are five common ways to present a screen to a model.

Beyond these, a harness may expose application state directly: an API, a file system or a database. That is the most precise source of all. It is also the least general, because it exists only where someone built it.

Figure 4 shows the same form in each representation. Use the toggle to redesign the page and see which representations survive the change.

Figure 4Five ways to observe one screen (interactive). Pixels show what a person sees. The accessibility tree gives roles and names. The DOM gives exact structure, including hidden elements. Set-of-Mark turns pointing into choosing a number. A hybrid combines pixels with a compact element list. "Redesign the page" moves and renames the Submit button and changes its internal id; the readout shows which representations still let the agent find it. Ratings are qualitative.

Which representation works best? The first large interactive benchmark to test this was OSWorld (Xie et al.). It ran 369 real computer tasks in virtual machines and tried four input settings: accessibility tree only, screenshot only, screenshot plus accessibility tree, and Set-of-Mark.

The results were clear for the models of that time. The best score, 12.24%, came from GPT-4 reading only the accessibility tree. GPT-4V with screenshot plus tree was close, at 12.17%. Screenshot-only agents scored lowest, between 5.26% and 5.80%. Humans completed over 72% of the tasks.

Yet the authors wrote that screenshot-only input "should be the ultimate configuration in the long run". The reason is coverage. Many apps have poor accessibility trees. Canvas apps, remote desktops and games may have none. A DOM exists only on the web. Pixels exist everywhere, and they are what the interface was designed for.

The field followed that argument. Pure-vision agents such as Aguvis, UI-TARS and OpenCUA read only screenshots. UI-TARS reported 24.6% on OSWorld with a 50-step budget, about twice the best score in the original OSWorld paper. Its successor, UI-TARS-2, reported 47.5%. Anthropic's computer-use model also works from screenshots, and so does OpenAI's Computer-Using Agent. Anthropic wrote that "training Claude to count pixels accurately was critical".

Table 1. Observation modalities compared along the aspects that matter for an agent
ObservationWhat it containsFidelity to what the user seesToken costRobustness to UI changeAvailability across appsPrivacy exposure
ScreenshotPixels onlyExact, by definitionSet by resolution and visual-token budgetGood if grounding generalises; restyling changes pixels but not meaningUniversal: any app, any OS, remote desktopsEverything visible, including notifications and other windows
Accessibility treeRoles, names, states, boundsPartial: no layout, colour or images; can include off-screen nodesLow to high, depending on tree sizeStable names survive restyling; renamed labels break string matchingDesktop and mobile; quality varies by app; often missing in canvas appsCan include text not visible on screen
DOM / HTMLFull page structure, scripts, hidden elementsLow: much of it is never renderedOften very high; usually prunedFragile to markup and id changesWeb onlyIncludes hidden fields and metadata
Set-of-MarkScreenshot plus numbered marksHigh, but marks can hide contentScreenshot cost plus a short legendAs good as the mark sourceNeeds a tree or a detector to place marksSame as screenshot
HybridScreenshot plus compact element listHighHighest of the practical optionsHighest: two sources can cross-checkFalls back to pixels when the list is poorUnion of both sources

How to read this table: each row is one way to present the screen, and each column is one aspect from this section. Notice the trade-off between fidelity and availability. Structured sources are precise and cheap per element, but they are not always present. Pixels are always present, but the model has to do all the perception itself.

Grounding becomes action

Suppose the model has decided: "Click Submit." Four things must now happen. The model must find the Submit button in the screenshot. It must express that location as numbers. The harness must convert those numbers to screen coordinates. Then it must send a click event to the operating system.

The second step is ordinary visual grounding. When Language Must Point explains how VLMs output points and boxes: as text numbers, as special tokens, or through a dedicated head. Here we look at what makes grounding on screens different from grounding in photos.

Figure 5From an instruction to a click. The screenshot becomes a grid of visual tokens. Attention concentrates on the patches that match "Submit". The model writes normalised coordinates as text. The harness multiplies them by the real screen size and clicks. The last step shows other output formats that GUI models use: boxes, element numbers and an attention-based pointer.

What is different about screens

Models handle the coordinate format in different ways. SeeClick writes decimal coordinates between 0 and 1 as plain text, for example click (0.49, 0.40). CogAgent writes boxes normalised to the range 000 to 999. UGround writes raw pixel coordinates "without any normalization". UI-TARS uses coordinates relative to the screen size. GUI-Actor avoids writing coordinates at all. It adds an attention-based action head that links a special token to the matching image patches.

Resolution decides what can be pointed at

The tolerance argument has a simple arithmetic core. A model has a budget of N visual tokens. A screen of width W and height H is resized to fit that budget. Each token then covers a square of side

p = √W · H / Nscreen pixels covered by one visual token, along each side

On a 3840 by 2160 screen with 1,024 tokens, p is about 90 screen pixels. A 24-pixel icon is then about a quarter of one token wide. Three or four toolbar icons share a single token. The model cannot point between them without more resolution. Figure 6 lets you try this.

Figure 6Why small targets are hard (interactive). Left: a strip of 24-pixel toolbar icons, like those in professional applications, drawn to scale with the visual-token grid on top. Right: what survives when each token is averaged into one cell. Raise the screen resolution or cut the token budget and several icons fall into one token. The arithmetic is exact. The picture is a simplified illustration of downsampling, not of any specific encoder.

ScreenSpot-Pro (Li et al.) measured this effect. It collected high-resolution screenshots from 23 professional applications across five industries and three operating systems. The targets are small, and the screens are large. When the benchmark was released, the best existing grounding model scored 18.9%.

The authors also proposed ScreenSeekeR, a search method that uses a planner to guide zooming into likely regions. Without any extra training it reached 48.1%. Zooming at inference time is exactly the kind of tool use covered in Thinking With Images. The cost side of resolution, and how to cut visual tokens without losing small targets, is the subject of The Cost of a Picture.

Choosing the action space

Grounding produces a location. The action space decides what the agent can do with it. There are three main levels, and the choice changes how hard the task is.

A fourth option sits between pixel level and API level: code as the action. Aguvis adopts the pyautogui library "as our universal interaction interface". The model writes calls such as pyautogui.click(x, y). Code can combine several low-level events in one step, and it adds loops and conditions when needed. OpenCUA and Jedi use the same style.

Cross-platform models also need a shared vocabulary. A tap on a phone and a click on a desktop are the same idea. UI-TARS "standardizes actions into a unified space across platforms". OS-Atlas uses a unified set of basic actions (click, type, scroll) plus custom actions for each platform.

Figure 7One task at three levels of action. The pixel-level agent makes five decisions, four of which need a coordinate. The element-level agent makes four decisions and needs no coordinates, but depends on a correct element list. The API-level agent makes one call, but only because someone wrote that function. Lower levels are more general. Higher levels are shorter and safer.

The level matters because errors multiply over steps. If each pointing action succeeds with probability 0.98, four pointing actions succeed together with probability 0.984, about 0.92. One API call has no pointing to get wrong. The same lesson appears for text agents as the agent-computer interface. In Inside an AI Agent Harness, the shape of the tools changes success rates as much as the model does. SWE-agent (Yang et al.) made the same argument for software engineering.

In practice the levels are mixed. A sensible agent calls an API when one exists, acts on elements when the tree is reliable, and falls back to pixels for everything else.

Table 2. Action spaces compared
Action spaceExampleWho resolves the locationSteps per taskGeneralityTypical failureUsed by (examples)
Pixel levelclick(812, 433), drag, scroll, typeThe model, from pixelsMostAny GUINear miss lands on a neighbourSeeClick, UI-TARS, Claude computer use
Code as actionpyautogui.click(x, y)The model, from pixelsFewer: one step can hold several eventsAny GUI with an input librarySame as pixel level, plus code errorsAguvis, OpenCUA, Jedi
Element levelclick(element_42)The harness, from a tree or marksFewerWhere a good tree or detector existsMissing or mislabelled elementsAppAgent, WebArena baselines, WebRL
API levelsubmit_expense(...)Nobody: no location neededFewestOnly the tasks the API coversThe function does not existTool-calling agents

How to read this table: going down the rows, perception moves from the model to the harness and then disappears. Generality falls in the same direction. Notice that the most general level is also the one where every step can fail by a few pixels.

Trajectories are the training data

We now know what the agent sees and what it can do. The next question is how it learns. The unit of data is a trajectory: the task, then screenshots and actions in turn, from the first screen until the task ends.

τ = (x; I0, a0, I1, a1, …, IT)one episode; many datasets also store a short thought before each action

Every step of a trajectory is one training example. The input is the task, the current screenshot and the history. The target is the action. A 30-step demonstration gives 30 examples, all correlated with each other.

Trajectories are expensive. Someone has to perform the task, and every step has to be recorded with the exact action and the screen it was taken on. The field has found six ways to get them. Figure 8 shows what each one provides and what it lacks.

Figure 8Six sources of GUI training data feeding one trajectory format. Human demonstrations give correct actions but few recoveries. Tutorials and logs are plentiful but loosely labelled. Accessibility and DOM traces give free element labels for grounding, but not plans. Teacher agents scale but copy the teacher's mistakes. Synthetic interfaces are controllable but can differ from real apps. Exploration with reverse task synthesis writes the task after the actions are taken.

Human demonstrations

People perform tasks while a recorder logs screenshots and actions. Android in the Wild (Rawles et al.) contains 715,000 episodes over 30,000 unique instructions. AndroidControl (Li et al.) has 15,283 demonstrations of 14,548 unique tasks across 833 Android apps. Each of its tasks has both a high-level instruction ("book a table for two") and low-level step instructions ("tap the date field"). Mind2Web (Deng et al.) has over 2,000 tasks from 137 websites in 31 domains. OpenCUA's AgentNet has 22,625 human-annotated computer tasks across Windows, macOS and Ubuntu. WebLINX adds web navigation with multi-turn dialogue.

Human data is the most trusted source. But people rarely make and then fix mistakes while being recorded. So demonstrations are thin on exactly the situations where an agent struggles most.

Tutorials and logs

The web holds many written and video tutorials for software. They describe tasks step by step, but they rarely give exact coordinates. UI-TARS used "6M GUI tutorials" mainly to teach reasoning patterns, not exact actions.

Accessibility and DOM traces

Every rendered web page comes with its own labels. The DOM says where each button is and what text it carries. A crawler can screenshot the page and pair each element's box with its text. This gives grounding data for free, at web scale. It teaches where things are. It does not teach what to do next. The next section covers how far this idea has been pushed.

Teacher agents

A strong model can generate or annotate data for a smaller one. Aguvis used GPT-4o to write an "inner monologue" (a short reasoning trace) for each step of existing trajectories. OS-Atlas used GPT-4o to write grounding instructions. UI-TARS ran its own agent on "hundreds of virtual machines" and filtered and refined the new traces. Teacher data scales well, but it inherits the teacher's errors unless it is filtered carefully.

Synthetic interfaces

Instead of crawling interfaces, one can build them. Jedi (Xie et al.) generated 4 million grounding examples. It collected icons, rendered interface components from React libraries in code, and used layouts from Figma templates. Synthesis gives control over rare widgets and exact labels. The risk is a gap between synthetic and real apps.

Exploration and reverse task synthesis

The last source turns the usual order around. An agent first explores an app by interacting with elements. Then a model looks at what happened and writes a task that the actions would complete. OS-Genesis (Sun et al.) converts observed states and actions into low-level instructions, then derives high-level tasks from them, and filters the results with a trajectory reward model. The data is cheap and matches the real app. The tasks may be less natural than the ones people actually want.

How GUI models learn to find elements

Before a model can plan a task, it must know where the actionable elements are. A general VLM trained on photos and documents is not good at this. The ideas below are different answers to one question: where does the grounding signal come from?

Pixels only, from the start

Pix2Act (Shaw et al., 2023) showed early that pixels can be enough. It used a 282M-parameter Pix2Struct model that "relies solely on pixel-based screenshots". It acted with raw mouse and keyboard events, with coordinates as discrete bins. It was trained by behavioural cloning and improved with Monte Carlo tree search. On MiniWob++, a suite of small web tasks that grew out of World of Bits (Shi et al.), it outperformed human crowdworkers. Auto-GUI (Zhang et al.) applied a similar screen-only idea to Android in the Wild. WebGUM (Furuta et al.) combined HTML with screenshots and an instruction-tuned model.

Harvest labels from the web's own structure

The DOM is the largest free source of grounding labels. Four models built on it.

Detect and describe from pixels

Another route trains a perception model on screenshots and hands its output to a planner. Ferret-UI (You et al.) extended the Ferret model with an "any resolution" input that splits each screen into two sub-images. Its 250,000 training samples came from a UI detection model run on Android and iPhone screens, plus tasks generated by GPT models. Ferret-UI is a screen-understanding model, evaluated on referring and grounding tasks rather than on full agent tasks.

OmniParser (Lu et al.) is a parsing pipeline rather than one model. A YOLOv8 detector, fine-tuned on 67,000 screenshots with boxes taken from the DOM, finds clickable regions. A BLIP-2 model describes each icon. OCR reads the text. The output is a structured list plus a screenshot with boxes, given to GPT-4V. With screenshot-only input it improved GPT-4V on ScreenSpot, Mind2Web and Android in the Wild.

Synthesise the interfaces

Jedi, described above, generated 4 million examples from rendered components and templates. With it the authors released OSWorld-G, a grounding benchmark of 564 finely annotated samples. They used Jedi as the grounder under GPT-4o or o3 as the planner.

Separate grounding from planning in training

A full agent needs both skills, but they can be taught in order. Aguvis (Xu et al.) uses a two-stage pipeline "that separates GUI grounding from planning and reasoning". Stage one trains grounding. Stage two trains planning on trajectories annotated with inner monologue. It works only from screenshots, acts through pyautogui, and was built on Qwen2-VL at 7B and 72B.

UI-TARS (Qin et al.) continued training Qwen2-VL at 7B and 72B on about 50 billion tokens. It has three phases: continual pretraining, an annealing phase, and DPO on reflective pairs. Its data covers perception (captions and element descriptions), grounding, unified action traces and tutorials. OpenCUA (Wang et al.) trained Qwen2.5-VL models up to 72B on AgentNet, with reflective long chain-of-thought and 189,000 boxes parsed from accessibility trees. Its 72B model reported 45.0% on OSWorld-Verified.

Change what the model outputs

Writing coordinates as text has a weakness. The model must turn a spatial judgement into digits, one token at a time. GUI-Actor (Wu et al.) replaces this with an attention-based action head. A special <ACTOR> token attends to the visual patches, and the most attended patches give the target. Its 7B version on Qwen2.5-VL reported 44.6 on ScreenSpot-Pro. The output-format trade-offs are discussed in When Language Must Point.

Spend fewer tokens on empty space

Screens have large flat areas. ShowUI (Lin et al.) treats patches with identical colour as connected components and skips part of each component during training. This removes 33% of visual tokens and speeds training by 1.4 times. Built on Qwen2-VL-2B with 256,000 training examples, it reached 75.1% on ScreenSpot zero-shot. Token reduction more broadly is the topic of The Cost of a Picture.

Table 3. GUI agent and grounding models compared along the aspects introduced in this post
ModelBackbone and sizeObservationAction outputGrounding data sourceTrainingEvaluation
Pix2Act (2023)Pix2Struct, 282MScreenshot onlyMouse and keyboard events; coordinate binsTask demonstrationsBC, then tree searchMiniWob++ (interactive), WebShop
SeeClick (2024)Qwen-VL, 9.6B (LoRA)Screenshot onlyPoint as text, 0–1~300k Common Crawl pages via HTML; ~1M examples in totalSFTScreenSpot (static); MiniWob (interactive); AITW, Mind2Web (offline)
CogAgent (2023)CogVLM-17B plus high-res module; 18B; 1120×1120Screenshot onlyBox as text, 000–999CCS400K: 400k web screenshots from the DOMPretraining, then SFTMind2Web, AITW (offline)
Ferret-UI (2024)Ferret (CLIP ViT-L/14, Vicuna); size not reported in textScreenshot, any resolutionBoxes (understanding, not actions)UI detector on Android and iPhone screens; 250k samplesSFTOwn 14-task benchmark (static)
OmniParser + GPT-4V (2024)YOLOv8 detector, BLIP-2 captioner, OCR; GPT-4V plannerScreenshot parsed to element list plus boxesElement choice67k screenshots with DOM boxesParser fine-tuned; planner not trainedScreenSpot; Mind2Web, AITW (offline)
UGround (2024)LLaVA-NeXT 7B; later Qwen2-VL 2B / 7B / 72BScreenshot onlyPixel coordinates as text10M elements over 1.3M screenshots (HTML plus VLM descriptions)SFT; separate plannerScreenSpot; offline; Mind2Web-Live, AndroidWorld (online)
OS-Atlas (2024)InternVL2-4B; Qwen2-VL-7BScreenshot onlyPoint in a unified action space2.3M screenshots, 13M+ elements; HTML and accessibility treesGrounding pretraining, then action SFTScreenSpot; AndroidControl and others (offline); OSWorld (as grounder)
ShowUI (2024)Qwen2-VL-2BScreenshot, with token selectionJSON action; point 0–1256k mixed web and mobile dataSFTScreenSpot 75.1%; Mind2Web, AITW; MiniWob
Aguvis (2024)Qwen2-VL 7B / 72BScreenshot onlypyautogui codeGrounding stage, then planning trajectories with GPT-4o monologueTwo-stage SFTScreenSpot; offline; AndroidWorld, OSWorld (online)
UI-TARS (2025)Qwen2-VL 2B / 7B / 72B; ~50B tokensScreenshot onlyUnified actions; relative coordinatesCrawled and explored screens; 6M tutorials; VM tracesContinual pretraining, annealing, DPO on reflective pairsOSWorld 24.6 (50 steps); AndroidWorld 46.6
GUI-Actor (2025)Qwen2-VL 2B / 7B; Qwen2.5-VL 3B / 7BScreenshot onlyAttention over patches; no coordinate text~1M screenshots from public setsSFT plus attention loss; separate verifierScreenSpot, -v2, -Pro (44.6, 7B)
Jedi (2025)Qwen2.5-VL 3B / 7BScreenshot onlypyautogui.click(x, y)4M synthetic examples (icons, rendered components, layouts)SFT; GPT-4o or o3 as plannerOSWorld-G (564), ScreenSpot-Pro, OSWorld
OpenCUA (2025)Qwen2.5-VL 7B / 32B / 72B and othersScreenshot onlypyautogui subset, normalisedAgentNet: 22,625 human tasks; 189k tree-derived boxesSFT with reflective chain-of-thoughtOSWorld-Verified 45.0% (72B)
DigiRL (2024)AutoUI-Base, 1.3BScreenshotTap and slide, normalisedInherited from the base modelOffline, then online RL (AWR); VLM evaluator as rewardAITW tasks in live emulators
WebRL (2024)Llama-3.1 8B / 70B; GLM-4-9B (text only)Simplified HTMLElement idsNone needed: ids replace groundingOnline RL, outcome reward model, self-made curriculumWebArena-Lite 42.4% (8B)
UI-R1, GUI-R1 (2025)Qwen2.5-VL 3B (UI-R1); 3B / 7B (GUI-R1)Screenshot onlyAction type plus point136 tasks (UI-R1); 3k (GUI-R1)Single-step RL (GRPO), rule rewardsScreenSpot, -Pro, AndroidControl (static)
ARPO (2025)UI-TARS-1.5 7BScreenshot onlyUI-TARS actionsInherited from the base modelMulti-turn GRPO with replay; 256 parallel VMsOSWorld
UI-TARS-2 (2025)532M vision encoder; MoE, 23B active / 230B totalScreenshot, plus file system and terminalGUI actions plus SDK toolsData flywheel: continual training, SFT, RLMulti-turn PPO; verifiers or a generative reward modelOSWorld 47.5; WindowsAgentArena 50.6; AndroidWorld 73.3

How to read this table: each row is one model and each column is one aspect from this post. Read down the "Observation" column first: almost every model after 2024 uses screenshots only. Then read "Training": supervised fine-tuning dominates until 2025, when multi-turn RL appears. Most backbones are from the Qwen-VL family, whose design is covered in How the Open VLM Families Were Built. Numbers come from each paper's own setup and are not directly comparable across rows.

Behavioural cloning and compounding error

With trajectories in hand, the simplest training method is to copy them. This is behavioural cloning. At each step of each demonstration, raise the probability of the action the expert took.

ℒBC(θ) = − ∑τ ∑t log πθ(at* ∣ st),   st = (It, x, ht)supervised fine-tuning on actions; the loss is computed only on action (and thought) tokens

This is the same loss as supervised fine-tuning of a language model, with the action written as text. The details of loss masking are in Teaching a Language Model to Follow Instructions. Most models in Table 3 were trained only this way.

Behavioural cloning has a known flaw. The training states come from the expert. The test states come from the model. These are not the same.

Follow one step of reasoning. The expert never makes a mistake, so the data contains only screens that a correct agent would see. Now the model makes one small mistake, such as opening the wrong menu. The next screen is one that never appeared in training. The model has no data for it, so it is more likely to make a second mistake. That leads to an even stranger screen.

Ross, Gordon and Bagnell analysed this for imitation learning. With a per-step error rate ε, the expected number of mistakes of a cloned policy can grow with the square of the horizon T, not linearly. Their fix, DAgger, runs the learner, asks the expert to label the states the learner actually visits, and retrains. That makes the training distribution match the test distribution.

Even without the quadratic effect, long tasks are hard. Suppose every step succeeds independently with probability 1 − ε and there is no recovery. Then

P(success) = (1 − ε)Ta pessimistic baseline: no recovery, independent errors

With ε = 2% and 30 steps, that is 0.9830, about 0.55. With ε = 5%, it is about 0.21. Per-step accuracy that sounds high gives task success that is low. The Agent Evaluation Playbook develops this point for text agents. Figure 9 shows both effects.

Figure 9Compounding error. Left: the shaded corridor holds the screens seen in demonstrations. A cloned policy makes one small error, leaves the corridor, and then has no data to guide it, so it drifts further. A policy trained on its own visited states (DAgger-style relabelling or RL) learns to return. Right (interactive): task success under the simple model (1 − ε)T as the horizon grows. Move the slider to change the per-step error. The left panel is schematic.

For GUI agents, the off-distribution screens are concrete. A wrong click opens a dialog that no demonstration contains. A slow page shows a spinner instead of a form. A pop-up covers the button. The agent must notice the unexpected state and recover. Pure cloning teaches neither skill well.

There are three practical remedies. One is to add recovery data, as UI-TARS did with reflective pairs. Another is DAgger-style relabelling, where an expert labels the states the model reaches. Human labelling at that scale is expensive, so a strong model can act as the labeller. The third is to let the model learn from outcomes in a live environment. That is reinforcement learning, the subject of the next section. Why cloning is not enough covers the general argument.

Reinforcement learning from task outcomes

Reinforcement learning replaces the expert with a reward. The agent attempts the task in a live environment. At the end, a checker inspects the state and returns a reward.

R(τ) = 1[task completed],   J(θ) = 𝔼τ ∼ πθ [R(τ)]maximise the probability that the task is actually done

"Task completed" must be a fact about the world. The form was submitted, so a new row exists in the database. The spreadsheet was edited, so the cells hold the expected values. The file was downloaded, so it exists in the downloads folder with the right contents. The policy-gradient machinery that turns this reward into updates is the same as for text agents. It is derived in Reinforcement Learning from First Principles and adapted to agents in Reinforcement Learning for Agents From First Principles.

Because the agent learns from states it reaches itself, RL addresses compounding error directly. It sees its own mistakes and the outcomes that follow them. What is specific to GUIs is the cost and the noise of the loop.

A small companion lab did not reproduce this at toy scale. A pixel policy trained with plain REINFORCE on the task outcome did not learn to close pop-ups. Without a KL penalty it got worse (0.295 live success with pop-ups), and with one it stayed at the cloned policy's level (0.475 against 0.480). The lab does not test DigiRL's own recipe.

Four lines of work

Single-step RL for grounding. The cheapest form of RL treats each step alone. The reward checks the action type and whether the predicted point falls inside the target box. UI-R1 trained Qwen2.5-VL-3B with GRPO on 136 tasks. GUI-R1 used 3,000 samples and compared itself against models trained on millions. These are evaluated on static benchmarks. Rewards for points and boxes are discussed in Rewarding What the Model Sees.

Offline-to-online RL on devices. DigiRL (Bai et al.) started from a 1.3B AutoUI model. It used offline RL first, then continued with online RL in Android emulators, using advantage-weighted regression. On Android in the Wild tasks, success rose from 17.7% with supervised training on static demonstrations to 67.2%. It also beat AppAgent with GPT-4V (8.3%), the 17B CogAgent (38.5%) and the best earlier filtered behavioural-cloning approach (57.8%).

Curricula from failures. WebRL (Qi et al.) generates new tasks from the agent's unsuccessful attempts, so the task set follows the agent's ability. It uses an outcome reward model and a KL-constrained update. Its agents read HTML rather than pixels.

Multi-turn RL at scale. ARPO (Lu et al.) adds a replay buffer to GRPO so that rare successful trajectories are reused, training UI-TARS-1.5 7B on OSWorld tasks with a binary success reward. UI-TARS-2 (Wang et al.) is the largest reported effort. It combines a data flywheel, a stabilised multi-turn RL framework, and a hybrid environment with file systems and terminals. It reported 47.5 on OSWorld, 50.6 on WindowsAgentArena and 73.3 on AndroidWorld.

Evaluating in interactive environments

How do we know an agent works? The first GUI benchmarks were static. They recorded human trajectories and checked the agent's action at each step against the recorded one. Mind2Web, Android in the Wild and AndroidControl are mainly used this way. The model sees the expert's history, predicts the next action, and is scored on whether it matches.

Static evaluation is cheap and repeatable. But it cannot measure three things that matter. It cannot credit a different but valid path. It cannot test recovery, because the history is always the expert's, never the model's own mistakes. And it cannot measure long-horizon success, because the model never has to live with its earlier choices.

Interactive benchmarks fix this by running the agent in a real environment and checking the final state with a script. Figure 10 contrasts the two.

Figure 10Static versus interactive evaluation. Top: a static benchmark compares one predicted action with one recorded action, given the expert's history. Bottom: an interactive benchmark resets a virtual machine to a snapshot, lets the agent act, including an unexpected pop-up and a recovery, and then runs a checker script against the saved state. Only the bottom loop can observe recovery and final success.
Table 4. GUI benchmarks: what each one can and cannot measure
BenchmarkPlatformSizeStatic or interactiveHow success is checkedWhat it cannot measure
ScreenSpot / -v2Mobile, desktop, web~600 screenshots, 1,272 instructionsStatic, single stepClick inside target boxPlanning, recovery, long horizons
ScreenSpot-Pro23 professional apps, 3 OSesHigh-resolution screensStatic, single stepClick inside target boxSame as ScreenSpot
OSWorld-GDesktop564 samplesStatic, single stepClick inside targetSame as ScreenSpot
Mind2WebWeb (137 sites)2,000+ tasksStatic, multi-stepStep-wise match to recorded actionAlternative paths, recovery
AITW / AndroidControlAndroid715k episodes / 15,283 demosStatic, multi-stepStep-wise action matchAlternative paths, recovery
WebArenaSelf-hosted web812 tasksInteractiveFunctional checks on site stateVisual-only tasks; live-web drift
VisualWebArenaSelf-hosted web910 tasksInteractiveFunctional and visual checksDesktop and mobile apps
OSWorldDesktop VMs369 tasksInteractivePer-task checker scriptsLive-web drift; mobile
AndroidWorldAndroid emulator, 20 apps116 parameterised tasksInteractiveSystem state checksDesktop; the open web
Windows Agent ArenaWindows VMs150+ tasksInteractivePer-task checksOther operating systems
Online-Mind2WebLive web (136 sites)300 tasksInteractive, liveJudgement of the final outcomeExact reproducibility

How to read this table: the upper rows are cheap and repeatable but cannot see recovery. The lower rows can, at the price of virtual machines, resets and checker scripts. A complete evaluation needs at least one row of each kind. The general methods for benchmarking VLMs are covered in Measuring What a VLM Can Do, and the environment discipline for agents in The Agent Evaluation Playbook.

What a computer-use agent must remember

A screenshot shows the present. A task spans the past. The agent must carry information that no single screen holds. Five kinds of memory matter.

Images make memory expensive. Each screenshot costs many visual tokens. Keeping every past screenshot in context quickly fills it. A common design keeps the most recent few screenshots as images and summarises older steps as text: the action taken and what changed. This is the compaction trade-off from Inside an AI Agent Harness, with a much higher price per observation. The general taxonomy of agent memory is in Memory Is More Than Context.

The harness around the model

The model chooses actions. The harness makes them happen and keeps them safe. For computer use, the harness has more parts than for a text agent.

The screen is an attack surface

A computer-use agent reads everything on the screen. That includes text written by strangers: web pages, emails, documents, pop-ups. If any of that text looks like an instruction, the model may follow it. This is indirect prompt injection (Greshake et al.). For a text agent the injected text arrives through a tool result. For a computer-use agent it arrives as pixels.

The evidence is direct. Zhang et al. inserted adversarial pop-ups into existing agent test environments. Agents clicked the pop-ups 86% of the time on average, and task success fell by 47%. Asking the agent to ignore pop-ups was "ineffective against the attack". The EIA attack (Liao et al.) injected content adapted to each website. It reached up to 70% attack success at stealing specific personal information. Wu et al. dissected the adversarial robustness of multimodal agents more broadly.

Figure 11 walks through one injection and the harness defences that stop it.

Figure 11Prompt injection through the screen. A banner on the page contains text addressed to the agent. The model reads it as part of the screenshot and proposes to export all reports to an outside address. The harness checks the proposed action against policy, sees that it sends data to an unknown domain and cannot be undone, and pauses for confirmation. The user denies it, and the agent returns to the original task.

No model-level fix fully separates instructions from data on a screen, so the defences sit in the harness. Treat on-screen text as data. Keep a list of allowed sites and actions. Classify actions by reversibility: reading is safe, sending, deleting, paying and publishing are not. Require a human confirmation before any irreversible step. Give the agent the least privilege the task needs. The Agent Evaluation Playbook treats injection testing in detail, and Aligning Vision-Language Models covers model-side safety training.

Where computer-use agents fail

When an agent fails a task, the score says only that it failed. To improve it, we need to know why. A useful method is to find the first step where the trajectory went wrong and assign it to one cause. Seven causes cover most failures.

Figure 12 lets you click each cause and see an example on the same form.

Figure 12A failure decomposition tree (interactive). Click a cause on the left, or step through them. The mock form on the right shows a typical instance of that cause, and the text names the usual remedy. Attributing each failed trajectory to its first wrong step, and that step to one cause, turns a single success rate into a list of things to fix.

Two techniques make attribution reliable. First, counterfactual substitution: replace one component with an oracle and see whether the task succeeds. SeeAct did this with grounding and found the gap between its best automatic grounding and oracle grounding. Second, replay: rerun the trajectory from a saved snapshot up to the failing step and try alternatives there. Both are developed in The Agent Evaluation Playbook.

What comes next

We started with a static function from an image to an answer. We ended with a policy acting in a world. Along the way, each part of a VLM took on a new job. The vision encoder must resolve 20-pixel icons on large screens. The output format must produce executable coordinates. Training must cover states that experts never visit. Evaluation must check the world, not the words.

You should now be able to reason about a computer-use system from its parts. What does it observe, and what does that cost? At what level does it act? Where does its grounding data come from? Was it trained only by copying, or also from outcomes? Is it evaluated on single screenshots or in a live environment? And what in its harness stops an on-screen instruction from becoming an irreversible action?

The same loop applies when the actions move a robot instead of a cursor. RT-2 expressed robot actions as text tokens, and later models such as OpenVLA and π0 built dedicated action outputs on top of VLMs. From VLMs to VLAs picks up that story. The backbones that recur in Table 3, and how each open family was built, are surveyed in How the Open VLM Families Were Built.

Key insights and nuances

References

Grouped by topic. Every entry links to its primary source.

Observing screens

GUI grounding and agent models