VisualWebArena

A web agent reads a page, then clicks. With only text it finishes 7 of 100 visual tasks. With a screenshot and numbered boxes it finishes 16. A person finishes 89.

Learn how a benchmark of 910 realistic web tasks measures whether an AI agent can see what a page shows, and what the first results revealed.

Pick an agent below, then watch it attempt 100 tasks. Compare what each one can see on the page. Then we build the benchmark, piece by piece: the environment, the tasks, the scoring, the numbered boxes, the agents, the results and the ways agents fail.

You need a rough idea of what a web page is (text, images and buttons) and what a percentage is. We build the rest from zero.

Paper: VisualWebArena: Evaluating Multimodal Agents on Realistic Visually Grounded Web Tasks by Jing Yu Koh, Robert Lo, Lawrence Jang, Vikram Duvvur, Ming Chong Lim, Po-Yu Huang, Graham Neubig, Shuyan Zhou, Ruslan Salakhutdinov and Daniel Fried, Carnegie Mellon University. It is an assigned reading of MIT MMAI, Multimodal AI (Spring 2026); it belongs to Lecture 13, Multimodal Interaction. Every idea is re-taught here in our own words and devices.

Send an agent to work

Success rates are the paper’s Table 3, overall column: GPT-4 on the accessibility tree 7.25%, GPT-4 with BLIP-2 captions 12.75%, GPT-4V with a screenshot 15.05%, GPT-4V with Set-of-Marks 16.37%, people 88.7%. The paper ran 910 tasks (230 for people); we show each rate as the nearest whole number out of 100, and which dots succeed is a seeded random pick. The six lamps are a toy page.

Chapter 0

Why Agents Need Eyes

See why a task like “order the green polo shirt” defeats an agent that can only read, and what this paper builds to measure that

You open an online shop and say to your assistant: “Help me order a green polo shirt.” You do not name a product. You do not give a code. You just know what green looks like.

Now picture the assistant as a program. It is an agent: a language model that reads a page, picks one action such as a click, sees the new page, and repeats until the job is done. A good agent could save people hours of routine clicking.

Here is the catch. Most of these programs read the page as text. The shop lists a hundred shirts. Each has a title, a price and a picture. The colour is in the picture. If the seller wrote “Men’s polo, short sleeve” and nothing about colour, a reader of text has no way to tell the green shirt from the grey one.

The gap this paper fills

Before this paper, the popular tests for web agents were almost all text. A benchmark is a fixed set of tasks with a fixed way of scoring them, so that different agents can be compared fairly. If every task in the benchmark can be solved by reading, nobody has a reason to build agents that look.

The authors, a team at Carnegie Mellon University, build the missing benchmark. They call it VisualWebArena. It builds on WebArena, an earlier benchmark that hosts real-looking websites on the tester’s own machines. VisualWebArena adds 910 new tasks, and every one of them needs the agent to understand what the page looks like.

The paper makes three contributions. The first is the benchmark itself: 910 tasks on three sites, called Classifieds, Shopping and Reddit. The second is a large test of existing language models and vision-language models on those tasks. The third is a new kind of agent that sees numbered boxes drawn on the screenshot. Chapters 1 to 4 build the first and third. Chapters 5 to 8 cover the test.

Feel the problem first

Here is the shirt problem, shrunk to six lamps. Each lamp is a listing on a toy marketplace. The task is: click the pink lamp. Switch what the agent can see, and watch how many lamps it can tell apart.

Can the agent tell the lamps apart?

Choose what the agent sees. Then switch on the seller’s colour word and see what changes. The bar shows the chance of a correct click if the agent has to guess among the lamps it cannot tell apart.

Illustrative toy, not the paper’s data. Six lamps, one target. The caption “a lamp” mimics what an image captioning model such as BLIP-2 tends to write for a plain object: the salient thing, not the colour. The chance is 1 divided by the number of lamps the agent cannot tell apart.

With the colour left out of the titles, the text agent and the caption agent both face six identical options. A blind guess is right one time in six. Only the agent that sees pixels can pick the pink lamp for sure. When the seller does write the colour, the text agent catches up. Real sellers often do not.

The paper’s authors found the same pattern at scale. Their example tasks include “Add something like what the man is wearing to my wish list” with a photo attached, and “Create a post for each of these images in the most related forums.” Neither can be done from words alone.

What to carry through the lesson

Keep four questions in mind. What does the agent see on each step? What can it do? How do we decide, by a program and not by a person, that it succeeded? And where does it break? The chapters answer them in that order.

One honesty note before we start. The scores in this paper are low. The best agent in the main experiments finishes 16.37% of tasks. That is a result, not a failure of the paper. A benchmark that agents already pass cannot tell you what to build next.

The road

  1. The environment: pages as a game with states, actions and observations.
  2. The 910 tasks: templates, input images, difficulty, and tasks that cannot be done.
  3. Scoring by execution: reward functions that check the final state, not the path.
  4. Set-of-Marks: numbered boxes that turn a click into a choice of ID.
  5. The baseline agents: four ways to show a page to a model, and the real prompt.
  6. The results: Table 3 read row by row.
  7. Where agents succeed: difficulty, OCR, image inputs, ablations.
  8. How agents fail: giving up, loops, and typing that never replaces.
  9. The field guide: numbers, checklist, core code, and where to go next.

One more thing to notice before we start. The toy above has six lamps and one question. A real shop page has hundreds of elements, and the task may need ten steps. Each step is another chance to pick the wrong lamp. Small errors at each step multiply into a low score for the whole task.

Why does a benchmark made only of text-readable tasks fail to push web agents forward?

Chapter 1

The Environment: A Web Page as a Game

Turn browsing into a loop of states, observations and actions that a program can play and a referee can score

Think of a board game. At every turn there is a board, a player who sees part of it, a move, and a new board. A referee at the end says who won.

Browsing the web fits the same frame. The board is the whole state of a website: every account, every listing, every cart. The player sees one page of it. The move is a click or a few typed letters. The referee decides after the last move whether the job was done.

The paper writes this frame down in one line. That line tells us what the agent gets to know, what it gets to do, and when it is scored.

The five parts, in plain words

A state, written s, is everything true about the websites at one moment, including things the agent cannot see. An observation, written o, is the part the agent is shown: the current URL, the open tabs, and the content of the focused tab. An action, written a, is one thing the agent does, such as a click.

The transition says what the action does to the state. In VisualWebArena it is deterministic: the same action in the same state always gives the same new state. That is what makes the tests repeatable. The reward is the score at the end: 1 if the goal is met, 0 if not.

Because the agent sees only part of the state, the paper calls the setting a partially observable Markov decision process, or POMDP. The long name means one thing: a game where you pick moves without seeing the whole board.

E
The environment: the whole game, the four parts below.
S
The set of all states. One state holds every page, account and listing on every site.
A
The set of actions the agent may issue. The table below lists them.
Ω
The set of observations. Each one is a partial view of a state: URL, tabs and the focused page.
T
The transition function. It maps a state and an action to the next state, and it is deterministic.
st+1 = T(st, at)
At step t the agent sees ot, issues at, and the site moves from st to st+1.
R : S × A → {0, 1}
The reward. It is 1 at the final step if the goal is met, and 0 otherwise. No partial credit.

What the agent can do

The paper gives the agent twelve actions (its Table 1). Most take an element ID: a number that names one thing on the page, such as a button or a text box. The agent does not give screen coordinates. The authors say why: many strong language models were never trained to point at exact pixels, so naming an element by number lets the model spend its effort on reasoning.

ActionWhat it does
click [elem]Click the element.
hover [elem]Move the pointer over the element.
type [elem] [text]Type text into the element.
press [key_comb]Press a key combination.
new_tab, tab_focus [index], tab_closeOpen a tab, switch to the i-th tab, close the current tab.
goto [url], go_back, go_forwardOpen a URL, or use the back and forward buttons.
scroll [up|down]Scroll the page.
stop [answer]End the task, with an answer if the task asks a question.

Two details matter. The agent must end the task itself with stop. And for a question such as “What is the price of the fax machine?”, the answer goes inside the stop action as text.

One turn, with real data flow

Here is one turn from the paper’s own prompt examples. The environment hands the agent a list of the elements on the page, each as [id] [tag] [text], plus the URL and the objective. The agent replies with a short reasoning and one action in triple quotes. Pick an action and see what the referee does.

Play one turn

The box shows the observation ot the agent receives. Choose an action at and read what happens to the state and the reward.

OBSERVATION: [31] [IMG] [Image, description: hp fx-7010dn fax machine] [32] [A] [HP CB782A#ABA 640 Inkjet Fax Machine (Renewed)] [ ] [StaticText] [$279.49] [33] [BUTTON] [Add to Cart] [34] [A] [Add to Wish List] [35] [A] [Add to Compare] URL: http://onestopmarket.com/office-products/office-electronics.html OBJECTIVE: What is the price of HP Inkjet Fax Machine?

The observation lines are the paper’s Figure 17 in-context example. The scoring here (an exact match on the answer string) is our illustration of the exact_match primitive from Chapter 3, not a task from the benchmark. The page after a scroll is not shown in the paper, so that outcome is described, not drawn.

Look at what the referee did not do. It did not grade the reasoning. It did not count clicks. It compared the final outcome with the goal. Chapter 3 shows how far that idea goes.

A worked trace

Take the fax machine example as a full episode. At step 0 the state s0 is the shop page with the product listed. The observation o0 is the text you saw above. The agent issues a0 = stop [$279.49]. The stop action ends the episode, so there is no s1 to compute. The reward function reads the answer and returns 1.

Now a longer toy episode, labelled illustrative: add the fax machine to the wish list. Step 0: o0 is the product page, and a0 = click [34]. The transition T moves the site to a state where the wish list holds one item. Step 1: o1 shows a confirmation message, and a1 = stop []. Only now does R read the wish list page and return 1. The reward was 0 at step 0 even though the key click had already happened. That is what “reward at the final step” means.

Two facts follow. First, a deterministic T means that a bad run can be replayed exactly. Researchers can inspect step 4 of a failed run and see the same page again. Second, a partial observation means the agent must keep its own notes. The state remembers the wish list. The next observation may not show it.

In the paper’s POMDP, what does the reward function return, and when?

Chapter 2

The 910 Tasks and Three Websites

Follow how six students wrote 314 templates that grow into 910 tasks, and see how each task is graded for difficulty

A teacher who sets an exam does not write a thousand different questions by hand. She writes a few question shapes and swaps the numbers. The authors did the same, and the shape they use is called a template.

Before the templates, the websites. A test needs a place to run. The authors run three sites on their own machines, so that every agent meets the same pages on every day.

Three sites

Classifieds is new in this paper. It imitates marketplaces such as Craigslist. It holds 65,955 listings, each with a title, a description and a photo. It runs on OSClass, an open-source system for classified ads, so it supports search, posting, comments and ratings. The authors scraped Craigslist data over three weeks, mostly from the Northeastern United States, and used a tool called scrubadub to replace names, emails and phone numbers with placeholders.

Shopping comes from WebArena. It is an online store whose product text and photos were scraped from Amazon, using data released with an earlier benchmark called WebShop. Reddit also comes from WebArena. It is a forum with 31,464 posts in many forums, with natural photos, memes, electronics and charts. Some tasks also use a self-hosted Wikipedia. A few tasks span two sites.

From templates to tasks

Six graduate students, who are co-authors, wrote intent templates. An intent is the sentence given to the agent. A template has blanks. For example: “Find me the {{attribute}} {{item}}. It should be between {{range}}.” Fill the blanks and you get a task: “Find me the cheapest red Toyota. It should be between $3000 to $6000.”

The students also wrote the reward function for each task, using the checks in Chapter 3. They were told to be creative: use the visual layout, use input images, and cross from one site to another. In total they wrote 314 templates, which average 2.9 tasks each. The arithmetic checks out: 314 × 2.9 is about 910.

When a task has an input image, it came from royalty-free sources or from MS-COCO, a standard photo set. 25.2% of tasks (229) include one or more images in the instruction. The agent must read the picture, then act on a website. The paper calls this interleaved image-text input: pictures and words mixed in one request.

A small group of tasks cannot be done. There are 46 of them, 5.1%. For these the right move is to stop and say why the task is impossible. A fuzzy match (Chapter 3) grades that reason. This tests a skill that real agents need: knowing when to quit.

How hard is a task?

Every task gets two difficulty labels. Action difficulty counts the steps a person would need. Three or fewer actions is easy. Four to nine is medium. Ten or more is hard. Visual difficulty asks what the eyes must do. Easy means colours, shapes, or spotting that a cat is present. Medium means patterns, meaning, or reading short large text. Hard means several images, reading small or long text, or fine detail.

The overall difficulty is the average of the two. The authors warn that humans judged these labels, so some tasks lean to one kind. Even so, the labels are useful: weak open models score near zero on medium and hard tasks, yet above zero on easy ones. So a developer can iterate on the easy slice first.

Expand a template, then grade it

Choose a way to fill the blanks. Then slide the number of actions a person would need and see which difficulty bucket the task lands in.

6

The first template and its filled task (red Toyota) are the paper’s example. The other two fills are our illustrations of how the same template expands. The easy, medium and hard cut points (3 or fewer, 4 to 9, 10 or more) are the paper’s definition of action difficulty.

The human baseline

Seven college students did one task per template, a sample of 230 tasks. Nobody got a task they had written. They succeeded on 88.7% overall: 91.07% on Classifieds, 87.10% on Reddit and 88.39% on Shopping.

The misses are instructive. People read the task wrongly, for example adding an item to the cart when the task said wish list. They searched for 5 to 10 minutes for an exact image, gave up, and assumed the task was impossible. In shopping tasks they did not check every candidate page for the cheapest item. The authors note that strong agents could beat people on exactly these chores.

A worked check of the counts

The paper does not print the number of tasks per site in the text, but Table 3 lets us recover it. Every success rate is a count divided by a site total. GPT-4 with text only has 5.56% on Classifieds. 13 successes out of 234 tasks is 5.56%. On Reddit, 4.76% matches 10 successes out of 210. On Shopping, 9.23% matches 43 out of 466. Those add to 66 of 910, which is the 7.25% overall. And 234 + 210 + 466 = 910. These site totals are our deduction from the table, not a figure the paper states.

The same trick checks the human result. A rate of 88.7% on 230 tasks is about 204 tasks done right and 26 missed. Sampling one task per template keeps the human test fair. If people did all 910 tasks, templates with many instances would count more than templates with few.

Finally, watch for leakage, the quiet way a benchmark gets easier than it looks. The authors kept the human testers off the tasks they wrote. A tester who wrote a task knows its trick. A fair human score needs fresh eyes.

A task needs 11 actions from a person and only the colour of one product from the picture. How does the paper grade its action difficulty?

Chapter 3

Scoring by Execution

Check the final state of the website instead of the path, and learn the six small checks that grade open-ended visual tasks

You ask a friend to paint the fence white. You do not watch every brushstroke. You walk out later and look at the fence. If it is white, the job is done, however they did it.

The authors grade agents the same way. This is called execution-based evaluation: run the agent, then inspect what it left behind. Two agents that take different routes both pass if the final state is right. This matters because a web task usually has many valid paths.

Each task has a small hand-written program, its reward function, built from a few reusable checks. A check looks at one of two things: the text the agent gave in stop, or the content of a page after the run.

Checks for answers

Some tasks ask a question, so the agent returns a string. Call the agent’s string â and the correct answer, or set of answers, a*. Three checks come from WebArena. exact_match gives 1 only if â equals a*. It suits a number. must_include gives 1 if every required item in a* appears somewhere in â. It suits an unordered list. fuzzy_match asks a language model (GPT-4-Turbo) whether â and a* mean the same thing. The judge answers “correct”, “incorrect” or “partially correct”, and only “correct” earns 1.

The paper adds new ones. must_exclude is the reverse of must_include. It gives 0 if any forbidden item shows up in â. Take â = “$1.99, $2.50, $10.00” and forbidden items 1.50 and 2.00. Neither appears, so the reward is 1.

eval_vqa handles questions about pictures. VQA means visual question answering: a model looks at an image and answers a question. The check asks a small vision model (BLIP-2-T5XL) a yes or no question about an image. If its answer contains the expected word, the reward is 1. A task like “Buy me a green hoodie under $10” has too many valid products to list by ID. So the check asks the model, “Is this a hoodie?” and “Is it green?” of the item the agent chose.

Checks for what the agent did

Other tasks change the site: buy something, post something, edit a price. Here the evaluator is a locator plus a URL. The URL names the page to inspect, such as the wishlist page, or a function such as “the latest order page”. The locator names what to read there, such as every img element or everything with the class .product-image-photo. Then the same checks run on what was read.

For example, the task “Navigate to my listing of the white car and change the price to $25000. Update the price in the description as well” reads the listing page. It requires $25000 or $25,000 (must_include) and forbids $30000 or $30,000 (must_exclude). That second check catches an agent that edited the price but not the text.

Matching pictures: SSIM

One check compares two images. Take the task “Create a post for each of these images in the most related forums.” The evaluator opens the new post and checks that the image in it is the one given. A byte-for-byte match is too strict, since sites may resize a picture. So the paper uses eval_fuzzy_image_match, built on the structural similarity index, SSIM. It compares two pictures through three things: average brightness, spread of brightness, and how the two move together.

SSIM(x, y)
A score from about 0 to 1 for two pictures x and y. A score of 1 means the pictures are identical.
numerator
μ is the average pixel value of a picture. σxy is the covariance: how much the two pictures rise and fall together. Matching brightness and matching structure both raise the top.
denominator
σx2 and σy2 are the spreads (variances). Dividing by them scales the score so identical pictures give exactly 1. The small constants c1 and c2 stop a division by zero.
r = 1 if SSIM > t
The reward. The check passes if the score beats a threshold t between 0 and 1. The paper does not state its t in the text.

Check the formula with the easy case. If y equals x, then μy = μx, σxy = σx2 and σy2 = σx2. The top and the bottom become the same expression, so SSIM = 1. Now add random noise to x with variance σn2. Noise is unrelated to the picture, so σxy stays at σx2, but σy2 grows to σx2 + σn2. With equal means, SSIM falls to about 2σx2 / (2σx2 + σn2). If the noise is as strong as the picture’s own spread, that gives 2/3, or 0.67. Try it.

Is it the same picture?

Left: the picture the task gave. Right: what the agent posted. Slide the noise up, or press Swap in a different picture. The bar shows the SSIM score; the pink mark is your threshold t.

12
0.90

A toy 24 by 24 grey picture of a ring and a bar, made in your browser. The score uses the formula above on the whole picture at once, with c1 = (0.01 × 255)2 and c2 = (0.03 × 255)2, the common defaults; the standard SSIM averages the score over small windows. The threshold is yours to move; the paper does not say what value it used.

Notice a trade. A low threshold forgives a resized or compressed picture, but may accept a different picture that shares a layout. A high threshold is strict, but rejects an honest copy. The benchmark picks one number and lives with it.

An agent edits a listing price correctly but leaves the old price in the description. Which pair of checks catches this?

Chapter 4

Set-of-Marks: Numbers on the Picture

See how drawing a numbered box on every clickable thing turns “point at the pixel” into “name the number”

Imagine a crowded page of forty small thumbnails. You tell a helper on the phone: “Click the one with the pumpkin.” The helper must point. Pointing exactly is harder than it sounds when the pictures touch each other.

Now imagine each thumbnail wears a number tag. You say: “Click number 9.” Nothing is left to aim. This is the whole idea of the agent the paper proposes.

Four ways to show a page

First, how can a page be handed to a model at all? The paper lists four ways. The first is the raw DOM, the document object model: the full tree of tags that a browser builds from the page’s HTML. It is long and noisy. The second is the accessibility tree, a simplified tree made for screen readers. It keeps the elements that matter, such as links, buttons and text, each with a role and a name. WebArena used this one.

The third is a plain screenshot: an RGB array of pixels. With the settings in the paper’s appendix, the viewport is 1280 by 2048 pixels, so the picture has shape [2048, 1280, 3]. The fourth, new in this paper, is the Set-of-Marks screenshot, or SoM, borrowed from a method by Yang and colleagues.

How the marks are made

The page is processed before the model sees it. A short piece of JavaScript runs in the browser. Step one: find every interactable element, meaning anything a user can click, type into or hover over. Step two: ask the browser for each element’s bounding box, the rectangle it occupies. Step three: give each element a unique ID and draw its box on the screenshot, with the ID in a small tag. The box and its tag share one colour, so the eye can pair them.

The model receives two things at once. One is the marked screenshot. The other is a text list in the form [id] [tag] [text], for example [10] [A] [kneechalice] or [9] [IMG] [description: picture of a pumpkin]. The picture shows where things are. The list says what they are. Together they let the model say click [9].

The authors add one more fact. Other projects had shown demos of similar marks. This paper is the first, to their knowledge, to benchmark the idea on a realistic, interactive web environment.

Why numbers beat coordinates

Chapter 1 said the action space uses element IDs, not (x, y). Now see why that is worth the extra step. A model that outputs coordinates must turn what it sees into numbers in the pixel grid. Language models are not trained to be accurate to a few pixels. If its guess is 20 pixels off on a page with tightly packed thumbnails, it clicks the neighbour.

A model that outputs an ID makes a different kind of choice: it picks from a short list. Language models are good at that. It is an easier skill than precise pointing, so the model can spend its effort on the question of which thing to click.

The paper has a second reason. With an accessibility tree alone, the model reads a list of elements but does not see where they sit. On pages where small images are close together, it cannot match a name in the list to the thing in the picture. With SoM, the box on the picture and the line in the list carry the same ID, so the match is built in.

Aim, or name the number

Eight thumbnails sit close together. The target is outlined. Slide the pointing error. Each dot is one simulated click by coordinates. The bars compare coordinates with element IDs.

22 px

Illustrative toy, not the paper’s data. Each thumbnail is 54 pixels wide with 8 pixels between them. A coordinate click lands at the target centre plus a Gaussian error of the chosen size, measured over 600 seeded clicks. The ID bar assumes the model reads the ID correctly, so it does not depend on pointing error; reading errors are not modelled. The paper’s claim is the direction, that IDs ease grounding on dense pages.

Where it helps, where it does not

The paper reports a clear pattern in Chapter 6. SoM lifts GPT-4V most on the visually dense sites. For the other vision models in the study, SoM does not help much. The authors point to the earlier SoM paper: only GPT-4V had shown the skill of reading marks reliably, which may come from scale or training data. So the method is only as good as the model that reads it.

A worked example of the aiming error

Take the toy in the device. A thumbnail is 54 pixels wide, and the agent aims at its centre with an error of 22 pixels, in each direction. A click lands inside the tile if the error stays within 27 pixels (half the tile) on both axes. The chance on one axis is the chance that a Gaussian value falls within 27/22 = 1.23 standard deviations of zero, which is about 0.78. Both axes must succeed, so the chance is 0.78 × 0.78, about 0.61. With a 40 pixel error the one-axis chance is about 0.50, and the click chance falls to about 0.25.

The slope is steep. A modest drift in aim cuts the hit rate by half or more. A step in the agent’s plan that depends on one click then fails often. Over the five or ten clicks of a typical task, misses add up. This is why the paper moves the hard part, aiming, out of the model and into a script.

Why does the SoM agent output click [31] instead of click (412, 880)?

Chapter 5

The Baseline Agents and Their Prompts

Open the real request an agent receives, and see what each of the four input settings adds to it

A chef gets the same order slip, but one kitchen gives a photo of the dish and another gives only a word. The cooks differ in skill, but the slip differs too. The paper tests many models, and it also tests many slips.

None of the agents in this paper is trained for the web. Each is a prompt-based agent: an existing model, frozen, given a long instruction and a few worked examples. The authors change two things and measure the effect: which model, and what input the model gets.

The shared recipe

Every agent gets a system message: standing instructions. In the paper’s SoM agent it says: you are an autonomous agent that navigates a browser; here is what you will receive (the objective, the screenshot with numbered boxes, the element list, the URL, the open tabs and your previous action); here are the actions you may use; follow these rules. Among the rules: issue one action at a time, reason step by step, and start the final line with “In summary, the next action I will perform is”, followed by the action inside triple backticks.

Every agent also gets in-context examples: complete worked cases placed in the prompt. The models learn the format by imitation, not by training. The paper uses 3 examples, one from each website, and none overlaps with benchmark tasks. For the picture-based agents, each example includes its screenshot. The reasoning style is chain-of-thought: the model writes its thinking first, then the action.

The models are the stars of Table 3 in Chapter 6: text-only GPT-4 Turbo, GPT-3.5 Turbo, Gemini-Pro, LLaMA-2-70B and Mixtral-8x7B; then the vision-language models GPT-4V, Gemini-Pro, IDEFICS-80B-Instruct and CogVLM.

Four ways to fill the slip

Text-only agents get the accessibility tree and nothing else. Caption-augmented agents get the same tree, but every img element is first captioned by a separate image-to-text model, BLIP-2-T5XL. The caption is written into the tree as alt-text, and any image in the task gets captioned too. LLaVA-7B was tried as the captioner and scored about the same as BLIP-2 (2.75% against 2.97% overall with GPT-3.5), so the authors kept the smaller BLIP-2.

Multimodal agents get the screenshot, the captions and the accessibility tree. SoM agents get the screenshot with numbered boxes, the captions, and the text list of marked elements. Only models that can take several interleaved images and text were used for the last two: GPT-4V, Gemini-Pro, IDEFICS-80B-Instruct and CogVLM.

The exact numbers behind a run

The appendix fixes the details so that others can reproduce the runs. The page viewport is 1280 by 2048 pixels, and text observations are cut at 3,840 tokens (15,360 characters for Gemini). Models with short context windows, namely LLaMA, IDEFICS and CogVLM, use a 1280 by 720 viewport and 640 tokens.

Sampling uses nucleus sampling, also called top-p: at each word, the model draws only from the smallest set of likely words whose probabilities add up to p. GPT-3.5 and GPT-4 use temperature 1.0 and top-p 0.9. Gemini uses temperature 0.9 and top-p 1.0. The others use temperature 0.6 and top-p 0.95. Because sampling is random, the same agent can follow a different path each run.

Build the request

Pick one of the paper’s four settings, or switch the parts on and off yourself. The box shows the user message the model would read for one step.

The line formats and the reply format come from the paper’s Figures 16 and 17. The image description in the caption row is the paper’s own example; the text-only row shows what is left when no caption is written (our illustration). In the paper, the boxes require a screenshot, so that toggle also turns the screenshot on.

From reply to action

The model’s reply is free text. The harness finds the text after “In summary, the next action I will perform is”, takes what sits between the triple backticks, and parses it into a verb and arguments. If it parses to a valid action on a real element ID, the browser executes it. The new page becomes the next observation. The agent also receives its own previous action as text, which is its only record of what it did. We return to that fact in Chapter 8.

A worked example of top-p

Nucleus sampling is easy to do by hand. Suppose a model gives five possible next words these probabilities, as an illustration: 0.50, 0.30, 0.12, 0.05 and 0.03. Set p = 0.9. Add the probabilities from the largest down: 0.50, then 0.80, then 0.92. The running total first passes 0.9 at three words, so the nucleus is those three. Drop the last two. Divide each kept probability by 0.92 so that they add to 1: 0.54, 0.33 and 0.13. The model now draws one word from those three.

Why use it? It cuts off the long tail of unlikely words that could derail a click command, while keeping some variety. With temperature 1.0 and p = 0.9, the GPT agents still take different paths on different runs. Two runs of the same agent on the same task can disagree, which is one reason the paper reports rates over many tasks and not single runs.

Which of these is the only thing that differs between the “multimodal” and the “SoM” agents in the paper?

Chapter 6

The Results: Reading Table 3

Read the main table row by row, see what each jump in input is worth, and learn how much noise sits inside one number

A race has one finish line but several heats. Table 3 is a set of heats. Each group of rows gives the agent a richer view of the page, and the last row is the person who already crosses the line.

The metric is success rate: the share of tasks where the reward function returns 1. If an agent solves 150 of 910 tasks, its success rate is 150/910 = 16.5%. Each cell in the table is one such share, for one site or for all 910.

What the table says

Text-only agents do poorly. The best, GPT-4 reading the accessibility tree, reaches 7.25%. GPT-3.5 and Gemini-Pro reach 2.20%. The open models LLaMA-2-70B and Mixtral-8x7B reach 1.10% and 1.76%.

Captions help a lot. Adding BLIP-2 captions lifts GPT-4 from 7.25% to 12.75%. The captions give the text model a rough view of each picture. GPT-3.5 only moves from 2.20% to 2.97%, so a weak reasoner gains less from extra input.

Seeing the screenshot helps more. GPT-4V with the screenshot, captions and tree reaches 15.05%. Gemini-Pro goes from 3.85% with captions to 6.04% with the screenshot. The authors explain that text agents struggle with images that need reading text inside them, or that show something small.

SoM adds a little more for one model. GPT-4V rises from 15.05% to 16.37% overall. The site columns tell the story. On Reddit it rises from 12.38% to 17.14%. On Classifieds it rises from 8.12% to 9.83%. On Shopping it dips slightly from 19.74% to 19.31%. Reddit and Classifieds are the sites with dense small pictures, and the paper links the gain to that density. For Gemini-Pro, SoM does not help (6.04% to 5.71%). IDEFICS-80B and CogVLM are near zero in every setting.

People finish 88.7%. The best agent is below one fifth of that.

Read Table 3 as bars

Choose the input setting, then the site. Bars are the paper’s success rates. The axis stops at 25%, because people (88.7%) would flatten everything else.

All bars are the paper’s Table 3. Human rates for the same sites: Classifieds 91.07%, Reddit 87.10%, Shopping 88.39%, overall 88.70% (230 tasks). The GPT-3.5 row in the caption setting uses BLIP-2 captions.

How much is one number worth?

A success rate on a finite set of tasks is an estimate. If the true skill is p and the benchmark has N tasks, the typical wobble of the estimate, its standard error, is the square root of p(1 − p) / N. For GPT-4V with SoM, p = 0.1637 and N = 910. The wobble is the square root of 0.1637 × 0.8363 / 910, which is about 0.012, or 1.2 points. For people, p = 0.887 and N = 230, so about 2.1 points. These are our calculations, not the paper’s.

The lesson: 15.05% against 16.37% is a gap of 1.3 points, about the size of one standard error on each. Both agents ran on the same tasks, so the comparison is tighter than the raw wobble suggests. Still, the SoM claim rests on its per-site gains on Reddit and Classifieds, and on the paper’s trajectory examples, more than on the overall number alone. The big gaps, text against vision and agents against people, are far outside the noise.

A later check with newer models

After the ACL submission deadline, the authors ran newer models with SoM. GPT-4o reached 19.78%. Gemini-Pro 1.5 reached 11.98% and Gemini-Flash 1.5 reached 6.59%. A text-only LLaMA-3-70B with captions reached 9.78%, far above LLaMA-2-70B’s 0.66%. Newer base models scored higher with the same prompts.

A worked recount of Table 3

Success rates are hard to feel, so turn them into task counts. Using the site totals from Chapter 2 (234, 210 and 466 tasks, our deduction), GPT-4V with the screenshot solves about 8.12% × 234 = 19 Classifieds tasks, 12.38% × 210 = 26 Reddit tasks and 19.74% × 466 = 92 Shopping tasks. That is 137 of 910, or 15.05%. The overall column is a task-weighted average of the three site columns, not a plain average.

Do the same for SoM: 9.83% × 234 = 23, 17.14% × 210 = 36 and 19.31% × 466 = 90. That is 149 of 910, or 16.37%. So the whole SoM gain is 12 more tasks solved out of 910: 4 on Classifieds, 10 on Reddit, and 2 fewer on Shopping. A small absolute gain, concentrated where pictures crowd together. The recount is a good habit for any benchmark table: turn each percentage into a count and ask how many tasks actually changed.

One caution on reading the table. The rows are not a clean contest between models, because the input also changes between groups. GPT-4 text only and GPT-4V with SoM differ in both model and input. Within a group, the comparison is fairer. Across groups, treat the gaps as the value of the whole package.

What does the jump from 7.25% (GPT-4, text only) to 12.75% (GPT-4 with BLIP-2 captions) show?

Chapter 7

Where Agents Win, Where They Lose, and What the Ablations Say

Slice the results by difficulty, reading, image inputs and prompt examples to find what really limits web agents

An overall score hides the shape of a failure. Two agents with 16% can fail in different places. A doctor does not stop at “the patient is unwell”. She asks where it hurts. The paper’s analysis asks the same of its best agents.

By difficulty

Figure 6 in the appendix lays out success rates on a 3 by 3 grid: action difficulty down the side, visual difficulty across the top. Switch the agent below and look at how the colours shift.

Where does the agent succeed?

Rows: how many actions a person needs. Columns: how hard the vision is. Brighter cells are higher success. Pick an agent, then touch a cell for its number.

All values are the paper’s Figure 6 (a), (b) and (c). Row and column labels: a is action difficulty, v is visual difficulty. The overall column and row are the paper’s averages.

Three patterns stand out. First, success falls as action difficulty rises. For GPT-4V with SoM, easy-action tasks succeed 25.8% of the time, medium 12.9% and hard 10.5%. Second, vision matters most on hard visual tasks. There, SoM gets 12.4%, captions get 8.0% and text alone gets 4.8%. That is about two and a half times the text-only rate. Third, even the best agent sits at 30.1% on the easiest cell. So an easy task is not safe.

The paper also logs trajectory length for GPT-4V with SoM: an average of 6.9 steps on easy-action tasks, 10.0 on medium and 12.1 on hard. Longer tasks need more steps, as expected.

By skill

Table 4 slices the best agent, GPT-4V with SoM, by skill. Tasks that need OCR, optical character recognition, meaning reading text inside a picture, are 17.1% of the benchmark. The agent succeeds 13.4% of the time on those, and 16.9% on tasks without OCR. Reading small print inside images looks like a bottleneck. In the appendix, going from captions to real pictures lifts GPT-4 on OCR tasks from 6.4% to 12.2%, because a captioner rarely writes out the text in a photo.

Tasks that need an exact image match, finding the very same picture rather than a similar one, are 8.7% of tasks. The agent does slightly better on them, 18.9% against 16.2%. The authors read this as a sign that exact matching is not the main bottleneck. Tasks with image inputs, 25.2% of the benchmark, are also easier for this agent: 19.0% against 14.9%. Once the model can see the input picture, those tasks become more tractable.

One contrast is worth noting. Gemini-Pro does worse on tasks with image inputs. The authors suspect it handles several interleaved images and text less well. Strong web agents will need that skill.

By prompt: the few-shot ablation

An ablation removes or changes one part to see what it was worth. The paper varies the number of in-context examples with the multimodal Gemini-Pro agent (GPT-4V was too costly). With 0 examples it succeeds 2.86% of the time, with 1 example 3.63%, and with 3 examples 6.04%. The jump from 1 to 3 is large. The authors read this as a hint that fine-tuning on web trajectories could help a lot.

A worked recount of Table 4

Turn Table 4 into counts, as in Chapter 6. OCR tasks are 17.1% of 910, about 156 tasks. At 13.4% the agent solves about 21 of them. The other 754 tasks are solved at 16.9%, about 127. The two groups add to about 148, close to the 149 total we found before; the gap is rounding. Without the OCR group the agent’s overall rate would be a little higher, so OCR costs it a handful of tasks, not hundreds.

Symptom, measurement and idea for a fix. The symptom is that the agent misreads small or long text in a picture. The measurement is the gap in Table 4: 13.4% with OCR against 16.9% without, and the lift in the appendix from 6.4% to 12.2% when pictures replace captions. The paper names OCR as a possible bottleneck. A fix to test, which the paper does not run, is to give the model a larger crop of the region that holds the text.

Work the few-shot numbers by hand. Going from 0 to 3 examples multiplies the rate by 6.04 / 2.86, about 2.1. Going from 1 to 3 adds 2.41 points, while going from 0 to 1 adds only 0.77. Two more worked examples buy more than the first one did. The examples teach the model the format and the habits of the task. That is why the authors expect training on real trajectories to help far more.

One more slice is worth a look. In the appendix, the paper plots success against trajectory length for GPT-4V with SoM. Most runs end before 10 steps, and the share of failures stays about the same at longer lengths. Longer runs are not rescued by their length. Chapter 8 returns to this.

On hard-vision tasks, GPT-4V with SoM scores 12.4% and text-only GPT-4 scores 4.8%. What does this tell you?

Chapter 8

How Agents Fail

Study the failure modes the authors found in the traces, each as a symptom, a measurement and a likely fix

A pilot learns more from the black box than from the smooth flights. The paper’s appendix reads many agent traces and names the repeated mistakes. They are small, human-sized mistakes. That is what makes them useful.

Giving up too early

Symptom. The agent plans a whole task correctly, then stops after one step. In shopping task 248 (“Order a 6 pack of the green chocolate bars. If the shipping is more than 7% of the total price, leave a 3 star review mentioning it, otherwise 5.”), the first step needed was a scroll, because the add-to-cart button was off screen. GPT-4V with SoM saw no button and gave up instead of scrolling. In task 175 an agent searched, did not see the product at once, and stopped.

Measurement. Figure 10 plots trajectory length. GPT-4V with SoM ends most tasks in fewer than 10 steps. But finishing early does not mean finishing correctly: the failure share stays roughly flat at longer lengths. So the agent assumes tasks are short, and that assumption is often wrong. The paper’s own comparison: hard-action tasks take people ten or more actions, while the agent averages 12.1 steps there.

Fix, as the authors suggest. Better tracking of past states and of what has been tried. A cheap instruction can also help, such as “do not stop until you have tried to scroll and to search again.” The paper does not test that, so treat it as an idea.

Undoing its own work

Symptom. The agent does a step right, then reverses it. On shopping task 54 (“Add the one [poster] with waves to my wish list.”) a GPT-4 agent added a poster whose caption said lighthouse. On the wish list page it removed the poster because the page did not mention waves. In shopping task 397 (“Buy the item on the page with a banana theme”), GPT-4V added the right item to the cart, began to check out, then stopped, saying the item did not fit, a few steps after putting it there.

Measurement. The agent’s only memory is the previous action (Chapter 5), and each step is a fresh judgement. A judgement that flips between steps shows up as a do-then-undo pair in the trace.

Loops

Symptom. The agent repeats a short cycle. In classifieds task 205 (compare two makeup palettes in two tabs) GPT-4V spent most steps switching tabs. In the phone-number task below, it repeated steps 6 and 7 until the maximum trajectory length.

Typing that does not replace

Shopping task 345 is the paper’s full case study. The task: “Prepend the country code of South Korea to the phone number of my account profile.” It spans two sites, because the agent must look up the code on Wikipedia. The multimodal GPT-4V agent made three kinds of mistake. It opened a blank tab and never used it, a useless action. It repeated actions. And it appended instead of replacing: its type action added text to a field without deleting what was there, so the field held the old number followed by the new one.

That last bug causes the loop. Each time the agent saw a wrong number, it typed the right one again. Each typing added to the field, and the number grew longer and still wrong.

Replay the typing bug

The agent wants the field to read +826505551212. Press Let the agent try. Switch on Clear the field first to see the fix.

Illustrative replay. The paper’s Figure 12 shows the agent typing the number repeatedly and looping between steps 6 and 7 until the trajectory cap. The starting number (6505551212) and the cap of 8 tries here are ours, chosen for the picture. Whether each type action appends or replaces depends on the harness; the paper reports that appending happened.

Easy tasks that fail

In shopping task 46 the instruction was “Add the red one in the second row of this page to my shopping cart.” The red cloth sat in the second row. Both vision agents clicked a blue tablecloth in the first row, could not find a red option, and gave up. No benchmarked agent solved it. The task is easy for a person. The slip is in grounding: the agent matched the wrong picture.

Find these failures in your own traces

You can detect each mode from the log of an agent run, with simple counts. Try these on any web agent you build.

  1. Early stops. For failed tasks, count how many ended before step 10, and ask whether the last observation showed the target. A high count points at giving up too soon.
  2. Do-then-undo. Look for a pair of actions that reverse each other, such as add-to-wishlist then remove-from-wishlist. Any such pair is a sign of a changing judgement.
  3. Repeats. Count identical consecutive actions with identical observations. Three in a row is a loop.
  4. Field drift. After every type, read the field back. If it is longer than the text you typed, the action appended.

These checks cost almost nothing, yet each points straight at a fix in the harness: a clear-field step, a longer memory, a rule about when to stop. That is the practical value of the paper’s failure tour.

An agent keeps typing the right phone number, but the field shows a longer and longer wrong number. What is the most direct cause the paper names?

Chapter 9

Field Guide

Keep the numbers, the checklist and the core code, and find where to read next

VisualWebArena asks a simple question: can an agent do the web tasks that a person does with their eyes? It answers with 910 tasks on three self-hosted sites, scored by what the agent leaves behind, not by how it got there. The best agent in the first experiments, GPT-4V with numbered boxes, finished 16.37%. People finished 88.7%. The gap shows where to work: grounding, reading text in images, memory of past steps, and persistence.

The numbers

WhatNumberWhy it matters
Benchmark size910 tasks, 314 templates (2.9 tasks each)Questions come from shapes with blanks
SitesClassifieds 65,955 listings; Reddit 31,464 posts; ShoppingSelf-hosted, so runs are repeatable
Image inputs25.2% of tasks (229)Interleaved image and text requests
Unachievable tasks46 tasks, 5.1%Tests whether the agent knows to stop
Difficulty cut pointseasy 3 or fewer actions; medium 4 to 9; hard 10 or moreLets small models be tested on the easy slice
People88.7% on 230 tasksThe ceiling agents are measured against
GPT-4 text only vs + captions7.25% vs 12.75%Part of the missing information is visual
GPT-4V screenshot vs + SoM15.05% vs 16.37%Boxes help most on dense pages
GPT-4o with SoM (later run)19.78%A better base model moves the score most
OCR tasks, GPT-4V + SoM13.4% vs 16.9% without OCRReading text in images is a bottleneck
Few-shot, Gemini-Pro multimodal2.86%, 3.63%, 6.04% for 0, 1, 3 examplesSuggests fine-tuning on trajectories could help

Words to keep

Checklist: build or judge a web agent

The core as code

This is a sketch of one episode, in the style of the paper’s SoM agent. llm, render_marks and evaluate stand for the model call, the mark-drawing script and the task’s reward function. The step cap is our choice for the sketch.

pythondef run_episode(env, task, llm, max_steps=30):
    obs = env.reset(task)                      # URL, tabs, focused page
    prev = "None"
    for t in range(max_steps):
        shot, elems = render_marks(env.page)   # shot: [2048, 1280, 3]; elems: "[id] [tag] [text]" lines
        user = [shot, f"OBSERVATION:\n{elems}\nURL: {obs.url}\nOBJECTIVE: {task.intent}\nPREVIOUS ACTION: {prev}"]
        reply = llm(system=SYSTEM_MESSAGE, examples=THREE_SHOTS, user=user, temperature=1.0, top_p=0.9)
        action = parse(reply.split("In summary, the next action I will perform is")[-1])   # text between ``` ```
        if action.name == "stop":
            return evaluate(task, env.state, action.answer)   # reward in {0, 1}
        obs = env.step(action)                 # deterministic transition
        prev = action.text
    return 0
javascript// sketch of the marking step, run inside the page before each screenshot
const els = [...document.querySelectorAll("a, button, input, select, textarea, img")];
els.forEach((el, id) => {
  const r = el.getBoundingClientRect();           // where it sits on screen
  drawBox(r, color(id)); drawTag(r, id, color(id));  // same colour for box and ID
});

Where it sits in the field

VisualWebArena extends WebArena (Zhou et al.) with visually grounded tasks. It sits beside benchmarks such as WebShop and MiniWoB++. Its SoM agent is built on Yang et al.’s Set-of-Marks prompting, and its captioner is BLIP-2. Contemporary work by Zheng et al. grounded actions in HTML elements, where this paper uses a JavaScript-made visual mark.

The authors list the limits: the agents are research prototypes, the scores are low, and the safety and bias questions of strong web agents are open. They do not call the benchmark an approved test for deployment.

Keep going

Credit: VisualWebArena: Evaluating Multimodal Agents on Realistic Visually Grounded Web Tasks by Jing Yu Koh, Robert Lo, Lawrence Jang, Vikram Duvvur, Ming Chong Lim, Po-Yu Huang, Graham Neubig, Shuyan Zhou, Ruslan Salakhutdinov and Daniel Fried (Carnegie Mellon University). All numbers come from the paper’s tables and appendix unless a device says it is illustrative.

The takeaway. A web agent can only click what it can tell apart. Give it the picture and a number on each thing, grade it by the state it leaves, and the remaining failures are clear enough to fix.

Now press Teach and explain one agent step from memory: what the agent sees, which action it picks, how the reward is decided, and where such an agent most often slips. Then go back to the agents at the top, switch between “Text only” and “+ Boxes”, and say why the number of finished tasks changes.

VisualWebArena
Read the paper · Back to Lecture 13, Multimodal Interaction · Back to Gleams