25
Analyzing Probabilistic Models in Hierarchical BOA on Traps and Spin Glasses Mark Hauschild, Martin Pelikan, Claudio F. Lima, Kumara Sastry

Analyzing Probabilistic Models in Hierarchical BOA on Traps and Spin Glasses

Embed Size (px)

DESCRIPTION

The hierarchical Bayesian optimization algorithm (hBOA) can solve nearly decomposable and hierarchical problems of bounded difficulty in a robust and scalable manner by building and sampling probabilistic models of promising solutions. This paper analyzes probabilistic models in hBOA on two common test problems: concatenated traps and 2D Ising spin glasses with periodic boundary conditions. We argue that although Bayesian networks with local structures can encode complex probability distributions, analyzing these models in hBOA is relatively straightforward and the results of such analyses may provide practitioners with useful information about their problems. The results show that the probabilistic models in hBOA closely correspond to the structure of the underlying optimization problem, the models do not change significantly in subsequent iterations of BOA, and creating adequate probabilistic models by hand is not straightforward even with complete knowledge of the optimization problem.

Citation preview

Page 1: Analyzing Probabilistic Models in Hierarchical BOA on Traps and Spin Glasses

Analyzing Probabilistic Modelsin Hierarchical BOA

on Traps and Spin Glasses

Mark Hauschild, Martin Pelikan,Claudio F. Lima, Kumara Sastry

Page 2: Analyzing Probabilistic Models in Hierarchical BOA on Traps and Spin Glasses

Motivation

BackgroundhBOA can solve difficult problems scalably and reliably

Much empirical work has been done

efficiency enhancement (EE)

scalability

Relatively little studying of the models themselves

PurposeUnderstand models in hBOA

Design problem-specific EE

Design automated EE techniques

Educate researchers about their problems

Page 3: Analyzing Probabilistic Models in Hierarchical BOA on Traps and Spin Glasses

Outline

Hierarchical BOA (hBOA)

Models in hBOA

Experiments

Trap 5

2d Ising Spin Glass

Conclusions

Future Work

Page 4: Analyzing Probabilistic Models in Hierarchical BOA on Traps and Spin Glasses

Hierarchical BayesianOptimization Algorithm (hBOA)

Pelikan, Goldberg and Cantu-Paz (2001)

Uses Bayesian network with local structuresto model promising solutions

Bayesian networkAcyclic directed Graph

String positions are the nodes

Edges represent conditional dependencies

Where there is no edge, implicit independence

Sampled to create new population each gen.

Niching to maintain diversity

Page 5: Analyzing Probabilistic Models in Hierarchical BOA on Traps and Spin Glasses

hBOA

Current

population SelectionNew

population

Bayesian

network

Page 6: Analyzing Probabilistic Models in Hierarchical BOA on Traps and Spin Glasses

Bayesian Network

Structure

Edges determinedependence

Parameters

p(Burglary|Alarm)

Page 7: Analyzing Probabilistic Models in Hierarchical BOA on Traps and Spin Glasses

What are we looking for?

Accuracy

Do the models accurately represent theunderlying problem structure

Effects on scalability

Using models to understand problems

Dynamics

How the models change over time

Efficiency Enhancement

Jij

Page 8: Analyzing Probabilistic Models in Hierarchical BOA on Traps and Spin Glasses

Test Problems

Selecting our test problems

Have to know what a good model looks like

Non-trivial

Easily scaled up

Diverse

Test Problems Selected

Trap-5

2D Ising Spin Glass

Page 9: Analyzing Probabilistic Models in Hierarchical BOA on Traps and Spin Glasses

Trap-5

Partition binary string into disjointgroups of 5 bits

Total fitness is sum of single traps

Optimum: String 1111…1

==

otherwise4

5 if 5)(

ones

onesonestrap

Page 10: Analyzing Probabilistic Models in Hierarchical BOA on Traps and Spin Glasses

Perfect Model for Trap-5

Each 5-bit partition should be fully (or close to fully)connected (10 edges)Necessary dependencies

Bits between partitions should be independentUnnecessary dependencies

Page 11: Analyzing Probabilistic Models in Hierarchical BOA on Traps and Spin Glasses

Trap-5 Experiments

Problem sizes 15-210

30 runs for each size

Bisection was used to determinepopulation size

Page 12: Analyzing Probabilistic Models in Hierarchical BOA on Traps and Spin Glasses

Trap-5 Results

Necessary and unnecessary dependencies w.r.t problem size

Three snapshots taken in each run (first, middle, last gen.)

Average of the 30 runs for each problem size

Page 13: Analyzing Probabilistic Models in Hierarchical BOA on Traps and Spin Glasses

Trap-5 Results

Ratio of unnecessary dependencies to totaldependencies as problem size increases

a) Middle snapshot b) End snapshot

Page 14: Analyzing Probabilistic Models in Hierarchical BOA on Traps and Spin Glasses

Trap-5 Results

Model dynamics for two different problem sizes.

Dependencies were counted as the same even if theirdirection changed.

a) N = 100 bits. b) N = 200 bits.

1 2 3 4 5 6 7 8 9 10 11 12 130

50

100

150

200

250

300

Generations

Dep

ende

ncie

s

Total+ New Dep− Old Dep

5 10 15 20 250

100

200

300

400

500

600

Generations

Dep

ende

ncie

s

Total+ New Dep− Old Dep

Page 15: Analyzing Probabilistic Models in Hierarchical BOA on Traps and Spin Glasses

2D Ising Spin Glass

Origin in physics

Spins arranged on a 2Dgrid (periodic boundaryconditions)

Each spin (sj) can havetwo values: +1 or -1

Set of connection weightsJij specifies an instance.

,

,

( )i i j j

i j

E E c s J s=

Page 16: Analyzing Probabilistic Models in Hierarchical BOA on Traps and Spin Glasses

2D Ising Spin Glass

Very hard for most optimization techniques

Extremely large number of local optima

Any decomposition of bounded order is insufficient

The problem is solvable in polynomial time byanalytical techniques

hBOA does solve it in polynomial time

A deterministic hill-climber (DHC) is used toimprove the quality of all evaluated solutions

Single bit flips until no improvements

Page 17: Analyzing Probabilistic Models in Hierarchical BOA on Traps and Spin Glasses

Perfect Model for Spin-Glass

Not sure what the perfect model is

To some degree, all positions aredependent on all others

If we consider all, it will not scale

We would expect the interactionsshould decrease in magnitude as theirdistance increases

Page 18: Analyzing Probabilistic Models in Hierarchical BOA on Traps and Spin Glasses

Spin Glass Experiments

100 different instances of size 10x10 to 20x20

Only graphs of 20x20 are shown

With and without DHC

5 runs of each instance

Scaling as we restrict models

Restrict models to short order dependencies

Page 19: Analyzing Probabilistic Models in Hierarchical BOA on Traps and Spin Glasses

Spin Glass Results

a) First generation b) Second snapshot

c) Third snapshot d) Last generation

0 10 200

200

400

600

800

Dep

ende

ncie

s

Distance0 10 20

0

200

400

600

800

Dep

ende

ncie

s

Distance

0 10 200

200

400

600

800

Dep

ende

ncie

s

Distance0 10 20

0

200

400

600

800

Dep

ende

ncie

s

Distance

Page 20: Analyzing Probabilistic Models in Hierarchical BOA on Traps and Spin Glasses

Spin Glass Results (No DHC)

a) First generation b) Second snapshot

c) Third snapshot d) Last generation

0 10 200

200

400

600

800

Dep

ende

ncie

s

Distance0 10 20

0

200

400

600

800

Dep

ende

ncie

s

Distance

0 10 200

200

400

600

800

Dep

ende

ncie

s

Distance0 10 20

0

200

400

600

800

Dep

ende

ncie

s

Distance

Page 21: Analyzing Probabilistic Models in Hierarchical BOA on Traps and Spin Glasses

Spin Glass Results

One example instance (rest similar)

Dependencies were counted the same even if theirdirection changed

a) All dependencies b) Neighbor dependencies

1 2 3 4 5 6 7 8 9 1011121314150

300

600

900

1200

1500

1800

Generations

Dep

ende

ncie

s

Total+ New Dep− Old Dep

1 2 3 4 5 6 7 8 9 1011121314150

200

400

600

800

Generations

Dep

ende

ncie

s

Total+ New Dep− Old Dep

Page 22: Analyzing Probabilistic Models in Hierarchical BOA on Traps and Spin Glasses

Restricting hBOA models

Evaluations varying by different restrictions

Experiments without DHC had similar scaling

100 144 196 256 324400 625 900

103

104

105

Problem Size

Fitn

ess

Eva

luat

ions

stockd(2)d(1)

Page 23: Analyzing Probabilistic Models in Hierarchical BOA on Traps and Spin Glasses

Conclusions

Studying hBOA models is challenging butpossible

hBOA generates accurate models quickly

Models reveal a lot of information about theproblem

Models do not change rapidly over time

Information about models can help us designEE

Page 24: Analyzing Probabilistic Models in Hierarchical BOA on Traps and Spin Glasses

Future Work

Do model analysis on other challengingproblems

Artificial

Real world

Develop techniques to automaticallyexploit this information for EE

Page 25: Analyzing Probabilistic Models in Hierarchical BOA on Traps and Spin Glasses

Any Questions?