GO TO A SECTION

↑ ↓ to navigate · Enter to openExplore all sections →
FDEInterviews logo
arXiv preprint

Agent Workflow Memory

Web agents that turn successful runs into reusable, abstracted workflows and improve as they work: WebArena success from 23.5% to 35.5% with no human-written workflows. Check what is relative.

Breakdown by FDE Interviews · 11 min read · Updated

About the original · 2024
AUTHORS
Wang, Mao, Fried, Neubig
FROM
Carnegie Mellon University, MIT
PUBLISHED
Sep 2024 · arXiv preprint
CITED BY
400Semantic Scholar · Oct 2026
IN THIS BREAKDOWN · 10 SECTIONS

You can read 21% of this breakdown.

01

The paper in one minute

People who use a website often learn routines: how to search for a product, how to find an order, how to filter results. Web agents usually do not; they get a fixed prompt and solve each task as if it were the first. Zora Zhiruo Wang, Jiayuan Mao, Daniel Fried and Graham Neubig at CMU and MIT built Agent Workflow Memory (AWM), which lets an agent extract such routines from its own experience and use them on later tasks.

A workflow has a short description of the goal ("find a place by its name") and a series of steps, each with a description of the page state, the reasoning, and an executable action. Workflows are induced by prompting the model with past trajectories and asking for common sub-routines at a finer grain than whole tasks, with example-specific values abstracted into placeholders, so "dry cat food" becomes {product-name}. Induced workflows are added to the agent's prompt as memory, grouped per website.

AWM runs in two modes. Offline, when annotated training examples exist, it induces workflows from all of them first and gives every test task the same memory. Online, with no labels, it processes test tasks as a stream: after each task, an LLM evaluator judges whether the attempt succeeded, and if so, the trajectory is turned into workflows for the next task. Workflows compound: "find a place by its name" becomes a step inside "get the zip code of a place".

On WebArena, online AWM with GPT-4 solved 35.5% of 812 tasks, above BrowserGym's 23.5% (the best autonomous agent reported), and above SteP's 33.0%, which uses 14 workflows written by human experts. It also took fewer steps. On Mind2Web, AWM improved step-level success in cross-task, cross-website and cross-domain tests, most where the test domain differed from training.

THE IDEA, VISUALLY
ONLINE: LEARN WHILE SERVING THE STREAM Solve task with memory Judge LLM: success? Induce abstract steps Remember for next task repeat for every task on the website A WORKFLOW (NAMES FROM THE PAPER, STEPS ILLUSTRATIVE) ## find a place by its name [state] the map search box is visible [reason] I should search for {place-name} [action] fill(search_box, "{place-name}"); press Enter → later reused inside "get the zip code of a place" OFFLINE INSTEAD When annotated examples exist (Mind2Web training data), induce workflows from them up front and give the same memory to every test task. Online needs no labels, only the judge. Workflows are kept per website, so memory stays small and on-topic. The success judge decides what enters memory; a false 'success' becomes a misleading workflow. WEBARENA, GPT-4, 812 TASKS (TABLE 1) SteP, 14 human workflows 33.0 WebArena baseline 14.9 AutoEval 20.2 BrowserGym, HTML + tree 23.5 BrowserGym, tree only 15.0 AWM 35.5 steps per task: AutoEval 46.7 · BrowserGym tree 7.9 · AWM 5.9 CROSS-TEMPLATE SUBSET, 197 TASKS (TABLE 2) AWM 33.2 · SteP 32.1 · AutoEval 23.2 · BrowserGym tree 20.5 MIND2WEB STEP SUCCESS, GPT-4 (TABLE 4) cross-task 36.2 → 45.1 cross-website 30.1 → 33.9 cross-domain 18.6 → 35.5 Whole-task success on Mind2Web stayed at 0.7-4.8% for every method; the gains are per step.
Agent Workflow Memory turns trajectories judged successful into abstracted sub-routines and adds them to the agent's prompt for later tasks. On WebArena it beat the best autonomous agent and an approach using human-written workflows, and held up on tasks drawn from different templates.
Research notes: the problem, approach and results
35.5%

WebArena success with online AWM and GPT-4, against 15.0% for the same BrowserGym agent on accessibility trees

33.2%

on the 197-task cross-template subset, one task per template, so gains are not only template repeats

5.9

average steps per WebArena task, against 7.9 for the BrowserGym baseline and 46.7 for AutoEval

THE PROBLEM

Web agents solve each task from scratch. They repeat the same sub-tasks (searching, filtering, opening an order) with the same mistakes, and fixed few-shot examples do not adapt to new sites or tasks.

THE IDEA

Induce workflows: ask the model to extract common sub-routines from past trajectories, replace example-specific values with placeholders, and keep them in memory. Offline from training examples, or online from the agent's own runs that an LLM evaluator judges successful.

THE RESULT

With GPT-4, WebArena success rose to 35.5%, above BrowserGym (23.5%) and the human-workflow method SteP (33.0%), with fewer steps. On Mind2Web, step success rose on all splits, most across domains, though whole-task success stayed under 5%.

02

Why it matters to an FDE

Agents that operate a customer's admin consoles, CRMs or ticketing systems repeat the same sub-tasks all day. AWM shows a cheap way to make them learn those routines: no fine-tuning, just text in the prompt, induced from runs that worked.

Sub-routines, not whole tasks. The useful unit is "open the order by ID" or "filter tickets by assignee", reused across many requests. Whole-task examples transfer poorly and bias the agent toward the specific values in them.

The success judge is the gatekeeper. Online learning stores whatever the evaluator calls a success. A judge that accepts failures fills memory with misleading routines. Use real signals where you can: a confirmation page, a database change, an API response.

Keep memory per application. AWM keeps workflows per website, which keeps prompts small and relevant. The same applies to per-system memory in a customer's environment.

Expect UI changes to break workflows. Workflows encode page structure. When the application changes, stored routines go stale; plan for re-verification.

THE FULL BREAKDOWN

Understand the mechanism. Try it on a real problem.

Unlock this breakdown and 99 more papers.

Premium opens every paper in full, plus every answer, concept, course and guide on the site. One payment for six months of access.

6 months · One payment · No auto-renewal

Get Premium · ₹2,000 / $25
  • ◇1 architecture diagram
  • </>1 runnable code experiment
  • ▦2 results tables
  • ?5 interview questions with answers
  1. 03Key takeaways

    The workflow format, induction, online and offline modes, results, and misreadings to avoid

    Free account
  2. 04How it works

    Representation, the induction prompt, the online loop with its evaluator, and the benchmark setup

    Premium
  3. 05The numbers that matter

    Absolute and relative gains, the cross-template check, Mind2Web per split, and two inconsistencies

    Premium
  4. 06Try it yourself

    Online workflow memory on a WebArena-shaped stream: template repeats, a noisy judge, cross-template

    Premium
  5. 07Where it breaks

    The limits of induced workflows and of the evaluation

    Premium
  6. 08Using it on a deployment

    Running workflow memory for an agent on a customer's applications

    Premium
  7. 09Interview angles

    Five questions this paper prepares you for, with answer hints

    Premium
Back to the paper library →