Scalable Anytime Algorithms for Learning Fragments of Linear Temporal Logic
Ritam Raha, Rajarshi Roy, Nathanaël Fijalkow, Daniel Neider
TL;DR
This work tackles the problem of learning explainable LTLf formulas from finite traces by introducing a scalable anytime algorithm that is guaranteed to produce a separating formula, even under limited computational budgets. It decomposes the search space into directed LTLf formulas (dLTL) and combines them with a Boolean set cover-based method to form separating formulas, enabling incremental refinements and approximate solutions. The authors prove that any LTLf formula in the fragment without Until can be expressed as a Boolean combination of directed formulas, and demonstrate the approach with SCARLET, which outperforms state-of-the-art tools on synthetic benchmarks and maintains robustness under noise. The results show strong practical impact for scalable specification mining and explainable trace classification, though the current method omits the Until operator and nesting of F/G, outlining clear directions for future work.
Abstract
Linear temporal logic (LTL) is a specification language for finite sequences (called traces) widely used in program verification, motion planning in robotics, process mining, and many other areas. We consider the problem of learning LTL formulas for classifying traces; despite a growing interest of the research community, existing solutions suffer from two limitations: they do not scale beyond small formulas, and they may exhaust computational resources without returning any result. We introduce a new algorithm addressing both issues: our algorithm is able to construct formulas an order of magnitude larger than previous methods, and it is anytime, meaning that it in most cases successfully outputs a formula, albeit possibly not of minimal size. We evaluate the performances of our algorithm using an open source implementation against publicly available benchmarks.
