Research
WebClipper: Efficient Evolution of Web Agents with Graph-based Trajectory Pruning
Overview Research area: Web agents / Deep Research systems, with a focus on inference-time and training-time efficiency (trajectory pruning for LLM agents). Technical level: Advanced — assumes familia
- arXiv
- 2602.12852
- Published
- 2026-02-13
- Authors
- Junjie Wang, Zequn Xie, Dan Yang, Jie Feng, Yue Shen, Duolin Sun, Meixiu Long, Yihan Jiao, Zhehao Tan, Jian Wang, Peng Wei, Jinjie Gu
AI summary
Overview
- Research area: Web agents / Deep Research systems, with a focus on inference-time and training-time efficiency (trajectory pruning for LLM agents).
- Technical level: Advanced — assumes familiarity with agentic tool-use loops (ReAct), SFT, directed graphs / shortest-path algorithms, and perplexity-based selection.
- Scope in one sentence: The paper introduces WebClipper, a framework that models a web agent's raw tool-call trajectory as a state graph, extracts an approximate minimal necessary DAG (MNDAG) to remove redundant steps, rewrites the remaining thoughts for coherence, and fine-tunes the existing agent on the pruned data to make it both more efficient and no less accurate.
What This Paper Is About
State-of-the-art open-source web agents are trained and evaluated almost entirely on final answer accuracy, so they tend to spend very long, expensive tool-call trajectories that contain cyclic reasoning loops and branches that never contribute to the answer. The authors' goal is to avoid building a new agent from scratch and instead evolve an existing, high-performing but inefficient web agent into a more efficient one by pruning the redundant parts of its own recorded trajectories and continuing training on the refined data. They also propose a single metric, the F-AE Score, for judging accuracy and tool-call efficiency together rather than separately.
Key Contributions
- WebClipper, a pruning framework for existing Deep Research–style web agents that transforms raw trajectories into state graphs, mines an approximate minimal necessary DAG (MNDAG) from the initial query node to the final answer node, and removes action nodes not on that DAG.
- Coherence-aware thought rewriting, combining context-aware selective rewriting with perplexity-based selection (three candidate rewrites, lowest perplexity chosen by the base model itself) so that pruned trajectories remain usable ReAct-style training data.
- Two agent evolution paradigms — efficiency-oriented evolution (fine-tuning only on pruned trajectories) and hybrid evolution (training on a mix of pruned and unpruned trajectories of similar difficulty, with
0 < PR(q) <= 0.5). - The F-AE Score, a harmonic-mean metric between accuracy and a normalized efficiency term
E = 1 - Rounds / Max_Rounds(withMax_Rounds = 100in the experiments), designed so that neither extreme accuracy with huge tool usage nor short tool usage with poor accuracy scores well.
Main Findings
- Efficiency gains on average: Compared with the Tongyi-DeepResearch baseline, WebClipper(Eff) reduces token usage by 19.4% and tool-call rounds by 21% on average across all benchmarks, while maintaining comparable or even superior accuracy. The abstract states the framework reduces tool-call rounds by about 20% while improving accuracy.
- Hybrid variant improves accuracy: WebClipper(Hybrid) achieves the best accuracy among all open-source models in the comparison, with an average improvement of 4.8% over the base model, while also reducing tool-call rounds by 7%.
- Selected benchmark numbers (base Tongyi-DeepResearch → WebClipper(Eff) / WebClipper(Hybrid)):
- xbench-deepsearch: Acc 0.713 → 0.713 / 0.733; F-AE 0.779 → 0.792 / 0.797; Rounds 14.26 → 10.81 / 12.57; Token 6918 → 5931 / 6205.
- Browsecomp: Acc 0.410 → 0.427 / 0.467; F-AE 0.385 → 0.431 / 0.428; Rounds 63.70 → 56.50 / 60.42; Token 12014 → 10599 / 11507.
- GAIA: Acc 0.682 → 0.684 / 0.695; F-AE 0.733 → 0.760 / 0.744; Rounds 20.56 → 14.44 / 19.92; Token 7378 → 4756 / 6635.
- HLE: Acc 0.358 → 0.353 / 0.361; F-AE 0.487 → 0.492 / 0.495; Rounds 23.92 → 18.60 / 21.07; Token 13664 → 11458 / 13532.
- Prompt-based pruning is insufficient: Prompt Control reaches Acc 0.676 with 12.50 rounds on xbench-deepsearch (vs. Tongyi-DeepResearch at 0.713 / 14.26), i.e., only a marginal tool-call reduction with noticeable accuracy degradation.
- Coarse pruning hurts badly: Coarse Prune drops xbench-deepsearch accuracy to 0.603 with 8.85 rounds and Browsecomp to 0.220 with 37.10 rounds, which the authors attribute to the absence of fine-grained, structured analysis.
- Resource-constrained behavior: The tool-call distribution of WebClipper(Eff) is concentrated in lower-round buckets than the baseline, and its accuracy curve converges much earlier, indicating better performance in low-round scenarios.
- F-AE behaves as intended: Kimi-K2-Instruct-0905 uses shorter rounds (5.98 on xbench-deepsearch) but scores low F-AE (0.686) due to inferior accuracy; Tongyi-DeepResearch has accuracy close to WebClipper(Eff) but longer rounds and lower F-AE.
- Ablations: Removing graph-based pruning (w/o GP), removing PPL-based selection (w/o PPL-S), or replacing context-aware selective rewriting with unconditional rewriting (w/o CSR) all degrade performance; w/o CSR is described as leading to catastrophic collapse.
- Comparison with unpruned self-evolution: "Unpruned-Distill" (SFT on unpruned trajectories with
0 < PR(q) <= 0.5) improves accuracy over the base model but increases tool-call rounds — e.g., on xbench-deepsearch it reaches Acc 0.746 with 17.13 rounds versus WebClipper(Eff)'s 0.713 with 10.81 rounds. - Dataset-specific effect on GAIA: Tool-call rounds are reduced by about 30% on GAIA, which the authors attribute to roughly 15% of its questions being brain teasers or logical puzzles that rely on intrinsic reasoning rather than long-horizon tool use.
Methodology in Plain English
- Collect and filter trajectories. The authors start from a pre-existing web agent (Tongyi-DeepResearch, 30B-A3B) running a ReAct-style observation–think–action loop. They distill trajectories over QA pairs drawn from WebShaper, WebDancer, WebExplorer, TaskCraft, and Voyager, sample K trajectories per query, and keep only queries whose pass rate satisfies
0 < PR(q) <= 0.5— hard enough to be informative but not impossible. - Turn each trajectory into a state graph. An LLM extractor summarizes each thought–action pair into a compact Action node, then iteratively decomposes observations into atomic Information nodes and adds dependency edges (
I → Awhen an action is taken based on information,A → Iwhen information results from an action). The initial query is nodeI₀; the final answer action isA_T. - Prune by finding a minimal necessary DAG. Action nodes cost 1, information nodes cost 0. A Dijkstra-style shortest-path search from
I₀toA_Tgives one minimal-cost path, and a backward closure fromA_Tadds the predecessor nodes that are on some shortest path. Everything outside this subgraph is treated as redundant and deleted. To reduce noise, the whole construction and mining is repeated three times per trajectory and kept only if at least two of the three action sets are identical (majority vote at the action-set level). - Rewrite the remaining thoughts. Deleting steps breaks the flow of the ReAct loop, so adjacent retained steps that were originally adjacent are left untouched, and only the newly stitched-together thoughts are rewritten with a rewriter LLM given the surrounding context. Three candidate rewrites are generated and the one with the lowest perplexity under the base model is selected, to stay close to the model's intrinsic reasoning style.
- Evolve the agent. The base agent is then fine-tuned either only on pruned trajectories (efficiency-oriented) or on a mixture of pruned trajectories plus unpruned trajectories from different, similarly difficult queries (hybrid).
- Evaluate. Accuracy is judged by an LLM-as-Judge setup using o3-mini; efficiency is measured by tool-call rounds and token consumption; both are combined in the F-AE Score. Benchmarks are xbench-deepsearch, Browsecomp, GAIA (103-question text-only development subset), and HLE (500-question text-only subset). Each model is run three times with different random seeds and average Pass@1 is reported. Qwen3-235B-A22B-Instruct-2507 serves as extractor and rewriter, deployed on 8×H800 (80GB) GPUs with extraction and rewriting completed within one day; training uses 32×H800 GPUs, a learning rate of 5e-6, and a cosine decay schedule.
Why This Matters
Research impact. Most web-agent work optimizes end-to-end success rate and simply scales search depth and context length (the paper notes Tongyi-DeepResearch uses a 128K context length and up to 100 tool-call rounds, while MiroThinker sets a 256K maximum context and allows up to 600 tool-call rounds). This paper reframes trajectory optimization as a graph problem and introduces a metric that forces joint consideration of accuracy and cost, giving a concrete template for "evolving" rather than "rebuilding" agents.
Real-world applications.
- Deploying Deep Research–style assistants where search APIs (Google Search, Jina Reader) and long inference time are the dominant operational cost.
- Latency-sensitive products where a hard cap on tool-call rounds must be respected without collapsing answer quality.
- Enterprise and analyst research workflows where a 20%-scale reduction in rounds and tokens per query translates directly into per-seat cost savings.
- Agent platforms that need a single score to decide between an accurate-but-slow model and a fast-but-weak one.
Industry relevance. All authors are affiliated with Ant Group, and code is released at https://github.com/AQ-MedAI/AntAFu-DeepResearch, suggesting the work targets production Deep Research deployment economics rather than leaderboard-only accuracy.
Future Directions
- Inherited ceiling: WebClipper can only remove redundancy inside the base model's existing behavior; if the base model's planning is poor, pruning cannot invent a better strategy. The authors suggest combining it with reinforcement learning or online learning so the agent can discover novel efficient search patterns.
- Tool generalization: Training and evaluation cover search, web browsing, and code execution only; extension to multimodal tools, database queries, and API integrations remains unexplored.
- Broader action spaces and modalities: Adapting the graph-based framework to diverse action spaces and information modalities is flagged as a direction for more versatile agents.
- Open question on Max_Rounds: F-AE is relative to the chosen budget — the paper fixes
Max_Rounds = 100and notes it can in principle be adjusted for stricter latency settings, leaving open how rankings shift under different budgets.
Target Audience
Researchers and engineers working on LLM-based web agents, Deep Research systems, and agentic training-data synthesis; practitioners who need to cut inference cost and tool-call rounds of deployed agents without losing accuracy; and anyone looking for a concrete example of casting agent trajectory optimization as a graph-mining problem with a metric that balances effectiveness and efficiency.
Authors’ abstract
Deep Research systems based on web agents have shown strong potential in solving complex information-seeking tasks, yet their search efficiency remains underexplored. We observe that many state-of-the-art open-source web agents rely on long tool-call trajectories with cyclic reasoning loops and exploration of unproductive branches. To address this, we propose WebClipper, a framework that compresses web agent trajectories via graph-based pruning. Concretely, we model the agent's search process as a state graph and cast trajectory optimization as a minimum-necessary Directed Acyclic Graph (DAG) mining problem, yielding pruned trajectories that preserve essential reasoning while eliminating redundant steps. Continued training on these refined trajectories enables the agent to evolve toward more efficient search patterns and reduces tool-call rounds by about 20% while improving accuracy. Furthermore, we introduce a new metric called F-AE Score to measure the model's overall performance in balancing accuracy and efficiency. Experiments demonstrate that WebClipper compresses tool-call rounds under excellent performance, providing practical insight into balancing effectiveness and efficiency in web agent design.