Generalized Planning via Abstraction: Arbitrary Numbers of Objects - - PowerPoint PPT Presentation

generalized planning via abstraction arbitrary numbers of
SMART_READER_LITE
LIVE PREVIEW

Generalized Planning via Abstraction: Arbitrary Numbers of Objects - - PowerPoint PPT Presentation

Generalized Planning via Abstraction: Arbitrary Numbers of Objects Le on Illanes Sheila A. McIlraith Department of Computer Science University of Toronto Toronto, Ontario, Canada AAAI 2019 Motivating Example: Retail Delivery Le on


slide-1
SLIDE 1

Generalized Planning via Abstraction: Arbitrary Numbers of Objects Le´

  • n Illanes

Sheila A. McIlraith

Department of Computer Science University of Toronto Toronto, Ontario, Canada

AAAI 2019

slide-2
SLIDE 2

Motivating Example: Retail Delivery

Le´

  • n Illanes, Sheila A. McIlraith: Generalized Planning: Arbitrary Numbers of Objects

2 / 18

slide-3
SLIDE 3

Motivating Example: Retail Delivery

Le´

  • n Illanes, Sheila A. McIlraith: Generalized Planning: Arbitrary Numbers of Objects

2 / 18

slide-4
SLIDE 4

Retail Delivery Solution

Solution 1: A plan for a delivery problem instance

1 deliver package1 2 deliver package2 3 deliver package3

. . .

Le´

  • n Illanes, Sheila A. McIlraith: Generalized Planning: Arbitrary Numbers of Objects

3 / 18

slide-5
SLIDE 5

Retail Delivery Solution

Solution 2: A generalized solution for the problem

1 while there is some undelivered package do 2

deliver it

Le´

  • n Illanes, Sheila A. McIlraith: Generalized Planning: Arbitrary Numbers of Objects

3 / 18

slide-6
SLIDE 6

Generalized Planning

Workflow overview

Generalized Problem Classical Problem Generalized Planner Generalized Policy Policy Executor Plan Instantiator Classical State Classical Plan Action

Le´

  • n Illanes, Sheila A. McIlraith: Generalized Planning: Arbitrary Numbers of Objects

4 / 18

slide-7
SLIDE 7

Generalized Planning

Workflow overview

Generalized Problem Classical Problem Generalized Planner Generalized Policy Policy Executor Plan Instantiator Classical State Classical Plan Action

Le´

  • n Illanes, Sheila A. McIlraith: Generalized Planning: Arbitrary Numbers of Objects

4 / 18

slide-8
SLIDE 8

Representation: Quantified Problems

“There is at least one package for NY in Paris” ∃[x : NY-pkg(x)] in-Paris(x)

Le´

  • n Illanes, Sheila A. McIlraith: Generalized Planning: Arbitrary Numbers of Objects

5 / 18

slide-9
SLIDE 9

Automated Generalization

From classical problem to quantified problem Use recent reformulation techniques:12

Model indistinguishable objects with counting

Abstract away the counters

1Riddle et al. 2015. 2Fuentetaja and de la Rosa 2016.

Le´

  • n Illanes, Sheila A. McIlraith: Generalized Planning: Arbitrary Numbers of Objects

6 / 18

slide-10
SLIDE 10

Nondeterministic Actions

Le´

  • n Illanes, Sheila A. McIlraith: Generalized Planning: Arbitrary Numbers of Objects

7 / 18

slide-11
SLIDE 11

Nondeterministic Actions

∃ ∃

?

∃ ∃

Le´

  • n Illanes, Sheila A. McIlraith: Generalized Planning: Arbitrary Numbers of Objects

7 / 18

slide-12
SLIDE 12

Nondeterministic Actions

Problem dynamics are actually deterministic Results in unfair nondeterminism

Some of the outcomes are actually impossible

Strong cyclic solvers typically assume fairness We need to deal with the unfairness345

3Bonet et al. 2017. 4Illanes and McIlraith 2017. 5Bonet and Geffner 2018.

Le´

  • n Illanes, Sheila A. McIlraith: Generalized Planning: Arbitrary Numbers of Objects

7 / 18

slide-13
SLIDE 13

Generalized Planning

Workflow overview

Generalized Problem Classical Problem Generalized Planner Generalized Policy Policy Executor Plan Instantiator Classical State Classical Plan Action

Le´

  • n Illanes, Sheila A. McIlraith: Generalized Planning: Arbitrary Numbers of Objects

8 / 18

slide-14
SLIDE 14

The Loom Algorithm

Based on PRP6

state-of-the-art planner for fair fully-observable nondeterministic (FOND) problems

Incorporates verification step for termination7

6Muise, McIlraith, and Beck 2012. 7Srivastava et al. 2011.

Le´

  • n Illanes, Sheila A. McIlraith: Generalized Planning: Arbitrary Numbers of Objects

9 / 18

slide-15
SLIDE 15

Background: Idealized Version of PRP

Start with empty policy Goal-closed? Yes No Find a new weak plan for some state not handled by the policy Done Incorporate it into the policy

Le´

  • n Illanes, Sheila A. McIlraith: Generalized Planning: Arbitrary Numbers of Objects

10 / 18

slide-16
SLIDE 16

Idealized Version of Loom

Start with empty policy Goal-closed? Yes No Find a new weak plan for some state not handled by the policy Terminating? No Yes Done Incorporate it into the policy

Le´

  • n Illanes, Sheila A. McIlraith: Generalized Planning: Arbitrary Numbers of Objects

11 / 18

slide-17
SLIDE 17

Evaluation

Given a generalized problem, produce a generalized solution Execute it over a many problem instances Compare to a classical planning approach

Produce a plan for every instance Using Lama-First

Le´

  • n Illanes, Sheila A. McIlraith: Generalized Planning: Arbitrary Numbers of Objects

12 / 18

slide-18
SLIDE 18

Generalized solutions with Loom

Small overhead in most cases

Domain Time to generalized solution (s) Recycling 0.03 Logistics 0.53 Hamburger 0.03 Construction 0.17 Roundabout 297.89

Le´

  • n Illanes, Sheila A. McIlraith: Generalized Planning: Arbitrary Numbers of Objects

13 / 18

slide-19
SLIDE 19

Executing generalized solutions

Significant improvements in most cases

Loom Lama-First Domain Execution time (s) Planning time (s) Relative (normalized average) (normalized average) Recycling 5.39 11.99 45% Logistics 0.04 0.03 133% Hamburger 0.05 0.26 19% Construction 0.10 1.47 7% Roundabout 0.004 0.006 67%

Le´

  • n Illanes, Sheila A. McIlraith: Generalized Planning: Arbitrary Numbers of Objects

14 / 18

slide-20
SLIDE 20

Problems solved over time

Construction domain

Le´

  • n Illanes, Sheila A. McIlraith: Generalized Planning: Arbitrary Numbers of Objects

15 / 18

slide-21
SLIDE 21

Summary

GP is synthesis of domain-specific planners Arbitrary numbers of objects can be abstracted into unfair nondeterminism

This can be done automatically

Solve with modified FOND planning

In turn leveraging classical planning techniques

Le´

  • n Illanes, Sheila A. McIlraith: Generalized Planning: Arbitrary Numbers of Objects

16 / 18

slide-22
SLIDE 22

Related Work

Bonet, Blai and Hector Geffner (2018). “Features, Projections, and Representation Change for Generalized Planning”. IJCAI. Bonet, Blai et al. (2017). “Generalized Planning: Non-Deterministic Abstractions and Trajectory Constraints”. IJCAI. Fuentetaja, Raquel and Tom´ as de la Rosa (2016). “Compiling irrelevant

  • bjects to counters. Special case of creation planning”. AI Comm. 29.3.

Illanes, Le´

  • n and Sheila A. McIlraith (2017). “Numeric Planning via

Abstraction and Policy Guided Search”. IJCAI. Muise, Christian J., Sheila A. McIlraith, and J. Christopher Beck (2012). “Improved Non-Deterministic Planning by Exploiting State Relevance”. ICAPS. Riddle, Patricia J et al. (2015). “Automated transformation of PDDL representations”. SoCS. Srivastava, Siddharth et al. (2011). “Qualitative Numeric Planning”. AAAI.

Le´

  • n Illanes, Sheila A. McIlraith: Generalized Planning: Arbitrary Numbers of Objects

17 / 18

slide-23
SLIDE 23

Generalized Planning via Abstraction: Arbitrary Numbers of Objects Le´

  • n Illanes

Sheila A. McIlraith

Department of Computer Science University of Toronto Toronto, Ontario, Canada

AAAI 2019