An Empirical Case Study on Symmetry Handling in Cost-Optimal - - PowerPoint PPT Presentation

an empirical case study on symmetry handling in cost
SMART_READER_LITE
LIVE PREVIEW

An Empirical Case Study on Symmetry Handling in Cost-Optimal - - PowerPoint PPT Presentation

Background Experiments An Empirical Case Study on Symmetry Handling in Cost-Optimal Planning as Heuristic Search Silvan Sievers 1 Martin Wehrle 1 Malte Helmert 1 Michael Katz 2 1 University of Basel Basel, Switzerland 2 IBM Research Haifa,


slide-1
SLIDE 1

Background Experiments

An Empirical Case Study on Symmetry Handling in Cost-Optimal Planning as Heuristic Search

Silvan Sievers1 Martin Wehrle1 Malte Helmert1 Michael Katz2

1University of Basel

Basel, Switzerland

2IBM Research

Haifa, Israel

September 23, 2015

slide-2
SLIDE 2

Background Experiments

Motivation

Successful usage of symmetries:

Planning: duplicate pruning in A⋆, improved merge-and-shrink heuristics Heuristic search: symmetrical/dual lookups

slide-3
SLIDE 3

Background Experiments

Motivation

Successful usage of symmetries:

Planning: duplicate pruning in A⋆, improved merge-and-shrink heuristics Heuristic search: symmetrical/dual lookups

Contribution of this work:

Quantitative analysis of symmetries in planning benchmarks Empirical comparison of different symmetry-based techniques (adapted to planning)

slide-4
SLIDE 4

Background Experiments

Outline

1

Background

2

Experiments Symmetries in Planning Benchmarks Symmetrical Lookups for Planning Comparison of Symmetry-based Techniques

slide-5
SLIDE 5

Background Experiments

Classical Planning

SAS+ planning task Π:

Finite-domain state variables Initial state: complete variable assignment Goal description: partial variable assignment Operators: preconditions, effects, cost

slide-6
SLIDE 6

Background Experiments

Classical Planning

SAS+ planning task Π:

Finite-domain state variables Initial state: complete variable assignment Goal description: partial variable assignment Operators: preconditions, effects, cost

State transition graph TΠ:

00 01 10 11

  • a
  • b
  • b
  • a
slide-7
SLIDE 7

Background Experiments

Structural Symmetries (Shleyfman et al. 2015)

Structural symmetry of a planning task Π:

Maps facts (variable/value pairs) to facts and operators to

  • perators

Induced symmetry σ on the state transition graph TΠ = (V , E) is a goal-stable automorphism:

(s, o, s′) ∈ E iff (σ(s), σ(o), σ(s′) ∈ E s goal state iff σ(s) goal state

slide-8
SLIDE 8

Background Experiments

Structural Symmetries (Shleyfman et al. 2015)

Structural symmetry of a planning task Π:

Maps facts (variable/value pairs) to facts and operators to

  • perators

Induced symmetry σ on the state transition graph TΠ = (V , E) is a goal-stable automorphism:

(s, o, s′) ∈ E iff (σ(s), σ(o), σ(s′) ∈ E s goal state iff σ(s) goal state

Example symmetry: σ(oa) = ob σ(ob) = oa

00 01 10 11

  • a
  • b
  • b
  • a
slide-9
SLIDE 9

Background Experiments

Orbit Space Search (Domshlak et al. 2015)

Orbit: equivalence class of symmetrical states

slide-10
SLIDE 10

Background Experiments

Orbit Space Search (Domshlak et al. 2015)

Orbit: equivalence class of symmetrical states Before search: find (some) generators

  • f the automorphism group

s0 s∗

Credits to A. Shleyfman

slide-11
SLIDE 11

Background Experiments

Orbit Space Search (Domshlak et al. 2015)

Orbit: equivalence class of symmetrical states Before search: find (some) generators

  • f the automorphism group

During search:

Run A⋆ as usual When expanding state s, replace successors by orbit representatives, but save regular operators → symmetrical duplicate pruning

s0 s∗ s0

Credits to A. Shleyfman

slide-12
SLIDE 12

Background Experiments

Orbit Space Search (Domshlak et al. 2015)

Orbit: equivalence class of symmetrical states Before search: find (some) generators

  • f the automorphism group

During search:

Run A⋆ as usual When expanding state s, replace successors by orbit representatives, but save regular operators → symmetrical duplicate pruning

s0 s∗ X X

Credits to A. Shleyfman

slide-13
SLIDE 13

Background Experiments

Orbit Space Search (Domshlak et al. 2015)

Orbit: equivalence class of symmetrical states Before search: find (some) generators

  • f the automorphism group

During search:

Run A⋆ as usual When expanding state s, replace successors by orbit representatives, but save regular operators → symmetrical duplicate pruning

s0 s∗ X X

Credits to A. Shleyfman

slide-14
SLIDE 14

Background Experiments

Orbit Space Search (Domshlak et al. 2015)

Orbit: equivalence class of symmetrical states Before search: find (some) generators

  • f the automorphism group

During search:

Run A⋆ as usual When expanding state s, replace successors by orbit representatives, but save regular operators → symmetrical duplicate pruning

s0 s∗ X X X

Credits to A. Shleyfman

slide-15
SLIDE 15

Background Experiments

Orbit Space Search (Domshlak et al. 2015)

Orbit: equivalence class of symmetrical states Before search: find (some) generators

  • f the automorphism group

During search:

Run A⋆ as usual When expanding state s, replace successors by orbit representatives, but save regular operators → symmetrical duplicate pruning

s0 s∗ X X X

Credits to A. Shleyfman

slide-16
SLIDE 16

Background Experiments

Orbit Space Search (Domshlak et al. 2015)

Orbit: equivalence class of symmetrical states Before search: find (some) generators

  • f the automorphism group

During search:

Run A⋆ as usual When expanding state s, replace successors by orbit representatives, but save regular operators → symmetrical duplicate pruning

s0 s∗ X X X X

Credits to A. Shleyfman

slide-17
SLIDE 17

Background Experiments

Orbit Space Search (Domshlak et al. 2015)

Orbit: equivalence class of symmetrical states Before search: find (some) generators

  • f the automorphism group

During search:

Run A⋆ as usual When expanding state s, replace successors by orbit representatives, but save regular operators → symmetrical duplicate pruning

s0 s∗ X X X X s∗

Credits to A. Shleyfman

slide-18
SLIDE 18

Background Experiments

Orbit Space Search (Domshlak et al. 2015)

Orbit: equivalence class of symmetrical states Before search: find (some) generators

  • f the automorphism group

During search:

Run A⋆ as usual When expanding state s, replace successors by orbit representatives, but save regular operators → symmetrical duplicate pruning

Non-standard plan extraction:

Compute the “real” state sequence Find operators connecting the sequence

s0 s∗ X X s∗

Credits to A. Shleyfman

slide-19
SLIDE 19

Background Experiments

Orbit Space Search (Domshlak et al. 2015)

Orbit: equivalence class of symmetrical states Before search: find (some) generators

  • f the automorphism group

During search:

Run A⋆ as usual When expanding state s, replace successors by orbit representatives, but save regular operators → symmetrical duplicate pruning

Non-standard plan extraction:

Compute the “real” state sequence Find operators connecting the sequence

s0 s∗ X X s∗

Credits to A. Shleyfman

slide-20
SLIDE 20

Background Experiments

Orbit Space Search (Domshlak et al. 2015)

Orbit: equivalence class of symmetrical states Before search: find (some) generators

  • f the automorphism group

During search:

Run A⋆ as usual When expanding state s, replace successors by orbit representatives, but save regular operators → symmetrical duplicate pruning

Non-standard plan extraction:

Compute the “real” state sequence Find operators connecting the sequence

s0 s∗ X X s∗

Credits to A. Shleyfman

slide-21
SLIDE 21

Background Experiments

Symmetrical Lookups for Planning

(For heuristic search: Felner et al. 2005, Zahavi et al. 2008) Before search: find (some) generators of the automorphism group During search, for a given state s and heuristic h:

Compute (a subset of) the orbit containing s: S := {s, s1, . . . sm} Compute heuristic as ¯ h(s) := max{h(s′) | s′ ∈ S}

Properties:

S can be chosen arbitrarily ¯ h(s) is still admissible (if h is)

slide-22
SLIDE 22

Background Experiments

Bidirectional Pathmax for Planning

(For heuristic search: Felner et al. 2011) Symmetrical lookups usually render heuristics inconsistent Consistency: h(s) ≤ cost(o) + h(s′) for a transition from s to s′ with operator o Bidirectional pathmax (BPMX) rule: h(s′) = max(h(s′), h(s) − cost(o))

slide-23
SLIDE 23

Background Experiments

Merge-and-Shrink Heuristic (Helmert et al. 2014)

Represent state space as set T of small finite transition systems, with a shared label set L State space corresponds to product of transition systems Transform transition systems to obtain distance heuristic for state space

slide-24
SLIDE 24

Background Experiments

Factored Symmetries (Sievers et al. 2015)

Work on a set T of transition systems as encountered during the merge-and-shrink computation Locally map abstract states to abstract states within elemets

  • f T and globally map transition labels to transition labels in L

Goal states must be preserved

slide-25
SLIDE 25

Background Experiments

Factored Symmetries (Sievers et al. 2015)

Work on a set T of transition systems as encountered during the merge-and-shrink computation Locally map abstract states to abstract states within elemets

  • f T and globally map transition labels to transition labels in L

Goal states must be preserved Example: σ(o1) = o1 σ(o2) = o2 σ(o3) = o3

a0 a1 b0 b1 c0 c1 c2 d0 d1 d2

  • 3
  • 2
  • 1
  • 3
  • 1
  • 2
  • 1
  • 3 o1
  • 3
  • 1
  • 2 o1
  • 2
slide-26
SLIDE 26

Background Experiments

Factored Symmetries (Sievers et al. 2015)

Work on a set T of transition systems as encountered during the merge-and-shrink computation Locally map abstract states to abstract states within elemets

  • f T and globally map transition labels to transition labels in L

Goal states must be preserved Example: σ(o1) = o1 σ(o2) = o2 σ(o3) = o3

a0 a1 b0 b1 c0 c1 c2 d0 d1 d2

  • 3
  • 2
  • 1
  • 3
  • 1
  • 2
  • 1
  • 3 o1
  • 3
  • 1
  • 2 o1
  • 2

Usage: improve merging strategies

slide-27
SLIDE 27

Background Experiments

Outline

1

Background

2

Experiments Symmetries in Planning Benchmarks Symmetrical Lookups for Planning Comparison of Symmetry-based Techniques

slide-28
SLIDE 28

Background Experiments

Quantitative Analysis

Benchmark set: 44 domains with 1396 tasks Amount of symmetries:

Only 3 domains with no symmetries 1103 tasks contain symmetries In 38 domains, more than 50% of tasks contain symmetries In most of the 38 domains, almost all tasks contain symmetries

Influence of the representation and the symmetry tool?

slide-29
SLIDE 29

Background Experiments

Symmetrical Lookups

Merge-and-Shrink base 1 state 5 states 10 states

  • rbit

Coverage 652 656 658 658 658 Expansions sum 607602428 501671723 493848579 471769190 493848579

slide-30
SLIDE 30

Background Experiments

Symmetrical Lookups

Merge-and-Shrink base 1 state 5 states 10 states

  • rbit

Coverage 652 656 658 658 658 Expansions sum 607602428 501671723 493848579 471769190 493848579

Expansions:

100 101 102 103 104 105 106 107 100 101 102 103 104 105 106 107 unsolved unsolved base sl

Runtime:

100 101 102 103 100 101 102 103 unsolved unsolved base sl

slide-31
SLIDE 31

Background Experiments

Bidirectional Pathmax

Merge-and-Shrink base sl sl-bpmx Coverage 652 658 658 Expansions sum 607602428 471769190 471769236

Marginal reduction in expansions, no increase in coverage Explanation: pathmax corrections only in 2% of the tasks for which the merge-and-shrink heuristic was constructed

slide-32
SLIDE 32

Background Experiments

Combinations of Techniques

Merge-and-Shrink base

  • ss

sl fs Coverage 652 696 658 654 Expansions sum 5.16e+8 2.68e+8 4.01e+8 3.65e+8

All techniques improve performance

slide-33
SLIDE 33

Background Experiments

Combinations of Techniques

Merge-and-Shrink base

  • ss

sl fs Coverage 652 696 658 654 Expansions sum 5.16e+8 2.68e+8 4.01e+8 3.65e+8

All techniques improve performance

Merge-and-Shrink

  • ss-sl
  • ss-fs

sl-fs all Coverage 691 698 655 692 Expansions sum 2.54e+8 2.39e+8 3.44e+8 2.32e+8

Including orbit space search always helpful Including symmetrical lookups not very helpful (for coverage)

slide-34
SLIDE 34

Background Experiments

More Results . . .

. . . on the poster!

slide-35
SLIDE 35

Background Experiments

Conclusions

Planning benchmarks contain lots of symmetries Symmetry-based techniques improve state-of-the-art planning techniques Orbit space search achieves best performance BMPX does not help as much as in heuristic search problems