Extended Finite-State Machine Inference with Parallel Ant Colony Based Algorithms PPSN’14 September 13, 2014 Daniil Chivilikhin PhD student ITMO.

Slides:



Advertisements
Similar presentations
CS6800 Advanced Theory of Computation
Advertisements

1 An Adaptive GA for Multi Objective Flexible Manufacturing Systems A. Younes, H. Ghenniwa, S. Areibi uoguelph.ca.
Embedded Algorithm in Hardware: A Scalable Compact Genetic Algorithm Prabhas Chongstitvatana Chulalongkorn University.
Using Parallel Genetic Algorithm in a Predictive Job Scheduling
Multi-Objective Optimization NP-Hard Conflicting objectives – Flow shop with both minimum makespan and tardiness objective – TSP problem with minimum distance,
Formal Methods in Software Engineering Credit Hours: 3+0 By: Qaisar Javaid Assistant Professor Formal Methods in Software Engineering1.
Gizem ALAGÖZ. Simulation optimization has received considerable attention from both simulation researchers and practitioners. Both continuous and discrete.
Institute of Intelligent Power Electronics – IPE Page1 Introduction to Basics of Genetic Algorithms Docent Xiao-Zhi Gao Department of Electrical Engineering.
CPSC 322, Lecture 16Slide 1 Stochastic Local Search Variants Computer Science cpsc322, Lecture 16 (Textbook Chpt 4.8) February, 9, 2009.
Automata Based Programming Anatoly Shalyto, Fedor Tsarev Saint-Petersburg State University of Information Technologies, Mechanics and Optics.
Spie98-1 Evolutionary Algorithms, Simulated Annealing, and Tabu Search: A Comparative Study H. Youssef, S. M. Sait, H. Adiche
SEERE, Neum 2009 Runtime verification of Java programs using ITL Vladimir Valkanov, Damyan Mitev Plovdiv, Bulgaria.
Hybridization of Search Meta-Heuristics Bob Buehler.
Estimation of Distribution Algorithms Ata Kaban School of Computer Science The University of Birmingham.
Finite State Machine State Assignment for Area and Power Minimization Aiman H. El-Maleh, Sadiq M. Sait and Faisal N. Khan Department of Computer Engineering.
Data Mining CS 341, Spring 2007 Genetic Algorithm.
A new crossover technique in Genetic Programming Janet Clegg Intelligent Systems Group Electronics Department.
1 Genetic Algorithms. CS The Traditional Approach Ask an expert Adapt existing designs Trial and error.
Artificial Intelligence Genetic Algorithms and Applications of Genetic Algorithms in Compilers Prasad A. Kulkarni.
Selecting Informative Genes with Parallel Genetic Algorithms Deodatta Bhoite Prashant Jain.
1 Genetic Algorithms. CS 561, Session 26 2 The Traditional Approach Ask an expert Adapt existing designs Trial and error.
Parallel Computing in SAS. Genetic Algorithms Application Alejandro Correa, Banco Colpatria Andrés González, Banco Colpatria Darwin Amézquita, Banco Colpatria.
Genetic Algorithm What is a genetic algorithm? “Genetic Algorithms are defined as global optimization procedures that use an analogy of genetic evolution.
Coordinative Behavior in Evolutionary Multi-agent System by Genetic Algorithm Chuan-Kang Ting – Page: 1 International Graduate School of Dynamic Intelligent.
Ant Colony Optimization: an introduction
To quantitatively test the quality of the spell checker, the program was executed on predefined “test beds” of words for numerous trials, ranging from.
Island Based GA for Optimization University of Guelph School of Engineering Hooman Homayounfar March 2003.
Parallel Genetic Algorithms with Distributed-Environment Multiple Population Scheme M.Miki T.Hiroyasu K.Hatanaka Doshisha University,Kyoto,Japan.
Reverse Engineering State Machines by Interactive Grammar Inference Neil Walkinshaw, Kirill Bogdanov, Mike Holcombe, Sarah Salahuddin.
Travelling Salesman Problem: Convergence Properties of Optimization Algorithms Group 2 Zachary Estrada Chandini Jain Jonathan Lai.
Genetic Programming on Program Traces as an Inference Engine for Probabilistic Languages Vita Batishcheva, Alexey Potapov
Genetic Algorithm.
Combining Exact and Metaheuristic Techniques For Learning Extended Finite-State Machines From Test Scenarios and Temporal Properties ICMLA ’14 December.
Chapter 14: Artificial Intelligence Invitation to Computer Science, C++ Version, Third Edition.
1 Paper Review for ENGG6140 Memetic Algorithms By: Jin Zeng Shaun Wang School of Engineering University of Guelph Mar. 18, 2002.
Cristian Urs and Ben Riveira. Introduction The article we chose focuses on improving the performance of Genetic Algorithms by: Use of predictive models.
Zorica Stanimirović Faculty of Mathematics, University of Belgrade
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.
Genetic Programming on General Purpose Graphics Processing Units (GPGPGPU) Muhammad Iqbal Evolutionary Computation Research Group School of Engineering.
Optimization Problems - Optimization: In the real world, there are many problems (e.g. Traveling Salesman Problem, Playing Chess ) that have numerous possible.
Optimal resource assignment to maximize multistate network reliability for a computer network Yi-Kuei Lin, Cheng-Ta Yeh Advisor : Professor Frank Y. S.
ASC2003 (July 15,2003)1 Uniformly Distributed Sampling: An Exact Algorithm for GA’s Initial Population in A Tree Graph H. S.
Fuzzy Genetic Algorithm
Evolving Virtual Creatures & Evolving 3D Morphology and Behavior by Competition Papers by Karl Sims Presented by Sarah Waziruddin.
Genetic Algorithms Siddhartha K. Shakya School of Computing. The Robert Gordon University Aberdeen, UK
How to apply Genetic Algorithms Successfully Prabhas Chongstitvatana Chulalongkorn University 4 February 2013.
GENETIC ALGORITHMS.  Genetic algorithms are a form of local search that use methods based on evolution to make small changes to a popula- tion of chromosomes.
Inferring Automation Logic from Manual Control Scenarios: Implementation in Function Blocks ’15, Helsinki, Finland, August 21, 2015 Daniil Chivilikhin.
Extended Finite-State Machine Induction using SAT-Solver Vladimir Ulyantsev, Fedor Tsarev St. Petersburg National.
Genetic Algorithms ML 9 Kristie Simpson CS536: Advanced Artificial Intelligence Montana State University.
 Based on observed functioning of human brain.  (Artificial Neural Networks (ANN)  Our view of neural networks is very simplistic.  We view a neural.
 Genetic Algorithms  A class of evolutionary algorithms  Efficiently solves optimization tasks  Potential Applications in many fields  Challenges.
Introduction Metaheuristics: increasingly popular in research and industry mimic natural metaphors to solve complex optimization problems efficient and.
Ferdowsi University of Mashhad 1 Automatic Semantic Web Service Composition based on owl-s Research Proposal presented by : Toktam ghafarian.
CPSC 322, Lecture 16Slide 1 Stochastic Local Search Variants Computer Science cpsc322, Lecture 16 (Textbook Chpt 4.8) Oct, 11, 2013.
1 Comparative Study of two Genetic Algorithms Based Task Allocation Models in Distributed Computing System Oğuzhan TAŞ 2005.
Genetic Algorithms An Evolutionary Approach to Problem Solving.
Accelerating K-Means Clustering with Parallel Implementations and GPU Computing Janki Bhimani Miriam Leeser Ningfang Mi
Genetic Algorithm(GA)
CEng 713, Evolutionary Computation, Lecture Notes parallel Evolutionary Computation.
Optimization by Quantum Computers
Evolutionary Technique for Combinatorial Reverse Auctions
Daniil Chivilikhin and Vladimir Ulyantsev
Parallel Programming By J. H. Wang May 2, 2017.
Advanced Artificial Intelligence Evolutionary Search Algorithm
Multi-Objective Optimization
Aiman H. El-Maleh Sadiq M. Sait Syed Z. Shazli
Double and Multiple Sampling Plan
Genetic Algorithm Soft Computing: use of inexact t solution to compute hard task problems. Soft computing tolerant of imprecision, uncertainty, partial.
Presentation transcript:

Extended Finite-State Machine Inference with Parallel Ant Colony Based Algorithms PPSN’14 September 13, 2014 Daniil Chivilikhin PhD student ITMO University Vladimir Ulyantsev PhD student ITMO University Anatoly Shalyto Dr.Sci., professor ITMO University

Motivation: Reliable software Systems with high cost of failure –Energetics –Aerospace –Finances –… We want to have reliable software –Testing is not enough –Verification is needed EFSM Inference with Parallel ACO based Algorithms 2

Challenge Reliable systems are hard to develop Verification is time consuming EFSM Inference with Parallel ACO based Algorithms 3

Model-driven development Automated software engineering Model-driven development EFSM Inference with Parallel ACO based Algorithms 4

Automata-based programming Extended Finite-state machine EFSM Inference with Parallel ACO based Algorithms 5

Extended Finite-State Machine EFSM Inference with Parallel ACO based Algorithms 6

Automata-based programming EFSM Inference with Parallel ACO based Algorithms 7

Automata-based programming: advantages Model before programming code, not vice versa Possibility of program verification using Model Checking EFSM Inference with Parallel ACO based Algorithms 8

Conventional workflow EFSM Inference with Parallel ACO based Algorithms 9 Requirements Programming Testing Verification

Automata-based programming workflow EFSM Inference with Parallel ACO based Algorithms 10 Requirements Program Automated inference Easy for the user Time-consuming for computer

Issues Hard to build an EFSM with desired behavior Sometimes, several hours on a single machine Use parallel algorithms EFSM Inference with Parallel ACO based Algorithms 11

EFSM inference algorithms Genetic algorithm (GA) Previous work: Mutation-based Ant Colony Optimization (MuACO) … No parallel implementations so far EFSM Inference with Parallel ACO based Algorithms 12

In this work Develop several parallel versions of MuACO Compare –With each other –With parallel GA –Statistical significance EFSM Inference with Parallel ACO based Algorithms 13

EFSM mutations EFSM Inference with Parallel ACO based Algorithms 14

MuACO algorithm EFSM Inference with Parallel ACO based Algorithms 15

MuACO algorithm A 0 = random FSM Graph = {A 0 } while not stop() do ConstructAntSolutions UpdatePheromoneValues EFSM Inference with Parallel ACO based Algorithms 16

Constructing ant solutions Use a colony of ants An ant is placed on a graph node Each ant has a limited number of steps On each step the ant moves to the next node EFSM Inference with Parallel ACO based Algorithms 17

Ant step: selecting the next node Go to best mutated FSM Probabilistic selection P = P new P = 1 – P new EFSM Inference with Parallel ACO based Algorithms 18

Why parallel MuACO? Single-node MuACO is more efficient than GA for EFSM inference –Chivilikhin D., Ulyantsev V. MuACOsm - A New Mutation-Based Ant Colony Optimization Algorithm for Learning Finite-State Machines / In GECCO’13 –Chivilikhin D., Ulyantsev V. Inferring Automata-Based Programs from Specification With Mutation-Based Ant Colony Optimization / In GECCO’14 EFSM Inference with Parallel ACO based Algorithms 19

Parallel combinatorial optimization Randomized algorithms More exploration – higher chance of finding optimal solution Increase exploration using parallelism EFSM Inference with Parallel ACO based Algorithms 20

Parallel metaheuristics Evolutionary algorithms –Island scheme –Migration –MuACO doesn’t have a population Ant Colony algorithms –Multiple colonies –This can work EFSM Inference with Parallel ACO based Algorithms 21

Three parallel MuACO algorithms 1.Independent parallel MuACO 2.Shared best solutions 3.MuACO with crossover EFSM Inference with Parallel ACO based Algorithms 22

Independent parallel MuACO m processors Generate m random initial solutions Start m MuACO algorithms Terminate when at least one finds optimal solution NO interaction between algorithms EFSM Inference with Parallel ACO based Algorithms 23

Shared best solutions EFSM Inference with Parallel ACO based Algorithms 24 i-th algorithm restarts with j-th algorithm’s best solution

MuACO with crossovers EFSM Inference with Parallel ACO based Algorithms 25 Crossovers from: F. Tsarev and K. Egorov. Finite state machine induction using genetic algorithm based on testing and model checking. In GECCO’11 Companion Proc., pp.759–762, Dublin, Ireland, 2011.

Other tested approaches Parallel fitness evaluation Different algorithm settings … No good EFSM Inference with Parallel ACO based Algorithms 26

Input data: Number of states C Set of test scenarios Set of temporal properties Goal: build an EFSM with C states compliant with scenarios and temporal properties Learning EFSMs from scenarios and temporal properties EFSM Inference with Parallel ACO based Algorithms 27

Scenarios and temporal properties EFSM Inference with Parallel ACO based Algorithms 28

Learning EFSMs: Fitness function Pass inputs to EFSM, record outputs Compare generated outputs with references Use verifier to check temporal properties Fitness = string similarity measure (edit distance) + verification part EFSM Inference with Parallel ACO based Algorithms 29

Experimental setup 50 random EFSMs with 10 states One input variable Two input events Two output actions Sequence length up to 2 24-core AMD Opteron GHz processor EFSM Inference with Parallel ACO based Algorithms 30

Compared algorithms Sequential MuACO Independent parallel MuACO Parallel MuACO + Shared best Parallel MuACO + Crossovers Parallel MuACO + Shared best + Crossovers Independent parallel GA EFSM Inference with Parallel ACO based Algorithms 31

Results: MuACO speedup EFSM Inference with Parallel ACO based Algorithms 32 Sequential MuACO runtime = 1392 s.

Results: median time EFSM Inference with Parallel ACO based Algorithms 33

Results: comparison with GA EFSM Inference with Parallel ACO based Algorithms 34

Statistical significance Both “Crossovers” are significantly better than other algorithms Not significantly different from each other EFSM Inference with Parallel ACO based Algorithms 35

Combining exact and metaheuristic algorithms ICMLA’14: Combining Exact And Metaheuristic Techniques For Learning Extended Finite-State Machines From Test Scenarios and Temporal Properties (accepted) EFSM Inference with Parallel ACO based Algorithms 36

Combining exact and metaheuristic algorithms EFSM Inference with Parallel ACO based Algorithms 37 Scenarios Fast exact algorithm EFSM 1 MuACO Temporal properties Final EFSM

Combining exact and metaheuristic algorithms: results CrossoversExact + Crossovers Mean time, s Median time, s EFSM Inference with Parallel ACO based Algorithms 38

Conclusion Parallel EFSM inference algorithms are very efficient Parallel MuACO algorithms with crossover demonstrated best performance With super-linear speedup EFSM Inference with Parallel ACO based Algorithms 39

Future work Parallel MuACO-GA algorithm Experiments using more computational nodes More experiments with exact algorithms EFSM Inference with Parallel ACO based Algorithms 40

Acknowledgements This work was financially supported by the Government of Russian Federation, Grant 074- U01, and also partially supported by RFBR, research project No a. EFSM Inference with Parallel ACO based Algorithms 41

Thank you for your attention! Daniil Chivilikhin Vladimir Ulyantsev Anatoly Shalyto Extended Finite-State Machine Inference with Parallel Ant Colony Based Algorithms EFSM Inference with Parallel ACO based Algorithms 42