Chameleons do not Forget: Prompt-Based Online Continual Learning for Next Activity Prediction

Marwan Hassani, Tamara Verbeek, Sjoerd van Straten
4/1/2026
3 citations
cs.LG

Official code: SvStraten/CNAPwP (0 stars, Python, last commit 2026-04-02).

Abstract

Predictive process monitoring (PPM) focuses on predicting future process trajectories, including next activity predictions. This is crucial in dynamic environments where processes change or face uncertainty.

Show full abstract

However, current frameworks often assume a static environment, overlooking dynamic characteristics and concept drifts. This results in catastrophic forgetting, where training while focusing merely on new data distribution negatively impacts the performance on previously learned data distributions. Continual learning addresses, among others, the challenges related to mitigating catastrophic forgetting. This paper proposes a novel approach called Continual Next Activity Prediction with Prompts (CNAPwP), which adapts the DualPrompt algorithm for next activity prediction to improve accuracy and adaptability while mitigating catastrophic forgetting. We introduce new datasets with recurring concept drifts, alongside a task-specific forgetting metric that measures the prediction accuracy gap between initial occurrence and subsequent task occurrences. Extensive testing on three synthetic and two real-world datasets representing several setups of recurrent drifts shows that CNAPwP achieves SOTA or competitive results compared to five baselines, demonstrating its potential applicability in real-world scenarios. An open-source implementation of our method, together with the datasets and results, is available at: https://github.com/SvStraten/CNAPwP.

View on arXivView PDF

Code Implementations(1)

SvStraten/CNAPwPOfficial100%
00PythonAug 6, 20258 months ago

Similar Papers

Cite this paper

@article{hassani2026chameleons,
  title  = {Chameleons do not Forget: Prompt-Based Online Continual Learning for Next Activity Prediction},
  author = {Marwan Hassani and Tamara Verbeek and Sjoerd van Straten},
  year   = {2026},
  eprint = {2604.00653},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2604.00653v2}
}

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/2604.00653.svg)](https://codeofpaper.com/paper/2604.00653)

Discussion