Incorporating Planning and Reasoning into a Self-Motivated, - - PowerPoint PPT Presentation

incorporating planning and reasoning into a self
SMART_READER_LITE
LIVE PREVIEW

Incorporating Planning and Reasoning into a Self-Motivated, - - PowerPoint PPT Presentation

Incorporating Planning and Reasoning into a Self-Motivated, Communicative Agent Daphne Liu and Lenhart Schubert Department of Computer Science University of Rochester March 8, 2009 Daphne Liu and Lenhart Schubert ME: A Self-Motivated,


slide-1
SLIDE 1

Incorporating Planning and Reasoning into a Self-Motivated, Communicative Agent

Daphne Liu and Lenhart Schubert

Department of Computer Science University of Rochester

March 8, 2009

Daphne Liu and Lenhart Schubert ME: A Self-Motivated, Communicative Agent

slide-2
SLIDE 2

Outline

  • 1. Motivation and Proposal
  • 2. Architecture
  • 3. Results
  • 4. Conclusion

Daphne Liu and Lenhart Schubert ME: A Self-Motivated, Communicative Agent

slide-3
SLIDE 3

Planning, Reasoning, and Self-Motivation

Planning and Reasoning Self-Motivation “fulfillment of user goals” “Utility-optimizing mappings” How do we integrate them?

Daphne Liu and Lenhart Schubert ME: A Self-Motivated, Communicative Agent

slide-4
SLIDE 4

Our Proposal: Motivated Explorer (ME)

Home Grove Should I drink the juice or walk to Grove? Path

◮ Knowledge-based reasoning about actions and future states

Daphne Liu and Lenhart Schubert ME: A Self-Motivated, Communicative Agent

slide-5
SLIDE 5

Our Proposal: Motivated Explorer (ME)

Home Grove Should I drink the juice or walk to Grove? Path

◮ Knowledge-based reasoning about actions and future states ◮ Motivated by consideration of the long-range utility of choices

Daphne Liu and Lenhart Schubert ME: A Self-Motivated, Communicative Agent

slide-6
SLIDE 6

Explicit Self-Awareness

World Relationships Self Human-like Explicit self-knowledge:

◮ amenable to self-observation and use

Daphne Liu and Lenhart Schubert ME: A Self-Motivated, Communicative Agent

slide-7
SLIDE 7

Explicit Self-Awareness

World Relationships Self Human-like Explicit self-knowledge:

◮ amenable to self-observation and use ◮ conveyable by the agent

Daphne Liu and Lenhart Schubert ME: A Self-Motivated, Communicative Agent

slide-8
SLIDE 8

Explicit Self-Awareness

World Relationships Self Human-like Explicit self-knowledge:

◮ amenable to self-observation and use ◮ conveyable by the agent ◮ open to inferences with world knowledge

Daphne Liu and Lenhart Schubert ME: A Self-Motivated, Communicative Agent

slide-9
SLIDE 9

ME’s Explicit Self-Awareness

a5 is a book. I own a5. Guru likes a5. a5 is readable.

.... .... ....

KB

◮ Facts about itself, the current situation, and the world ◮ General knowledge in the form of Horn-like clauses ◮ Introspective:

◮ Applicable operators and achievable goals Daphne Liu and Lenhart Schubert ME: A Self-Motivated, Communicative Agent

slide-10
SLIDE 10

ME’s Explicit Self-Awareness

a5 is a book. I own a5. Guru likes a5. a5 is readable.

.... .... ....

KB

◮ Facts about itself, the current situation, and the world ◮ General knowledge in the form of Horn-like clauses ◮ Introspective:

◮ Applicable operators and achievable goals ◮ Propositional attitudes Daphne Liu and Lenhart Schubert ME: A Self-Motivated, Communicative Agent

slide-11
SLIDE 11

ME’s Explicit Self-Awareness

a5 is a book. I own a5. Guru likes a5. a5 is readable.

.... .... ....

KB

◮ Facts about itself, the current situation, and the world ◮ General knowledge in the form of Horn-like clauses ◮ Introspective:

◮ Applicable operators and achievable goals ◮ Propositional attitudes ◮ Actions and exogenous events so far Daphne Liu and Lenhart Schubert ME: A Self-Motivated, Communicative Agent

slide-12
SLIDE 12

ME’s Thoughtful Self-Motivation

◮ Driven by “desire” to maximize total utility, using own metrics

  • f rewards and penalties

Daphne Liu and Lenhart Schubert ME: A Self-Motivated, Communicative Agent

slide-13
SLIDE 13

ME’s Thoughtful Self-Motivation

◮ Driven by “desire” to maximize total utility, using own metrics

  • f rewards and penalties

◮ Grounded in reasoned lookahead and evaluation

Daphne Liu and Lenhart Schubert ME: A Self-Motivated, Communicative Agent

slide-14
SLIDE 14

Architecture: ME’s Lookahead in Planning and Execution

. . . . . . . . . . . . . .

drink sleep walk

  • 1. Search forward from a given state.

Daphne Liu and Lenhart Schubert ME: A Self-Motivated, Communicative Agent

slide-15
SLIDE 15

Architecture: ME’s Lookahead in Planning and Execution

. . . . . . . . . . . . . .

drink sleep walk

  • 1. Search forward from a given state.
  • 2. Propagate back expected rewards and costs of applicable

actions and resulting states.

Daphne Liu and Lenhart Schubert ME: A Self-Motivated, Communicative Agent

slide-16
SLIDE 16

Architecture: ME’s Lookahead in Planning and Execution

. . . . . . . . . . . . . .

drink sleep walk

  • 1. Search forward from a given state.
  • 2. Propagate back expected rewards and costs of applicable

actions and resulting states.

  • 3. Execute the first action of the seemingly best plan.

Daphne Liu and Lenhart Schubert ME: A Self-Motivated, Communicative Agent

slide-17
SLIDE 17

Architecture: ME’s Lookahead in Planning and Execution

. . . . . . . . . . . . . .

drink sleep walk

  • 1. Search forward from a given state.
  • 2. Propagate back expected rewards and costs of applicable

actions and resulting states.

  • 3. Execute the first action of the seemingly best plan.
  • 4. Update knowledge.

Daphne Liu and Lenhart Schubert ME: A Self-Motivated, Communicative Agent

slide-18
SLIDE 18

Architecture: Model vs. Actual Operators

◮ ME’s incomplete knowledge of the world

Daphne Liu and Lenhart Schubert ME: A Self-Motivated, Communicative Agent

slide-19
SLIDE 19

Architecture: Model vs. Actual Operators

◮ ME’s incomplete knowledge of the world ◮ Exogenous events (rain and fire)

Example: A fire may start and disrupt ME’s travel.

Daphne Liu and Lenhart Schubert ME: A Self-Motivated, Communicative Agent

slide-20
SLIDE 20

Architecture: Model vs. Actual Operators

◮ ME’s incomplete knowledge of the world ◮ Exogenous events (rain and fire)

Example: A fire may start and disrupt ME’s travel.

◮ Multi-step actions

Daphne Liu and Lenhart Schubert ME: A Self-Motivated, Communicative Agent

slide-21
SLIDE 21

Architecture: Model vs. Actual Operators

◮ ME’s incomplete knowledge of the world ◮ Exogenous events (rain and fire)

Example: A fire may start and disrupt ME’s travel.

◮ Multi-step actions ◮ The “actual” version of ME’s chosen action is executed,

updating ME’s knowledge and the world.

Daphne Liu and Lenhart Schubert ME: A Self-Motivated, Communicative Agent

slide-22
SLIDE 22

Example: Model Version of the Sleep Operator

(setq sleep (make-op :name 'sleep :pars '(?f ?h) :preconds '((is_at ME home) (is_tired_to_degree ME ?f) (>= ?f 0.5) (> ?f ?h) (not (there_is_a_fire)) (is_hungry_to_degree ME ?h)) :effects '((is_tired_to_degree ME 0) (not (is_tired_to_degree ME ?f)) (is_hungry_to_degree ME (+ ?h 2))) :time-required '(* 4 ?f) :value '(* 2 ?f) ))

Daphne Liu and Lenhart Schubert ME: A Self-Motivated, Communicative Agent

slide-23
SLIDE 23

Example: Actual Version of the Sleep Operator

(setq sleep (make-op :name 'sleep.actual :pars '(?f ?h) :startconds '((is_at ME home) (is_tired_to_degree ME ?f)

(>= ?f 0.5) (> ?f ?h) (is_hungry_to_degree ME ?h))

:stopconds '((there_is_a_fire) (is_tired_to_degree ME 0)) :deletes '((is_tired_to_degree ME ?#1) (is_hungry_to_degree ME ?#2)) :adds '((is_tired_to_degree ME (- ?f (* 0.5 (elapsed_time?)))) (is_hungry_to_degree ME (+ ?h (* 0.5 elapsed_time?))))) ))

Daphne Liu and Lenhart Schubert ME: A Self-Motivated, Communicative Agent

slide-24
SLIDE 24

Simulated World

Home Grove Plaza pizza juice ME guru path1 path2

◮ guru knows whether pizza is edible. ◮ ME is thirsty and hungry, knows juice is potable and at home. ◮ Exogenous events: fire and rain ◮ Operators: walk, sleep, eat, drink, ask other agents whether

something is true, answer the user’s yes/no and wh- questions

Daphne Liu and Lenhart Schubert ME: A Self-Motivated, Communicative Agent

slide-25
SLIDE 25

Results of Goal-Directed Behavior

Ablation of Opportunistic Behavior

◮ ME’s sole goal: eating pizza ◮ Actions: asking guru to acquire food knowledge, traveling to

reach guru ad pizza, and eating pizza

◮ Total utility of 66.5, after 18 steps

Output: (RAIN 0), ((WALK HOME GROVE PATH1) 0), ((WALK HOME GROVE PATH1) 1), (FIRE 2), ((ASK+WHETHER GURU (EDIBLE PIZZA) GROVE) 3), (RAIN 5), ((WALK GROVE HOME PATH1) 5), (FIRE 8), (RAIN 9), ((WALK GROVE HOME PATH1) 9), ((WALK HOME PLAZA PATH2) 12), ((WALK HOME PLAZA PATH2) 14), (FIRE 15), ((EAT PIZZA PLAZA) 17).

Daphne Liu and Lenhart Schubert ME: A Self-Motivated, Communicative Agent

slide-26
SLIDE 26

Results of Opportunistic Behavior

Opportunistic Behavior

◮ Total utility of 80.5, after 18 steps ◮ Direct result of seizing initial opportunity to drink juice

Output: (RAIN 0), ((DRINK 4 JUICE HOME) 0), (FIRE 2), (RAIN 5), ((WALK HOME GROVE PATH1) 5), ((WALK HOME GROVE PATH1) 0) 6), (FIRE 7), ((ASK+WHETHER GURU (EDIBLE PIZZA) GROVE) 8), (RAIN 9), ((WALK GROVE HOME PATH1) 10), (RAIN 11), ((WALK GROVE HOME PATH1) 11), (RAIN 13), ((WALK HOME PLAZA PATH2) 13), ((WALK HOME PLAZA PATH2) 15), (RAIN 16), ((EAT PIZZA PLAZA) 17).

Daphne Liu and Lenhart Schubert ME: A Self-Motivated, Communicative Agent

slide-27
SLIDE 27

Question-Answering Example

>> (listen!) You're welcome to ask ME a question. ((ask-yn user (can_talk guru)) (ask-wh user (is_animate ?y)))

===================================================== STEP TAKEN: (ANSWER_USER_YNQ (CAN_TALK GURU)) (GURU CAN TALK) For question (CAN_TALK GURU), according to ME's currentknowledge base, ME offers the answer above. STEP TAKEN: (ANSWER_USER_WHQ (IS_ANIMATE ?Y)) (ME IS ANIMATE) (GURU IS ANIMATE) For question (IS_ANIMATE ?Y), other than the above positive instance(s) that ME knows of, ME assumes nothing else as the answer.

Daphne Liu and Lenhart Schubert ME: A Self-Motivated, Communicative Agent

slide-28
SLIDE 28

Summary

◮ Explicitly self-aware and self-motivated ME

Daphne Liu and Lenhart Schubert ME: A Self-Motivated, Communicative Agent

slide-29
SLIDE 29

Summary

◮ Explicitly self-aware and self-motivated ME ◮ Deliberate self-motivation

Daphne Liu and Lenhart Schubert ME: A Self-Motivated, Communicative Agent

slide-30
SLIDE 30

Summary

◮ Explicitly self-aware and self-motivated ME ◮ Deliberate self-motivation ◮ Integration of behavioral and planning-based agents

Daphne Liu and Lenhart Schubert ME: A Self-Motivated, Communicative Agent

slide-31
SLIDE 31

Summary

◮ Explicitly self-aware and self-motivated ME ◮ Deliberate self-motivation ◮ Integration of behavioral and planning-based agents ◮ Towards a conversation agent with knowledge-and

suggestion-driven dialogue behavior

Daphne Liu and Lenhart Schubert ME: A Self-Motivated, Communicative Agent