Multi-Agent Procedural Graph Extraction with Structural and Logical Refinement
Wangyang Ying, Yanchi Liu, Xujiang Zhao, Wei Cheng, Zhengzhang Chen, Wenchao Yu, Yanjie Fu, Haifeng Chen
TL;DR
The paper tackles extracting executable procedural graphs from natural language by introducing text2flow, a multi-agent framework that enforces structural validity and semantic alignment via external, natural-language feedback. It decomposes the task into three stages—graph construction (Graph Builder), structural validation (Simulation), and logical alignment (Semantic)—and refines graphs through iterative, feedback-driven prompting with a prioritized, budgeted revision mechanism. Empirical results on the PAGED benchmark show substantial improvements in both structural correctness and logical consistency over strong baselines, with a detailed analysis of efficiency and token costs. The work demonstrates the value of an interpretable evaluation sandbox for guided, multi-round procedural graph generation and points to extensions toward broader workflow understanding tasks.
Abstract
Automatically extracting workflows as procedural graphs from natural language is promising yet underexplored, demanding both structural validity and logical alignment. While recent large language models (LLMs) show potential for procedural graph extraction, they often produce ill-formed structures or misinterpret logical flows. We present \model{}, a multi-agent framework that formulates procedural graph extraction as a multi-round reasoning process with dedicated structural and logical refinement. The framework iterates through three stages: (1) a graph extraction phase with the graph builder agent, (2) a structural feedback phase in which a simulation agent diagnoses and explains structural defects, and (3) a logical feedback phase in which a semantic agent aligns semantics between flow logic and linguistic cues in the source text. Important feedback is prioritized and expressed in natural language, which is injected into subsequent prompts, enabling interpretable and controllable refinement. This modular design allows agents to target distinct error types without supervision or parameter updates. Experiments demonstrate that \model{} achieves substantial improvements in both structural correctness and logical consistency over strong baselines.
