Source-linked AI summary
Graph2Eval: Automatic Multimodal Task Generation for Agents via Knowledge Graphs
Yurun Chen, Xavier Hu, Yuhan Liu, Ziqi Wang, Zeyi Liao, Lin Chen, Feng Wei, Yuxi Qian, Bo Zheng, Keting Yin, Shengyu Zhang
TL;DR
Static datasets cannot establish whether multimodal agents generalize beyond memorized knowledge. Graph2Eval uses knowledge graphs to generate document and web-agent tasks; its generated tasks improve consistency and solvability over a KG-free baseline, and Graph2Eval-Bench distinguishes agent performance.
Problem
Static datasets cannot distinguish genuine agent generalization from retrieval of memorized knowledge, limiting assessment of true competence.
Source: §1 · p. 1Method
Graph2Eval uses a knowledge graph as a task space, sampling subgraphs and guiding task generation with templates and meta-paths for document and web-agent tasks.
Source: §1 · p. 2Results
20% higher semantic consistency and 17% higher solvability on average than a KG-free baseline are reported for Graph2Eval-generated tasks, and Graph2Eval-Bench distinguishes agent performance.
Source: §1 · p. 2Takeaways & Limitations
Graph2Eval-Bench assesses document-understanding and web-interaction capabilities across different settings.
Source: §5 · p. 8Task quality depends on accurate knowledge-graph modeling, and reliance on structured, predefined knowledge may constrain tasks involving unstructured or novel information.
Source: D. Limitations and Discussion · p. 12
Abstract
from arXiv · showhide
As multimodal LLM-driven agents advance in autonomy and generalization, traditional static datasets face inherent scalability limitations and are insufficient for fully assessing their capabilities in increasingly complex and diverse tasks. Existing studies have attempted to generate agent tasks using LLMs, but due to the inherent hallucinations of LLMs and the lack of internal data relationship modeling, these tasks often exhibit semantic inconsistencies and solvability issues. To address these challenges, we introduce Graph2Eval, a knowledge-graph-driven framework for automated, scalable, and semantically grounded agent task generation. At its core, Graph2Eval leverages a knowledge graph built from heterogeneous external data sources as a structured task space, generating multimodal agent tasks through subgraph sampling and task construction guided by task templates and meta-path strategies. To further ensure task reliability, a multi-stage filtering pipeline based on node reachability analysis, LLM scoring, and similarity analysis ensures the diversity and solvability of the generated tasks. By unifying both RAG Agent and Web Agent scenarios, Graph2Eval enables efficient generation of multimodal document understanding tasks and multi-step web interaction tasks. We instantiate the framework with Graph2Eval-Bench, a curated dataset of 1,319 tasks spanning document understanding and web interaction scenarios. Extensive experiments show that, on average, Graph2Eval improves task semantic consistency by 20% and solvability by 17% over baselines, while Graph2Eval-Bench effectively distinguishes agent performance, offering a new perspective on agent evaluation.
1. Introduction
Static datasets may mistake memorized retrieval for generalization, while current task-generation methods face semantic and dynamic-environment gaps. Graph2Eval uses a knowledge graph to generate document and web tasks, and its benchmark improves task consistency and solvability over a KG-free baseline.
1. Introduction
- Static datasets cannot distinguish genuine generalization from retrieval of memorized knowledge, so success on them does not establish real-world reliability.The authors also identify limited task diversity, labor-intensive dataset expansion, weak entity-relation modeling, and poor adaptation to dynamic websites as gaps in existing methods.Source: §1 · pp. 1–2
- Graph2Eval treats a knowledge graph as a task space and uses task templates, meta-paths, and sampled subgraphs to generate document-understanding and web-interaction tasks.LLMs combine sampled graph structures with contextual information to produce task instances.Source: §1 · p. 2
- 20% higher semantic consistency and 17% higher solvability on average than a KG-free baseline are reported for tasks generated by Graph2Eval.Graph2Eval-Bench contains 1,319 tasks for evaluating RAG Agents and Web Agents, and distinguishes performance across foundation models.Source: §1 · p. 2
- Graph2Eval-Bench contains 1,319 diverse tasks designed to evaluate both Retrieval-Augmented Generation Agents and Web Agents.The dataset includes 1,002 document-understanding tasks and 317 web-interaction tasks.Source: §1 · p. 2
2. Background
Existing agent benchmarks are predominantly human-defined, limiting scalability, while synthetic task-generation work often lacks explicit entity relations or realistic dynamic-web grounding.
2. Background
- Most existing agent-oriented benchmarks are manually constructed, and their human-defined task specifications limit scalability.The cited examples include GAIA, MiniWob, MiniWoB++ [18], and Mind2Web.Source: §2 · p. 2
- TaskCraft lacks explicit entity relationships, while Su et al. rely on static documents for web tasks and cannot reliably assess executability in dynamic scenarios.The described quality checks for Su et al. are deduplication and LLM-based alignment and evaluation.Source: §2 · p. 3
3. GRAPH2EVAL
Graph2Eval builds a unified task-generation pipeline around a knowledge graph, with distinct sampling and generation strategies for document and web tasks, followed by coverage and novelty optimization.
3. GRAPH2EVAL
- Graph2Eval's five-stage pipeline ingests data, constructs a knowledge graph, samples subgraphs, generates tasks, and optimizes coverage.The graph is presented as a structured task space for document-understanding tasks for RAG Agents and web-interaction tasks for Web Agents.Source: §3 · p. 3, Figure 2 · p. 4
3.1. Data Ingestion
- Document ingestion preserves layout and hierarchy as semantic graph nodes, while web ingestion crawls pages, extracts DOM structures and screenshots, and uses simulated interactions.Document processing also computes embeddings and adds source and positional metadata; web collection filters links and applies safety constraints.Source: §3.1 · p. 3
3.2. KG Construction
- The graph represents document and web content as nodes with preserved structural paths, textualized visual content, and edges for semantic, structural, reference, and interaction relations.Combined node text is embedded and stored for semantic search and similarity matching.Source: §3.2 · pp. 3–4
3.3. Subgraph Sampling
- Document sampling selects relevant, structurally aligned nodes, while web sampling starts from task-specific operational seeds and collects their local interaction context.The sampling workflow extracts a task-specific subgraph and its interconnections from the knowledge graph.Source: §3.3 · p. 4
3.4. Task Generation
- Document tasks use templates and sampled-subgraph variables, whereas web tasks match seed-driven subgraphs to meta-path task chains before LLM generation.Different strategies reflect the execution modes: document tasks use a few API calls, while web tasks require sequential interaction in dynamic environments.Source: §3.4 · p. 5
3.5. Coverage Optimization
- Coverage optimization filters web-task quality, measures coverage and multi-level novelty, and uses MMR selection; document tasks use semantic diversity, LLM-based similarity, and MMR.Web coverage spans node and edge types, patterns, pages, website types, and difficulty; document coverage spans task type, difficulty, template, variable, and content length.Source: §3.5 · pp. 5–6
4. Experiments
Experiments assess task quality and agent performance across document-understanding and web-interaction settings. Results include model comparisons, a KG-free ablation, and comparisons with existing benchmark and task-generation approaches.
4.1. Implementation Details
- RAG document agents are tested in single- and multi-agent settings alongside web agents; metrics include F1, ROUGE-L, LLM Judge, web SR, consistency, and solvability.The multi-agent document setup comprises a planner, retriever, reasoner, verifier, and summarizer; web evaluation includes SoM Agent and Agent S 2.5.Source: §4.1 · p. 6
4.2. Main Results
- Document tasks use high-quality papers and web tasks use screenshots plus DOM; 100 sampled node pairs were manually verified, and Figure 3 reports lower generation time than manual construction.Table 1 presents benchmark statistics.Source: §4.2 · p. 6, Figure 3 · p. 6, Table 1 · p. 6
- GPT-4o leads F1 and ROUGE-L, while Deepseek-V3 leads LLM-as-a-Judge in document understanding.GPT-4o ranks second on LLM-as-a-Judge.Source: §4.2 · pp. 6–7, Table 2 · p. 7
- In GRAPH2EVAL-BENCH web interaction tasks, Agent S 2.5 consistently outperformed SoM Agent across nearly all task types; on Gemini 2.5 Flash, they achieved 69.20% and 14.51% SR, respectively.Source: §4.2 · p. 7, Table 3 · p. 7
4.3. Ablation Studies
- Against KG-free generation, GRAPH2EVAL tasks reveal clearer size-related performance gaps; KG-free web tasks are often single-page, with multi-page workflows unsolvable from missing inter-page relations.Tasks generated without a KG also require LLM or manual review to resolve ambiguities.Source: §4.3 · p. 8, Table 4 · p. 8
4.4. Comparison with Existing Methods
- Compared with human-annotated benchmarks, GRAPH2EVAL enables low-time-cost automated construction with strong consistency and solvability across more task types; unlike TaskCraft, it samples subgraphs from a complete graph.TaskCraft first generates atomic tasks and combines them into complex ones, while GRAPH2EVAL uses a top-down paradigm.Source: §4.4 · p. 8, Table 5 · p. 8, Table 6 · p. 8
5. Conclusion and Future Work
Graph2Eval uses knowledge graphs as an intermediate representation for scalable agent-task creation and reports improved task quality across document and web scenarios. Future work will explore safety-policy testing and node- and edge-level error localization.
5. Conclusion and Future Work
- Graph2Eval models entities and relationships in documents and web data as a unified task space for scalable, semantically consistent, and solvable task creation.The framework is used to construct Graph2Eval-Bench and assess document-understanding and web-interaction capabilities across settings.Source: §5 · p. 8
- Experiments report improved semantic consistency and solvability, broad scenario coverage, and reliable assessment of document understanding and web interaction.Source: §5 · p. 8
- Future work will explore formal safety policies for adversarial and malicious scenarios and use knowledge-graph structure to localize errors at nodes and edges.Source: §5 · p. 8
A. Task Content Constraints
Graph2Eval constrains web-task content, instantiates tasks through structured templates, and maps web-graph patterns to executable interactions.
A. Task Content Constraints
- Web-task safety combines page screening for privacy, copyright, harmful content, and robots compliance with bans on payment or privacy-data operations and business-data placeholders.Source: A. Task Content Constraints · p. 11
B. Task Templates
- Templates specify graph-structure requirements and difficulty-tagged task types, then select graph-compatible prompts and reference answers with evaluation criteria and citation requirements.The supported tasks range from extraction and summarization to multi-hop reasoning, image interpretation, and cross-referencing.Source: B. Task Templates · p. 11
C. Meta-Path
- Meta-path patterns match web subgraphs, bind variables to graph nodes, and generate executable task steps, prioritizing business-data patterns before general and basic interaction fallbacks.A graph-regex engine supports node and edge matching, quantifiers, and alternatives.Source: C. Meta-Path · pp. 11–12
D. Limitations and Discussion
Graph2Eval’s task quality and coverage depend on the knowledge graph’s completeness and on which information its structured representation includes.
D. Limitations and Discussion
- Incomplete or erroneous knowledge graphs may adversely affect the quality of generated tasks.Source: D. Limitations and Discussion · p. 12
- The focus on structured knowledge and predefined relationships may limit tasks involving unstructured or novel information outside the graph.Source: D. Limitations and Discussion · p. 12
- The authors propose more robust graph construction and methods that use unstructured data to improve task quality, diversity, and coverage.Source: D. Limitations and Discussion · p. 12
E. Agent Architecture
The paper describes single-agent and collaborative RAG architectures, plus two multimodal web-agent designs for task execution and element localization.
E. Agent Architecture
- The Single-Agent follows a retrieve-execute-evaluate-respond workflow and returns references, reasoning paths, and confidence scores while retaining task history.Source: E. Agent Architecture · p. 12
- The Multi-Agent assigns planning, retrieval, reasoning, verification, and summarization roles, with coordinated messaging for task allocation and load balancing.The passage reports collaborative reasoning performance superior to single-agent setups for complex multi-hop tasks.Source: E. Agent Architecture · p. 12
- The SoM Agent maps textual descriptions to web-element coordinates by having an LLM identify marked elements in a screenshot.Source: E. Agent Architecture · p. 12
- Agent S 2.5 combines screenshot-and-text processing with a reflection module that analyzes execution trajectories and suggests improvements.Source: E. Agent Architecture · p. 12
F. Metrics Formula
The section defines document-understanding metrics based on answer-span overlap and LLM judgments, and web-task success rate based on LLM evaluation. It also reports a human-agreement check for the web evaluator.
F.1. Document Understanding Task Metrics
- F1 is the harmonic mean of precision and recall for predicted and ground-truth answer spans.Source: §F.1 · p. 12
- ROUGE-L measures the longest common subsequence between the predicted answer span P and ground-truth span G.Source: §F.1 · p. 12
- The LLM-as-a-Judge scores document answers on quality, relevance, and completeness, normalizing scores to [0, 1] for an overall semantic-alignment judgment.Source: §F.1 · p. 13
- The document-answer evaluation prompt asks for 0.0–1.0 ratings of answer quality and accuracy, relevance to the task, and completeness.Source: §F.1 · p. 13
- The document-evaluation rubric prioritizes answer quality and records answer_quality, relevance, and completeness scores.Source: §F.1 · p. 13
F.2. Web Task Metrics
- Success Rate is the fraction of web tasks judged successful by an LLM evaluator.Source: §F.2 · p. 13
- For web-task evaluation, the LLM assesses action sequences, final page state, and error messages because dynamic pages make rule-based checks unreliable.Source: §F.2 · p. 13
F.3. LLM Evaluator Reliability
- 88% of judgments matched GPT-4o on 50 Agent S 2.5 web-task trajectories independently judged by two human annotators.The annotators labeled each trajectory successful or unsuccessful.Source: §F.3 · p. 14
G. GRAPH2EVAL-BENCH Overview
GRAPH2EVAL-BENCH spans document-understanding and web-interaction tasks drawn from multiple sources. Its task types and web domains cover varied evaluation settings while limiting risks to live websites.
- 1,319 tasks comprise document-understanding and web-interaction datasets, with document tasks covering reasoning, analysis, and aggregation.Source: G. GRAPH2EVAL-BENCH Overview · p. 14
- Web tasks focus on navigation and interaction across domains including digital libraries, weather services, and news portals to mitigate risks to live websites.Source: G. GRAPH2EVAL-BENCH Overview · p. 14
H. Case Study
The case study describes Agent S 2.5 completing a web task through screenshot and DOM analysis, memory, reflection, and external validation. Graph2Eval records execution time and token consumption during the process.
- Agent S 2.5 uses screenshots and DOM representations with memory and reflection to select and execute actions, then another LLM validates the outcome.Source: H. Case Study · p. 14
- Graph2Eval records execution time and token consumption during the web-task trajectory as efficiency and cost indicators.Source: H. Case Study · p. 14
I. Safety Task Generation
The safety-task work explores document and web scenarios. It derives minimally perturbed document instances and uses controlled environments for web threats.
- For document understanding, safety instances are derived from existing tasks with minimal input perturbation to preserve naturalness and detect latent model risks.Source: §I · p. 14
- Document safety generation parses policy or security documents for candidate threats, explores four embedding strategies, then creates and quality-checks instances against preset thresholds.The strategies are content injection, prompt manipulation, context switching, and indirect reference; checks cover clarity, relevance, difficulty, and completeness.Source: §I · p. 14
- Web safety tasks use isolated Docker environments or controlled browser sessions to simulate threats, and augment existing tasks with safety nudges.Injected artifacts can include forged phishing elements, malicious forms, or suspicious redirects.Source: §I · p. 14
Related papers
This paper cites
- DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning2025
- OSWorld: Benchmarking Multimodal Agents for Open-Ended Tasks in Real Computer Environments2024
- $τ$-bench: A Benchmark for Tool-Agent-User Interaction in Real-World Domains2024
- Self-Instruct: Aligning Language Models with Self-Generated Instructions2022
- WizardLM: Empowering large pre-trained language models to follow complex instructions2023