Abstract
Process model extraction (PME) is a recently emerged interdiscipline between natural language processing (NLP) and business process management (BPM), which aims to extract process models from textual descriptions. 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 PME task into the multi-grained text classification problem, and propose a hierarchical neural network to effectively model and extract multi-grained information without manually-defined procedural features. Under this structure, we accordingly propose the coarse-to-fine (grained) learning mechanism, training multi-grained tasks in coarse-to-fine grained order to share the high-level knowledge for the low-level tasks. To evaluate our approach, we construct two multi-grained datasets from two different domains 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 further investigations demonstrate its effectiveness.
Introduction
As conversational agents like Alexa and Siri evolve, they need to move beyond simple Q&A to understanding procedural knowledge—the "how-to-do-it" information found in cooking recipes or repair manuals. The challenge lies in Process Model Extraction (PME): converting unstructured text into a structured model, such as a flowchart, that defines actions and their execution order (e.g., sequential vs. concurrent).
Historically, PME relied on hand-crafted linguistic rules or domain-specific ontologies. These methods are brittle, failing when domains change or language complexity increases. Furthermore, they often ignore the relationship between different granularities of text—for instance, identifying a sentence as an action is a prerequisite for identifying the specific object being acted upon.
Methodology: The Multi-Grained Text Classifier (MGTC)
We formalize PME as a multi-task classification problem across three distinct subtasks:
- Sentence Classification (ST1): Distinguishing between action and control statements.
- Sentence Semantics (ST2): Identifying structural signals (e.g., start of a block, concurrent steps, or optional paths).
- Semantic Role Labeling (ST3): Extracting word-level roles such as actor, action name, and object.
Architecture and Learning Mechanism
The MGTC architecture utilizes a hierarchical neural network combining Bi-LSTMs for long-range context and CNNs with multi-scale filters to capture local n-gram patterns (e.g., "then you are required to").
A key innovation is the Coarse-to-Fine Learning strategy. The model first trains on sentence-level tasks (coarse) and then utilizes these high-level features to guide word-level extraction (fine). This mimics human cognition—grasping the gist of a paragraph before parsing specific nouns and verbs. Additionally, a Gate-Attention Mechanism weights relevant information for each task, effectively filtering out noise.
Datasets
To address the lack of multi-grained PME corpora, we constructed two new datasets:
- Cooking Recipes (COR): 200+ recipes with 2,636 labeled sentences.
- Maintenance Manuals (MAM): 160+ iFixit manuals with 2,172 labeled sentences.
Both datasets include labels at both sentence and word levels.
Results and Discussion
Experimental results show that MGTC significantly outperforms traditional pattern-matching and SVM-based methods.
- Performance Gains: MGTC achieved an accuracy boost of 7.97% on sentence classification (COR) and 13.94% on sentence semantics (MAM).
- Model Fidelity: Final extracted process models showed a behavioral similarity improvement of 7.83% to 12.66% compared to gold standards.
- Ablation Insights: 3-gram features proved vital for ST2, as phrases like "at the same time" are structural clues better captured by CNNs. Furthermore, using BERT as an embedding layer provided a significant boost over Word2Vec.
Conclusion
MGTC demonstrates that modeling multi-grained information through a hierarchical, coarse-to-fine approach is highly effective for PME. While the current model relies on supervised learning, future work will explore unsupervised methods and more complex business processes involving multiple actors and artifacts.
Summary updated