WebCoach: Self-Evolving Web Agents with Cross-Session Memory Guidance

Genglin Liu, Shijie Geng, Sha Li, Hejie Cui, Sarah Zhang, Xin Liu, Tianyi Liu

TL;DR

WebCoach is a modular, plug-and-play framework that equips large language model (LLM) web agents with persistent, cross-session memory, allowing them to learn from past successes and failures without retraining. By pairing an external vector memory store with an LLM-based "coach," WebCoach boosts the success rates of open-source web agents on complex browsing tasks by up to 14.4%, making them highly competitive with proprietary models like GPT-4o.

What Problem Does This Paper Address?

While multimodal LLM agents excel at navigating websites, filling out forms, and executing online purchases, they suffer from a major flaw: cross-session amnesia. Every time an agent starts a new task, it starts completely from scratch. If it gets stuck in a login loop, triggers a CAPTCHA, or misinterprets a button on a specific website, it is doomed to repeat that exact same mistake in future sessions.

Existing methods attempt to fix this through reinforcement learning or fine-tuning, but these approaches are computationally expensive, rigid, and require retraining the base policy. The authors of WebCoach tackle this gap by asking: Can we give web agents a non-invasive, long-term memory layer so they can learn from their own history on the fly?

Methods

WebCoach introduces a model-agnostic architecture that wraps around any existing web agent (such as browser-use) via simple runtime hooks. It consists of three decoupled components:

  1. WebCondenser: A lightweight LLM ($\le$ 8B) that acts as a schema-normalizing filter. After each environment step, it condenses raw, low-level navigation logs (JSON traces of observations, actions, and rewards) into a concise natural language summary, generates a 1536-dimensional embedding, and flags whether the task succeeded or failed.
  2. External Memory Store (EMS): The long-term backbone of the framework. It indexes completed trajectories using FAISS with Hierarchical Navigable Small World (HNSW) graphs, enabling sub-10ms approximate nearest-neighbor retrieval even as the database scales to millions of episodes.
  3. Coach: An 8B LLM reasoning engine that operates at runtime. At each step, the Coach evaluates the current partial trajectory against the top-$K$ retrieved historical experiences. If it detects a high likelihood of failure (e.g., a dead end or a loop), it injects concise, actionable advice directly into the agent's prompt as a system message.
Overview of the WebCoach framework

To make large-scale benchmarking feasible, the authors also developed an Asynchronous Evaluation Pipeline using a Longest Processing Time first (LPT) scheduling heuristic, which dynamically batches tasks across parallel browser instances and slashes evaluation time by over 80%.

Datasets

The framework was evaluated on WebVoyager, a prominent end-to-end web agent benchmark consisting of 643 live browsing tasks spread across 15 real-world web domains (including Amazon, Apple, ArXiv, BBC News, Booking.com, and Google Flights). Evaluating on live sites ensures the agent is tested against real-world challenges like dynamic content and UI drift.

Key Insights and Ideas

  • Self-Experience Trumps Foreign Demonstrations: One of the paper's most compelling findings is that agents learn best from their own past trajectories (Dynamic EMS) rather than high-quality demonstrations borrowed from a stronger model like GPT-4o. When an agent grows its own memory store, it encodes decision patterns that naturally align with its own internal representation space and inductive biases.
  • The Cognitive Threshold: Memory guidance scales remarkably well with model size, but it exhibits a threshold effect. Larger models (like Skywork-38B and Qwen-32B) show massive performance leaps because they are already at the "reasoning frontier"—they just need a minor coaching hint to avoid repetitive loops. Conversely, smaller 7B models fail to benefit, suggesting they lack the grounding depth required to exploit cross-episode memory effectively.
  • Selective Intervention Prevents Distraction: The Coach is explicitly trained to remain silent unless an anomaly or a significantly faster workflow is recognized. This selective prompting prevents context-window bloat and keeps the agent focused.

Key Results

WebCoach consistently improves the performance of browser agents across different open-source backbones:

  • Skywork-r1v3-38B: Achieved the largest gain, with its task success rate jumping from 47.3% to 61.4% (a 14.4-point increase), bringing it within striking distance of the GPT-4o baseline (65.3%).
  • Qwen-VL-32B: Success rate increased from 49.5% to 57.1%.
  • Efficiency Gains: Crucially, these success rate improvements did not come from brute-force exploration; the average number of action steps per task either decreased or remained flat across the board.
Average Steps Comparison across different base models

Limitations and Future Work

The primary trade-off of WebCoach is latency. Introducing the Coach and WebCondenser adds an average runtime overhead of $\sim$150 seconds per task due to the extra LLM inference steps. However, the authors note that the retrieval step itself is highly optimized, averaging between 9.0 and 9.5 ms.

To address this overhead, the authors point to two promising future directions:

  1. Integrating the external memory directly into the agent's internal policy network to eliminate the multi-LLM dependency.
  2. Exploring reinforcement-learning-based optimization over long-term reward signals to further streamline the coaching process.

Summary updated

BibTeX
@inproceedings{liu2026webcoach,
  author = {Genglin Liu and Shijie Geng and Sha Li and Hejie Cui and Sarah Zhang and Xin Liu and Tianyi Liu},
  title = {{WebCoach: Self-Evolving Web Agents with Cross-Session Memory Guidance}},
  booktitle = {MemAgent @ ICLR},
  year = {2026},
  url = {https://openreview.net/forum?id=FDrGfjwQM5},
}
Figure