Solving Non-deterministic Planning Problems with Pattern Database - - PowerPoint PPT Presentation

solving non deterministic planning problems with pattern
SMART_READER_LITE
LIVE PREVIEW

Solving Non-deterministic Planning Problems with Pattern Database - - PowerPoint PPT Presentation

, Formalization & Search PDB-Heuristic Benchmarks Conclusion Solving Non-deterministic Planning Problems with Pattern Database Heuristics Pascal Bercher Robert Mattm uller Institute of Artificial Intelligence Department of Computer


slide-1
SLIDE 1

, Formalization & Search PDB-Heuristic Benchmarks Conclusion

Solving Non-deterministic Planning Problems with Pattern Database Heuristics Pascal Bercher Robert Mattm¨ uller

Institute of Artificial Intelligence Department of Computer Science University of Ulm, Germany University of Freiburg, Germany

KI 2009, Paderborn

Solving Non-Deterministic Planning Problems with Pattern Database Heuristics 15.-18. Sept 2009, KI ’09 1 / 18

slide-2
SLIDE 2

, Formalization & Search PDB-Heuristic Benchmarks Conclusion Formalization

Given: A non-deterministic planning problem. (Informally: Initial state, actions, goal states. Nondeterminism: actions may have several outcomes.) Desired: A solution to that problem. (Informally: How to reach a goal state, using the actions?)

Solving Non-Deterministic Planning Problems with Pattern Database Heuristics 15.-18. Sept 2009, KI ’09 2 / 18

slide-3
SLIDE 3

, Formalization & Search PDB-Heuristic Benchmarks Conclusion Formalization

Given: Non-deterministic planning problem P = (Var, A, s0, G) with:

  • Var, finite set of state variables.

S = 2Var is the state space.

  • A, finite set of actions a = pre(a), eff(a) and:
  • pre(a) ⊆ Var and
  • eff(a) = { addi, deli | addi, deli ⊆ Var and i ∈ {1, . . . , n} }.
  • Its application (if pre(a) ⊆ s) leads to:

app(s, a) = { (s\del) ∪ add | add, del ∈ eff(a) }

  • s0 ∈ S, the initial state.
  • G ⊆ Var, the goal description.

A state s ∈ S is a goal state iff s ⊇ G.

Solving Non-Deterministic Planning Problems with Pattern Database Heuristics 15.-18. Sept 2009, KI ’09 3 / 18

slide-4
SLIDE 4

, Formalization & Search PDB-Heuristic Benchmarks Conclusion Formalization (Example)

Let s = {x, y, z} ∈ S be a state and a ∈ A be an action with: a = pre(a), eff(a) and pre(a) = {x, y} ⊆ s, eff(a) = { {z}, {x, y}, ∅, {t, z} }. {x, y, z} {z} {x, y} a

add: z del: x,y add: ε del: t,z Solving Non-Deterministic Planning Problems with Pattern Database Heuristics 15.-18. Sept 2009, KI ’09 4 / 18

slide-5
SLIDE 5

, Formalization & Search PDB-Heuristic Benchmarks Conclusion Formalization

Desired: Strong plan. (Success, regardless of non-deterministic outcome.)

Solving Non-Deterministic Planning Problems with Pattern Database Heuristics 15.-18. Sept 2009, KI ’09 5 / 18

slide-6
SLIDE 6

, Formalization & Search PDB-Heuristic Benchmarks Conclusion Formalization

Desired: Strong plan. (Success, regardless of non-deterministic outcome.)

Solving Non-Deterministic Planning Problems with Pattern Database Heuristics 15.-18. Sept 2009, KI ’09 5 / 18

slide-7
SLIDE 7

, Formalization & Search PDB-Heuristic Benchmarks Conclusion Formalization

Desired: Strong plan. (Success, regardless of non-deterministic outcome.)

Solving Non-Deterministic Planning Problems with Pattern Database Heuristics 15.-18. Sept 2009, KI ’09 5 / 18

slide-8
SLIDE 8

, Formalization & Search PDB-Heuristic Benchmarks Conclusion Formalization

Desired: Strong plan. (Success, regardless of non-deterministic outcome.)

Solving Non-Deterministic Planning Problems with Pattern Database Heuristics 15.-18. Sept 2009, KI ’09 5 / 18

slide-9
SLIDE 9

, Formalization & Search PDB-Heuristic Benchmarks Conclusion Search Algorithm, modification of AO*

s0, c=4 s1

h=2

s2

h=3

c0 s3

h=4

s4

h=3

c1 Expansion

s0, c=5 s1

h=2

s2

c=5

c0 s3

h=4

s4

h=3

c1 s5

h=2

s6

h=0

s7

h=4

c3

Solving Non-Deterministic Planning Problems with Pattern Database Heuristics 15.-18. Sept 2009, KI ’09 6 / 18

slide-10
SLIDE 10

, Formalization & Search PDB-Heuristic Benchmarks Conclusion Idea

Use abstraction to simplify the problem: S

S1 S2

. . .

Sm

Map the search space S to abstract search spaces Si with |Si| ≪ |S|. Compute h(s), s ∈ S, on basis of all hi(si). Calculation of the hi is done before the search.

Solving Non-Deterministic Planning Problems with Pattern Database Heuristics 15.-18. Sept 2009, KI ’09 7 / 18

slide-11
SLIDE 11

, Formalization & Search PDB-Heuristic Benchmarks Conclusion Formalization

Idea: Disregard some (or rather most of the) state variables. The abstraction Pi = (Vari, Ai, si

0, Gi) is the planning problem P,

restricted to the pattern Pi ⊆ Var:

  • Vari ≔ Var ∩ Pi = Pi,
  • For var ⊆ Var let vari ≔ var ∩ Pi. Then:

ai ≔ pre(a)i, { addi, deli | add, del ∈ eff(a) } for a ∈ A. Now, Ai ≔ { ai | a ∈ A }.

  • si

0 ≔ s0 ∩ Pi

  • Gi ≔ G ∩ Pi.

Solving Non-Deterministic Planning Problems with Pattern Database Heuristics 15.-18. Sept 2009, KI ’09 8 / 18

slide-12
SLIDE 12

, Formalization & Search PDB-Heuristic Benchmarks Conclusion Heuristic Computation

Recall:

  • A pattern is a set of state variables Pi ⊆ Var.

Then, a pattern collection P is a set of patterns.

  • Compute h(s), s ∈ S, on basis of all hi(si), Pi ∈ P, P finite pattern

collection, i.e. set of patterns. How to calculate those hi(si), si ∈ Si? hi(si) is the true cost value cost* of the planning problem Pi. Calcuation is done by a complete exhaustive search. (Thus, Si and therefore Pi have to be small!) (True means: prefer shallow solution graphs.)

Solving Non-Deterministic Planning Problems with Pattern Database Heuristics 15.-18. Sept 2009, KI ’09 9 / 18

slide-13
SLIDE 13

, Formalization & Search PDB-Heuristic Benchmarks Conclusion Additivity (Theorem)

How to calculate h(s), s ∈ S? By using additivity! A pattern collection P is called additive, if for all states s ∈ S:

  • Pi∈P

hi(si) ≤ cost*(s), i.e. if this sum is still admissible. Known from classical planning: Theorem (textual description) If there is no action a ∈ A that affects variables in more than one pattern from P, then P is additive.

Solving Non-Deterministic Planning Problems with Pattern Database Heuristics 15.-18. Sept 2009, KI ’09 10 / 18

slide-14
SLIDE 14

, Formalization & Search PDB-Heuristic Benchmarks Conclusion Additivity (Theorem)

How to calculate h(s), s ∈ S? By using additivity! A pattern collection P is called additive, if for all states s ∈ S:

  • Pi∈P

hi(si) ≤ cost*(s), i.e. if this sum is still admissible. Known from classical planning: Theorem (mathematical description) If for all a ∈ A and for all patterns Pi ∈ P holds: If Pi ∩ effvar(a) ∅, then Pj ∩ effvar(a) = ∅ for all Pj ∈ P with Pj Pi, where effvar(a) =

add,del∈eff(a) add ∪ del.

Then P is additive.

Solving Non-Deterministic Planning Problems with Pattern Database Heuristics 15.-18. Sept 2009, KI ’09 10 / 18

slide-15
SLIDE 15

, Formalization & Search PDB-Heuristic Benchmarks Conclusion Additivity (Example)

P = ({a, b, c, d, e}, A, {a}, {b, c, d, e}) with A = {a1, . . . , a9} and: a1 = {a}, {{b}, {a}, {c}, {a}} a6 = {b, e}, {{c}, ∅} a2 = {b}, {{e}, ∅, {d}, ∅} a7 = {c, e}, {{b}, ∅} a3 = {c}, {{e}, ∅, {d}, ∅} a8 = {b, c, d}, {{e}, ∅} a4 = {b, d}, {{c}, ∅} a9 = {b, c, e}, {{d}, ∅} a5 = {c, d}, {{b}, ∅}

Solving Non-Deterministic Planning Problems with Pattern Database Heuristics 15.-18. Sept 2009, KI ’09 11 / 18

slide-16
SLIDE 16

, Formalization & Search PDB-Heuristic Benchmarks Conclusion Additivity (Example)

P = ({a, b, c, d, e}, A, {a}, {b, c, d, e}) with A = {a1, . . . , a9} and: a1 = {a}, {{b}, {a}, {c}, {a}} a6 = {b, e}, {{c}, ∅} a2 = {b}, {{e}, ∅, {d}, ∅} a7 = {c, e}, {{b}, ∅} a3 = {c}, {{e}, ∅, {d}, ∅} a8 = {b, c, d}, {{e}, ∅} a4 = {b, d}, {{c}, ∅} a9 = {b, c, e}, {{d}, ∅} a5 = {c, d}, {{b}, ∅} Now, consider the pattern collection P = {{a, b, c}, {d, e}}.

Solving Non-Deterministic Planning Problems with Pattern Database Heuristics 15.-18. Sept 2009, KI ’09 11 / 18

slide-17
SLIDE 17

, Formalization & Search PDB-Heuristic Benchmarks Conclusion Additivity (Example)

P = ({a, b, c, d, e}, A, {a}, {b, c, d, e}) with A = {a1, . . . , a9} and: a1 = {a}, {{b}, {a}, {c}, {a}} a6 = {b, e}, {{c}, ∅} a2 = {b}, {{e}, ∅, {d}, ∅} a7 = {c, e}, {{b}, ∅} a3 = {c}, {{e}, ∅, {d}, ∅} a8 = {b, c, d}, {{e}, ∅} a4 = {b, d}, {{c}, ∅} a9 = {b, c, e}, {{d}, ∅} a5 = {c, d}, {{b}, ∅} Now, consider the pattern collection P = {{a, b, c}, {d, e}}.

Solving Non-Deterministic Planning Problems with Pattern Database Heuristics 15.-18. Sept 2009, KI ’09 11 / 18

slide-18
SLIDE 18

, Formalization & Search PDB-Heuristic Benchmarks Conclusion Additivity (Example)

P = ({a, b, c, d, e}, A, {a}, {b, c, d, e}) with A = {a1, . . . , a9} and: a1 = {a}, {{b}, {a}, {c}, {a}} a6 = {b, e}, {{c}, ∅} a2 = {b}, {{e}, ∅, {d}, ∅} a7 = {c, e}, {{b}, ∅} a3 = {c}, {{e}, ∅, {d}, ∅} a8 = {b, c, d}, {{e}, ∅} a4 = {b, d}, {{c}, ∅} a9 = {b, c, e}, {{d}, ∅} a5 = {c, d}, {{b}, ∅} Now, consider the pattern collection P = {{a, b, c}, {d, e}}. Only the effect variables matter!

Solving Non-Deterministic Planning Problems with Pattern Database Heuristics 15.-18. Sept 2009, KI ’09 11 / 18

slide-19
SLIDE 19

, Formalization & Search PDB-Heuristic Benchmarks Conclusion Additivity (Example, cont’d)

a b c be bd cd ce bcd bce bcde

a1 a2 a3 a4 a5 a6 a7 a8 a9 Solving Non-Deterministic Planning Problems with Pattern Database Heuristics 15.-18. Sept 2009, KI ’09 12 / 18

slide-20
SLIDE 20

, Formalization & Search PDB-Heuristic Benchmarks Conclusion Additivity (Example, cont’d)

a b c be bd cd ce bcd bce bcde

a1 a2 a3 a4 a5 a6 a7 a8 a9 Solving Non-Deterministic Planning Problems with Pattern Database Heuristics 15.-18. Sept 2009, KI ’09 12 / 18

slide-21
SLIDE 21

, Formalization & Search PDB-Heuristic Benchmarks Conclusion Additivity (Example, cont’d)

a b c be bd cd ce bcd bce bcde

a1 a2 a3 a4 a5 a6 a7 a8 a9

a b c bc

a1

1

a1

4/a1 6

a1

5/a1 7

ε d e de

a2

2/a2 3

a2

8

a2

9

Solving Non-Deterministic Planning Problems with Pattern Database Heuristics 15.-18. Sept 2009, KI ’09 12 / 18

slide-22
SLIDE 22

, Formalization & Search PDB-Heuristic Benchmarks Conclusion Additivity (Example, cont’d)

a b c be bd cd ce bcd bce bcde

a1 a2 a3 a4 a5 a6 a7 a8 a9

a b c bc

a1

1

a1

4/a1 6

a1

5/a1 7

ε d e de

a2

2/a2 3

a2

8

a2

9

Example: h({a}) = h1({a}1)+h2({a}2) = h1({a})+h2(∅) = 2+2 = 4 = cost∗({a}).

Solving Non-Deterministic Planning Problems with Pattern Database Heuristics 15.-18. Sept 2009, KI ’09 12 / 18

slide-23
SLIDE 23

, Formalization & Search PDB-Heuristic Benchmarks Conclusion Heuristic Calculation (cont’d)

Let M be a set of additive pattern collections. hM(s) := max

P∈M

  • Pi∈P

hi(si). hM (and in particular, every single hi) is admissible. How to find M? Current research. (Here: still domain-dependent by hand.)

Solving Non-Deterministic Planning Problems with Pattern Database Heuristics 15.-18. Sept 2009, KI ’09 13 / 18

slide-24
SLIDE 24

, Formalization & Search PDB-Heuristic Benchmarks Conclusion Compared Systems

Encoded two domains and compared:

  • Our planner with the heuristic of FF

.

  • Our planner with the presented pattern database heuristics.
  • GAMER.

Important differences between GAMER and our system:

  • Optimal solutions vs. suboptimal solutions.
  • Regression vs. progression.

Solving Non-Deterministic Planning Problems with Pattern Database Heuristics 15.-18. Sept 2009, KI ’09 14 / 18

slide-25
SLIDE 25

, Formalization & Search PDB-Heuristic Benchmarks Conclusion Results

  • Pattern database heuristic quality is problem dependent:

Domain 1: Pattern database heuristics about 25% more node expansions than FF heuristic. Domain 2: Pattern database heuristics calculate true (perfect) cost value (as opposed to the FF heuristic).

  • Calculation time of pattern database heuristic is much smaller

than the FF heuristic’s. Thus, more problems could be solved.

  • Progression with heuristic search seems promising approach.

(Note: No comparison to sub-optimal planner, yet.)

Solving Non-Deterministic Planning Problems with Pattern Database Heuristics 15.-18. Sept 2009, KI ’09 15 / 18

slide-26
SLIDE 26

, Formalization & Search PDB-Heuristic Benchmarks Conclusion Summary

  • Presented fomalization for domain-independent pattern database

heuristics in non-deterministic planning.

  • Generalization of additivity criterion.
  • Benchmarks look promising.

Solving Non-Deterministic Planning Problems with Pattern Database Heuristics 15.-18. Sept 2009, KI ’09 16 / 18

slide-27
SLIDE 27

, Formalization & Search PDB-Heuristic Benchmarks Conclusion Future Work

  • Automatic pattern selection.
  • Strong plans → strong cyclic plans.
  • Search algorithm, LAO*.
  • Pattern database heuristics: Admissibility/Additivity?
  • Multi-valued state variables.

Solving Non-Deterministic Planning Problems with Pattern Database Heuristics 15.-18. Sept 2009, KI ’09 17 / 18

slide-28
SLIDE 28

, Formalization & Search PDB-Heuristic Benchmarks Conclusion

Thank you!

Solving Non-Deterministic Planning Problems with Pattern Database Heuristics 15.-18. Sept 2009, KI ’09 18 / 18