Extended Finite-State Machine Inference with Parallel Ant Colony Based Algorithms

Similar documents
MuACOsm A New Mutation-Based Ant Colony Optimization Algorithm for Learning Finite-State Machines

Master's projects at ITMO University. Daniil Chivilikhin PhD ITMO University

A Parallel Processor for Distributed Genetic Algorithm with Redundant Binary Number

Numerical Research on Distributed Genetic Algorithm with Redundant

Overview. Swarms in nature. Fish, birds, ants, termites, Introduction to swarm intelligence principles Particle Swarm Optimization (PSO)

Leran Wang and Tom Kazmierski

SIGMOD RWE Review Towards Proximity Pattern Mining in Large Graphs

INTERNATIONAL JOURNAL OF COMPUTER ENGINEERING & TECHNOLOGY (IJCET)


An Ant Colony Optimization Approach to the Software Release Planning Problem

A hybrid Approach of Genetic Algorithm and Particle Swarm Technique to Software Test Case Generation

Algorithmic Software Verification

A Multi-Objective Performance Evaluation in Grid Task Scheduling using Evolutionary Algorithms

Genetic Algorithms for Energy Efficient Virtualized Data Centers

A Service Revenue-oriented Task Scheduling Model of Cloud Computing

Highway Maintenance Scheduling Using Genetic Algorithm with Microscopic Traffic Simulation

Ant Colony Optimization and Constraint Programming

A Review And Evaluations Of Shortest Path Algorithms

A Robust Method for Solving Transcendental Equations

CLOUD DATABASE ROUTE SCHEDULING USING COMBANATION OF PARTICLE SWARM OPTIMIZATION AND GENETIC ALGORITHM

A Load Balancing Algorithm based on the Variation Trend of Entropy in Homogeneous Cluster

Parallel Compression and Decompression of DNA Sequence Reads in FASTQ Format

ACO Hypercube Framework for Solving a University Course Timetabling Problem

How To Improve Autotest

Finding Liveness Errors with ACO

A Brief Study of the Nurse Scheduling Problem (NSP)

Distance Degree Sequences for Network Analysis

Alpha Cut based Novel Selection for Genetic Algorithm

D A T A M I N I N G C L A S S I F I C A T I O N

Coverage Criteria for Search Based Automatic Unit Testing of Java Programs

SOFTWARE TESTING STRATEGY APPROACH ON SOURCE CODE APPLYING CONDITIONAL COVERAGE METHOD

An Overview of Knowledge Discovery Database and Data mining Techniques

Cost Model: Work, Span and Parallelism. 1 The RAM model for sequential computation:

GA as a Data Optimization Tool for Predictive Analytics

Optimization and Ranking in Web Service Composition using Performance Index

Memory Allocation Technique for Segregated Free List Based on Genetic Algorithm

Applying Design Patterns in Distributing a Genetic Algorithm Application

Finding Liveness Errors with ACO

An ACO Approach to Solve a Variant of TSP

Meta-Heuristics for Reconstructing Cross Cut Shredded Text Documents

The Application of Bayesian Optimization and Classifier Systems in Nurse Scheduling

Genetic algorithms for changing environments

A Comparison of Genotype Representations to Acquire Stock Trading Strategy Using Genetic Algorithms

ISSN: ISO 9001:2008 Certified International Journal of Engineering Science and Innovative Technology (IJESIT) Volume 2, Issue 3, May 2013

Projects - Neural and Evolutionary Computing

A genetic algorithm for resource allocation in construction projects

A Genetic Algorithm Approach for Solving a Flexible Job Shop Scheduling Problem

Practical Applications of Evolutionary Computation to Financial Engineering

COMPUTATIONIMPROVEMENTOFSTOCKMARKETDECISIONMAKING MODELTHROUGHTHEAPPLICATIONOFGRID. Jovita Nenortaitė

Evolutionary SAT Solver (ESS)

Parallel Simulated Annealing Algorithm for Graph Coloring Problem

Formal Software Testing. Terri Grenda, CSTE IV&V Testing Solutions, LLC

Automated Model Based Testing for an Web Applications

HYBRID GENETIC ALGORITHM PARAMETER EFFECTS FOR OPTIMIZATION OF CONSTRUCTION RESOURCE ALLOCATION PROBLEM. Jin-Lee KIM 1, M. ASCE

AUTOMATIC ADJUSTMENT FOR LASER SYSTEMS USING A STOCHASTIC BINARY SEARCH ALGORITHM TO COPE WITH NOISY SENSING DATA

STUDY OF PROJECT SCHEDULING AND RESOURCE ALLOCATION USING ANT COLONY OPTIMIZATION 1

Effect of Using Neural Networks in GA-Based School Timetabling

FINANCIAL ADMINISTRATION MANUAL

ACO Based Dynamic Resource Scheduling for Improving Cloud Performance

LOAD BALANCING IN CLOUD COMPUTING

A Non-Linear Schema Theorem for Genetic Algorithms

Biogeography Based Optimization (BBO) Approach for Sensor Selection in Aircraft Engine

Holland s GA Schema Theorem

A Performance Study of Load Balancing Strategies for Approximate String Matching on an MPI Heterogeneous System Environment

A Reactive Tabu Search for Service Restoration in Electric Power Distribution Systems

APPLICATION OF ADVANCED SEARCH- METHODS FOR AUTOMOTIVE DATA-BUS SYSTEM SIGNAL INTEGRITY OPTIMIZATION

Multiobjective Multicast Routing Algorithm

An Improved ACO Algorithm for Multicast Routing

A resource schedule method for cloud computing based on chaos particle swarm optimization algorithm

Activity Mining for Discovering Software Process Models

Empirically Identifying the Best Genetic Algorithm for Covering Array Generation

Planning the Installation and Installing SQL Server

Comparison of Standard, Integrated and Multimedia Information System (IS) with Solutions

CS Master Level Courses and Areas COURSE DESCRIPTIONS. CSCI 521 Real-Time Systems. CSCI 522 High Performance Computing

Advances in Smart Systems Research : ISSN : Vol. 3. No. 3 : pp.

Testing LTL Formula Translation into Büchi Automata

Management of Software Projects with GAs

Cellular Computing on a Linux Cluster

Attack graph analysis using parallel algorithm

A Genetic-Fuzzy Logic Based Load Balancing Algorithm in Heterogeneous Distributed Systems

Parallel Algorithm for Dense Matrix Multiplication

Distributed Dynamic Load Balancing for Iterative-Stencil Applications

Optimised Realistic Test Input Generation

Evolving an Edge Selection Formula for Ant Colony Optimization

On Linear Genetic Programming

College of information technology Department of software

ENHANCED CONFIDENCE INTERPRETATIONS OF GP BASED ENSEMBLE MODELING RESULTS

Electric Distribution Network Multi objective Design Using Problem Specific Genetic Algorithm

IMCM: A Flexible Fine-Grained Adaptive Framework for Parallel Mobile Hybrid Cloud Applications

Genetic Algorithms and Sudoku

Software that writes Software Stochastic, Evolutionary, MultiRun Strategy Auto-Generation. TRADING SYSTEM LAB Product Description Version 1.

A Simultaneous Solution for General Linear Equations on a Ring or Hierarchical Cluster

An Integer Programming Model for the School Timetabling Problem

Expanding the CASEsim Framework to Facilitate Load Balancing of Social Network Simulations

Lossless Data Compression Standard Applications and the MapReduce Web Computing Framework

Performance metrics for parallel systems

Transcription:

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

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 2

Challenge Reliable systems are hard to develop Verification is time consuming 3

Model-driven development Automated software engineering Model-driven development Software specification Model Code 4

Automata-based programming Extended Finite-state machine Software specification Model Code 5

Extended Finite-State Machine 6

Automata-based programming Automated-controlled object Finite-state machine Events Actions Controlled object 7

Automata-based programming: advantages Model before programming code, not vice versa Finite-state machine Model Code Possibility of program verification using Model Checking 8

Conventional workflow Requirements Programming Testing Verification 9

Automata-based programming workflow Requirements Automated inference Easy for the user Time-consuming for computer Program 10

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

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

In this work Develop several parallel versions of MuACO Compare With each other With parallel GA Statistical significance 13

EFSM mutations 14

MuACO algorithm 15

MuACO algorithm A 0 = random FSM Graph = {A 0 } while not stop() do ConstructAntSolutions UpdatePheromoneValues 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 A A 1 A 2 A 3 A 4 17

Ant step: selecting the next node Mutation A 1 f(a 1 )=8 P = 1 P new A 1 P = P new A 2 f(a 2 )=12 A 2 A f(a)=10 A A 3 f(a 3 )=0 A 3 Go to best mutated FSM А 4 f(a 4 )=9 Probabilistic selection p Av uv uv uw w { A1, A2, A3, A4} uw A 4 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 19

Parallel combinatorial optimization Randomized algorithms More exploration higher chance of finding optimal solution Increase exploration using parallelism 20

Parallel metaheuristics Evolutionary algorithms Island scheme Migration MuACO doesn t have a population Ant Colony algorithms Multiple colonies This can work 21

Three parallel MuACO algorithms 1. Independent parallel MuACO 2. Shared best solutions 3. MuACO with crossover 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 23

Shared best solutions i-th algorithm restarts with j-th algorithm s best solution 24

MuACO with crossovers 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. 25

Other tested approaches Parallel fitness evaluation Different algorithm settings No good 26

Learning EFSMs from scenarios and temporal properties 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 27

Scenario Scenarios and temporal properties T [x 1 & x 2 ]/z 1, A [true], A [x 2 &!x 1 ]/z 2, T [x 1 ]/z 3 Temporal properties Linear temporal logic G(wasEvent T wasaction z 1 ) 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 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 6234 2.4 GHz processor 30

Compared algorithms Sequential MuACO Independent parallel MuACO Parallel MuACO + Shared best Parallel MuACO + Crossovers Parallel MuACO + Shared best + Crossovers Independent parallel GA 31

Results: MuACO speedup Sequential MuACO runtime = 1392 s. 32

Results: median time 33

Results: comparison with GA 34

Statistical significance Both Crossovers are significantly better than other algorithms Not significantly different from each other 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) 36

Combining exact and metaheuristic algorithms Scenarios Fast exact algorithm EFSM 1 MuACO Temporal properties Final EFSM 37

Combining exact and metaheuristic algorithms: results Mean time, s. Median time, s. Crossovers Exact + Crossovers 208 78 73 28 38

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

Future work Parallel MuACO-GA algorithm Experiments using more computational nodes More experiments with exact 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. 14-01-00551 a. 41

Thank you for your attention! Extended Finite-State Machine Inference with Parallel Ant Colony Based Algorithms Daniil Chivilikhin Vladimir Ulyantsev Anatoly Shalyto {chivdan,ulyantsev}@rain.ifmo.ru 42