Combining Exact and Metaheuristic Techniques For Learning Extended Finite-State Machines From Test Scenarios and Temporal Properties ICMLA ’14 December.

Slides:



Advertisements
Similar presentations
1 Verification by Model Checking. 2 Part 1 : Motivation.
Advertisements

Introduction to Algorithms NP-Complete
Efficient representation for formal verification of PLC programs Vincent Gourcuff, Olivier de Smet and Jean-Marc Faure LURPA – ENS de Cachan.
Constraint Based Reasoning over Mutex Relations in Graphplan Algorithm Pavel Surynek Charles University, Prague Czech Republic.
22C:19 Discrete Structures Induction and Recursion Spring 2014 Sukumar Ghosh.
Dana Nau: Lecture slides for Automated Planning Licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License:
Approximation Algorithms Chapter 14: Rounding Applied to Set Cover.
Game-theoretic approach to the simulation checking problem Peter Bulychev Vladimir Zakharov Lomonosov Moscow State University.
Timed Automata.
An Automata-based Approach to Testing Properties in Event Traces H. Hallal, S. Boroday, A. Ulrich, A. Petrenko Sophia Antipolis, France, May 2003.
NP-complete and NP-hard problems Transitivity of polynomial-time many-one reductions Definition of complexity class NP –Nondeterministic computation –Problems.
ECE Synthesis & Verification1 ECE 667 Spring 2011 Synthesis and Verification of Digital Systems Verification Introduction.
Constraint Satisfaction Problems
The Theory of NP-Completeness
NP-complete and NP-hard problems
Dynamic lot sizing and tool management in automated manufacturing systems M. Selim Aktürk, Siraceddin Önen presented by Zümbül Bulut.
Analysis of Algorithms CS 477/677
Developing a Deterministic Patrolling Strategy for Security Agents Nicola Basilico, Nicola Gatti, Francesco Amigoni.
1 Formal Engineering of Reliable Software LASER 2004 school Tutorial, Lecture1 Natasha Sharygina Carnegie Mellon University.
Hardness Results for Problems
Formal verification Marco A. Peña Universitat Politècnica de Catalunya.
272: Software Engineering Fall 2012 Instructor: Tevfik Bultan Lecture 4: SMT-based Bounded Model Checking of Concurrent Software.
USING SAT-BASED CRAIG INTERPOLATION TO ENLARGE CLOCK GATING FUNCTIONS Ting-Hao Lin, Chung-Yang (Ric) Huang Graduate Institute of Electrical Engineering,
Intrusion and Anomaly Detection in Network Traffic Streams: Checking and Machine Learning Approaches ONR MURI area: High Confidence Real-Time Misuse and.
Distance Approximating Trees in Graphs
Inferring Temporal Properties of Finite-State Machines with Genetic Programming GECCO’15 Student Workshop July 11, 2015 Daniil Chivilikhin PhD student.
Reconstruction of Function Block Logic using Metaheuristic Algorithm: Initial Explorations INDIN ’15, Cambridge, UK, July 23, 2015 Daniil Chivilikhin PhD.
CS6133 Software Specification and Verification
Survey on Trace Analyzer (2) Hong, Shin /34Survey on Trace Analyzer (2) KAIST.
On Reducing the Global State Graph for Verification of Distributed Computations Vijay K. Garg, Arindam Chakraborty Parallel and Distributed Systems Laboratory.
Week 10Complexity of Algorithms1 Hard Computational Problems Some computational problems are hard Despite a numerous attempts we do not know any efficient.
CSE332: Data Abstractions Lecture 24.5: Interlude on Intractability Dan Grossman Spring 2012.
Inferring Automation Logic from Manual Control Scenarios: Implementation in Function Blocks ’15, Helsinki, Finland, August 21, 2015 Daniil Chivilikhin.
Introduction to Problem Solving. Steps in Programming A Very Simplified Picture –Problem Definition & Analysis – High Level Strategy for a solution –Arriving.
Lazy Annotation for Program Testing and Verification Speaker: Chen-Hsuan Adonis Lin Advisor: Jie-Hong Roland Jiang November 26,
Extended Finite-State Machine Inference with Parallel Ant Colony Based Algorithms PPSN’14 September 13, 2014 Daniil Chivilikhin PhD student ITMO.
CSE 589 Part VI. Reading Skiena, Sections 5.5 and 6.8 CLR, chapter 37.
Extended Finite-State Machine Induction using SAT-Solver Vladimir Ulyantsev, Fedor Tsarev St. Petersburg National.
NP-Complete Problems. Running Time v.s. Input Size Concern with problems whose complexity may be described by exponential functions. Tractable problems.
NP-COMPLETE PROBLEMS. Admin  Two more assignments…  No office hours on tomorrow.
Proving Non-Termination Gupta, Henzinger, Majumdar, Rybalchenko, Ru-Gang Xu presentation by erkan.
Lecture 6 NP Class. P = ? NP = ? PSPACE They are central problems in computational complexity.
Verification & Validation By: Amir Masoud Gharehbaghi
CSE 589 Part V One of the symptoms of an approaching nervous breakdown is the belief that one’s work is terribly important. Bertrand Russell.
Strings Basic data type in computational biology A string is an ordered succession of characters or symbols from a finite set called an alphabet Sequence.
SAT-Based Model Checking Without Unrolling Aaron R. Bradley.
Chapter 11 Introduction to Computational Complexity Copyright © 2011 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1.
NPC.
Custom Computing Machines for the Set Covering Problem Paper Written By: Christian Plessl and Marco Platzner Swiss Federal Institute of Technology, 2002.
Variants of LTL Query Checking Hana ChocklerArie Gurfinkel Ofer Strichman IBM Research SEI Technion Technion - Israel Institute of Technology.
Error Explanation with Distance Metrics Authors: Alex Groce, Sagar Chaki, Daniel Kroening, and Ofer Strichman International Journal on Software Tools for.
CSE 421 Algorithms Richard Anderson Lecture 27 NP-Completeness Proofs.
Given this 3-SAT problem: (x1 or x2 or x3) AND (¬x1 or ¬x2 or ¬x2) AND (¬x3 or ¬x1 or x2) 1. Draw the graph that you would use if you want to solve this.
Saint-Petersburg State University ITMO Automata-based Algorithms Visualization Framework Georgiy Korneev Computer Technology Department,
Computability Examples. Reducibility. NP completeness. Homework: Find other examples of NP complete problems.
Section Recursion 2  Recursion – defining an object (or function, algorithm, etc.) in terms of itself.  Recursion can be used to define sequences.
Clustering [Idea only, Chapter 10.1, 10.2, 10.4].
Complexity of Compositional Model Checking of Computation Tree Logic on Simple Structures Krishnendu Chatterjee Pallab Dasgupta P.P. Chakrabarti IWDC 2004,
P & NP.
SS 2017 Software Verification Bounded Model Checking, Outlook
Richard Anderson Lecture 26 NP-Completeness
Daniil Chivilikhin and Vladimir Ulyantsev
Consistency Methods for Temporal Reasoning
Richard Anderson Lecture 26 NP-Completeness
Lecture 22 Complexity and Reductions
Intro to NP Completeness
Objective of This Course
Daniil Chivilikhin, Igor Buzhinsky, Vladimir Ulyantsev,
Canonical Computation without Canonical Data Structure
Clustering.
Presentation transcript:

Combining Exact and Metaheuristic Techniques For Learning Extended Finite-State Machines From Test Scenarios and Temporal Properties ICMLA ’14 December 5, 2014 Daniil Chivilikhin PhD student ITMO University Vladimir Ulyantsev PhD student ITMO University Anatoly Shalyto Dr.Sci., professor ITMO University Maxim Buzdalov PhD student ITMO University

Motivation: Reliable software Systems with high cost of failure Energy Aviation Space … We want to have reliable software Testing can reveal errors But cannot prove that the program is correct Verification Check properties in all computational states Exact and Metaheuristic Techniques for EFSM Inference 2

Automata-based programming Model-driven development 3 Extended Finite-state machine

Extended Finite-State Machine Exact and Metaheuristic Techniques for EFSM Inference 4

Conventional reliable program development workflow Exact and Metaheuristic Techniques for EFSM Inference 5 Requirements Programming Testing Verification

Automata-based programming workflow Exact and Metaheuristic Techniques for EFSM Inference 6 Requirements Program Automated inference Easy for the user Time-consuming for computers VerificationTesting

“Test scenarios” Check if model satisfies scenario,, Candidate model Exact and Metaheuristic Techniques for EFSM Inference 7

Verification Linear Temporal Logic properties (LTL) Use model checker G(U(wasEvent(e 1 ), wasEvent(e 2 ))) Exact and Metaheuristic Techniques for EFSM Inference 8

Automated inference problem statement Exact and Metaheuristic Techniques for EFSM Inference 9 Given Number of states C Test scenarios Temporal properties Goal: find an EFSM with C states compliant with scenarios and temporal properties

EFSM inference algorithms Exact and Metaheuristic Techniques for EFSM Inference 10 Type of data Testing + Verification Testing Genetic algorithm MuACO SAT-based algorithm Tsarev, Egorov. GECCO 2011 Chivilikhin, Ulyantsev. GECCO 2014 Ulyantsev, Tsarev. ICMLA 2011

EFSM inference algorithms Exact and Metaheuristic Techniques for EFSM Inference 11 Type of data Testing + Verification Testing Genetic algorithm MuACO SAT-based algorithm Tsarev, Egorov. GECCO 2011 Chivilikhin, Ulyantsev. GECCO 2014 Ulyantsev, Tsarev. ICMLA 2011 Metaheuristics

EFSM inference algorithms Exact and Metaheuristic Techniques for EFSM Inference 12 Type of data Testing + Verification Testing Genetic algorithm MuACO SAT-based algorithm Tsarev, Egorov. GECCO 2011 Chivilikhin, Ulyantsev. GECCO 2014 Ulyantsev, Tsarev. ICMLA 2011 Exact and fast

Paper Contributions New exact algorithm based on Constraint Satisfaction Problem (CSP) solvers No verification Much simpler than previous algorithm based on SAT Combined algorithm CSP algorithm MuACO Uses CSP to find approximate solution Solve full problem with MuACO Exact and Metaheuristic Techniques for EFSM Inference 13

EFSM inference using CSP solvers Input Test scenarios Number of states C Output EFSM Or message that it does not exist CSP algorithm 1.Scenario tree construction 2.Consistency graph construction 3.Constraint set construction 4.Solving constraints 5.Constructing an EFSM from satisfying assignment Exact and Metaheuristic Techniques for EFSM Inference 14

1. Scenario tree construction Exact and Metaheuristic Techniques for EFSM Inference 15 Basic idea – scenario tree coloring

2. Consistency graph construction Vertices are same as in scenario tree Two vertices are connected by an edge if there is a sequence telling them apart Basically, that they cannot be merged into one state Constructed using dynamic programming Exact and Metaheuristic Techniques for EFSM Inference 16

3. Used integer variables x v – color of vertex v ∈ V (V – set of scenario tree vertices) x v ∈ [0, C–1] y i,e,f – state to which the transition from state i marked with event e and Boolean function f leads to y i,e,f ∈ [0, C–1], e ∈ Σ, f ∈ F e Exact and Metaheuristic Techniques for EFSM Inference 17

4. Constraint set construction x v ≠ x u – colors of inconsistent vertices v and u should be different (x v = i) => (x u = y i,e,f ) – tree coloring must comply with EFSM transitions for each edge uv of scenario tree and each color i Exact and Metaheuristic Techniques for EFSM Inference 18

5. Solving constraints Choco CSP solver Java library Easy to use Efficient Exact and Metaheuristic Techniques for EFSM Inference 19

6. Constructing an EFSM from satisfying assignment Merge vertices with same color Exact and Metaheuristic Techniques for EFSM Inference 20

Proposed combined algorithm Exact and Metaheuristic Techniques for EFSM Inference 21 Scenarios CSP algorithm Approximate EFSM MuACO Temporal properties Final EFSM

Experimental setup 50 random EFSMs with 5–10 states Two input variables Two input events Two output actions Sequence length up to 2 Computer AMD 3.2 GHz Processor Measured time Exact and Metaheuristic Techniques for EFSM Inference 22

Results Small scenarios 50 × C Medium scenarios 100 × C Large scenarios 200 × C Exact and Metaheuristic Techniques for EFSM Inference 23

Statistical testing results Scenarios size C50 × C100 × C200 × C Wilcoxon signed-rank test Alternative: less Exact and Metaheuristic Techniques for EFSM Inference 24

Acknowledgements This work was financially supported by the Government of Russian Federation, Grant 074-U01, and also partially supported by RFBR, research project No mol_a. Exact and Metaheuristic Techniques for EFSM Inference 25

Thank you for your attention! Exact and Metaheuristic Techniques for EFSM Inference 26 Daniil Chivilikhin Vladimir Ulyantsev Anatoly Shalyto