LTLf Synthesis on Probabilistic Systems

Andrew M. Wells, Morteza Lahijanian, Lydia E. Kavraki, Moshe Y. Vardi

TL;DR

This paper introduces the first formal framework for policy synthesis on Markov Decision Processes (MDPs) using Linear Temporal Logic over finite traces ($LTL_f$). The authors demonstrate that a "native" approach—translating $LTL_f$ directly to minimal finite automata—significantly outperforms traditional methods that reduce finite-trace problems to standard infinite-trace LTL synthesis.

What Problem Does This Paper Address?

In formal verification and robotics, we often model systems as Markov Decision Processes (MDPs), which capture both strategic choices and probabilistic uncertainty. The goal is to find a "policy" (a strategy) that maximizes the probability of the system satisfying a specific behavior.

Traditionally, these behaviors are defined using Linear Temporal Logic (LTL), which reasons over infinite sequences of events (e.g., "the robot will always eventually return to the charging station"). However, many real-world tasks are inherently finite: a robot building a specific object or a game ending in a win/loss state. While $LTL_f$ was developed to handle these finite-trace properties, tools for synthesizing optimal policies on probabilistic systems using $LTL_f$ were previously non-existent. Researchers typically had to "hack" the problem by forcing finite properties into infinite-trace LTL frameworks, which often leads to computational inefficiency.

Methods

The authors propose and compare two distinct algorithmic pipelines:

  1. Reduction to LTL Synthesis: This approach transforms the $LTL_f$ problem into a standard LTL problem. It involves augmenting the original MDP with a special "termination" state ($s_{term}$) and a "termination" action ($a_{term}$), effectively allowing the system to "stop" once a goal is reached. The $LTL_f$ formula is then translated into a specific LTL counterpart that requires the system to remain "alive" until the goal is satisfied and then terminate.
  2. See Figure 2 for an illustration of this augmentation: Augmented MDP constructed from M in Fig.

1.

Augmented MDP constructed from M in Fig. 1.
  1. Native $LTL_f$ Approach: Instead of reducing the problem, this method translates the $LTL_f$ formula directly into a Deterministic Finite Automaton (DFA) using specialized tools like MONA. This DFA is then combined with the original MDP to create a product MDP. The synthesis problem then becomes a maximal reachability probability problem on this product, which can be solved using standard probabilistic model checkers like PRISM.

Datasets

Since no standard benchmark set for $LTL_f$ synthesis on MDPs existed, the authors evaluated their methods on four types of probabilistic models:

  • Gridworld: An agent navigating a grid with stochastic movement to reach goals while avoiding obstacles.
  • Dining Philosophers: A classic concurrency problem adapted for finite-trace properties (e.g., "everyone must eat at least once").
  • Nim: A probabilistic version of the mathematical game of strategy.
  • Double Counter: A game involving matching two four-bit binary counters, where one is controlled by a stochastic environment.

Key Insights and Ideas

  • Minimality Matters: The "aha moment" is that native $LTL_f$ tools produce minimal DFAs. In contrast, LTL pipelines produce $\omega$-automata (like Deterministic Rabin Automata) that are generally much larger and cannot be minimized as effectively. Smaller automata lead to smaller product MDPs and faster synthesis.
  • Scalability Gap: While both approaches have the same theoretical complexity (doubly-exponential), the native approach is practically superior. The reduction to LTL adds unnecessary complexity to both the model and the logic, which compounds as the specification grows.
  • Tool Integration: The authors found that while external tools (like MONA) are faster at building automata, the internal BDD (Binary Decision Diagram) representations used by PRISM can sometimes be more efficient for the final reachability analysis.

Key Results

  • Formula Complexity: In Gridworld tests, the native approach began to outperform the LTL reduction for any formula more complex than $F_3$ (a simple sequence of 3 goals).
  • Memory Efficiency: For a complex formula ($F_{10}$), the standard PRISM LTL pipeline ran out of memory. The native approach, however, successfully synthesized policies for formulas up to $F_{17}$.
  • Extreme Speedups: In the Double-Counter game, the LTL-based approach timed out after 3 hours, while the native $LTL_f$ approach completed the synthesis in less than 5 seconds.
  • Automata Size: The DFAs generated by the native pipeline were typically half the size (in terms of states) of the DRAs generated by the LTL pipeline.

Limitations and Future Work

  • Disk I/O Bottleneck: Currently, the native approach relies on calling external tools and reading/writing files to disk (e.g., HOA format files). For very large formulas (e.g., $F_{17}$), the resulting files can exceed 10GB, making disk I/O a significant performance bottleneck.
  • Symbolic Integration: The authors suggest that a fully symbolic implementation of the native $LTL_f$ approach—where the automaton is built and combined with the MDP entirely within a symbolic engine like PRISM—would likely yield even better results.
  • Probability Minimization: The current work focuses on maximizing the probability of success. The authors plan to extend this to probability minimization (e.g., for safety specifications) in future work.

Summary updated

BibTeX
@inproceedings{wells2020ltlf,
  author = {Andrew M. Wells and Morteza Lahijanian and Lydia E. Kavraki and Moshe Y. Vardi},
  title = {{LTLf Synthesis on Probabilistic Systems}},
  booktitle = {GandALF},
  year = {2020},
  url = {https://openreview.net/forum?id=utaahDsQz6},
}
Figure