+ All Categories
Home > Documents > PowerPoint Presentationchivdan/papers/2014/2014... · Title: PowerPoint Presentation Author: Danka...

PowerPoint Presentationchivdan/papers/2014/2014... · Title: PowerPoint Presentation Author: Danka...

Date post: 16-Nov-2020
Category:
Upload: others
View: 3 times
Download: 0 times
Share this document with a friend
42
Extended Finite-State Machine Inference with Parallel Ant Colony Based Algorithms BIOMA @ PPSN’14 September 13, 2014 Daniil Chivilikhin PhD student ITMO University Vladimir Ulyantsev PhD student ITMO University Anatoly Shalyto Dr.Sci., professor ITMO University
Transcript
Page 1: PowerPoint Presentationchivdan/papers/2014/2014... · Title: PowerPoint Presentation Author: Danka Created Date: 9/13/2014 4:31:58 PM

Extended Finite-State Machine Inference

with Parallel Ant Colony Based Algorithms

BIOMA @ PPSN’14

September 13, 2014

Daniil Chivilikhin

PhD student

ITMO University

Vladimir Ulyantsev

PhD student

ITMO University

Anatoly Shalyto

Dr.Sci., professor

ITMO University

Page 2: PowerPoint Presentationchivdan/papers/2014/2014... · Title: PowerPoint Presentation Author: Danka Created Date: 9/13/2014 4:31:58 PM

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

Page 3: PowerPoint Presentationchivdan/papers/2014/2014... · Title: PowerPoint Presentation Author: Danka Created Date: 9/13/2014 4:31:58 PM

Challenge

• Reliable systems are hard to develop

• Verification is time consuming

EFSM Inference with Parallel

ACO based Algorithms

3

Page 4: PowerPoint Presentationchivdan/papers/2014/2014... · Title: PowerPoint Presentation Author: Danka Created Date: 9/13/2014 4:31:58 PM

Model-driven development

• Automated software engineering

• Model-driven development

Software

specificationModel Code

EFSM Inference with Parallel

ACO based Algorithms

4

Page 5: PowerPoint Presentationchivdan/papers/2014/2014... · Title: PowerPoint Presentation Author: Danka Created Date: 9/13/2014 4:31:58 PM

Automata-based programming

Software

specificationModel Code

Extended

Finite-state

machine

EFSM Inference with Parallel

ACO based Algorithms

5

Page 6: PowerPoint Presentationchivdan/papers/2014/2014... · Title: PowerPoint Presentation Author: Danka Created Date: 9/13/2014 4:31:58 PM

Extended Finite-State Machine

EFSM Inference with Parallel

ACO based Algorithms

6

Page 7: PowerPoint Presentationchivdan/papers/2014/2014... · Title: PowerPoint Presentation Author: Danka Created Date: 9/13/2014 4:31:58 PM

Automated-controlled object

Finite-state

machine

Controlled

objectActions

Events

Automata-based programming

EFSM Inference with Parallel

ACO based Algorithms

7

Page 8: PowerPoint Presentationchivdan/papers/2014/2014... · Title: PowerPoint Presentation Author: Danka Created Date: 9/13/2014 4:31:58 PM

Automata-based programming:

advantages • Model before programming code, not vice

versa

• Possibility of program verification using

Model Checking

Model Code

Finite-state machine

EFSM Inference with Parallel

ACO based Algorithms

8

Page 9: PowerPoint Presentationchivdan/papers/2014/2014... · Title: PowerPoint Presentation Author: Danka Created Date: 9/13/2014 4:31:58 PM

Conventional workflow

EFSM Inference with Parallel

ACO based Algorithms

9

Requirements

Programming

Testing

Verification

Page 10: PowerPoint Presentationchivdan/papers/2014/2014... · Title: PowerPoint Presentation Author: Danka Created Date: 9/13/2014 4:31:58 PM

Automata-based programming

workflow

EFSM Inference with Parallel

ACO based Algorithms

10

Requirements

Program

Automated

inference

Easy for the user

Time-consuming

for computer

Page 11: PowerPoint Presentationchivdan/papers/2014/2014... · Title: PowerPoint Presentation Author: Danka Created Date: 9/13/2014 4:31:58 PM

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

Page 12: PowerPoint Presentationchivdan/papers/2014/2014... · Title: PowerPoint Presentation Author: Danka Created Date: 9/13/2014 4:31:58 PM

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

Page 13: PowerPoint Presentationchivdan/papers/2014/2014... · Title: PowerPoint Presentation Author: Danka Created Date: 9/13/2014 4:31:58 PM

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

Page 14: PowerPoint Presentationchivdan/papers/2014/2014... · Title: PowerPoint Presentation Author: Danka Created Date: 9/13/2014 4:31:58 PM

EFSM mutations

EFSM Inference with Parallel

ACO based Algorithms

14

Page 15: PowerPoint Presentationchivdan/papers/2014/2014... · Title: PowerPoint Presentation Author: Danka Created Date: 9/13/2014 4:31:58 PM

MuACO algorithm

EFSM Inference with Parallel

ACO based Algorithms 15

Page 16: PowerPoint Presentationchivdan/papers/2014/2014... · Title: PowerPoint Presentation Author: Danka Created Date: 9/13/2014 4:31:58 PM

MuACO algorithm

A0 = random FSM

Graph = {A0}

while not stop() do

ConstructAntSolutions

UpdatePheromoneValues

EFSM Inference with Parallel

ACO based Algorithms

16

Page 17: PowerPoint Presentationchivdan/papers/2014/2014... · Title: PowerPoint Presentation Author: Danka Created Date: 9/13/2014 4:31:58 PM

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

A

A4

A3

A2

A1

Page 18: PowerPoint Presentationchivdan/papers/2014/2014... · Title: PowerPoint Presentation Author: Danka Created Date: 9/13/2014 4:31:58 PM

Ant step: selecting the next node

Go to best mutated FSM

Probabilistic selection

P = Pnew

P = 1 – Pnew

}4,3,2,1{ AAAAw

uwuw

uvuv

Avp

A

f(A)=10

А4

f(A4)=9

A3

f(A3)=0

A2

f(A2)=12

A1

f(A1)=8Mutation

A

A4

A3

A2

A1

EFSM Inference with Parallel

ACO based Algorithms

18

Page 19: PowerPoint Presentationchivdan/papers/2014/2014... · Title: PowerPoint Presentation Author: Danka Created Date: 9/13/2014 4:31:58 PM

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

Page 20: PowerPoint Presentationchivdan/papers/2014/2014... · Title: PowerPoint Presentation Author: Danka Created Date: 9/13/2014 4:31:58 PM

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

Page 21: PowerPoint Presentationchivdan/papers/2014/2014... · Title: PowerPoint Presentation Author: Danka Created Date: 9/13/2014 4:31:58 PM

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

Page 22: PowerPoint Presentationchivdan/papers/2014/2014... · Title: PowerPoint Presentation Author: Danka Created Date: 9/13/2014 4:31:58 PM

Three parallel MuACO algorithms

1. Independent parallel MuACO

2. Shared best solutions

3. MuACO with crossover

EFSM Inference with Parallel

ACO based Algorithms

22

Page 23: PowerPoint Presentationchivdan/papers/2014/2014... · Title: PowerPoint Presentation Author: Danka Created Date: 9/13/2014 4:31:58 PM

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

Page 24: PowerPoint Presentationchivdan/papers/2014/2014... · Title: PowerPoint Presentation Author: Danka Created Date: 9/13/2014 4:31:58 PM

Shared best solutions

EFSM Inference with Parallel

ACO based Algorithms

24

• i-th algorithm restarts with j-th algorithm’s best

solution

Page 25: PowerPoint Presentationchivdan/papers/2014/2014... · Title: PowerPoint Presentation Author: Danka Created Date: 9/13/2014 4:31:58 PM

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.

Page 26: PowerPoint Presentationchivdan/papers/2014/2014... · Title: PowerPoint Presentation Author: Danka Created Date: 9/13/2014 4:31:58 PM

Other tested approaches

• Parallel fitness evaluation

• Different algorithm settings

• …

• No good

EFSM Inference with Parallel

ACO based Algorithms

26

Page 27: PowerPoint Presentationchivdan/papers/2014/2014... · Title: PowerPoint Presentation Author: Danka Created Date: 9/13/2014 4:31:58 PM

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

Page 28: PowerPoint Presentationchivdan/papers/2014/2014... · Title: PowerPoint Presentation Author: Danka Created Date: 9/13/2014 4:31:58 PM

Scenarios and temporal

properties • Scenario

– T [x1 & x2]/z1, A [true], A [x2 & !x1]/z2, T [x1]/z3

• Temporal properties – Linear temporal

logic

– G(wasEvent 𝑇 ⇒ wasAction 𝑧1 )

EFSM Inference with Parallel

ACO based Algorithms 28

Page 29: PowerPoint Presentationchivdan/papers/2014/2014... · Title: PowerPoint Presentation Author: Danka Created Date: 9/13/2014 4:31:58 PM

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

Page 30: PowerPoint Presentationchivdan/papers/2014/2014... · Title: PowerPoint Presentation Author: Danka Created Date: 9/13/2014 4:31:58 PM

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 EFSM Inference with Parallel

ACO based Algorithms 30

Page 31: PowerPoint Presentationchivdan/papers/2014/2014... · Title: PowerPoint Presentation Author: Danka Created Date: 9/13/2014 4:31:58 PM

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

Page 32: PowerPoint Presentationchivdan/papers/2014/2014... · Title: PowerPoint Presentation Author: Danka Created Date: 9/13/2014 4:31:58 PM

Results: MuACO speedup

EFSM Inference with Parallel

ACO based Algorithms 32

Sequential MuACO runtime = 1392 s.

Page 33: PowerPoint Presentationchivdan/papers/2014/2014... · Title: PowerPoint Presentation Author: Danka Created Date: 9/13/2014 4:31:58 PM

Results: median time

EFSM Inference with Parallel

ACO based Algorithms 33

Page 34: PowerPoint Presentationchivdan/papers/2014/2014... · Title: PowerPoint Presentation Author: Danka Created Date: 9/13/2014 4:31:58 PM

Results: comparison with GA

EFSM Inference with Parallel

ACO based Algorithms 34

Page 35: PowerPoint Presentationchivdan/papers/2014/2014... · Title: PowerPoint Presentation Author: Danka Created Date: 9/13/2014 4:31:58 PM

Statistical significance

• Both “Crossovers” are significantly better

than other algorithms

• Not significantly different from each other

EFSM Inference with Parallel

ACO based Algorithms 35

Page 36: PowerPoint Presentationchivdan/papers/2014/2014... · Title: PowerPoint Presentation Author: Danka Created Date: 9/13/2014 4:31:58 PM

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

Page 37: PowerPoint Presentationchivdan/papers/2014/2014... · Title: PowerPoint Presentation Author: Danka Created Date: 9/13/2014 4:31:58 PM

Combining exact and

metaheuristic algorithms

EFSM Inference with Parallel

ACO based Algorithms 37

Scenarios Fast exact

algorithm

EFSM 1

MuACO Temporal

properties

Final EFSM

Page 38: PowerPoint Presentationchivdan/papers/2014/2014... · Title: PowerPoint Presentation Author: Danka Created Date: 9/13/2014 4:31:58 PM

Combining exact and metaheuristic algorithms: results

Crossovers Exact + Crossovers

Mean time, s.

208 78

Median time, s.

73 28

EFSM Inference with Parallel

ACO based Algorithms 38

Page 39: PowerPoint Presentationchivdan/papers/2014/2014... · Title: PowerPoint Presentation Author: Danka Created Date: 9/13/2014 4:31:58 PM

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

Page 40: PowerPoint Presentationchivdan/papers/2014/2014... · Title: PowerPoint Presentation Author: Danka Created Date: 9/13/2014 4:31:58 PM

Future work

• Parallel MuACO-GA algorithm

• Experiments using more computational

nodes

• More experiments with exact algorithms

EFSM Inference with Parallel

ACO based Algorithms 40

Page 41: PowerPoint Presentationchivdan/papers/2014/2014... · Title: PowerPoint Presentation Author: Danka Created Date: 9/13/2014 4:31:58 PM

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.

EFSM Inference with Parallel

ACO based Algorithms

41

Page 42: PowerPoint Presentationchivdan/papers/2014/2014... · Title: PowerPoint Presentation Author: Danka Created Date: 9/13/2014 4:31:58 PM

Thank you for your attention!

Daniil Chivilikhin

Vladimir Ulyantsev

Anatoly Shalyto

Extended Finite-State Machine Inference with Parallel Ant

Colony Based Algorithms

{chivdan,ulyantsev}@rain.ifmo.ru

EFSM Inference with Parallel

ACO based Algorithms

42


Recommended