Faster Algorithms for Markov Decision Processes with Low Treewidth

Krishnendu Chatterjee, Jakub Lacki

Abstract

This paper presents novel algorithms for the qualitative analysis of Markov Decision Processes (MDPs) by leveraging the structural property of low treewidth. By utilizing tree decompositions, the authors achieve near-linear time for static analysis and logarithmic amortized time for dynamic updates, significantly improving upon existing methods that typically require square-root or linear time.

Introduction

In the field of probabilistic verification, qualitative analysis is essential for determining whether a system—such as an autonomous vehicle or a communication protocol—will behave correctly with probability 1. Two fundamental problems underpin this analysis:

  1. Maximal End-Component (MEC) Decomposition: Identifying sets of states where a controller can maintain the system indefinitely.
  2. Almost-Sure Reachability: Determining states from which a controller can guarantee reaching a target set with 100% certainty.

While these problems are computationally expensive for general graphs, many real-world systems derived from structured computer programs exhibit a "simple" underlying graph structure known as low treewidth. This research addresses the efficiency gap by providing specialized algorithms for graphs where the treewidth is small.

Exploiting Low Treewidth through Tree Decomposition

Treewidth is a measure of how "tree-like" a graph is. While a fully connected clique of $n$ nodes has a treewidth of $n-1$, most structured code (e.g., in C or Pascal) results in control flow graphs with treewidths as low as 3 to 6. The authors utilize tree decomposition, a technique that maps a complex graph into a tree where each node (or "bag") contains a small subset of the graph's vertices.

An example graph (left) and its corresponding tree decomposition (right), illustrating how complex structures are mapped into a hierarchical tree of small vertex sets.

Algorithmic Approaches

The paper introduces two primary algorithmic frameworks to exploit this structure:

Dynamic Programming on Trees

For systems with very small treewidth ($k$), the authors developed a bottom-up dynamic programming approach. This method relies on a "separation property," allowing reachability to be solved locally within individual tree bags. These local results are then "patched" together using transitive closures and fast matrix multiplication to derive global properties.

Decremental Graph Techniques

To handle dynamic systems where choices may be removed (e.g., a designer deleting a possible action), the authors adapted advanced data structures that maintain Strongly Connected Components (SCCs) and reachability under edge deletions. Interestingly, by viewing the static problem as a sequence of deletions, they were able to accelerate static analysis as well.

Key Results and Performance Gains

The proposed algorithms offer a significant theoretical speedup over the previous state-of-the-art, particularly for large systems with millions of states.

Analysis Type Previous Best Complexity New Result
Static (Small $k$) $O(n \cdot k \cdot \sqrt{n \cdot k})$ $O(n \cdot 2^k \cdot k^{2.38})$
Static (General $k$) $O(n \cdot k \cdot \sqrt{n \cdot k})$ $O(m \cdot k \cdot \log n)$
Decremental (Updates) $O(n)$ amortized $O(k \cdot \log n)$ amortized

For a system with millions of states, the shift from linear time to logarithmic time for updates represents the difference between a system that freezes during processing and one that updates instantaneously.

Limitations and Future Work

Despite these advancements, several challenges remain. The current dynamic algorithms are "decremental," supporting only edge deletions (removing controller choices). They do not yet support "incremental" updates (adding edges), as additions can fundamentally alter the treewidth and the underlying tree decomposition. Furthermore, the decremental algorithms currently only apply to non-deterministic choices; deleting probabilistic edges is more complex as it alters transition distributions. Future research may explore extending these results to graphs with low DAG-width, another structural measure useful for analyzing games on graphs.

Summary updated

BibTeX
@inproceedings{chatterjee2013faster,
  author = {Krishnendu Chatterjee and Jakub Lacki},
  title = {{Faster Algorithms for Markov Decision Processes with Low Treewidth}},
  booktitle = {CAV},
  year = {2013},
  url = {https://openreview.net/forum?id=-D_enIfeKN0},
}
Figure