Proceedings

Counterfactual Strategies for Markov Decision Processes

Download BibTeX Cite

Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence. Main Track. Pages 412-420.

https://doi.org/10.24963/ijcai.2025/47

Abstract

Counterfactuals are widely used in AI to explain how minimal changes to a model’s input can lead to a different output.

However, established methods for computing counterfactuals typically focus on one-step decision-making, and are not directly applicable to sequential decision-making tasks.

This paper fills this gap by introducing counterfactual strategies for Markov Decision Processes (MDPs).

During MDP execution, a strategy decides which of the enabled actions (with known probabilistic effects) to execute next.

Given an initial strategy that reaches an undesired outcome with a probability above some limit, we identify minimal changes to the initial strategy to reduce that probability below the limit.

We encode such counterfactual strategies as solutions to non-linear optimization problems, and further extend our encoding to synthesize diverse counterfactual strategies.

We evaluate our approach on four real-world datasets and demonstrate its practical viability in sophisticated sequential decision-making tasks.

  1. [Baier and Katoen, 2008] Christel Baier and Joost-Pieter Katoen. Principles of Model Checking. MIT press, 2008.
  2. [Balke and Pearl, 1994a] Alexander Balke and Judea Pearl. Counterfactual probabilities: Computational methods, bounds and applications. In Uncertainty in artificial in- telligence, pages 46-54. Elsevier, 1994.
  3. [Balke and Pearl, 1994b] Alexander Balke and Judea Pearl. Probabilistic evaluation of counterfactual queries. In Proc. 12th National Conference on Artificial Intelligence (AAAI), pages 230-237. AAAI Press / The MIT Press, 1994.
  4. [Bartocci et al., 2011] Ezio Bartocci, Radu Grosu, Panagi- otis Katsaros, CR Ramakrishnan, and Scott A Smolka. Model repair for probabilistic systems. In Proc. 17th Inter- national Conference on Tools and Algorithms for the Con- struction and Analysis of Systems (TACAS 2011), pages 326-340. Springer, 2011.
  5. [Billionnet et al., 2016] Alain Billionnet, Sourour Elloumi, and Amélie Lambert. Exact quadratic convex reformula- tions of mixed-integer quadratically constrained problems. Mathematical Programming, 158(1):235-266, 2016.
  6. [Bove et al., 2023] Clara Bove, Marie-Jeanne Lesot, Charles Albert Tijus, and Marcin Detyniecki. Investigat- ing the intelligibility of plural counterfactual examples for non-expert users: an explanation user interface proposition and user study. In Proc. 28th International Conference on Intelligent User Interfaces, pages 188-203. ACM, 2023.
  7. [Boyd and Vandenberghe, 2004] Stephen P. Boyd and Lieven Vandenberghe. Convex Optimization. Cambridge University Press, 2004.
  8. [Brost et al., 2019] Brian Brost, Rishabh Mehrotra, and Tris- tan Jehan. The music streaming sessions dataset. In The World Wide Web Conference, pages 2594-2600, 2019.
  9. [Chatzieleftheriou and Katsaros, 2018] George Chatzieleft- heriou and Panagiotis Katsaros. Abstract model repair for probabilistic systems. Information and Computation, 259:142-160, 2018.
  10. [Chen et al., 2013] Taolue Chen, Ernst Moritz Hahn, Tingt- ing Han, Marta Kwiatkowska, Hongyang Qu, and Lijun Zhang. Model repair for Markov decision processes. In 2013 International Symposium on Theoretical Aspects of Software Engineering, pages 85-92. IEEE, 2013.
  11. [Cubuktepe et al., 2017] Murat Cubuktepe, Nils Jansen, Se- bastian Junges, Joost-Pieter Katoen, Ivan Papusha, Hasan A. Poonawala, and Ufuk Topcu. Sequential convex programming for the efficient verification of parametric MDPs. In Proc. 23rd International Conference on Tools and Algorithms for the Construction and Analysis of Sys- tems (TACAS 2017), volume 10206 of LNCS, pages 133- 150. Springer, 2017.
  12. [Cubuktepe et al., 2018] Murat Cubuktepe, Nils Jansen, Se- bastian Junges, Joost-Pieter Katoen, and Ufuk Topcu. Syn- thesis in pMDPs: A tale of 1001 parameters. In Interna- tional Symposium on Automated Technology for Verifica- tion and Analysis, pages 160-176. Springer, 2018.
  13. [Cubuktepe et al., 2021] Murat Cubuktepe, Nils Jansen, Se- bastian Junges, Joost-Pieter Katoen, and Ufuk Topcu. Convex optimization for parameter synthesis in MDPs. IEEE Transactions on Automatic Control, 67(12):6333- 6348, 2021.
  14. [Gajcin and Dusparic, 2024] Jasmina Gajcin and Ivana Dus- paric. Redefining counterfactual explanations for rein- forcement learning: Overview, challenges and opportuni- ties. ACM Computing Surveys, 56(9):1-33, 2024.
  15. [Garey and Johnson, 1979] Michael R Garey and David S Johnson. Computers and Intractability: A Guide to the Theory of NP-Completeness. W. H. Freeman, 1979.
  16. [Guidotti, 2024] Riccardo Guidotti. Counterfactual expla- nations and how to find them: literature review and benchmarking. Data Mining and Knowledge Discovery, 38(5):2770-2824, 2024.
  17. [Huang et al., 2021] Tsung-Hao Huang, Andreas Metzger, and Klaus Pohl. Counterfactual explanations for predic- tive business process monitoring. In European, Mediter- ranean, and Middle Eastern Conference on Information Systems, pages 399-413. Springer, 2021.
  18. [Kazemi et al., 2024] Milad Kazemi, Jessica Lally, Ekate- rina Tishchenko, Hana Chockler, and Nicola Paoletti. Counterfactual influence in Markov decision processes. arXiv preprint arXiv:2402.08514, 2024.
  19. [Kobialka et al., 2022] Paul Kobialka, Silvia Lizeth Tapia Tarifa, Gunnar Rye Bergersen, and Einar Broch Johnsen. Weighted games for user journeys. In Proc. 20th International Conference Software Engineering and Formal Methods (SEFM 2022), volume 13550 of LNCS, pages 253-270. Springer, 2022.
  20. [Kobialka et al., 2025] Paul Kobialka, Lina Gerlach, Francesco Leofante, Erika Ábrahám, Silvia Lizeth Tapia Tarifa, and Einar Broch Johnsen. Counterfactual strate- gies for Markov decision processes. arXiv preprint arXiv:2505.09412, 2025.
  21. [Leo et al., 2019] Martin Leo, Suneel Sharma, and Koilakuntla Maddulety. Machine learning in bank- ing risk management: A literature review. Risks, 7(1):29, 2019.
  22. [Levin and Peres, 2017] David A Levin and Yuval Peres. Markov Chains and Mixing Times, volume 107. Ameri- can Mathematical Soc., 2017.
  23. [Mao et al., 2016] Hua Mao, Yingke Chen, Manfred Jaeger, Thomas D. Nielsen, Kim G. Larsen, and Brian Nielsen. Learning deterministic probabilistic automata from a model checking perspective. Machine Learning, 105(2):255-299, 2016.
  24. [Molnar, 2020] Christoph Molnar. Interpretable Machine Learning. Lulu.com, 2020.
  25. [Mothilal et al., 2020] Ramaravind K Mothilal, Amit Sharma, and Chenhao Tan. Explaining machine learning classifiers through diverse counterfactual explanations. In Proc. 2020 Conference on Fairness, Accountability, and Transparency, pages 607-617. ACM, 2020.
  26. [Pathak et al., 2015] Shashank Pathak, Erika Ábrahám, Nils Jansen, Armando Tacchella, and Joost-Pieter Katoen. A greedy approach for the efficient repair of stochastic mod- els. In NASA Formal Methods Symposium, pages 295-309. Springer, 2015.
  27. [Russell, 2019] Chris Russell. Efficient search for diverse coherent explanations. In Proc. Conference on Fairness, Accountability, and Transparency, pages 20-28. ACM, 2019.
  28. [Teinemaa et al., 2019] Irene Teinemaa, Marlon Dumas, Marcello La Rosa, and Fabrizio Maria Maggi. Outcome- oriented predictive process monitoring: Review and benchmark. ACM Transactions on Knowledge Discovery from Data (TKDD), 13(2):1-57, 2019.
  29. [Tsirtsis et al., 2021] Stratis Tsirtsis, Abir De, and Manuel Rodriguez. Counterfactual explanations in sequential de- cision making under uncertainty. Advances in Neural In- formation Processing Systems, 34:30127-30139, 2021.
  30. [van Dongen, 2012] Boudewijn van Dongen. BPI Challenge, 2012.
  31. [van Dongen, 2017] Boudewijn van Dongen. BPI Challenge, 2017.

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards