Generating Counterfactual Explanations Under Temporal Constraints

Authors

  • Andrei Buliga Fondazione Bruno Kessler Free University of Bozen-Bolzano
  • Chiara Di Francescomarino University of Trento
  • Chiara Ghidini Free University of Bozen-Bolzano
  • Marco Montali Free University of Bozen-Bolzano
  • Massimiliano Ronzani Fondazione Bruno Kessler

DOI:

https://doi.org/10.1609/aaai.v39i15.33715

Abstract

Counterfactual explanations are one of the prominent eXplainable Artificial Intelligence (XAI) techniques, and suggest changes to input data that could alter predictions, leading to more favourable outcomes. Existing counterfactual methods do not readily apply to temporal domains, such as that of process mining, where data take the form of traces of activities that must obey to temporal background knowledge expressing which dynamics are possible and which not. Specifically, counterfactuals generated off-the-shelf may violate the background knowledge, leading to inconsistent explanations. This work tackles this challenge by introducing a novel approach for generating temporally constrained counterfactuals, guaranteed to comply by design with background knowledge expressed in Linear Temporal Logic on process traces (LTLp). We do so by infusing automata-theoretic techniques for LTLp inside a genetic algorithm for counterfactual generation. The empirical evaluation shows that the generated counterfactuals are temporally meaningful and more interpretable for applications involving temporal dependencies.

Published

2025-04-11

How to Cite

Buliga, A., Di Francescomarino, C., Ghidini, C., Montali, M., & Ronzani, M. (2025). Generating Counterfactual Explanations Under Temporal Constraints. Proceedings of the AAAI Conference on Artificial Intelligence, 39(15), 15622–15631. https://doi.org/10.1609/aaai.v39i15.33715

Issue

Section

AAAI Technical Track on Machine Learning I