[Paper Review] The Complexity of Learning Linear Temporal Formulas from Examples
This paper investigates the computational complexity of learning Linear Temporal Logic (LTL) formulas from positive and negative word examples. It establishes NP-completeness for learning several LTL fragments and provides tight approximation bounds: a log(n)-approximation algorithm for LTL(X,∧) with matching inapproximability, and an n-approximation for LTL(F,∧) with no better polynomial-time approximation possible.
In this paper we initiate the study of the computational complexity of learning linear temporal logic (LTL) formulas from examples. We construct approximation algorithms for fragments of LTL and prove hardness results; in particular we obtain tight bounds for approximation of the fragment containing only the next operator and conjunctions, and prove NP-completeness results for many fragments.
Motivation & Objective
- To understand the computational complexity of learning LTL formulas from passive examples, where the goal is to find a small formula that separates positive from negative words.
- To identify which fragments of LTL allow efficient learning algorithms and which are computationally hard.
- To establish tight approximation bounds for learning in specific fragments, particularly focusing on the next (X) and eventually (F) operators combined with conjunctions.
- To explore the limits of polynomial-time approximation for LTL learning, especially in the context of inapproximability results.
- To extend results via duality to other fragments, such as LTL(G,∨) and LTL(X,∨), by leveraging logical duals.
Proposed method
- The authors analyze the LTL learning problem as a decision problem: given positive and negative words, determine if a formula of size at most k separates them.
- They prove NP-completeness for three key fragments: LTL(X,∧), LTL(F,∧), and LTL(F,X,∧,∨), using reductions from known NP-complete problems.
- For LTL(X,∧), they design a polynomial-time log(n)-approximation algorithm and prove it is optimal via a matching inapproximability result.
- For LTL(F,∧), they present an n-approximation algorithm and show that no polynomial-time algorithm can achieve better than (1−o(1))·log(n) approximation unless P=NP.
- They use a dualization technique: applying logical duality (e.g., F↔G, X↔X, ∧↔∨) to extend results to dual fragments such as LTL(G,∨).
- They employ inductive reasoning over word structures and formula semantics to prove properties about formula satisfaction and closure under extensions.
Experimental results
Research questions
- RQ1Is the problem of learning LTL formulas from examples NP-complete for the fragment LTL(X,∧)?
- RQ2Can a polynomial-time algorithm achieve better than log(n)-approximation for learning LTL(X,∧) formulas?
- RQ3What is the best possible approximation ratio achievable in polynomial time for learning LTL(F,∧) formulas?
- RQ4Does the NP-completeness result for LTL(F,X,∧,∨) extend to the full LTL logic?
- RQ5Are there polynomial-time O(log n)-approximation algorithms for learning LTL(F,∧) formulas?
Key findings
- The learning problem for LTL(X,∧) is NP-complete, and there exists a polynomial-time log(n)-approximation algorithm that is optimal up to constant factors.
- For LTL(F,∧), the learning problem is NP-complete, and no polynomial-time algorithm can achieve a better than (1−o(1))·log(n) approximation unless P=NP.
- An n-approximation algorithm exists for LTL(F,∧), and this bound is tight under the assumption that no better polynomial-time approximation exists.
- The results for LTL(X,∧) and LTL(F,∧) extend to their dual fragments via logical duality, such as LTL(G,∨) and LTL(X,∨).
- The NP-completeness of LTL(F,X,∧,∨) does not extend to full LTL, as the reduction fails when the globally (G) operator is included.
- The paper establishes that learning minimal LTL formulas from examples is fundamentally hard, with strong inapproximability results even for restricted fragments.
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.