<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta>
      <journal-title-group>
        <journal-title>Process Management in the AI era, Aug</journal-title>
      </journal-title-group>
    </journal-meta>
    <article-meta>
      <title-group>
        <article-title>Why are my Pizzas late?⋆</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Dirk Fahland</string-name>
          <email>d.fahland@tue.nl</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Fabiana Fournier</string-name>
          <email>fabiana@il.ibm.com</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Lior Limonad</string-name>
          <email>liorli@il.ibm.com</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Inna Skarbovsky</string-name>
          <email>inna@il.ibm.com</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Ava J.E. Swevels</string-name>
          <email>a.j.e.swevels@tue.nl</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Background.</string-name>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Eindhoven University of Technology</institution>
          ,
          <country country="NL">Netherlands</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>IBM Research</institution>
          ,
          <country country="IL">Israel</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2023</year>
      </pub-date>
      <volume>19</volume>
      <issue>2023</issue>
      <abstract>
        <p>We refer to explainability as a system's ability to provide sound and humanunderstandable insights concerning its outcomes. Explanations should accurately reflect causal relations in process executions [1]. This abstract suggests augmenting process discovery (PD) with causal process discovery (CD) to generate causal-process-execution narratives. These narratives serve as input for large language models (LLMs) to derive sound and human-interpretable explanations. A multi-layered knowledge-graph is employed to facilitate diverse process views.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>
        and  ⋖ 
[
        <xref ref-type="bibr" rid="ref3">3</xref>
        ].
      </p>
      <p>
        Advancements in Machine Learning (ML) have made ML models more complex, sacrificing
explainability and resulting in “black box” models. This led to the emergence of external
explanation frameworks, known as XAI, to enhance understandability [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]. XAI frameworks are
predominantly applied post-hoc, after the ML model’s training [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ].
      </p>
      <p>
        Causal discovery [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] infers causal graphs from data by exploring relationships like  →− 
where changes in  entail changes in  . In this work, we used the Linear Non-Gaussian Acyclic
Model (LiNGAM) [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] for CD as in [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. Inspired by[
        <xref ref-type="bibr" rid="ref8">8</xref>
        ], which highlights LLMs’ ability to provide
interpretable explanations, we aim to demonstrate that CD can enhance explanations of process
execution outcomes when used as input for LLMs. LLMs are deep-learning models trained on
text data, adept at few-shot and zero-shot learning using prompt-based techniques [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ].
Approach.
      </p>
      <p>Our research aims are combining PD, CD, and XAI to generate narratives for
improved process outcome explanations using LLMs. As a proof-of-concept (POC), we show

how CD helps to leverage LLMs for more sound explanations.</p>
      <p>
        We use a multi-layered knowledge graph stored in a Neo4j database as infrastructure. We
model the data using labeled property graphs in which each node and each relationship (directed
edge) is typed by a label. Fig. 1 shows the graph schema. Each Event node has a timestamp, and
is correlated to one case; the directly-follows relations describe the temporal order of all events
correlated to the same case. These concepts allow modeling any event log in a graph [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ].
      </p>
      <p>
        The graph schema can be extended with additional nodes and relations for the derivation of
a variety of views. For example, the schema can be extended with an Entity node to enable a
multi-dimensional view of the process [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ]. In our case, we extended the schema (blue color)
with the activity node and the flows-to and causes relations for two activity-level inferred views:
• Process view - we infer activities and directly-follows ordering of activities by aggregation from
events [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ]. Accordingly, we infer the flows-to relation through process discovery, e.g., [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ].
• Causal view - we infer the causes relationship as a causal-execution-dependency as in [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ].
      </p>
      <p>
        Accordingly, we infer the causes relation among the activities as annotated.
Illustrative Example. Using a simulated pizza-line dataset of 10 cases, our objective was to
explain delivery delays. The process includes order acceptance, pizza assembly that combines
sauce with a selection of dough thickness and number of toppings, baking, and boxing. Delays
beyond a threshold trigger customer compensation. Start times have a 5-minute exponential
distribution, and activity durations have uniform distributions as listed in Table1. The Heuristics
Miner [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ] PD algorithm yields the model in Fig.2.
      </p>
      <p>
        Following our approach, we applied the LiNGAM CD algorithm to generate the causal view
for the process. We partitioned the event log into the entire dataset and a subset containing late
cases. Fig. 3 shows the causal models for both. For each of the two views, causal and process, a
narrative was generated to reflect their structure and dependencies, “causes” and “flows-to”.
(a) All cases
(b) Late cases
Preliminary Results. As presented in [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ], the causal view supplements the process view,
as a powerful tool for the purpose of process explainability. This work examines the use of
LLMs to facilitate inquiries about process outcomes. For example, in Fig. 4 we show a brief
interaction with ChatGPT, an LLM based chatbot (https://chat.openai.com/chat), where the user
queries about the activities impacting the decision to compensate the customer for delays. In
the left-hand column, the user provides the process narrative before the query, while in the
right-hand column, the causal narrative precedes the query. The left-hand column reply is
based on the process structure, including all activities leading up to the compensation decision.
However, the right-hand column list excludes the “knead dough” and “fetch sauce” activities, as
they are not part of the causal route leading to the decision, as shown in Fig. 3(b).
      </p>
      <p>We also employed a conventional XAI approach using supervised ML for training a
decisiontree (DT) binary classifier to distinguish between late and on-time executions using the same
dataset for its training, and a second one for testing. Model input consisted of two choice
variables: number of toppings and dough type. Accuracy scores ( 1) for the training and testing
sets were 0.9887 and 0.9896, respectively. The feature importance values were 0.9982 for number
of toppings and 0.0017 for dough type. While this result aligns with the causal view in Fig. 3(b)
by emphasizing the significant influence of the number of toppings, it does not rule out the
possibility that the choice of dough type has an efect on the outcome from a causal perspective.
Such insights can only be obtained with the assistance of causal views.</p>
      <p>Conclusions and Outlook. State-of-the-art explanations of process execution outcomes
include the application of XAI techniques over given event logs. This work is a first step towards
the use of causal discovery and LLMs’ prompt engineering for the sake of getting more sound
and human-interpretable explanations. At this stage, we relied on a one-of, out-of-the-box
execution of ChatGPT with no further model tuning (i.e., few-shot learning) to train the language
model to interpret the input narratives, with a focus on explanations that arise from causal
process execution dependencies. Next steps will extend the experiments to include LLM model
tuning, real data sets, and conducting a broad analysis of the diferent techniques employed.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>Y.</given-names>
            <surname>David</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Fournier</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Limonad</surname>
          </string-name>
          ,
          <string-name>
            <surname>I. Skarbovsky</surname>
          </string-name>
          ,
          <article-title>Towards causal business process discovery: The confounder case, BPM 2023 (under review).</article-title>
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>S. J. J.</given-names>
            <surname>Leemans</surname>
          </string-name>
          ,
          <source>Automated process discovery, in: Encyclopedia of Big Data Technologies</source>
          , Springer,
          <year>2019</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>A.</given-names>
            <surname>Augusto</surname>
          </string-name>
          , et al.,
          <article-title>Split miner: automated discovery of accurate and simple business process models from event logs</article-title>
          ,
          <source>Knowl. Inf. Syst</source>
          .
          <volume>59</volume>
          (
          <year>2019</year>
          )
          <fpage>251</fpage>
          -
          <lpage>284</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>C.</given-names>
            <surname>Meske</surname>
          </string-name>
          , et al.,
          <source>Explainable artificial intelligence: objectives</source>
          , stakeholders, and future research opportunities,
          <source>Information Systems Management</source>
          <volume>39</volume>
          (
          <year>2022</year>
          )
          <fpage>53</fpage>
          -
          <lpage>63</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>R.</given-names>
            <surname>Guidotti</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Monreale</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Ruggieri</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Turini</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Giannotti</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Pedreschi</surname>
          </string-name>
          ,
          <article-title>A survey of methods for explaining black box models, ACM computing surveys (CSUR) 51 (</article-title>
          <year>2018</year>
          )
          <fpage>1</fpage>
          -
          <lpage>42</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>J.</given-names>
            <surname>Peters</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Janzing</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Schölkopf</surname>
          </string-name>
          ,
          <article-title>Elements of causal inference: foundations and learning algorithms</article-title>
          , The MIT Press,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>S.</given-names>
            <surname>Shimizu</surname>
          </string-name>
          , Statistical Causal Discovery:
          <source>LiNGAM Approach</source>
          , Springer,
          <year>2022</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>M.</given-names>
            <surname>Vidgof</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Bachhofner</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Mendling</surname>
          </string-name>
          ,
          <article-title>Large language models for business process management: Opportunities and</article-title>
          challenges,
          <year>2023</year>
          . arXiv:
          <volume>2304</volume>
          .
          <fpage>04309</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>P.</given-names>
            <surname>Liu</surname>
          </string-name>
          , et al.,
          <article-title>Pre-train, prompt, and predict: A systematic survey of prompting methods in natural language processing</article-title>
          ,
          <source>ACM Comput. Surv</source>
          .
          <volume>55</volume>
          (
          <year>2023</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>S.</given-names>
            <surname>Esser</surname>
          </string-name>
          ,
          <string-name>
            <surname>D.</surname>
          </string-name>
          <article-title>Fahland, Multi-dimensional event data in graph databases</article-title>
          ,
          <source>J. Data Semant</source>
          .
          <volume>10</volume>
          (
          <year>2021</year>
          )
          <fpage>109</fpage>
          -
          <lpage>141</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>D.</given-names>
            <surname>Fahland</surname>
          </string-name>
          ,
          <article-title>Process mining over multiple behavioral dimensions with event knowledge graphs</article-title>
          ,
          <source>in: Process Mining Handbook</source>
          , volume
          <volume>448</volume>
          <source>of LNBIP</source>
          , Springer,
          <year>2022</year>
          , pp.
          <fpage>274</fpage>
          -
          <lpage>319</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>F.</given-names>
            <surname>Mannhardt</surname>
          </string-name>
          , M. de Leoni,
          <string-name>
            <given-names>H. A.</given-names>
            <surname>Reijers</surname>
          </string-name>
          ,
          <article-title>Heuristic mining revamped: An interactive, data-aware, and conformance-aware miner, in: BPM Demos, CEUR-WS</article-title>
          .org,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>