The Complexity of Learning Temporal Properties
Benjamin Bordais, Daniel Neider, Rajarshi Roy
TL;DR
The paper analyzes the passive learning problem for temporal logics, showing that learning formulas with an unbounded number of binary operator occurrences is NP-complete across LTL, CTL, and ATL. It then investigates fragments with a bounded number of binary operators, revealing a nuanced landscape where LTL, CTL, and ATL differ in complexity depending on unary/binary operator sets and the number of agents. A central contribution is an abstract hitting-set-based reduction framework that systematically proves NP-hardness for many fragments, while also identifying polynomial-time cases (notably certain two-agent ATL with restricted operators). The results illuminate the intrinsic complexity of inferring temporal properties from behavior data and delineate boundaries between tractable vs intractable learning tasks in temporal logics, with potential implications for specification mining and automated verification. The work also highlights the role of operator arity and agent count in the learnability of temporal properties, suggesting future work on tractable templates and approximation strategies.
Abstract
We consider the problem of learning temporal logic formulas from examples of system behavior. Learning temporal properties has crystallized as an effective mean to explain complex temporal behaviors. Several efficient algorithms have been designed for learning temporal formulas. However, the theoretical understanding of the complexity of the learning decision problems remains largely unexplored. To address this, we study the complexity of the passive learning problems of three prominent temporal logics, Linear Temporal Logic (LTL), Computation Tree Logic (CTL) and Alternating-time Temporal Logic (ATL) and several of their fragments. We show that learning formulas using an unbounded amount of occurrences of binary operators is NP-complete for all of these logics. On the other hand, when investigating the complexity of learning formulas with bounded amount of occurrences of binary operators, we exhibit discrepancies between the complexity of learning LTL, CTL and ATL formulas (with a varying number of agents).
