Counterfactual Strategies for Markov Decision Processes
Paul Kobialka, Lina Gerlach, Francesco Leofante, Erika Ábrahám, Silvia Lizeth Tapia Tarifa, Einar Broch Johnsen
TL;DR
This work tackles explaining sequential decision-making by introducing counterfactual strategies for Markov Decision Processes (MDPs). It formulates counterfactual strategy synthesis as a non-convex MIQCQP that minimizes a distance between the original and counterfactual strategies while ensuring the desired reduction in reachability probability to a target state, and it extends the framework to generate diverse explanations. The approach enforces actionability by restricting changes to user-controllable actions and demonstrates feasibility on real-world datasets with thousands of states, yielding both single and multiple diverse counterfactual strategies within practical runtimes. The results establish a practical pathway for post-hoc explanations and recourse in complex sequential tasks, with potential impact on processes like loan applications and other sequential decision problems across domains.
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.
