A Universal Prompting Strategy for Extracting Process Model Information from Natural Language Text using Large Language Models
Julian Neuberger, Lars Ackermann, Han van der Aa, Stefan Jablonski
TL;DR
The paper tackles the challenge of extracting BPM-relevant information from natural language when data for traditional learning approaches is scarce. It introduces a novel, modular prompting strategy for large language models that combines Context, Task Description, and Restrictions, and demonstrates a proof-of-concept pipeline to transform extracted data into BPMN or declarative process models. Across three datasets and eight LLMs, the approach achieves up to $8\%$ absolute improvements in $F_1$ over state-of-the-art baselines and shows strong cross-model generality, including zero-shot performance that rivals supervised methods. The work provides practical guidelines for prompt design and releases code, prompts, and data to support further research and real-world adoption.
Abstract
Over the past decade, extensive research efforts have been dedicated to the extraction of information from textual process descriptions. Despite the remarkable progress witnessed in natural language processing (NLP), information extraction within the Business Process Management domain remains predominantly reliant on rule-based systems and machine learning methodologies. Data scarcity has so far prevented the successful application of deep learning techniques. However, the rapid progress in generative large language models (LLMs) makes it possible to solve many NLP tasks with very high quality without the need for extensive data. Therefore, we systematically investigate the potential of LLMs for extracting information from textual process descriptions, targeting the detection of process elements such as activities and actors, and relations between them. Using a heuristic algorithm, we demonstrate the suitability of the extracted information for process model generation. Based on a novel prompting strategy, we show that LLMs are able to outperform state-of-the-art machine learning approaches with absolute performance improvements of up to 8\% $F_1$ score across three different datasets. We evaluate our prompting strategy on eight different LLMs, showing it is universally applicable, while also analyzing the impact of certain prompt parts on extraction quality. The number of example texts, the specificity of definitions, and the rigour of format instructions are identified as key for improving the accuracy of extracted information. Our code, prompts, and data are publicly available.
