Back to Feed
Agents / Benchmarks & Evals

Improving Web Agents Through Task Synthesis

Original: SynWeaver: Website-Prior Task and Trajectory Co-Synthesis for Web Agents

Listen to the summary

Uses a voice available on your device

Audio options
On this page 5 sections
Related concepts 4 concepts

Key Takeaways

  • SynWeaver achieves a 27.06 success rate on WebVoyager, outperforming the strongest baseline by 4.64 points.
  • The method requires only 822 validated task-trajectory pairs to improve agent success rates.
  • On Qwen3-VL-8B-Instruct, the model reaches a 19.91% success rate, a 3.10 point improvement over the SynthAgent baseline.
  • For InternVL3-8B, the method attains a 14.16% success rate, beating the strongest baseline by 1.33 points.

Summary & Methodology Analysis

SynWeaver addresses the lack of website-specific supervision for web agents by constructing an automatic website map. This map captures functionally distinct page states and interactions, which the framework then uses to derive page-level and transition-level supervision. The method employs a reverse task synthesis strategy, where it extracts transition triplets from the website map and prompts a teacher model to infer high-level tasks. A stronger teacher model then performs joint refinement on the trajectory, using operations like update, delete, and reorder to ensure the task remains consistent with the observed state. Finally, the framework applies heuristic checks for termination effectiveness and trajectory validity, retaining only verified pairs for training the student model. This ensures the student model learns from high-quality, validated sequences, though it remains inherently bounded by the reasoning and interaction capabilities of the proprietary teacher models used during the synthesis phase. Performance results demonstrate significant improvements on the WebArena and WebVoyager benchmarks, showing that even a limited set of 822 pairs can outperform established baselines like SynthAgent. However, the reliance on automated exploration means the framework is less reliable when encountering sites with strong anti-bot mechanisms, such as CAPTCHA systems, aggressive rate limiting, or dynamic authentication pipelines. Additionally, the paper does not explore autonomous self-improving paradigms like online reinforcement learning, which would involve agents iteratively learning through interaction without fixed teacher supervision.

Interactive System Flowchart

Click diagram to expand and zoom

Illustrative Implementation

A short sketch of the paper's core idea, not the authors' own code.

# Illustrative sketch (not from the paper)
import random

# 1. Structured exploration → website map (states, actions)
def explore_website(start_url, max_steps=5):
    map_states = []
    for _ in range(max_steps):
        state = {"url": start_url, "elements": ["btn", "link"]}
        action = random.choice(["click_btn", "follow_link"])
        map_states.append((state, action))
        start_url = f"{start_url}/{action}"
    return map_states

# 2. Derive supervision (page‑level & transition‑level) from map
def derive_supervision(website_map):
    supervision = []
    for i in range(len(website_map)-1):
        src, act = website_map[i]
        dst, _ = website_map[i+1]
        supervision.append({"src": src, "action": act, "dst": dst})
    return supervision

# 3. Reverse task synthesis: infer high‑level task from a transition triplet
def synthesize_task(triplet, ui_model):
    # placeholder: ask model to generate a task description
    return f"Perform {triplet['action']} to reach target page"

# 4. Teacher interaction & refinement (simplified)
def teacher_refine(task, prefix, teacher):
    # pretend teacher returns refined task and prefix
    refined_task = task + " (refined)"
    refined_prefix = prefix + ["extra_step"]
    return refined_task, refined_prefix

# 5. Post‑verification heuristics (mock)
def verify_pair(task, trajectory):
    return random.choice([True, False])

# 6. Reconstruction loop (simplified)
def reconstruct(task, traj, strong_teacher):
    while not verify_pair(task, traj):
        task, traj = teacher_refine(task, traj, strong_teacher)
    return task, traj

# Example pipeline execution
website_map = explore_website("https://example.com")
supervision = derive_supervision(website_map)
ui_model = None  # placeholder UI‑aware model
teacher = None   # placeholder teacher model
strong_teacher = None
validated_pairs = []
for triplet in supervision:
    task = synthesize_task(triplet, ui_model)
    task, prefix = teacher_refine(task, [triplet['action']], teacher)
    if not verify_pair(task, prefix):
        task, prefix = reconstruct(task, prefix, strong_teacher)
    validated_pairs.append((task, prefix))

Cross-Examination & FAQs

A deeper dive clarifying mechanics, constraints, and baseline evaluations.

Q1. What is the primary goal of SynWeaver?

The goal is to improve the generalization of web agents to unseen websites by providing website-specific supervision.

Q2. How does SynWeaver improve agent performance?

It synthesizes validated task-trajectory pairs from automatically constructed website maps to train agents.

Q3. Does this method work across different models?

Yes, it has been demonstrated to improve performance on both Qwen3-VL-8B-Instruct and InternVL3-8B.

Q4. How many training pairs does SynWeaver use?

It uses 822 validated task-trajectory pairs synthesized from website maps.

Q5. What is the impact of SynWeaver on WebVoyager performance?

It reaches a 27.06 success rate on WebVoyager, which is 4.64 points higher than the strongest baseline.

Q6. How does the performance compare to SynthAgent?

On Qwen3-VL-8B-Instruct, it outperforms SynthAgent by 3.10 points, and on InternVL3-8B, it outperforms it by 1.33 points.

Q7. Are there limitations regarding website accessibility?

Yes, the method becomes less reliable on websites with strong anti-bot or human-verification mechanisms like CAPTCHAs, rate limiting, or dynamic authentication.

Q8. What determines the upper bound of the student model's performance?

The student model is inherently bounded by the reasoning and interaction capabilities of the proprietary teacher models used during the synthesis process.

Q9. Does SynWeaver include online reinforcement learning?

No, the current framework does not explore autonomous self-improving paradigms such as online reinforcement learning.

Flag an issue

What is wrong with this summary?

What is wrong?