A real web page has over 1,000 elements, far too many to show a model. Mind2Web filters them first, then asks for one choice. Run 100 steps and see where it still fails.
Learn how a web agent turns a plain request into clicks and typing on a site it has never seen, and why even the best agent in the paper finishes only a few tasks in a hundred.
Pick a method, then switch the score from right element to whole task. Watch the grid of 100 steps empty out. Then we build, piece by piece, the data, the filter and the multiple-choice question behind it.
You need a rough idea of what a web page is made of (boxes inside boxes, labelled with text) and what a language model does (it reads text and writes text). We build the rest from zero.
Based on “Mind2Web: Towards a Generalist Agent for the Web” by Xiang Deng, Yu Gu, Boyuan Zheng, Shijie Chen, Samuel Stevens, Boshi Wang, Huan Sun and Yu Su (The Ohio State University), NeurIPS 2023 Datasets and Benchmarks. Read the paper on arXiv. This is a reading from MIT MMAI Lecture 13, Multimodal Interaction.
Every number is the paper’s Table 2 (macro averages over tasks). Classifier is DeBERTa-base; Generate and MindAct base use Flan-T5 base; XL is Flan-T5 XL. One lit cell stands for one point of a percentage, so a 55.1% score lights 55 cells.
Chapter 0
See why one plain request means different clicks on every site, and what the paper builds to cope with that
Ask a friend to find one-way flights from New York to Toronto. They open an airline site, type the two cities, pick a date and press search. It takes under a minute. Ask them again on a different airline, and the same four moves hide behind different boxes, with different labels, in different places.
Now give the same request to a program. The program has no eyes and no habit. It gets the page as text, a long file of tags. It must decide which tag is the “from” box. This chapter explains why that decision is the whole problem, and what the Mind2Web paper does about it.
A web agent is a program that reads a plain-language request and then operates a website for you, step by step, the way a person would. The request is the task. Each move is an action. An action has two parts: the element it acts on (a box, a button, a link) and the operation it performs (click, type some text, or choose an option from a menu).
Think of the page as a control panel and the agent as a robot arm. The arm must pick the right switch (the element) and then do the right thing to it (the operation). A mistake in either part wastes the step.
Two skills hide inside that. Planning means knowing the steps: type the origin, type the destination, pick a date, search. Grounding means finding the real element on this page that matches a step. Planning transfers from site to site. Grounding does not, and the device below shows why.
The plan is the same on every site. Choose a site, then drag the step. The teal outline marks the element a human would act on. Notice how its label, place and kind change.
Three made-up airline pages, drawn for this lesson. Each has nine elements; real pages in the paper average 1,135 elements before cleaning. The plan (type the origin, type the destination, pick the date, search) is the same on all three.
On site A the destination box says “To”. On site B it says “Going to”. On site C the search button has no words at all, only a small picture. A person copes without effort. A program that memorised site A is lost on site C.
The authors ask one question: how do we build a generalist agent, one that works on any website? They list three things such an agent needs. First, it must work on sites it has never seen, even in whole areas of the web it has never seen. Second, it must work on real websites, which are large, messy and change as you use them. Third, it must handle many kinds of interaction, not only search and follow-link.
They then look at earlier datasets and find that each one fails at least one need. Some use simulated sites: small fake pages built for the experiment. Some cover only a few real sites. Some give the agent step-by-step orders such as “type New York in the location field, click the search button”, which hands over the planning.
Table 1 of the paper puts numbers on this. MiniWoB++ has 100 simulated environments, pages with 28 elements on average, and tasks of 3.6 actions. WebShop has one domain and one shopping site with 12,000 products, and tasks of 11.3 actions. Mind2Web has 137 real websites in 31 domains, 2,350 tasks, about 1,135 elements per page, and 7.3 actions per task on average.
That 1,135 is the number to remember. A page with a thousand elements cannot go into a language model as is. It would be slow, costly and hard to read, even for a big model. Most of this lesson is about shrinking that page without losing the element you need.
The paper makes two things. The first is Mind2Web, a dataset. A person demonstrated each task on a real site. The recording keeps the request, the exact actions, and a saved copy of every page. Chapter 1 opens one record and Chapter 2 shows how it is used to test three levels of generalisation.
The second is MindAct, a first attempt at an agent, built with language models. It works in two stages. A small model filters the page down to about fifty promising elements. A large model then answers a multiple-choice question about a handful of them. The authors call the result “decent” and also say plainly that there is a lot of room to improve. The hero at the top shows what that means: the best open model picks the right element on 55 of 100 steps in the easiest split, but finishes only about 5 of 100 whole tasks.
Why do the two numbers differ so much? A task is a chain of about seven steps. One wrong step ends the task. Chapter 2 does that arithmetic.
Chapter 1
Open a single Mind2Web record, follow its ten actions, and see how people recorded it on real websites
Imagine you want to teach a new employee to use the web. You would not hand them a manual. You would sit beside them, give a request, and let them watch you do it once. You would also keep a photo of every screen you passed through.
Mind2Web is built the same way. Each record is one person doing one request on one real site, with a saved copy of every page they saw. Over 2,000 such records together make the dataset. Let us open one.
Every instance holds three things. The task description is the goal in plain language. The authors keep it high level on purpose. It says “Show me the reviews for the auto repair business closest to 10002”, and it never says which box to click.
The action sequence is the list of moves that finishes the task. Each move is a pair: a target element and an operation. Three operations exist. Click also covers hover and pressing Enter. Type carries the text typed. Select Option carries the menu choice. The last two need an extra value.
The webpage snapshots are the saved pages. They come in several forms so that different models can use them: an MHTML file with the raw HTML, a DOM snapshot (the page’s tree of elements with layout and style, plus a screenshot), a HAR file with the network traffic, and a trace of the whole interaction. The paper’s own agent uses only the HTML text.
At step t the agent gets three inputs: the task, the current page, and the actions already done. It must predict the next action. This is a prediction problem, one step at a time, with the human’s history as the starting point. The record below shows exactly what that means. Drag the step.
Rows above the teal row are the history the agent is given. The teal row is the action it must predict. Rows below are hidden from it. Drag the step, or press play.
The task and its ten actions are the paper’s Figure 2 (a business search). Element labels are shortened where the page text is long.
Look at step 4. The agent knows it typed “auto repair” and picked the category, then typed “10002” in the location box. It must now choose the button for that zip code. It does not yet know that a search button exists. Everything later is hidden.
Notice also that the history is written as short text lines: the element’s role in brackets, its label, an arrow, the operation. This is how the agent will later read its own past. The format matters because a language model sees only text.
The collection ran in four stages: website selection, task proposal, task demonstration and task verification.
Website selection. The authors start from five top-level domains (Travel, Shopping, Service, Entertainment, Information) split into 31 secondary domains. For each they pick three to five popular US sites, ranked by similarweb.com. The total is 137 websites.
Task proposal. Workers on Amazon Mechanical Turk (a site that pays people for small jobs) propose tasks for a site. To spark ideas, the authors asked ChatGPT for 50 seed tasks per site and showed each worker 10. Workers may not copy them. The tasks must be varied, need several rounds of interaction, and state a goal, not steps.
Task demonstration. A tool built on Playwright (a library that drives a real browser) records the worker. Each step has two parts. The worker clicks an element, but the tool blocks the click and only highlights the element. The worker then picks the operation in a side window, and the tool performs it. This keeps the log clean: one element, one operation, per step.
One operation deserves a note. Click (Fake) is recorded like a click but never run. It guards actions with side effects, such as posting a comment or booking an appointment, so the study does not disturb real users of the site. A later agent could use it to ask a person before doing something that cannot be undone.
Task verification. The authors check every record. They confirm the actions match the description, remove extra steps (such as closing an ad) and make sure start and end points are consistent. Of 2,411 tasks, they discard 61, leaving 2,350. In 390 records they rewrite the description to fit the actions, and in 187 they drop extra steps.
Those 2,350 tasks come from 137 sites in 31 domains. A task has 7.3 actions on average. A page has about 1,135 elements on average. Chapter 3 shows how the paper cleans and shrinks it.
One more design choice. The authors replay the saved pages offline instead of using live sites. Live sites change daily, and a test must be repeatable. The saved copy lets two researchers run the identical test a year apart. The price is paid in Chapter 7.
Chapter 2
Learn how the paper splits its tests by how new they are, and why a task score is so much lower than a step score
A student who has seen the exam questions before is not tested at all. A fair test holds back something new. The question is how new. Mind2Web answers with three tests, each hiding something different from training.
The word for this is generalisation: doing well on cases the model was not trained on. The paper measures it at three levels, from mild to severe.
Cross-Task. The authors set aside a random 20% of the data, whatever the domain or site. That gives 252 tasks from 69 websites. The model has seen these sites in training, with similar tasks. The test is the mildest: new task, familiar site.
Cross-Website. The authors pick 10 websites from each of the three top-level domains left after the Cross-Domain test takes two away, giving 177 tasks. The model never sees these sites in training. But it has seen other sites in the same domain, such as other airlines. The test asks: can you handle a new site in a familiar area?
Cross-Domain. The authors hold out two whole top-level domains, Information and Service. That is 912 tasks from 73 websites. The model has seen no site and no task from those areas. The test asks: can you handle an unfamiliar part of the web?
What is left is the training set: 1,009 tasks. The numbers add up: 912 + 177 + 252 + 1,009 = 2,350. Use the device to see which parts of the web each test hides.
Each column is one top-level domain; each square stands for a group of websites. Blue squares were in training. Teal squares are the test. Grey squares are not used for that test.
Schematic: four squares per domain, not the real site counts. The task counts (252, 177, 912 and 1,009 for training) and the rule for each split are the paper’s Section 4.1. Teal dots in Cross-Task mark held-out tasks on websites that training also covered.
Now the scores. At each step the agent is shown the true history, then asked for one action. The score compares it to the human’s. Four numbers follow.
Element Accuracy. Did it pick the right element? Several elements can have the same effect (a button and the text inside it), so the authors accept the nearest clickable parent and all visible children inside its box. They checked 100 such cases by hand to confirm the rule.
Operation F1. Did it pick the right operation, and for Type or Select, the right value? F1 compares the words of the predicted operation with the words of the true one. Let P be the share of predicted words that are right, and R the share of true words that were predicted. Then F1 mixes them.
True: TYPE auto repair. Predicted: TYPE auto repairs. Shared words: TYPE, auto (2). P = 2/3, R = 2/3, so F1 = 2 × (2/3) × (2/3) / (4/3) = 0.667
For a Click there is only one word, so F1 is the same as plain accuracy.
Step Success Rate. A step counts only if the element and the operation are both right. Success Rate (SR) is the whole task: it counts only if every step succeeded. The paper calls this stringent, and it is. All four are averaged per task first, then across tasks (a macro average).
Suppose each step succeeds with probability p and the steps are independent. A task of n steps then succeeds with probability pn. Take the best open model in Cross-Task: p = 0.52, and the average task has n = 7.3 steps. Then 0.527.3 is about 0.9%. The paper measures 5.2%, higher, because real steps are not independent. Easy tasks have many easy steps. Still, the shape holds: a good step score becomes a poor task score.
The curve shows the chance of still being on track after each step, if each step has the same chance of success. Drag both sliders, or press a preset from the paper.
Illustrative: it assumes every step has the same success chance and that steps are independent, which real tasks are not. The step rates 52.0% and 38.9% are Flan-T5 XL in Table 2; the measured task success there is 5.2% and 5.1%.
The authors read two things from the results. Every model does best in Cross-Task. On average the paper sees a gap of over 10 points of step success to the other two splits. New sites are a real obstacle. But Cross-Website and Cross-Domain look alike, and Figure 6 shows no clear split by domain.
Their reading: the hard part is the variety of site design and interaction logic, not the subject of the site. Tasks in different domains share common operations, and a pretrained language model may already know how to break a task into steps. What remains hard is grounding, as in Chapter 0.
One detail of the averaging helps you read the tables. Each score is first computed within a task, then averaged over tasks. This is the macro average. It gives a three-step task the same weight as a fifteen-step task, so a long task cannot drown the short ones. Figure 6 of the paper then plots step success for each website that has more than three test tasks, and the bars in the three splits look alike.
Chapter 3
Follow a page of 1,135 elements down to five, and see what each cut costs in lost answers
You are asked to find one switch in a building. If you are handed the blueprint of the whole building, with every pipe and every wire, you will spend your day reading. If you are handed one room, you find it in a minute. The risk is that someone picks the wrong room.
That is the situation with a web page. The agent needs one element. The page holds more than a thousand. This chapter is about picking the room without losing the switch.
HTML is the text that describes a page. It is made of elements, each wrapped in tags: a <button> is a button, an <a> is a link, an <input> is a box you type in. Elements sit inside other elements, so the whole page forms a tree. This tree is the DOM (document object model). An element may carry attributes, small labels such as a name or a hint, and visible text.
A language model reads text in pieces called tokens, roughly a short word each. It can read only so many at once, called its context window. Reading more tokens also costs more time and money. So the length of the page, in tokens, is the quantity to cut.
The raw pages average 1,135 elements. Many are empty wrappers, hidden pieces, or scripts. The authors apply simple rules and keep only elements that are visible and carry meaning, judged by their attributes, their text and their neighbours.
This cut brings the average from 1,135 to 580 elements. It also has a price, which the authors measure. In the training data, the true target is still in the kept set for 94.7% of steps. That number is a recall: of all the cases where the answer exists, the share the filter still holds. The other 5.3% are lost before any model looks.
580 elements are still too many to show a large model. The second cut uses a small model that scores every element for the current step (Chapter 4) and keeps the best 50. Its recall at 50 is 88.9% in Cross-Task, 85.3% in Cross-Website and 85.7% in Cross-Domain. Note what this means: on about one step in seven, the right element is already gone, and no later stage can bring it back.
That is the central trade of the whole design. A tighter filter makes the big model’s job easier and cheaper. A tighter filter also throws away more right answers. The recall is a ceiling on everything that follows.
A worked example shows how the ceilings stack. In Cross-Task, cleaning keeps the target on 94.7% of steps and the top 50 keeps it on 88.9%. If the two cuts acted one after the other on the same steps, at most 0.947 × 0.889, about 84%, of steps would reach stage two with the target still inside. This is only a rough bound, because the two numbers come from different data (training steps and test steps). But it shows why each cut must be gentle.
The authors do not hand the large model the 50 elements alone. They build a snippet of the page that holds only the candidates and their neighbours, keeping enough surroundings to tell a “Search” button in a header from one in a form. Then they split the 50 into groups of at most five and ask one question per group. Chapter 5 shows how.
Here is how one element is written for the model, from the paper’s Figure 5. The tag, a short meta note of its text and role, and an id the model can name:
candidate<select id=1 meta="Size; Select a Size">
<button id=2 meta="button; tab"> Description </button>
<a id=3 meta="Shop Feather & Down Pillow">
A short line per element, rather than the full markup, keeps the question small. The funnel below shows how small. Move the first slider to apply the cuts one at a time. The second slider sets how many tokens one element costs, which is a guess you can change.
Bars show how many elements are left, on a log scale. The dashed line is a model’s reading limit. Drag the first slider to apply the cuts.
Element counts and recalls are the paper’s (1,135 and 580 from Section 4.2, 94.7%, and Recall@50 of 85.3% to 88.9% from Section 4.3). Tokens per element and the 4,096-token window are illustrative guesses, not the paper’s. The recall after the final cut is not reported, so the device does not claim one.
Set the cost to 15 tokens. The raw page is 17,025 tokens, far over a 4,096-token window. After cut one it is 8,700, still over. After cut two it is 750, and after cut three, 75. Only the last two fit with room to spare for the task text and the history.
Chapter 4
Build the filter: score each element against the task, train it with a loss you can compute by hand, keep the best fifty
You walk into a library and ask for a book on bird songs. The librarian does not read every book. They glance at each spine against your request, set aside the likely ones, and hand you a short pile. A quick glance is cheap, so it can be done to every spine.
Stage one of MindAct is that glance. It is a small model that looks at each element on the page, one at a time, together with the task, and gives it a score. The 50 best scores go on to stage two.
The task query is a single string: the task description followed by the actions done so far. The candidate is one element, written as text: its tag, its visible text, its salient attributes, and the same for its parent and child elements. The parent and child text matters. A bare “Search” button means little. A button inside a flight form means a flight search.
Each pair of query and candidate is fed together into a model. This design is called a cross-encoder: the model reads both texts in one pass, so every word of the task can interact with every word of the element. The alternative, embedding the two separately and comparing them, is faster but sees less. Because a page has hundreds of elements, the authors want a small model, so they pick DeBERTa-v3-base, with 86 million parameters (a parameter is one learned number). A model with billions would be too slow to run 580 times per step.
For each pair the model produces one raw score, the logit z. A larger z means a better match. To turn a score into a probability, pass it through the sigmoid, which squeezes any number into the range 0 to 1:
At inference time the authors score every element and sort by logit. Sorting by z or by s gives the same order, because the sigmoid never reverses order. They keep the top k = 50.
Training needs examples of good and bad. The recorded target element is the positive: the label y = 1. The authors pick other elements from the same page at random as negatives: y = 0. (Elements that would have the same effect as the target count as positive too, as Chapter 2 explained.)
The loss is binary cross-entropy. It punishes a confident wrong answer far more than an unsure one:
Positive with z = 2: s = 0.881, so L = −ln 0.881 = 0.127. Negative with z = 2: 1 − s = 0.119, so L = −ln 0.119 = 2.13. Negative with z = −3: s = 0.047, so L = 0.049
The same score, z = 2, is nearly free when the label is 1 and costly when the label is 0. The loss teaches the model to give high scores to targets and low scores to the rest. The paper trains for 5 epochs (passes over the data) with batch size 32 and learning rate 3e-5.
The data flow, then, has these shapes. For one step: 580 pairs go in, one per element. Each pair is one token sequence, the query then the candidate. 580 logits come out, one per element. A sort keeps the top 50 indices.
The device below uses a toy page of 12 elements for the paper’s example task. The scores are made up by hand for the lesson, but the sigmoid, the loss and the ranking are computed live. Pick a step. The previous actions change the scores: an element already used drops. Then change k.
Task: “Check for pickup restaurant available in Boston, NY on March 18, 5pm with just one guest”. Bars are the match probability. Purple bars are kept. The teal outline is the true target.
Toy page of 12 elements and hand-set logits, made up for this lesson (the paper’s trained DeBERTa produces its own). The sigmoid, the loss for the target as a positive example, and the ranking are computed live. The task and its steps follow the paper’s Figure 3.
At step 3 with k = 3, the target falls just outside the pile. This is the failure mode in miniature. The symptom is a right answer never shown to the large model. The measurement is recall at k: the paper’s 85 to 89% at k = 50. The fix is a bigger k, which costs more calls in stage two, or a better ranker.
The paper also tests the ranker on its own as an element picker (the “classification” row in the hero). Its top-1 pick is right 26.8%, 21.6% and 24.5% of the time. A model good at keeping the right element in a pile of 50 is not good at naming it. That gap is why stage two exists.
Chapter 5
Turn the next click into a multiple-choice question, ask it in rounds of five, and learn why that beats writing the answer
Two exam questions test the same fact. One says: “Write the name of the capital of France.” The other says: “Which is the capital: A. Lyon, B. Paris, C. Nice?” The second is easier to get right. The answer is on the page, and you only need to recognise it.
The authors use this same idea, which they take from earlier work titled “Don’t generate, discriminate”. A model is better at recognising the right element among a few than at writing one from nothing. Stage two builds the question.
For each group of candidates, the model gets a text prompt. It holds the page snippet, the task, the previous actions, and a lettered list. Option A is always None of the above. Here is the shape, shortened from the paper’s Table 8:
promptBased on the HTML webpage above, try to complete the following task: Task: Search for queen-size pillow protectors ... add two to the cart. Previous actions: [menuitem] category pillows -> CLICK [span] Pillow Protector -> CLICK What should be the next action? Please select from the following choices (If the correct action is not in the page above, please select A. 'None of the above'): A. None of the above B. <form id=0> <div meta="navigation; sitelinks"> ... C. <select id=1 meta="Size; Select a Size"> D. <button id=2 meta="button; tab"> Description </button> answerAnswer: C. Action: SELECT Value: Queen
The answer has two jobs in one string. The letter picks the element. Then the model writes the operation, and a value if the operation needs one. So the element is a choice, and the operation is generated.
Why a None option? A group of five may not contain the target. Without an exit, the model must pick something wrong. With it, the group can say “not here”. The paper also notes that tasks need several pages, so on many pages the right move really is not available yet.
For the open model Flan-T5, the authors fine-tune on the training tasks. They shuffle the elements of each page and cut them into groups of five. For each group, the target string is built from the human’s action: the letter of the true element and its operation, or “A” if the group lacks it. The loss is the ordinary language-model loss: predict the target string one token at a time, left to right.
The generation baseline of Chapter 6 trains the same Flan-T5 on a harder target. It must write out the full element, tag and attributes, in place of one letter. One slip in any character makes the element wrong. A letter is a much smaller target, and the options are on the page for the model to compare. That is the practical reason the multiple-choice form is easier to learn from 1,009 tasks.
The settings are batch size 32, 5 epochs and learning rate 5e-5. Flan-T5 base trains on one A6000 GPU. The large and XL versions use four A100 GPUs. For GPT-3.5 and GPT-4 there is no training. They get three example questions in the prompt (in-context learning) and run at temperature 0, which means they always take the most likely answer.
At test time there are up to 50 candidates and the model sees five at a time. The loop is:
Count the calls for 50 candidates. Round 1 has 10 groups, so 10 calls. Each group keeps at most one, so at most 10 survive. Suppose 3 survive. Round 2 is one group of 3: one call. It keeps one element and the loop stops. That is 11 calls. The worst case is 10, then 2 groups, then 1 call: 13 calls. A single step of the agent costs about a dozen model calls.
Try it. You set the number of candidates and two habits of the model: how often it spots the target, and how often it grabs a wrong element when the target is absent.
Each box is one question with up to five options. The teal ring is the true target. A warm fill is the option the model chose. Press Run once to watch one tournament, or Run 500 for the average.
Toy model of the paper’s loop (Section 3.2): groups of five, one pick per group, regroup the picks, stop at one or when every group says None. The two habit sliders are made up for this lesson, and the target is assumed to be among the candidates. Runs are seeded, so they repeat.
Slide “Grabs a wrong one” up and the number of calls rises, as extra wrong picks need extra rounds. Slide “Spots the target” down and the agent fails by saying None to the group that held the answer.
The symptom was GPT-3.5 scoring only about 20% element accuracy, no better than a poor baseline. The measurement: the authors found that it often chose None, claiming the task could not be done on the page. They call this one possible cause. That is often fair, since tasks span many pages. The contrast: the Flan-T5 models, tuned on 1,009 tasks, score 43.6 to 55.1 in Cross-Task. The paper does not test whether training cures the None habit.
Chapter 6
Compare seven methods on four scores and three splits, and learn which claims the table supports and which it does not
A results table is a story told in numbers. You can read it badly by looking only at the bold entry. You can read it well by asking, for each row, what was changed and what stayed fixed. Table 2 has seven rows and twelve columns. We read it in four steps.
The first baseline reuses the stage-one ranker as the picker. DeBERTa is trained to score elements, so its top-1 element is its answer. It gets element accuracy 26.8, 21.6 and 24.5 in the three splits. It cannot name an operation, so it has no other scores.
The second baseline asks Flan-T5 base to write the target element directly from the page snippet. This is the generation approach MindAct avoids. It gets 20.2, 13.9 and 14.2 on element accuracy, which is worse than the classifier although Flan-T5 base (220 million parameters) is larger than DeBERTa base (86 million). Its task success is 0.0, 0.0 and 0.4.
Keep the model fixed and change only the method. Flan-T5 base, writing the element: 20.2 in Cross-Task. Flan-T5 base inside MindAct, choosing from a list: 43.6. That is 43.6 / 20.2, or 2.2 times better. In Cross-Website it is 32.1 / 13.9, or 2.3 times. The gain comes from the method, not from a bigger model.
Now change only the size. Step success rate, base then large then XL:
| Flan-T5 size | Cross-Task | Cross-Website | Cross-Domain |
|---|---|---|---|
| Base | 41.0 | 29.5 | 31.6 |
| Large | 50.3 | 35.3 | 37.3 |
| XL | 52.0 | 38.9 | 39.6 |
Size helps every time, with smaller gains from large to XL. The best open model reaches 52.0, 38.9 and 39.6. Yet look at the last score, whole tasks: 5.2, 5.1 and 2.9. The paper’s own words: the overall task success rate “remains low for all models”, because the agent often makes at least one error.
GPT-3.5 and GPT-4 use the same multiple-choice format with three examples in the prompt and no fine-tuning. GPT-3.5 gets element accuracy of about 20 (20.3, 19.3, 21.6). The authors trace this to its habit of answering None. GPT-4 gets 41.6, 35.8 and 37.1. In Cross-Website and Cross-Domain that is close to the tuned Flan-T5 XL (42.0 and 42.1).
Two cautions apply. First, this is not a fair race: the Flan-T5 models saw 1,009 training tasks and the GPT models saw three. Second, the GPT-4 row is a cheaper test. Because of budget, the authors ran it on 50 tasks per split and used the top 10 candidates, not 50. Table 7 re-scores the other methods on the same 50 tasks. The paper says the pattern across methods holds, but the numbers shift: XL goes from 52.0 on the full test to 47.9 on the subset in Cross-Task.
The Operation F1 column shows a quieter result. The tuned models score 65 to 77. GPT-3.5 and GPT-4 score 46 to 61. Tuning on the data teaches the output format and the typical values, which three examples do not.
The device holds the whole table. Pick a score and a split and the bars reorder in place. Compare the rows, and note which one leads on each score.
When you read the bars, check the unit first. Every number is a percentage of steps, or for the last score, of tasks. Then check the denominator: the full test split for most rows, and 50 tasks for GPT-4. A difference of one or two points between neighbouring rows is small next to the shuffle noise of about one point reported at the end of this chapter.
Choose a score and a split. The green bar is the best method for that choice. A grey row has no score, because the method cannot predict an operation.
All values are the paper’s Table 2. GPT-4 was run on 50 tasks per split with the top 10 candidates (footnote of Table 2), so its row is not directly comparable to the rest.
Try Task success in Cross-Website. The best value is 5.1, from the XL model, and every other row is below 2.1. Now try Element accuracy: the same XL row leads with 42.0, and GPT-4 trails at 35.8. The ranking is not the same in every cell, so claim only what a column supports.
Because elements are shuffled into groups, a different shuffle could give a different score. The authors ran five seeds and report the mean and standard deviation. For Flan-T5 XL in Cross-Task, step success is 51.9 ± 0.8. All standard deviations are below 1 point, so the group choice is not driving the results.
Chapter 7
See what the offline test can and cannot say, and read the limits the authors list for their own work
Imagine you grade a driving student by showing photos of a road and asking, at each photo, “what do you do next?” You never let them drive. The method is cheap and repeatable. It also has a blind spot: a safe move that the examiner did not photograph looks like a mistake. Mind2Web is graded this way, and this chapter looks at that blind spot and at the other limits.
Chapter 1 said the pages are saved. The test shows the agent a saved page and the human’s earlier actions, and asks for the next action. That is a cached offline environment: no live website is touched. The benefit is that the test is identical for every researcher, and it works on large real sites without risk.
The cost: the cache holds only the pages the human visited. If an agent takes a different but valid route to the goal, the next page was never saved, and the test cannot continue. The paper says so directly: the task fails at once if an action was not cached, which can give false negatives, since many tasks have several valid paths.
The authors reduce the problem in two ways. They treat equivalent elements on the same page as correct (Chapter 2). And they score each step on its own, giving the agent the human’s history every time, so it never leaves the cached path. They also saved the full network traffic, so future work can replay and explore a little beyond it. Use the device to see the difference between the two scoring modes.
Solid boxes are pages in the cache. The dashed box is a real page the human never visited. Choose the agent’s first click and how it is scored.
A toy site of five pages with three steps (Search, open the business, open the reviews), made up for this lesson. The step-wise rule is the paper’s: every step is scored alone, given the human’s history. A free run is what a live agent would do, and the paper leaves it to future work.
In step-wise mode, the “Categories” click is scored wrong on step 1, since it is not the element the human used. The next two steps are then scored from the human’s own pages. In a free run the agent would land on a page that is not saved, and the test would stop. Either way the false negative is real, and it is one reason the task scores in Table 2 may sit a little below what a live agent would earn.
Some actions change the world: posting a comment, booking an appointment, paying. If annotators did these on real sites they would disturb real users. So the tool has Click (Fake), which records the click but never runs it.
The authors point out the value for later agents: when a model predicts such a click, it can stop and ask the person first. They list further risks: managing financial actions, keeping the user in control and making the agent’s choices clear. They also warn that a capable agent could get past CAPTCHAs or help spread false information, so security work must keep pace.
Narrow data. The sites are mostly English and used in the US. All annotators came from Mechanical Turk, which may favour people good at the web. The tasks show only a part of what people do online. The pay was designed around an estimated $10.10 per hour, and $0.80 for each approved task.
Clean on purpose. Pop-ups and CAPTCHAs were removed from the recordings so the labels stay unambiguous. Real sites have both. The authors note this as a real part of the dynamic web that systems must learn to handle.
Text only. MindAct reads HTML text. The saved pages include the screenshots, but the method does not use them. Some cues are only visible, so a model that sees the page could do better.
Pages read alone. Each page is encoded alone at each step. The agent does not model what changed after an action, such as a menu opening after a click. That change is a useful signal for finishing a task.
One goal, said once. The user states the task up front. Real users change their mind, or the agent should ask a question. A conversation is a natural extension.
The filter ceiling. From Chapter 3: recall at 50 of 85 to 89% caps what stage two can reach.
Three directions: use the multimodal information (the screenshots), learn by reinforcement from feedback on real websites, and train smaller models specialised for the web, since GPT-4 is costly. Lecture 13 of the MMAI course places Mind2Web among web and GUI agent work and the benchmarks that followed it; see that lesson.
Chapter 8
Keep the numbers, the terms and the core code of the paper on one page, and check what you can now reproduce
Here is the whole paper in a paragraph. Mind2Web is a dataset of 2,350 tasks on 137 real websites in 31 domains. People demonstrated each task, and the dataset keeps the request, the actions (an element plus an operation) and saved pages. It tests agents at three levels of novelty: new task, new website, new domain. MindAct is a first agent for it. A small DeBERTa ranker scores every cleaned element against the task and history, and keeps the top 50. A large model then answers multiple-choice questions of five options each, with a None option, in rounds, and writes the operation. Tuned Flan-T5 models reach 52.0% step success in the easiest split and about 39% on new sites and domains, but whole tasks succeed only 1 to 7% of the time. The authors name that gap as the open problem.
| What | Number | Why it matters |
|---|---|---|
| Dataset size | 2,350 tasks, 137 sites, 31 domains (from 2,411; 61 discarded) | Breadth beyond a few test sites |
| Task length | 7.3 actions on average | Errors compound over a chain |
| Page size | 1,135 elements, cleaned to 580 (94.7% target recall) | Too long for a model, so cut first |
| Filter recall at 50 | 88.9 / 85.3 / 85.7% (Task / Website / Domain) | A ceiling for stage two |
| Split sizes | 252 / 177 / 912 test tasks; 1,009 for training | Three levels of novelty |
| Ranker and chooser | DeBERTa-v3-base (86M); Flan-T5 base (220M), large, XL | A small model sorts, a larger one decides |
| Generate vs choose, same model | 20.2 vs 43.6 element accuracy (Flan-T5 base, Cross-Task) | The method gives the gain |
| Best step success (XL) | 52.0 / 38.9 / 39.6% | New sites cost over 10 points |
| Task success | at most 7.1% (large, Cross-Task) | One slip fails a task |
| GPT-4, 3 examples, 50 tasks, top 10 | 41.6 / 35.8 / 37.1 element accuracy | Close to tuned XL, at high cost |
| Zero-shot Flan-T5 XL | 10.8 / 7.8 / 11.7 against 52.0 / 38.9 / 39.6 tuned | Tuning on web data is needed (Table 6 compares step-level scores) |
| Shuffle noise | standard deviation under 1 point over 5 seeds | Grouping is not driving the scores |
| Term | Plain meaning |
|---|---|
| Element, operation | What an action touches, and what it does (Click, Type, Select Option). |
| Grounding | Matching a step of the plan to one real element on this page. |
| Cross-encoder | A model that reads the query and a candidate together and returns one score. |
| Recall at k | The share of cases where the right answer is inside the top k. |
| Step SR, SR | A step is right if element and operation are right; a task is right if every step is. |
| None of the above | Option A in every question, so a group without the target can say so. |
| Click (Fake) | A recorded click that is never run, to guard actions with side effects. |
One step of MindAct in a sketch. clean, describe, prompt, ranker and llm stand for the parts described in Chapters 3 to 5.
pythondef mindact_step(task, history, page, ranker, llm, k=50): elems = clean(page) # ~1,135 -> ~580 elements (Ch 3) query = task + " | " + " ; ".join(history) # task + previous actions (Ch 4) logits = ranker.score([(query, describe(e)) for e in elems]) # one logit per element pool = [e for _, e in sorted(zip(logits, elems), key=lambda p: -p[0])[:k]] # top 50 chosen = {} while True: # rounds of five (Ch 5) random.shuffle(pool); kept = [] for i in range(0, len(pool), 5): group = pool[i:i+5] letter, op, value = llm(prompt(page, task, history, group)) # "A" = None of the above if letter != "A": e = group[ord(letter) - ord("B")] kept.append(e); chosen[id(e)] = (op, value) if not kept: return None # every group said None: the step fails pool = kept if len(pool) == 1: return pool[0], *chosen[id(pool[0])] # element, operation, value
The ranker trains with binary cross-entropy on one positive and sampled negatives per page (batch 32, 5 epochs, learning rate 3e-5). The chooser trains on lettered questions with a left-to-right language-model loss (batch 32, 5 epochs, learning rate 5e-5).
Tick what you could explain to someone else without looking back.
Your ticks stay on this page only. They are a prompt to reread a chapter, not a score.
Mind2Web is the data-and-baseline paper for text-only web agents. The MMAI course reads it in Lecture 13, Multimodal Interaction, next to benchmarks that run agents live and methods that read screenshots. Its two big ideas travel well: cut the context before you ask the big model, and turn a hard generation into a short choice. For the ReAct loop that interleaves thinking and acting, see the ReAct paper lesson. For agents that operate whole computers, see OSWorld and ScreenSpot-Pro.
Credit: Xiang Deng, Yu Gu, Boyuan Zheng, Shijie Chen, Samuel Stevens, Boshi Wang, Huan Sun and Yu Su, The Ohio State University. “Mind2Web: Towards a Generalist Agent for the Web”, NeurIPS 2023 Datasets and Benchmarks Track, arXiv 2306.06070. Press Present or Teach and explain one MindAct step out loud, from memory. Then go back to the grid of 100 steps and say why the whole-task row is so empty.