Extracting Process Graphs from Texts via Multi-Granularity Text Classification

Qian Chen, Lijie Wen, Mingsheng Long, Yanwei Li, Akhil Kumar, Jianmin Wang

Abstract

Process graph extraction (PGE) is a recently emerged interdiscipline between natural language processing and business process management, which aims to extract process graphs expressed in texts. Previous process extractors heavily depend on manual features and ignore the potential relations between clues of different text granularities. In this paper, we formalize the PGE task into the multi-granularity text classification problem, and propose a hierarchical model to effectively model and extract multi-granularity information without manually defined procedural knowledge. Under this framework, we accordingly propose the coarse-to-fine learning mechanism, training multi-granularity tasks in coarse-to-fine order to share the high-level knowledge for the low-level tasks. To evaluate our approach, we construct two finer-grained datasets from two sentence-level corpora and conduct extensive experiments from different dimensions. The experimental results demonstrate that our approach outperforms the state-of-the-art methods with statistical significance, and the ablation studies demonstrate its effectiveness.

Introduction

Extracting structured procedural knowledge from natural language—such as cooking recipes or maintenance manuals—is a critical task for building intelligent agents. This process, known as Process Graph Extraction (PGE), transforms unstructured text into a formal process model like a flowchart. Historically, PGE has relied on hand-crafted rules or specific ontologies, which lack the flexibility to generalize across different domains.

The pipeline of extracting process models from text, showing the transition from raw text to procedural knowledge and finally a process model.

A major challenge in PGE is the interplay between different text granularities. For instance, identifying a word as an "object" is significantly easier if the system already understands that the surrounding sentence describes an "action." Traditional methods often overlook these hierarchical relationships, treating word-level and sentence-level tasks in isolation.

Methodology: The MGTC Framework

To address these challenges, we propose the Multi-Grained Text Classifier (MGTC). This framework formalizes PGE as a hierarchical classification problem across three subtasks:

  1. Sentence Classification (ST1): Distinguishing between action steps and logical statements.
  2. Sentence Semantics (ST2): Identifying the logical flow (e.g., parallel, sequential, or optional steps).
  3. Semantic Role Labeling (ST3): Identifying word-level roles such as actors, actions, and objects.

Coarse-to-Fine Learning

The core innovation of MGTC is its coarse-to-fine learning mechanism. The model is trained in stages: it first masters the high-level sentence tasks (coarse learning) and then transfers that latent knowledge to assist with the more granular word-level tasks (fine learning).

The MGTC architecture illustrating the transition from coarse learning (sentence-level) to fine learning (word-level) using a hierarchical neural network.

The architecture utilizes a hybrid encoding strategy, combining Bi-LSTMs for long-term context and CNNs for local n-gram features. A gating mechanism dynamically weights these features to optimize classification performance by focusing on the most relevant textual clues.

Experimental Evaluation

We evaluated MGTC on two newly constructed datasets designed for multi-grained extraction:

  • Cooking Recipes (COR): Over 200 recipes covering diverse culinary categories.
  • Maintenance Manuals (MAM): Over 160 manuals from iFixit covering electronics and mechanical repairs.

Key Results

MGTC demonstrated superior performance over traditional pattern-matching and SVM-based baselines:

  • Sentence Classification: Accuracy improved by approximately 7-8% across both datasets compared to the strongest competitors.
  • Semantic Role Labeling: Word-level precision increased by up to 9.75%, proving that sentence-level context significantly boosts fine-grained recognition.
  • Behavioral Similarity: The generated process models showed significantly higher logical alignment with human-annotated "gold standards" than previous state-of-the-art methods.

Conclusion

By treating process extraction as a multi-granularity classification task, MGTC eliminates the need for manual feature engineering while capturing the inherent hierarchy of procedural text. The coarse-to-fine learning mechanism effectively shares knowledge across tasks, leading to more accurate and robust process model extraction. Future work will focus on scaling this approach to more complex, non-linear business processes and unorganized text sources.

Summary updated

BibTeX
@inproceedings{chen2019extracting,
  author = {Qian Chen and Lijie Wen and Mingsheng Long and Yanwei Li and Akhil Kumar and Jianmin Wang},
  title = {{Extracting Process Graphs from Texts via Multi-Granularity Text Classification}},
  booktitle = {CAiSE},
  year = {2019},
  doi = {10.48550/arxiv.1906.02127},
}
Figure