1
Evolving Grammars: A Structured Point of View
Nuno Lourenço University of Coimbra, Portugal naml@dei.uc.pt
Evolving Grammars: A Structured Point of View Nuno Loureno - - PowerPoint PPT Presentation
1 Evolving Grammars: A Structured Point of View Nuno Loureno University of Coimbra, Portugal naml@dei.uc.pt Evolving Grammars: A Structured Point of View 2 evolutionary algorithms Genetic Algorithm Evolutionary Strategies
1
Nuno Lourenço University of Coimbra, Portugal naml@dei.uc.pt
Evolving Grammars: A Structured Point of View
evolutionary algorithms
2
Evolving Grammars: A Structured Point of View
evolutionary algorithms
Evolutionary Cycle
3
Parents' Selection Variation Operators Survivors' Selection Population Population Population
Initial Best
Evolving Grammars: A Structured Point of View
genetic programming
4
CFG-GP Grammatical Evolution
Evolving Grammars: A Structured Point of View
grammatical evolution
5
Genotype Phenotype
Evolving Grammars: A Structured Point of View
grammatical evolution
Mapping Process
6
Binary String Integer String Context Free Grammar Program Genotype Phenotype
Evolving Grammars: A Structured Point of View
grammatical evolution
Mapping Example
7
<movement> := left(0) | back (1) | right (2) | front (3)
00100110 00101110 00100111 00000110 38 46 39 6
38 % 4 = 2 Mapping Rule: Codon Value % Number of Possible Derivations
Evolving Grammars: A Structured Point of View
grammatical evolution
Evolution, Whigham et al.
8
Evolving Grammars: A Structured Point of View
9
Evolving Grammars: A Structured Point of View
structured grammatical evolution
terminals another
10
Evolving Grammars: A Structured Point of View
structured grammatical evolution
11
Genotype
<start> <expr> [0] [0,1] <term> <op> [0,1,0,1] [0,2,1]
Evolving Grammars: A Structured Point of View
structured grammatical evolution
12
<start> <expr> <op> <expr> <term> <op> <term> <term> <op> <term> ( ) x + 0.5 * x
Genotype
<start> <expr> [0] [0,1] <term> <op> [0,1,0,1] [0,2,1]
Evolving Grammars: A Structured Point of View
structured grammatical evolution
Recursion
13
2 Levels of Recursion
Evolving Grammars: A Structured Point of View
structured grammatical evolution
Variation Operators
14
Crossover
Parent 2 Mask Parent 1 Offspring 1
1
Offspring 2
[0] [0,1] [0,1,0,1] [0,2,1] [1] [1,0] [0,0,0,1] [2,3,1] 1 [0] [0,1] [0,0,0,1] [2,3,1] [1] [1,0] [0,1,0,1] [0,2,1]
Mutation
Mutation
[0] [0,1] [0,1,0,1] [1,3,1] [0] [1,1] [0,1,0,1] [1,3,1]
Evolving Grammars: A Structured Point of View
structured grammatical evolution
Crossover
15 <start> <expr> <op> <expr> <term> <op> <term> <term> <op> <term> ( ) x + 0.5 * x
<start> <expr> <term> <op> <term> x * x ( )
Parent 1 Parent 2
<start> <expr> <op> <expr> <term> <op> <term> <term> <op> <term> ( ) x * x / x
<start> <expr> <term> <op> <term> x + 0.5 ( )
Offspring 1 Offspring 2
Evolving Grammars: A Structured Point of View
structured grammatical evolution
Mutation
16
<start> <expr> <op> <expr> <term> <op> <term> <term> <op> <term> ( ) x
/ x
( ) <start> <expr> <op> <term> <op> <term> x
/
Before Mutation After Mutation
<expr> <term> <op> <term> ( ) x
Evolving Grammars: A Structured Point of View
17
Evolving Grammars: A Structured Point of View
problems
18
Evolving Grammars: A Structured Point of View
experimental results
11-Bit Multiplexer
19
← ERROR →
200 200 600 800 1000
← EVALUATIONS (X1000) →
10 20 30 40 50 5 15 25 35 45
RND GE SGE CFG-GP
Evolving Grammars: A Structured Point of View
experimental results
5-Bit Parity
20
8 10 12 14 16
← ERROR → ← EVALUATIONS (X1000) →
10 20 30 40 50 5 15 25 35 45
RND GE SGE CFG-GP
Evolving Grammars: A Structured Point of View
experimental results
Santa Fe Ant Trail
21
← ERROR →
20 40 60 80
← EVALUATIONS (X1000) →
10 20 30 40 50 5 15 25 35 45
RND GE SGE CFG-GP
Evolving Grammars: A Structured Point of View
experimental results
Quartic
22
← RRSE →
0.3 0.2 0.1 0.4 0.5 0.6
← EVALUATIONS (X1000) →
10 20 30 40 50 5 15 25 35 45
RND GE SGE CFG-GP
Evolving Grammars: A Structured Point of View
experimental results
Boston Housing Problem
23
← RRSE → ← EVALUATIONS (X1000) → ← EVALUATIONS (X1000) →
0.70 0.95 1.00 1.15 1.30
← RRSE →
0.70 0.95 1.00 1.15 1.30 10 20 30 40 50 10 20 30 40 50
RND GE SGE CFG-GP RND GE SGE CFG-GP
Evolving Grammars: A Structured Point of View
sge vs ge locality
Distance between solutions after k mutations
24
Evolving Grammars: A Structured Point of View
25
Evolving Grammars: A Structured Point of View
sge criticisms
26
Evolving Grammars: A Structured Point of View
27
Evolving Grammars: A Structured Point of View
representation
with the integers that encode the expansion possibilities;
depth for each non-terminal symbol.
28
Evolving Grammars: A Structured Point of View
initialisation
initialisation
29
<sigexpr>
<sigexpr> <node> <sum> <features> <weight> <bias> <number> <digit>
<node> <sigexpr> <node> | <node> + <sigexpr> 1 <weight> <sum> <bias> <weight> * sig(<sum> + <bias>) <number> <digit> <digit> <digit> <number> <digit>.<digit><digit> |
1, 5, 9 1
* sig( + )
1 5 9 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 +
1, 5, 9 1, 5, 9
Evolving Grammars: A Structured Point of View
decoding procedure
30
Evolving Grammars: A Structured Point of View
31
Evolving Grammars: A Structured Point of View
problems
32
Evolving Grammars: A Structured Point of View
experimental results
11-Bit Multiplexer
33
← FITNESS → ← GENERATION →
450 550 500 600 650 700 750 800 10 20 30 40 50
SGE DSGE
Evolving Grammars: A Structured Point of View
experimental results
Santa Fe Ant Trail
34
← FITNESS → ← GENERATION →
20 10 30 40 50 60 70 10 20 30 40 50
SGE DSGE
Evolving Grammars: A Structured Point of View
experimental results
Quartic Problem
35
← FITNESS → ← GENERATION →
0.00 0.10 0.05 0.15 0.20 0.25 0.30 0.35 10 20 30 40 50
SGE DSGE
Evolving Grammars: A Structured Point of View
experimental results
Boston Housing Problem
36
← FITNESS → ← GENERATION →
0.75 0.85 0.80 0.90 0.95 1.00 1.05 1.10 1.15 0.75 0.85 0.80 0.90 0.95 1.00 1.05 1.10 1.15 10 20 30 40 50
← FITNESS → ← GENERATION →
10 20 30 40 50
SGE DSGE
Evolving Grammars: A Structured Point of View
37
Evolving Grammars: A Structured Point of View
datasets
38
Evolving Grammars: A Structured Point of View
grammar
39
<sigexpr> ::= <node> | <node> + <sigexpr> <node> ::= <weight> ∗ sig(<sum> + <bias>) <sum> ::= <weight> ∗ <features> | <sum> + <sum> <features> ::= x1 | . . . | xn <weight> ::= <number> <bias> ::= <number> <number> ::= <digit>.<digit><digit> | –<digit>.<digit><digit> <digit> ::= 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9
Evolving Grammars: A Structured Point of View
fitness evolution
40
← FITNESS → ← GENERATION →
1.1 1.5 1.3 1.7 1.9 2.1 2.3 2.5 2.7 100 200 300 400 500
← FITNESS → ← GENERATION →
1.1 1.5 1.3 1.7 1.9 2.1 2.3 2.5 2.7 100 200 300 400 500
← FITNESS → ← GENERATION →
1.1 1.5 1.3 1.7 1.9 2.1 2.3 2.5 2.7 100 200 300 400 500
← FITNESS → ← GENERATION →
1.1 1.5 1.3 1.7 1.9 2.1 2.3 2.5 2.7 100 200 300 400 500
SGE GE DSGE
Flame WDBC Ionosphere Sonar
Evolving Grammars: A Structured Point of View
41
Evolving Grammars: A Structured Point of View
Conclusions
42
43
Nuno Lourenço University of Coimbra, Portugal naml@dei.uc.pt