Solving K-MDPs

Jonathan Ferrer-Mestres, Thomas G. Dietterich, Olivier Buffet, Iadine ChadèsICAPS 2020

Abstract

Markov Decision Processes (MDPs) are employed to model sequential decision-making problems under uncertainty. Traditionally, algorithms to solve MDPs have focused on solving large state or action spaces. With increasing applications of MDPs to human-operated domains such as conservation of biodiversity and health, developing easy-to-interpret solutions is of paramount importance to increase uptake of MDP policies. Here, we define the problem of solving K-MDPs, i.e., given an original MDP and a constraint on the number of states ($K$), generate a reduced state space MDP that minimizes the difference between the original optimal MDP value function and the reduced optimal K-MDP value function. Building on existing non-transitive and transitive approximate state abstraction functions, we propose a family of three algorithms based on binary search with sub-optimality bounded polynomially in a precision parameter: $\phi_{Q^* \epsilon}$ K-MDP-ILP, $\phi_{Q^* d}$ K-MDP and $\phi_{a^* d}$ K-MDP. We compare these algorithms to a greedy algorithm and clustering approach. On randomly generated MDPs and two computational sustainability MDPs, $\phi_{a^* d}$ K-MDP outperformed all algorithms when it could find a feasible solution. While numerous state abstraction problems have been proposed in the literature, this is the first time that the general problem of solving K-MDPs is suggested.

Introduction

While Markov Decision Processes (MDPs) provide a robust framework for sequential decision-making, their practical application in human-centric fields—such as wildlife conservation or healthcare—is often hindered by complexity. A policy derived from an MDP with thousands of states is essentially a "black box" to human experts who must audit and implement these decisions. To address this, we introduce the K-MDP problem: the task of reducing a large MDP to a simplified version with at most $K$ states while minimizing the loss in performance (the "gap").

Methodology

The core of our approach lies in state abstraction, where similar states in the original MDP are grouped into "meta-states." We propose three primary algorithms:

  1. $\phi_{Q^* \epsilon}$ K-MDP-ILP: Uses a non-transitive abstraction where states are grouped if their optimal Q-values are within $\epsilon$. This is solved via Integer Linear Programming (ILP).
  2. $\phi_{Q^* d}$ K-MDP: A faster, transitive approach that bins Q-values into discrete intervals of size $d$.
  3. $\phi_{a^* d}$ K-MDP: The most restrictive method, which only groups states if they share the same optimal action and have similar values.

To find the optimal abstraction for a given $K$, we employ a binary search over the precision parameters ($\epsilon$ or $d$). This allows us to systematically find the most granular model that still fits within the human-interpretable constraint $K$.

Experimental Evaluation

We evaluated these algorithms on random MDPs (up to 5,000 states) and real-world sustainability models, including sea otter conservation and mosquito control.

Performance gap vs. K for the Sea Otter conservation model ($|S|=819$).

As shown in the figure above, the $\phi_{a^* d}$ K-MDP algorithm (orange line) consistently maintains a near-zero performance gap even as the number of states $K$ is drastically reduced. In contrast, greedy and clustering approaches show significantly higher error rates as $K$ decreases.

Transition diagrams showing the reduction of a complex MDP into a human-interpretable 10-state K-MDP.

The practical utility of this reduction is evident in the Sea Otter case study. By reducing the state space from 819 to just 10, we transform an uninterpretable policy into a clear, navigable graph (right) that conservationists can use to understand the model's logic without sacrificing significant performance (less than 2.8% loss).

Conclusion

Our findings suggest that preserving the optimal action ($\phi_{a^* d}$) is more critical for maintaining performance in reduced models than simply matching numerical values. While our current methods require solving the original MDP first, they represent a significant step toward Explainable AI (XAI) in sequential decision-making. Future work will explore applying these techniques to domains where the original MDP is too large to solve exactly.

Summary updated

BibTeX
@inproceedings{ferrermestres2020solving,
  author = {Jonathan Ferrer-Mestres and Thomas G. Dietterich and Olivier Buffet and Iadine Chadès},
  title = {{Solving K-MDPs}},
  booktitle = {ICAPS},
  year = {2020},
  url = {https://openreview.net/forum?id=Eh-WKcDiIzJ},
}
Figure