Automatic Business Process Structure Discovery using Ordered Neurons LSTM: A Preliminary Study

Xue Han, Lianxue Hu, Yabin Dang, Shivali Agarwal, Lijun Mei, Shaochun Li, Xin ZhouarXiv 2020

Abstract

Automatic process discovery from textual process documentations is highly desirable to reduce time and cost of Business Process Management (BPM) implementation in organizations. However, existing automatic process discovery approaches mainly focus on identifying activities out of the documentations. Deriving the structural relationships between activities, which is important in the whole process discovery scope, is still a challenge. In fact, a business process has latent semantic hierarchical structure which defines different levels of detail to reflect the complex business logic. Recent findings in neural machine learning area show that the meaningful linguistic structure can be induced by joint language modeling and structure learning. Inspired by these findings, we propose to retrieve the latent hierarchical structure present in the textual business process documents by building a neural network that leverages a novel recurrent architecture, Ordered Neurons LSTM (ON-LSTM), with process-level language model objective. We tested the proposed approach on data set of Process Description Documents (PDD) from our practical Robotic Process Automation (RPA) projects. Preliminary experiments showed promising results.

Introduction

In Business Process Management (BPM), the initial phase of "process discovery"—creating an "as-is" model of organizational operations—remains a significant challenge. Research indicates that approximately 85% of process-related information is stored in unstructured text formats, such as memos, design documents, and manuals. Manually extracting this information is both labor-intensive and costly.

While current AI methodologies are effective at identifying discrete activities (e.g., "Log in to SAP"), they often fail to capture the underlying structural relationships. A business process is inherently hierarchical, where high-level processes are composed of sub-processes, which in turn consist of specific objects or API calls. This study explores the use of Ordered Neurons LSTM (ON-LSTM) to automatically induce these latent hierarchies from raw text.

Methodology

The proposed approach utilizes a three-stage neural pipeline designed to capture the hierarchical nature of business documentation.

  1. Document Encoder: The system employs a hierarchical BiLSTM. A sentence-level RNN first encodes individual words into sentence vectors. Subsequently, a process-level RNN encodes these vectors into a contextualized representation of the entire document.
  2. Ordered Neurons LSTM (ON-LSTM): The core of the architecture is the ON-LSTM, which introduces an inductive bias for hierarchy. By using "master gates," the model ensures that specific neurons track long-term, high-level information (e.g., process goals), while others focus on short-term, low-level details (e.g., individual steps).
  3. Structure Retrieval: The model is trained using a process-level language modeling objective, predicting the next sentence in a sequence. Post-training, "level distances" derived from the ON-LSTM master gates are used in a greedy top-down algorithm to extract the latent tree structure.
The proposed neural architecture for process structure discovery, featuring a hierarchical BiLSTM encoder and an ON-LSTM layer for latent structure retrieval.

Experimental Setup

The study was conducted using a proprietary dataset of Process Definition Documents (PDD) sourced from approximately 100 real-world Robotic Process Automation (RPA) projects. These documents cover 52 different target systems, including SAP, Oracle, and Outlook. The dataset was preprocessed into roughly 2,000 process segments. To evaluate the model, the induced tree structures were compared against ground truth RPA workflow designs (BluePrism) and BPMN models developed by human experts.

Results and Discussion

A fundamental insight of this research is that the hierarchical logic used to parse linguistic syntax (words to phrases to clauses) is analogous to the structure of business processes (steps to sub-processes to processes). This allows for unsupervised discovery, where the model learns structural relationships as a byproduct of language modeling.

Visualization of the process hierarchy discovery: (a) conceptual levels, (b) textual process description, and (c) the induced tree structure.

The model's performance was evaluated using a metric similar to Graph Edit Distance (Simged). The results showed:

  • Node Matching: 76%
  • Edge Matching: 57%
  • Overall Structural Similarity: 32%

While the overall similarity score of 32% appears modest, it is important to note that textual descriptions often include "noise"—such as explanatory notes—that is absent from formal graphical models, naturally impacting the similarity score.

Limitations and Future Work

The current study identifies several areas for improvement. The ON-LSTM architecture is presently constrained to generating binary trees, whereas real-world processes often involve multi-way branching. Additionally, the use of GloVe embeddings was a limitation necessitated by the small dataset size; future work will explore Transformers (e.g., BERT) and the integration of syntactic features like Part-of-Speech tags. Finally, the model currently focuses on hierarchy and does not yet account for complex flow logic, such as parallel tasks or loops.

Summary updated

BibTeX
@misc{han2020automatic,
  author = {Xue Han and Lianxue Hu and Yabin Dang and Shivali Agarwal and Lijun Mei and Shaochun Li and Xin Zhou},
  title = {{Automatic Business Process Structure Discovery using Ordered Neurons LSTM: A Preliminary Study}},
  year = {2020},
  eprint = {2001.01243},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2001.01243},
}
Figure