Scalable Anytime Algorithms for Learning Formulas in Linear Temporal Logic

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.

[1]  Alberto Camacho,et al.  Learning Interpretable Models Expressed in Linear Temporal Logic , 2019, ICAPS.

[2]  Hadas Kress-Gazit,et al.  Temporal Logic Motion Planning for Mobile Robots , 2005, Proceedings of the 2005 IEEE International Conference on Robotics and Automation.

[3]  Wenchao Li,et al.  Specification Mining: New Formalisms, Algorithms and Applications , 2013 .

[4]  Nils Klarlund,et al.  Mona: Monadic Second-Order Logic in Practice , 1995, TACAS.

[5]  Dmitry Berenson,et al.  Explaining Multi-stage Tasks by Learning Temporal Logic Formulas from Suboptimal Demonstrations , 2020, Robotics: Science and Systems.

[6]  Ivan Beschastnikh,et al.  General LTL Specification Mining , 2015 .

[7]  Calin Belta,et al.  A Decision Tree Approach to Data Classification using Signal Temporal Logic , 2016, HSCC.

[8]  Kristin Yvonne Rozier,et al.  Specification: The Biggest Bottleneck in Formal Methods and Autonomy , 2016, VSTTE.

[9]  George S. Avrunin,et al.  Patterns in property specifications for finite-state verification , 1999, Proceedings of the 1999 International Conference on Software Engineering (IEEE Cat. No.99CB37002).

[10]  Omer Giménez,et al.  A Linear Algorithm for the Random Sampling from Regular Languages , 2010, Algorithmica.

[11]  Cesare Tinelli,et al.  SYSLITE: Syntax-Guided Synthesis of PLTL Formulas from Finite Traces , 2020, 2020 Formal Methods in Computer Aided Design (FMCAD).

[12]  Rüdiger Ehlers,et al.  Learning Properties in LTL ∩ ACTL from Positive Examples Only , 2020, 2020 Formal Methods in Computer Aided Design (FMCAD).

[13]  Luciano Baresi,et al.  Efficient Scalable Verification of LTL Specifications , 2015, 2015 IEEE/ACM 37th IEEE International Conference on Software Engineering.

[14]  Cesare Tinelli,et al.  cvc4sy: Smart and Fast Term Enumeration for Syntax-Guided Synthesis , 2019, CAV.

[15]  Guillaume Lagarde,et al.  The Complexity of Learning Linear Temporal Formulas from Examples , 2021, ArXiv.

[16]  Christian Muise,et al.  Bayesian Inference of Linear Temporal Logic Specifications for Contrastive Explanations , 2019, IJCAI.

[17]  Dana Fisman,et al.  Learning Interpretable Models in the Property Specification Language , 2020, IJCAI.

[18]  Ufuk Topcu,et al.  Learning Linear Temporal Properties from Noisy Data: A MaxSAT Approach , 2021, ArXiv.

[19]  Daniel Neider,et al.  Learning Linear Temporal Properties , 2018, 2018 Formal Methods in Computer Aided Design (FMCAD).

[20]  Philippe Flajolet,et al.  Analytic Combinatorics , 2009 .

[21]  Johann Schumann,et al.  Formal Requirements Elicitation with FRET , 2020, REFSQ Workshops.

[22]  David Steurer,et al.  Analytical approach to parallel repetition , 2013, STOC.

[23]  Natarajan Shankar,et al.  ARSENAL: Automatic Requirements Specification Extraction from Natural Language , 2014, NFM.

[24]  Fred Kröger,et al.  Temporal Logic of Programs , 1987, EATCS Monographs on Theoretical Computer Science.

[25]  Jana Tumova,et al.  Semantic Abstraction-Guided Motion Planning for scLTL Missions in Unknown Environments , 2021, Robotics: Science and Systems.

[26]  Giuseppe De Giacomo,et al.  Linear Temporal Logic and Linear Dynamic Logic on Finite Traces , 2013, IJCAI.