← Latest papers
🤖 AI

Online Skill Learning for Web Agents via State-Grounded Dynamic Retrieval

This paper proposes State-Grounded Dynamic Retrieval (SGDR), an online skill learning method that enhances web agents by enabling stepwise skill reuse through a mechanism that dynamically matches skills to both task goals and current webpage states, thereby outperforming static retrieval baselines on the WebArena benchmark.

Original authors: Jiaxi Li, Ke Deng, Yun Wang, Jingyuan Huang, Yucheng Shi, Qiaoyu Tan, Jin Lu, Ninghao Liu

Published 2026-06-04
📖 4 min read☕ Coffee break read

Original authors: Jiaxi Li, Ke Deng, Yun Wang, Jingyuan Huang, Yucheng Shi, Qiaoyu Tan, Jin Lu, Ninghao Liu

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are teaching a robot to navigate the internet to do things like book a flight, fill out a form, or find a specific post on a forum. This robot is a "web agent."

The problem is that the internet is messy and changes constantly. A robot might know how to start a task, but once it clicks a button and lands on a new page, the old instructions might not make sense anymore.

This paper introduces a new way to teach these robots, called SGDR (State-Grounded Dynamic Retrieval). Here is how it works, explained simply:

The Problem: The "One-and-Done" Instruction

Think of traditional methods like giving a robot a single, static map at the very beginning of a journey.

  • The Old Way: You tell the robot, "Go to the store and buy milk." The robot picks a "shopping skill" from its memory based on that sentence and sticks with it until the end.
  • The Flaw: If the robot walks into the store and the layout has changed, or if it gets stuck in the dairy aisle, that original map doesn't help. The robot is stuck because it can't update its strategy based on where it actually is right now. It's like trying to navigate a city using a map from 10 years ago while standing in a brand-new building.

The Solution: The "Smart GPS" Approach

The authors propose SGDR, which acts more like a smart GPS that updates your route every few seconds based on your current location and traffic.

Here are the three main tricks SGDR uses:

1. Breaking Tasks into "Chapters" (Sliding-Window Extraction)

Instead of saving a whole journey as one giant, rigid story, SGDR breaks successful journeys into small, reusable chapters.

  • Analogy: Imagine you are learning to bake a cake. Instead of memorizing the entire recipe as one giant block of text, you learn specific "moves": "how to crack an egg," "how to fold in flour," and "how to check if it's done."
  • How it works: When the robot successfully finishes a task, it looks back at what it did and chops it up into these small, reusable "moves" (sub-procedures). This allows it to grab just the "crack an egg" move later, even if it's in the middle of a different baking task.

2. The "Bilingual" Skill Card (Text-Code Representation)

Every "move" the robot learns is stored as a two-part card:

  • Part A (The Description): A simple sentence in plain English (e.g., "Click the login button"). This helps the robot find the right card.
  • Part B (The Code): The actual computer instructions to do the action.
  • Why it matters: This ensures the robot doesn't just read about what to do; it has the actual tool to do it immediately.

3. The "Context-Aware" Search (State-Grounded Dynamic Retrieval)

This is the most important part. Every time the robot takes a step, it doesn't just ask, "What is my goal?" It also asks, "Where am I right now?"

  • The Old Way: "I need to buy milk." -> Retrieves "Go to grocery store" skill. (Stops there).
  • The SGDR Way:
    • Step 1: "I need to buy milk." -> Retrieves "Go to grocery store."
    • Step 2: (Robot arrives at the store). "I am now at the entrance, and the door is locked." -> Retrieves "Unlock door" skill.
    • Step 3: (Robot is inside). "I am in the dairy aisle." -> Retrieves "Pick up milk" skill.

The robot constantly re-evaluates its "skill library" based on the current webpage it is looking at, not just the original goal.

The Results: Does it Work?

The researchers tested this on a realistic web simulation called WebArena (which includes shopping sites, admin panels, forums, etc.).

  • Better Success Rates: The robot using SGDR solved significantly more tasks than robots using the old "static map" methods.
    • With a powerful AI model (GPT-4.1), success rates jumped by about 10% compared to the best previous method.
    • With a smaller, more efficient model, it also saw a 10% improvement.
  • Faster Execution: The robot didn't just succeed more often; it took fewer steps to get there. Because it could grab the right "move" instantly, it didn't have to waste time guessing or trying the wrong actions.

In a Nutshell

The paper argues that for robots to master the web, they can't just rely on a plan made at the start. They need to be able to look at their current situation, find the specific "move" that fits that exact moment, and execute it. SGDR is the system that lets them do exactly that, turning a rigid, one-time plan into a flexible, step-by-step guide that adapts as the journey unfolds.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →