Process Extraction from Texts via Multi-Task Architecture

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

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).

Overview of the Process Model Extraction (PME) task, showing the transition from text to procedural knowledge and finally to a process model.

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:

  1. Sentence Classification (ST1): Distinguishing between action and control statements.
  2. Sentence Semantics (ST2): Identifying structural signals (e.g., start of a block, concurrent steps, or optional paths).
  3. 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").

The coarse-to-fine learning mechanism, illustrating the two-stage training process from sentence-level subtasks to word-level labeling.

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

BibTeX
@inproceedings{qian2019process,
  author = {Chen Qian and Lijie Wen and Mingsheng Long and Yanwei Li and Akhil Kumar and Jianmin Wang},
  title = {{Process Extraction from Texts via Multi-Task Architecture}},
  booktitle = {CAiSE},
  year = {2019},
  doi = {10.48550/arxiv.1906.02127},
}
Figure