Attention Please: What Transformer Models Really Learn for Process Prediction

Martin Käppel, Lars Ackermann, Stefan Jablonski, Simon Härtl
8/12/2024
cs.LGcs.AI

No official code found. Best implementation: mkaep/transformer-explainability (7 stars, last commit 2024-08-12).

Abstract

Predictive process monitoring aims to support the execution of a process during runtime with various predictions about the further evolution of a process instance. In the last years a plethora of deep learning architectures have been established as state-of-the-art for different prediction targets, among others the transformer architecture. The transformer architecture is equipped with a powerful attention mechanism, assigning attention scores to each input part that allows to prioritize most relevant information leading to more accurate and contextual output. However, deep learning models largely represent a black box, i.e., their reasoning or decision-making process cannot be understood in detail. This paper examines whether the attention scores of a transformer based next-activity prediction model can serve as an explanation for its decision-making. We find that attention scores in next-activity prediction models can serve as explainers and exploit this fact in two proposed graph-based explanation approaches. The gained insights could inspire future work on the improvement of predictive business process models as well as enabling a neural network based mining of process models from event logs.

View on arXivView PDF

Code Implementations(1)

73PythonJun 14, 20242 years ago

Similar Papers

Cite this paper

@article{kppel2024attention,
  title  = {Attention Please: What Transformer Models Really Learn for Process Prediction},
  author = {Martin Käppel and Lars Ackermann and Stefan Jablonski and Simon Härtl},
  year   = {2024},
  eprint = {2408.07097},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2408.07097v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2408.07097.svg)](https://codeofpaper.com/paper/2408.07097)

Discussion