Learning Probabilistic Temporal Logic Specifications for Stochastic Systems
Rajarshi Roy, Yash Pote, David Parker, Marta Kwiatkowska
TL;DR
This work tackles the challenge of learning probabilistic temporal specifications for stochastic systems by inferring PLTL^{+} formulas from positive and negative DTMCs. It introduces PriTL, a three-stage pipeline that combines grammar-based enumeration, probabilistic threshold search via model checking, and Boolean set cover to extract concise, interpretable PLTL^{+} specifications. The approach is supported by theoretical guarantees (soundness, completeness, minimality) and validated in two domains: learning from reinforcement-learning–driven strategies and distinguishing variants of probabilistic models. This framework enables automatic, compact temporal specifications that aid verification and policy analysis, and integrates with established tools such as PRISM for scalable probabilistic model checking.
Abstract
There has been substantial progress in the inference of formal behavioural specifications from sample trajectories, for example, using Linear Temporal Logic (LTL). However, these techniques cannot handle specifications that correctly characterise systems with stochastic behaviour, which occur commonly in reinforcement learning and formal verification. We consider the passive learning problem of inferring a Boolean combination of probabilistic LTL (PLTL) formulas from a set of Markov chains, classified as either positive or negative. We propose a novel learning algorithm that infers concise PLTL specifications, leveraging grammar-based enumeration, search heuristics, probabilistic model checking and Boolean set-cover procedures. We demonstrate the effectiveness of our algorithm in two use cases: learning from policies induced by RL algorithms and learning from variants of a probabilistic model. In both cases, our method automatically and efficiently extracts PLTL specifications that succinctly characterise the temporal differences between the policies or model variants.
