21
Automatic Selection of Pattern Collections for Domain Independent Planning MASTER THESIS PRESENTATION MSC THESIS SASCHA SCHERRER, UNIVERSITY BASEL

Automatic Selection of Pattern Collections for ... - unibas.ch · Additional Data: iPDB base dyn. time 2var 3var ign. FF finished 1134 1360 1360 1361 1345 1308 1388 coverage 664 675

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Automatic Selection of Pattern Collections for ... - unibas.ch · Additional Data: iPDB base dyn. time 2var 3var ign. FF finished 1134 1360 1360 1361 1345 1308 1388 coverage 664 675

Automatic Selection of Pattern Collections for Domain Independent Planning MASTER THESIS PRESENTATION

MSC THESIS SASCHA SCHERRER, UNIVERSITY BASEL

Page 2: Automatic Selection of Pattern Collections for ... - unibas.ch · Additional Data: iPDB base dyn. time 2var 3var ign. FF finished 1134 1360 1360 1361 1345 1308 1388 coverage 664 675

Overview

• Introduction & Overview

• Background

• iPDB Heuristic

• PhO Heuristic

• Conclusion & Future Work

5.6.2014 MSC THESIS SASCHA SCHERRER, UNIVERSITY BASEL 2

Page 3: Automatic Selection of Pattern Collections for ... - unibas.ch · Additional Data: iPDB base dyn. time 2var 3var ign. FF finished 1134 1360 1360 1361 1345 1308 1388 coverage 664 675

Background: Planning

• Planning task

• Variables

• States assign values to variables

• Initial state 𝑠0 and goal state(s) 𝑠∗

• Operators have preconditions and effects

5.6.2014 MSC THESIS SASCHA SCHERRER, UNIVERSITY BASEL 3

Page 4: Automatic Selection of Pattern Collections for ... - unibas.ch · Additional Data: iPDB base dyn. time 2var 3var ign. FF finished 1134 1360 1360 1361 1345 1308 1388 coverage 664 675

Background: Planning

• Heuristic search in state space

• Heuristic • Estimates cost to nearest goal

•Admissible: never overestimates

• A* used as search algorithm

• IPC Benchmark & Coverage

5.6.2014 MSC THESIS SASCHA SCHERRER, UNIVERSITY BASEL 4

Page 5: Automatic Selection of Pattern Collections for ... - unibas.ch · Additional Data: iPDB base dyn. time 2var 3var ign. FF finished 1134 1360 1360 1361 1345 1308 1388 coverage 664 675

Background: 15-Puzzle

1 2 3 4

5 6 7 8

9 10 11 12

13 14 15

1 3 8 7

5 6 2

12 13 14 4

9 10 11 15

𝑠0 𝑠∗

5.6.2014 MSC THESIS SASCHA SCHERRER, UNIVERSITY BASEL 5

Page 6: Automatic Selection of Pattern Collections for ... - unibas.ch · Additional Data: iPDB base dyn. time 2var 3var ign. FF finished 1134 1360 1360 1361 1345 1308 1388 coverage 664 675

Background: Pattern Databases

• Pattern is a subset of variables 𝑃 ⊆ 𝑉

• Simplified problem ignoring all variables not in the pattern 𝑃

• PDB contains cost of optimal plans for all states in the simplified problem

• Evaluating ℎ𝑃(𝑠)

5.6.2014 MSC THESIS SASCHA SCHERRER, UNIVERSITY BASEL 6

Page 7: Automatic Selection of Pattern Collections for ... - unibas.ch · Additional Data: iPDB base dyn. time 2var 3var ign. FF finished 1134 1360 1360 1361 1345 1308 1388 coverage 664 675

Background: 15-Puzzle Abstraction

1 2 3 4

5 6 7 8

9 10 11 12

13 14 15

1 3 8 7

5 6 2

12 13 14 4

9 10 11 15

Pattern 𝑃 = {𝑇1, 𝑇2, 𝑇3, 𝑇4}

𝑠0 𝑠∗

5.6.2014 MSC THESIS SASCHA SCHERRER, UNIVERSITY BASEL 7

ℎ𝑃 𝑠0 = 5

Page 8: Automatic Selection of Pattern Collections for ... - unibas.ch · Additional Data: iPDB base dyn. time 2var 3var ign. FF finished 1134 1360 1360 1361 1345 1308 1388 coverage 664 675

Background: Using multiple PDB heuristics

• Selection of a pattern collection

• Combination of heuristic values •Maximum of both heuristics

• Sum of both heuristics if pattern are additive

• Two patterns are additive if there is no operator that affects both

• Canonical heuristic •Add where possible, maximum over sums

5.6.2014 MSC THESIS SASCHA SCHERRER, UNIVERSITY BASEL 8

Page 9: Automatic Selection of Pattern Collections for ... - unibas.ch · Additional Data: iPDB base dyn. time 2var 3var ign. FF finished 1134 1360 1360 1361 1345 1308 1388 coverage 664 675

iPDB Heuristic

• Haslum et al. 2007

• Hill climbing algorithm in space of pattern collections

• Candidate patterns

• Samples

• Evaluated using the canonical heuristic

• Improvement

5.6.2014 MSC THESIS SASCHA SCHERRER, UNIVERSITY BASEL 9

Page 10: Automatic Selection of Pattern Collections for ... - unibas.ch · Additional Data: iPDB base dyn. time 2var 3var ign. FF finished 1134 1360 1360 1361 1345 1308 1388 coverage 664 675

iPDB Heuristic: Hill Climbing

1. Add pattern for each goal variable to collection

2. Compute candidates

3. Repeat: 1. Evaluate candidates

2. Add best candidate to collection

3. Compute new candidates

4. Check stopping criterion

5.6.2014 MSC THESIS SASCHA SCHERRER, UNIVERSITY BASEL 10

Page 11: Automatic Selection of Pattern Collections for ... - unibas.ch · Additional Data: iPDB base dyn. time 2var 3var ign. FF finished 1134 1360 1360 1361 1345 1308 1388 coverage 664 675

iPDB: Changes

• Time limit

• Improvement limit

• Ignoring candidates

• Changed sampling

• Increasing neighbourhood

5.6.2014 MSC THESIS SASCHA SCHERRER, UNIVERSITY BASEL 11

Page 12: Automatic Selection of Pattern Collections for ... - unibas.ch · Additional Data: iPDB base dyn. time 2var 3var ign. FF finished 1134 1360 1360 1361 1345 1308 1388 coverage 664 675

iPDB: Improvement & Total Time

5.6.2014 MSC THESIS SASCHA SCHERRER, UNIVERSITY BASEL 12

0

1

2

3

4

5

6

7

8

9

0

200

400

600

800

1000

1200

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

tim

e[s

]

imp

rove

me

nt

iteration

improvement total time

Page 13: Automatic Selection of Pattern Collections for ... - unibas.ch · Additional Data: iPDB base dyn. time 2var 3var ign. FF finished 1134 1360 1360 1361 1345 1308 1388 coverage 664 675

iPDB: Increasing the Neighbourhood

• Uses time limit of 900 seconds

• Add 𝑛 new variables when creating candidates

• Variables must influence each other

• Memory issues

5.6.2014 MSC THESIS SASCHA SCHERRER, UNIVERSITY BASEL 13

Page 14: Automatic Selection of Pattern Collections for ... - unibas.ch · Additional Data: iPDB base dyn. time 2var 3var ign. FF finished 1134 1360 1360 1361 1345 1308 1388 coverage 664 675

iPDB: Evaluation

5.6.2014 MSC THESIS SASCHA SCHERRER, UNIVERSITY BASEL 14

• iPDB 2var and 3var include a time limit

Coverage

iPDB base iPDB time iPDB 2var iPDB 3var

664 684 706 698

Page 15: Automatic Selection of Pattern Collections for ... - unibas.ch · Additional Data: iPDB base dyn. time 2var 3var ign. FF finished 1134 1360 1360 1361 1345 1308 1388 coverage 664 675

PhO: Posthoc Optimization

• Pommerening et al. 2013

• Systematic pattern generation

• Evaluation: solves linear program (LP) •One variable per operator

•One constraint per PDB

•Depends on state

5.6.2014 MSC THESIS SASCHA SCHERRER, UNIVERSITY BASEL 15

Page 16: Automatic Selection of Pattern Collections for ... - unibas.ch · Additional Data: iPDB base dyn. time 2var 3var ign. FF finished 1134 1360 1360 1361 1345 1308 1388 coverage 664 675

PhO: Changes

• Partial systematic sizes

• Dynamic systematic sizes

• Limiting number & total size of PDBs

• Limiting evaluation time

• Pruning unused constraints

5.6.2014 MSC THESIS SASCHA SCHERRER, UNIVERSITY BASEL 16

Page 17: Automatic Selection of Pattern Collections for ... - unibas.ch · Additional Data: iPDB base dyn. time 2var 3var ign. FF finished 1134 1360 1360 1361 1345 1308 1388 coverage 664 675

PhO: Pruning Unused Constraints

• Samples

• Evaluate heuristic on samples

• Count how often each constraint was “useful”

• Remove constraints that were never “useful”

5.6.2014 MSC THESIS SASCHA SCHERRER, UNIVERSITY BASEL 17

Page 18: Automatic Selection of Pattern Collections for ... - unibas.ch · Additional Data: iPDB base dyn. time 2var 3var ign. FF finished 1134 1360 1360 1361 1345 1308 1388 coverage 664 675

PhO: Evaluation

5.6.2014 MSC THESIS SASCHA SCHERRER, UNIVERSITY BASEL 18

Coverage

PhO base PhO prune

590 598

Page 19: Automatic Selection of Pattern Collections for ... - unibas.ch · Additional Data: iPDB base dyn. time 2var 3var ign. FF finished 1134 1360 1360 1361 1345 1308 1388 coverage 664 675

Conclusion & Future Work

• Viability of abstraction heuristics

• Further investigate • Better limit for iPDB

• Better pruning of constraints for PhO

5.6.2014 MSC THESIS SASCHA SCHERRER, UNIVERSITY BASEL 19

iPDB 2var PhO prune LM-cut

Coverage 706 598 763

Avg. coverage percentage

54,38% 45,19% 53,07%

Page 20: Automatic Selection of Pattern Collections for ... - unibas.ch · Additional Data: iPDB base dyn. time 2var 3var ign. FF finished 1134 1360 1360 1361 1345 1308 1388 coverage 664 675

Additional Data: iPDB

base dyn. time 2var 3var ign. FF

finished 1134 1360 1360 1361 1345 1308 1388

coverage 664 675 684 706 698 705 703

5.6.2014 MSC THESIS SASCHA SCHERRER, UNIVERSITY BASEL 20

0

100

200

300

400

0

200

400

600

800

1000

4 5 6 7 8 9 10 11 12 13

tota

l tim

e[s

]

imp

rove

me

nt

iteration

improvement

total time

Page 21: Automatic Selection of Pattern Collections for ... - unibas.ch · Additional Data: iPDB base dyn. time 2var 3var ign. FF finished 1134 1360 1360 1361 1345 1308 1388 coverage 664 675

Additional Data: PhO

base (k=2) eval. PhO prune

coverage 590 591 598

5.6.2014 MSC THESIS SASCHA SCHERRER, UNIVERSITY BASEL 21

400

450

500

550

600

650

700

systematic size

coverage