Agent Workflow Memory

Z. Z. Wang, Jiayuan Mao, Daniel Fried, Graham Neubig
9/1/2024

No official code found. Best implementation: zorazrw/agent-workflow-memory (472 stars, Apache-2.0, last commit 2025-12-22).

Abstract

Despite the potential of language model-based agents to solve real-world tasks such as web navigation, current methods still struggle with long-horizon tasks with complex action trajectories. In contrast, humans can flexibly solve complex tasks by learning reusable task workflows from past experiences and using them to guide future actions. To build agents that can similarly benefit from this process, we introduce Agent Workflow Memory (AWM), a method for inducing commonly reused routines, i.e., workflows, and selectively providing workflows to the agent to guide subsequent generations. AWM flexibly applies to both offline and online scenarios, where agents induce workflows from training examples beforehand or from test queries on the fly. We experiment on two major web navigation benchmarks -- Mind2Web and WebArena -- that collectively cover 1000+ tasks from 200+ domains across travel, shopping, and social media, among others. AWM substantially improves the baseline results by 24.6% and 51.1% relative success rate on Mind2Web and WebArena while reducing the number of steps taken to solve WebArena tasks successfully. Furthermore, online AWM robustly generalizes in cross-task, website, and domain evaluations, surpassing baselines from 8.9 to 14.0 absolute points as train-test task distribution gaps widen.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

AWM: Agent Workflow Memory

47251PythonAug 28, 202410 months agoApache-2.0
agentgeneralizationweb-navigation

Similar Papers

Cite this paper

@article{wang2024agent,
  title  = {Agent Workflow Memory},
  author = {Z. Z. Wang and Jiayuan Mao and Daniel Fried and Graham Neubig},
  year   = {2024},
  eprint = {2409.07429},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2409.07429},
  journal = {ICML 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2409.07429.svg)](https://codeofpaper.com/paper/2409.07429)

Discussion