TL;DR
This paper tackles the challenge of automatically extracting structured process models from unstructured text, like recipes or manuals. They propose a novel hierarchical neural network that learns from different levels of text granularity (sentence and word) using a "coarse-to-fine" learning strategy, outperforming existing methods.
What Problem Does This Paper Address?
Modern AI assistants and intelligent systems need to understand not just simple commands, but also complex procedural knowledge – the "how-to" information embedded in natural language texts. Extracting this procedural knowledge into formal process models is crucial for enabling these systems to perform multi-step tasks. However, existing methods often rely on manual feature engineering, struggle with the multi-grained nature of text (e.g., identifying actions at the sentence level and their specific components at the word level), and lack generalizability across different domains. This paper aims to bridge this gap by developing a more robust and automated approach to process model extraction.
Methods
The core of this paper is a Multi-Grained Text Classifier (MGTC), a hierarchical neural network designed to handle information at different text granularities. The MGTC formalizes Process Model Extraction (PME) as a multi-grained text classification problem with three subtasks:
- ST1: Sentence Classification: Identifying if a sentence describes an action or a statement.
- ST2: Sentence Semantics Recognition: For statement sentences, determining how actions are coordinated (e.g., block begins, block ends, sequential, optional, concurrent).
- ST3: Semantic Role Labeling: For action sentences, identifying the executor, action name, and object (word-level information).
A key innovation is the coarse-to-fine learning mechanism. This involves first training the sentence-level tasks (ST1 and ST2) to learn high-level procedural knowledge. This learned knowledge is then used to initialize and fine-tune the word-level task (ST3), allowing the model to leverage sentence-level understanding for more accurate word-level extraction. The architecture utilizes Bi-LSTM for encoding sentence context and CNNs for capturing local ngram features. A gate-attention mechanism is employed to dynamically weight the importance of different features.
Datasets
The authors introduce two new multi-grained datasets for PME:
- Cooking Recipes (COR): A collection of over 200 cooking recipes from a popular social network, covering various meal types.
- Maintenance Manuals (MAM): Over 160 maintenance descriptions from a wiki-based site, covering a wide range of devices.
These datasets were manually annotated at both the sentence level (action/statement, coordination relations) and word level (semantic roles like executor, action name, object).
Key Insights and Ideas
- Formalizing PME as Multi-Grained Classification: This reframing allows for a structured approach to extracting information at different levels of detail, which is essential for building comprehensive process models.
- Coarse-to-Fine Learning: The idea of learning from broader sentence-level patterns before focusing on finer word-level details is inspired by human learning and proves effective for knowledge transfer, leading to better performance on the more challenging word-level tasks.
- Hierarchical Neural Network: The proposed architecture effectively models the conditional relationships between sentence and word-level tasks, avoiding the need for manual feature engineering.
- Gate-Attention Mechanism: This allows the model to adaptively focus on the most relevant features for each task, improving robustness and accuracy.
Key Results
The proposed MGTC model consistently outperforms several baseline methods across all three subtasks (ST1, ST2, ST3) and both datasets (COR, MAM).
- Accuracy Improvements: MGTC achieved significant accuracy gains, for example, improving ST1 accuracy by up to 7.97% on COR and 7.24% on MAM compared to the strongest competitor. For ST3, it improved accuracy by 9.75% on COR and 2.18% on MAM, demonstrating its effectiveness even on the more ambiguous word-level tasks.
- Behavior Similarity: The extracted process models from MGTC showed improved behavior similarity with gold models, indicating that the extracted knowledge is more accurate and useful.
- Ablation Studies: The results highlight the effectiveness of the gate-attention mechanism and the coarse-to-fine learning strategy, both contributing to performance improvements. Using BERT as the language model also significantly boosted performance compared to ELMO, GloVe, or Word2Vec.
Limitations and Future Work
- Dataset Nature: The authors acknowledge that the current datasets (recipes and manuals) are relatively sequential, which might limit the evaluation of the model's ability to handle complex concurrent actions or choices. Future work could explore more diverse domains with richer control flow structures.
- Generalizability: While deep learning models offer better adaptability than rule-based systems, the model's external validity might still be limited by the specific characteristics of the training data.
- Extension to BPMN: The current model focuses on extracting general procedural knowledge. Extending it to generate specific Business Process Model and Notation (BPMN) models, which include elements like swimlanes and artifacts, is a potential future direction.
- Computational Cost: The coarse-to-fine learning approach, while effective, leads to longer running times compared to traditional methods. Further optimization might be necessary for real-time applications.
Summary updated