arXiv:2608.28701cs.CVAug 2026

Manuscript Offprint

arXiv:2608.28701

TopoAgent: A Structure-Aware Perception-to-Reasoning Framework for Diagram-to-Graph Topology Extraction with Large Vision-Language Models

Bangwei Guo, Xujiang Zhao, Yanchi Liu, Wei Cheng, Shengyu Chen, Dongyue Li, Masaharu Morimoto, Takayuki Kuroda, Dimitris Metaxas, Haifeng Chen

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Diagram-to-graph topology extraction aims to extract a graph of entities and their connections from a structural diagram. This task remains challenging for current vision-language models because it requires both fine-grained perceptual grounding and topology-aware reasoning with global consistency. We present TopoBench-180, a human-verified benchmark for diagram-to-graph topology extraction, and TopoAgent, a structure-aware perception-to-reasoning framework for reliable topology extraction using large vision-language models. TopoBench-180 contains 180 structural diagrams spanning Web-style and Network-style categories, paired with canonical graph annotations. TopoAgent progressively extracts the target graph by combining grounded perception, global structural priors, canonical node inventory construction, node-centric local-to-global relation reasoning, and topological consistency enforcement. Experiments on TopoBench-180 show that TopoAgent outperforms strong vision-language model baselines and recent visual reasoning frameworks, especially on edge extraction. More broadly, this work fills an important gap in multimodal structured understanding by establishing a benchmark and framework for diagram-to-graph topology extraction. The benchmark and associated resources will be publicly released at https://huggingface.co/datasets/WayneGuo0011/TopoBench-180.

1 Introduction

Technical and scientific diagrams convey rich relational structure through labeled entities, visual connectors, and geometric layout. Extracting their topology is important for downstream applications including graph-based reasoning (Besta et al., 2024), knowledge graph construction (Zhu et al., 2024), and scientific understanding (Lu et al., 2022). However, despite recent progress

(A) General VLMs

Figure

(B) Information-Intensive Visual Baselines

Figure

(C) TopoAgent

Figure 1: Motivating comparison for diagram-to-graph topology extraction. General-purpose VLMs often miss fine-grained visual relations or produce topologically inconsistent graphs, while prior visual reasoning baselines only partially address these challenges. In contrast, TopoAgent combines grounded perception with topology-aware reasoning to improve both local relation extraction and global graph consistency.

in large vision-language models (VLMs) on multimodal tasks such as chart understanding (Masry et al., 2022; Liu et al., 2025), visual question answering (Yue et al., 2024; Li et al., 2025c), and structured information extraction (Li et al., 2025a; Huang and Nobre, 2025), diagram-to-graph topology extraction remains underexplored. Unlike prior work that mainly answers specific queries or produces coarse textual descriptions (Ahn et al., 2024), this task requires extracting the topology of a diagram as a structured graph. It is substantially more demanding because the extracted topology must be globally structured and topologically consistent.

The difficulty of this task arises from two main technical challenges. First, it requires precise perceptual grounding in information-dense environments, where textual labels, geometric primitives, and thin connectors are tightly interleaved across multi-scale layouts (Masry et al., 2022; Yue et al., 2024). Even subtle ambiguities in connector attachment or directionality can lead to serious topology errors. Second, the task requires globally consistent reasoning rather than isolated local predictions. Models must determine which entities are connected while maintaining consistency across node-edge assignments; otherwise, local errors can propagate into missing edges, hallucinated nodes, and inconsistent graphs (Huang et al., 2024). Progress on this problem has also been limited by the lack of dedicated benchmarks. Constructing high-quality diagram–graph pairs requires exhaustive node identification, direction-aware edge labeling, and careful human verification, which are often absent from existing large-scale datasets.

Existing approaches to information-intensive visual reasoning only partially address the demands of diagram-to-graph topology extraction. Region-based or “zoom-in” methods improve fine-grained perception through localized decomposition (Zheng et al., 2025; Li et al., 2025a; Wang et al., 2025a), but do not explicitly enforce topology-consistent extraction. Multi-step reasoning frameworks improve sequential inference in general multimodal tasks (Lu et al., 2022; Xu et al., 2025a; Wang et al., 2025b), but are not tailored to the geometric and structural demands of topological diagrams, often missing subtle yet critical cues such as connector crossings and long-range dependencies. Moreover, most established visual reasoning benchmarks (Yue et al., 2024; Masry et al., 2022; Liu et al., 2024a) focus on question answering or caption generation rather than full diagram-to-graph extraction. These limitations motivate a structure-aware extraction framework and a dedicated benchmark, as summarized in Figure 1.

To address these limitations, we introduce TopoBench-180, a human-verified benchmark specifically designed for diagram-to-graph topology extraction, together with TopoAgent, a structure-aware perception-to-reasoning framework for reliable topology extraction with large VLMs. TopoBench-180 provides high-quality diagram–graph pairs with canonical annotations and diverse topology patterns, including directionality and densely connected relational structures, enabling rigorous evaluation of topology extraction under structurally challenging settings. TopoAgent begins with a low-level perceptual grounding stage, which decomposes the input diagram into candidate regions, associates them with OCR-recognized text, and extracts region-level primitive summaries for downstream reasoning. It then performs four coordinated reasoning stages: (i) global attribute inference, (ii) canonical node grounding, (iii) node-centric relation reasoning, and (iv) topological consistency enforcement. This design progressively constructs the final graph from local evidence to global consistency. Experiments on TopoBench-180 show that TopoAgent consistently outperforms strong closed-source VLMs, open-source VLMs, and recent visual reasoning frameworks.

Our contributions are summarized as follows:

• To the best of our knowledge, this is the first work to systematically study diagram-to-graph topology extraction in the context of large vision-language models.

• We introduce TopoBench-180, a dedicated human-verified benchmark with canonical graph annotations for rigorous evaluation of topology extraction.

• We propose TopoAgent, a structure-aware perception-to-reasoning framework that combines grounded region summarization, staged topology reasoning, and topological consistency enforcement for topology extraction.

• Experiments on TopoBench-180 show that TopoAgent consistently outperforms strong VLM baselines and recent visual reasoning frameworks.

Together, our work advances topology-aware diagram understanding by pairing a dedicated benchmark with a structure-aware framework for reliable topology extraction.