[Paper Review] Learning Linear Temporal Properties
This paper presents two novel algorithms for learning Linear Temporal Logic (LTL) formulas from positive and negative examples of system behavior. The first uses SAT solving to find the smallest consistent LTL formula, while the second combines SAT-based learning with decision tree induction to scale to hundreds of examples at the cost of minimal formula size. The key contribution is a practical, scalable approach to mining human-readable temporal specifications from system executions.
We present two novel algorithms for learning formulas in Linear Temporal Logic (LTL) from examples. The first learning algorithm reduces the learning task to a series of satisfiability problems in propositional Boolean logic and produces a smallest LTL formula (in terms of the number of subformulas) that is consistent with the given data. Our second learning algorithm, on the other hand, combines the SAT-based learning algorithm with classical algorithms for learning decision trees. The result is a learning algorithm that scales to real-world scenarios with hundreds of examples, but can no longer guarantee to produce minimal consistent LTL formulas. We compare both learning algorithms and demonstrate their performance on a wide range of synthetic benchmarks. Additionally, we illustrate their usefulness on the task of understanding executions of a leader election protocol.
Motivation & Objective
- To address the challenge of reverse-engineering temporal properties from system executions in complex systems such as distributed protocols.
- To develop a learning framework that generates concise, human-understandable LTL formulas from positive and negative examples of system behavior.
- To balance formula minimality with scalability, enabling application to real-world scenarios with hundreds of examples.
- To provide a practical tool for debugging, specification mining, and reverse engineering of temporal behavior in systems like leader election protocols.
Proposed method
- The SAT-based algorithm reduces LTL formula learning to propositional satisfiability problems by constructing formulas ΦS_n for increasing formula sizes n, checking for satisfiability to find the minimal consistent LTL formula.
- Each satisfiable ΦS_n encodes constraints on subformula structure and example classification, allowing extraction of a minimal LTL formula via model extraction.
- The decision tree-based algorithm first learns a set of LTL primitives (small consistent formulas) using the SAT-based method on subsets of examples.
- It then combines these primitives using a decision tree learner to form a Boolean combination that classifies the full dataset, trading minimal size for scalability.
- The method uses strategies like subset selection (e.g., Strategy α with k=3) to ensure primitives separate positive and negative examples while remaining general enough for compact decision trees.
- Both algorithms are evaluated on synthetic benchmarks and real-world case studies, including a leader election protocol, with manual trace construction for training data.
Experimental results
Research questions
- RQ1Can we automatically learn minimal LTL formulas that distinguish between correct and buggy system executions from finite traces?
- RQ2How can we scale LTL formula learning to real-world scenarios with hundreds of examples while preserving readability?
- RQ3Can combining SAT-based learning with decision tree induction yield practical, scalable, and comprehensible temporal specifications?
- RQ4What is the impact of subset selection strategies on the performance and compactness of the learned decision tree models?
Key findings
- The SAT-based algorithm successfully learns minimal LTL formulas by reducing the problem to a series of propositional satisfiability queries, guaranteeing minimal size in terms of subformula count.
- The decision tree-based algorithm significantly improves scalability, handling hundreds of examples, though it no longer guarantees minimal formula size.
- On the leader election protocol case study, the algorithm discovered the formula ¬recv(2,1) U comm(1), which captures the key difference between consistent and inconsistent executions.
- The decision tree-based approach with Strategy α and subset size k=3 achieved the best performance, balancing formula size and scalability.
- The learned formulas provided actionable insights into system behavior, such as identifying message timing as a root cause of inconsistency in asynchronous protocols.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.