TraceWalk: Semantic-based Process Graph Embedding for Consistency Checking

Chen Qian, Lijie Wen, Akhil KumararXiv 2019

Abstract

Process consistency checking (PCC), an interdiscipline of natural language processing (NLP) and business process management (BPM), aims to quantify the degree of (in)consistencies between graphical and textual descriptions of a process. However, previous studies heavily depend on a great deal of complex expert-defined knowledge such as alignment rules and assessment metrics, thus suffer from the problems of low accuracy and poor adaptability when applied in open-domain scenarios. To address the above issues, this paper makes the first attempt that uses deep learning to perform PCC. Specifically, we proposed TraceWalk, using semantic information of process graphs to learn latent node representations, and integrates it into a convolutional neural network (CNN) based model called TraceNet to predict consistencies. The theoretical proof formally provides the PCC's lower limit and experimental results demonstrate that our approach performs more accurately than state-of-the-art baselines.

Introduction

In modern business and engineering environments, process knowledge is typically maintained in two parallel formats: graphical models (such as flowcharts or BPMN diagrams) for logical structure, and textual descriptions (such as Standard Operating Procedures) for human readability. Over time, these two representations often drift apart, leading to operational errors and compliance risks.

Process Consistency Checking (PCC) is the task of quantifying the alignment between these two formats. Traditional PCC methods rely on rigid, expert-defined alignment rules to map graph nodes to specific sentences. These rule-based approaches are often brittle, struggling with the inherent ambiguity of natural language and failing to adapt to diverse domains. This paper introduces TraceNet, the first deep learning-based framework designed to automate PCC without requiring manual alignment or complex heuristics.

Overview of Process Consistency Checking (PCC) comparing textual and graphical process descriptions.

The TraceNet Framework

TraceNet addresses the PCC problem by embedding both graphs and text into a shared semantic space. The architecture consists of three primary components:

1. TraceWalk (Semantic Graph Embedding)

The core innovation is TraceWalk, a method for learning latent node representations from process graphs. To bridge the gap between structured graphs and sequential text, TraceWalk generates "Process Graph Traces" (PGTs). These traces are complete execution paths through the flowchart that respect logical gateways (e.g., AND, XOR, OR). By treating these traces as "sentences," the model uses a Word2Vec-style skip-gram approach to learn the semantic context of each node based on its position in various execution paths.

2. Text Embedding

Simultaneously, textual descriptions are processed using pre-trained Word2Vec models. This ensures that the semantic meaning of the words used in the process steps is captured effectively, allowing the model to understand that "beat the milk" and "whisk the dairy" are semantically similar even if the exact wording differs.

3. Consistency Assessment via Siamese CNN

The graph and text embeddings are fed into a Siamese Convolutional Neural Network (CNN). This dual-branch architecture uses multiscale filters to extract local features of varying lengths from both the graph traces and the text. These features are fused and passed through fully connected layers to produce a final consistency score ranging from 0.0 (totally inconsistent) to 1.0 (identical).

The TraceNet architecture, integrating TraceWalk graph embeddings and text embeddings for consistency prediction.

Experimental Setup and Results

To train and evaluate the model, the authors utilized four diverse datasets: Randomly Generated Graphs (RGG), SAP Structured Process Graphs (SPR), Industrial Petri Nets (IPN), and Academic BPMN models (ABM). Because labeled consistency data is scarce, a synthetic pipeline was developed using the Goun translator to generate text from graphs and Behavior Profiles to establish ground truth similarity scores.

Key Findings

  • Superior Accuracy: TraceNet consistently outperformed state-of-the-art baselines (including FCCM and ILP) across all datasets. For instance, on the Academic (ABM) dataset, TraceNet achieved an error rate of 0.067, significantly lower than the next best baseline at 0.290.
  • Handling Complex Logic: A major weakness of traditional methods is handling logical gateways (AND/OR/XOR). While baselines often performed worse than random guessing on complex logic, TraceNet maintained high accuracy, with error rates as low as 0.055.
  • Theoretical Validation: The authors mathematically proved a theoretical "floor" for PCC error, showing that a random checker would have an expected error of approximately 0.333. TraceNet's performance well below this threshold confirms its ability to learn meaningful process semantics.

Conclusion

TraceWalk and the TraceNet framework represent a significant shift in Process Consistency Checking, moving from manual, rule-based alignment to automated, semantic-based deep learning. By treating process execution paths as a form of language, the model captures the underlying logic of business processes more effectively than previous methods, offering a robust solution for maintaining alignment between documentation and practice in complex industrial environments.

Summary updated

BibTeX
@misc{qian2019tracewalk,
  author = {Chen Qian and Lijie Wen and Akhil Kumar},
  title = {{TraceWalk: Semantic-based Process Graph Embedding for Consistency Checking}},
  year = {2019},
  eprint = {1905.06883},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1905.06883},
}
Figure