order or not: does parallelization of model building in hboa affect its scalability?

21
Order or Not: Does Parallelization of Model Building in hBOA Affect Its Scalability? Martin Pelikan and James D. Laury, Jr. Missouri Estimation of Distribution Algorithms Laboratory (MEDAL) University of Missouri, St. Louis, MO http://medal.cs.umsl.edu/ [email protected] Martin Pelikan, James D. Laury, Jr. Parallelization of Model Building in hBOA and Scalability

Upload: martin-pelikan

Post on 17-May-2015

1.386 views

Category:

Technology


1 download

DESCRIPTION

It has been shown that model building in the hierarchical Bayesian optimization algorithm (hBOA) can be efficiently parallelized by randomly generating an ancestral ordering of the nodes of the network prior to learning the network structure and allowing only dependencies consistent with the generated ordering. However, it has not been thoroughly shown that this approach to restricting probabilistic models does not affect scalability of hBOA on important classes of problems. This presentation demonstrates that although the use of a random ancestral ordering restricts the structure of considered models to allow efficient parallelization of model building, its effects on hBOA performance and scalability are negligible.

TRANSCRIPT

Page 1: Order Or Not: Does Parallelization of Model Building in hBOA Affect Its Scalability?

Order or Not: Does Parallelization of ModelBuilding in hBOA Affect Its Scalability?

Martin Pelikan and James D. Laury, Jr.

Missouri Estimation of Distribution Algorithms Laboratory (MEDAL)University of Missouri, St. Louis, MO

http://medal.cs.umsl.edu/[email protected]

Martin Pelikan, James D. Laury, Jr. Parallelization of Model Building in hBOA and Scalability

Page 2: Order Or Not: Does Parallelization of Model Building in hBOA Affect Its Scalability?

Motivation

Background

I hBOA can solve nearly decomposable and hierarchicalproblems scalably, often in O(n2) evaluations or faster.

I O(n2) is sometimes not enough...I We may need efficiency enhancemente techniques

I Parallelization, evaluation relaxation, hybridization, ...

Parallelization of model building

I Among the most powerful efficiency enhancements.I But modifies the model building procedure.I Speedups obtained were analyzed.I But effects of modifying the model building procedure on

hBOA scalability were not analyzed thoroughly.

Purpose

I Study the effects of model-building parallelization on hBOAperformance.

Martin Pelikan, James D. Laury, Jr. Parallelization of Model Building in hBOA and Scalability

Page 3: Order Or Not: Does Parallelization of Model Building in hBOA Affect Its Scalability?

Outline

1. Hierarchical BOA (hBOA) basics.

2. Parallelization of model building in hBOA.

3. Experiments.

4. Summary and conclusions.

Martin Pelikan, James D. Laury, Jr. Parallelization of Model Building in hBOA and Scalability

Page 4: Order Or Not: Does Parallelization of Model Building in hBOA Affect Its Scalability?

Hierarchical Bayesian Optimization Algorithm (hBOA)

Hierarchical BOA (Pelikan & Goldberg; 2000, 2001)

I Build and sample a Bayes net instead of crossover/mutation.

I Use local structures and niching.

Current

population

Selected

population

New

population

Bayesian

network

Martin Pelikan, James D. Laury, Jr. Parallelization of Model Building in hBOA and Scalability

Page 5: Order Or Not: Does Parallelization of Model Building in hBOA Affect Its Scalability?

Bayesian Network

Bayesian network has two parts

I StructureI Structure determines edges in the network.

X0

X1

X2

X3

X4

X5

I Parameters.I Parameters specify conditional probabilities of each variable

given its parents (variables that this variable depends on).I Example: p(X2|X0, X1).

Martin Pelikan, James D. Laury, Jr. Parallelization of Model Building in hBOA and Scalability

Page 6: Order Or Not: Does Parallelization of Model Building in hBOA Affect Its Scalability?

Efficiency Enhancement of hBOA

Potential bottlenecks

1. Model building.

2. Evaluation of candidate solutions.

Efficiency enhancement

1. Parallelization.

2. Hybridization.

3. Time continuation.

4. Fitness evaluation relaxation.

5. Prior knowledge utilization.

6. Incremental and sporadic model building.

7. Learning from experience.

Martin Pelikan, James D. Laury, Jr. Parallelization of Model Building in hBOA and Scalability

Page 7: Order Or Not: Does Parallelization of Model Building in hBOA Affect Its Scalability?

Parallel hBOA

What to parallelize?

1. Model building.

2. Fitness evaluation.

Parallelizing evaluation

I Same situation as for other evolutionary algorithms.

I Use master-slave architecture to distribute evaluations.

This work

I Focus on parallelization of model building.

Martin Pelikan, James D. Laury, Jr. Parallelization of Model Building in hBOA and Scalability

Page 8: Order Or Not: Does Parallelization of Model Building in hBOA Affect Its Scalability?

Model Building: Basics

Components of model building

1. Learn structure (dependencies).

2. Learn parameters (conditional probabilities).

Learning structure

I Start with an empty network.

I Add one edge at a time (without creating cycles).

I Choose edges that improve the network the most.

Learning parameters

I Compute frequencies from selected solutions.

I Estimate probabilities from computed frequencies.

Martin Pelikan, James D. Laury, Jr. Parallelization of Model Building in hBOA and Scalability

Page 9: Order Or Not: Does Parallelization of Model Building in hBOA Affect Its Scalability?

Complexity Analysis of Model Building

Notation

I Upper bound on the number of parents: k

I Population size: N

I Number of bits: n

Analysis

I Learn structure: O(kn2N).

I Learn parameters: O(knN).

Bottom line

I Learning structure = most expensive part.

I Should parallelize the greedy algorithm for learning structure.

Martin Pelikan, James D. Laury, Jr. Parallelization of Model Building in hBOA and Scalability

Page 10: Order Or Not: Does Parallelization of Model Building in hBOA Affect Its Scalability?

Parallelizing Structure Learning

Master-slave approach (Ocenasek & Schwarz, 2000)

1. Master sends each node to a separate slave processor.

2. Master distributes the population to all slave processors.

3. Each slave processor determines parents for its node.

4. The master collects the results and learns parameters.

Variations

I Each processor deals with multiple nodes.

I Parameters are also learned locally in slave processors.

Martin Pelikan, James D. Laury, Jr. Parallelization of Model Building in hBOA and Scalability

Page 11: Order Or Not: Does Parallelization of Model Building in hBOA Affect Its Scalability?

Ordering Nodes to Avoid Cycles

Motivation

I Master-slave approach looks great.

I But Bayesian network cannot contain cycles!

I Communication required after each new edge on any slave.

I This leads to a LOT of communication.

Ordering nodes (Ocenasek & Schwarz, 2000)

I Order the nodes randomly before learning the structure.

I Only allow edges consistent with the ordering.

I No need to check for cycles.

I Each processor can deal with edges into a single node.

I Communication needed only before/after the learning.

Martin Pelikan, James D. Laury, Jr. Parallelization of Model Building in hBOA and Scalability

Page 12: Order Or Not: Does Parallelization of Model Building in hBOA Affect Its Scalability?

Ordering Nodes: Example

Consider ordering (X1, X3, X2, X4, X0, X5)

Consistent network Inconsistent network

Martin Pelikan, James D. Laury, Jr. Parallelization of Model Building in hBOA and Scalability

Page 13: Order Or Not: Does Parallelization of Model Building in hBOA Affect Its Scalability?

Example Speedups with Parallel hBOA

Results from Ocenasek et al. (2004)

I Nearly linear speedups even for relatively small problems.

I No need for parallel computers with shared memory.

Martin Pelikan, James D. Laury, Jr. Parallelization of Model Building in hBOA and Scalability

Page 14: Order Or Not: Does Parallelization of Model Building in hBOA Affect Its Scalability?

Effects of Node Ordering

Positive effects

I Straightforward parallelization with little communication.

I Slightly faster model learning even on a sequential computer.

Negative effects

I Model structures are restricted.

I Models may become less accurate.

I Population size and number of generations might increase.

Martin Pelikan, James D. Laury, Jr. Parallelization of Model Building in hBOA and Scalability

Page 15: Order Or Not: Does Parallelization of Model Building in hBOA Affect Its Scalability?

Description of Experiments

Test functions

I Concatenated trap of order 3 and 5.

I Hierarchical trap.

I Ising spin glass (2D).

Scalability analysis

I Number of function evaluations with respect to problem size.

Parameters

I Population size from bisection to ensure 30/30 successful runs.

I Number of generations upper bounded by n.

I Window size in RTR: w = min{n, N/20}.

Martin Pelikan, James D. Laury, Jr. Parallelization of Model Building in hBOA and Scalability

Page 16: Order Or Not: Does Parallelization of Model Building in hBOA Affect Its Scalability?

Results on dec-3

10000

100000

150 120 90 60 30

Num

ber

of E

valu

atio

ns

Problem Size

hBOAhBOA with ordered nodes

I hBOA with node ordering needs slightly more evaluations.I But differences are relatively small.

Martin Pelikan, James D. Laury, Jr. Parallelization of Model Building in hBOA and Scalability

Page 17: Order Or Not: Does Parallelization of Model Building in hBOA Affect Its Scalability?

Results on trap-5

10000

100000

1e+06

150 120 90 60 30

Num

ber

of E

valu

atio

ns

Problem Size

hBOAhBOA with ordered nodes

I Results are mixed (no approach consistently better).I But differences are again relatively small.

Martin Pelikan, James D. Laury, Jr. Parallelization of Model Building in hBOA and Scalability

Page 18: Order Or Not: Does Parallelization of Model Building in hBOA Affect Its Scalability?

Results on hTrap

1000

10000

100000

1e+06

243 81 27

Num

ber

of E

valu

atio

ns

Problem Size

hBOAhBOA with ordered nodes

I hBOA with node ordering in fact outperforms standard hBOA.I But differences are again relatively small.

Martin Pelikan, James D. Laury, Jr. Parallelization of Model Building in hBOA and Scalability

Page 19: Order Or Not: Does Parallelization of Model Building in hBOA Affect Its Scalability?

Results on 2D Ising Spin Glass

100

1000

196 144 100 64 36

Num

ber

of E

valu

atio

ns

Problem Size

hBOAhBOA with ordered nodes

I hBOA with node ordering needs slightly more evaluations.I But differences are relatively small.

Martin Pelikan, James D. Laury, Jr. Parallelization of Model Building in hBOA and Scalability

Page 20: Order Or Not: Does Parallelization of Model Building in hBOA Affect Its Scalability?

Summary and Conclusions

Summary

I Tested scalability of parallel model building in hBOA.

I Analyzed the results.

Conclusions

I Parallelization leads to a slight increase in the number offunction evaluations.

I But the negative effects are negligible compared to the gains.

I Bottom line: If model building is the bottleneck, parallelizethe model building!

Martin Pelikan, James D. Laury, Jr. Parallelization of Model Building in hBOA and Scalability

Page 21: Order Or Not: Does Parallelization of Model Building in hBOA Affect Its Scalability?

Acknowledgments

Acknowledgments

I NSF; NSF CAREER grant ECS-0547013.

I University of Missouri; High Performance ComputingCollaboratory sponsored by Information Technology Services;Research Award; Research Board.

Martin Pelikan, James D. Laury, Jr. Parallelization of Model Building in hBOA and Scalability