CS 4700: Foundations of Artificial Intelligence Bart Selman - - PowerPoint PPT Presentation

cs 4700 foundations of artificial intelligence
SMART_READER_LITE
LIVE PREVIEW

CS 4700: Foundations of Artificial Intelligence Bart Selman - - PowerPoint PPT Presentation

CS 4700: Foundations of Artificial Intelligence Bart Selman selman@cs.cornell.edu Module: Knowledge, Reasoning, and Planning First-Order Logic and Inference R&N: Chapters 8 and 9 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17


slide-1
SLIDE 1

1

CS 4700: Foundations of Artificial Intelligence

Bart Selman selman@cs.cornell.edu Module: Knowledge, Reasoning, and Planning First-Order Logic and Inference R&N: Chapters 8 and 9

slide-2
SLIDE 2

2

slide-3
SLIDE 3

3

slide-4
SLIDE 4

4

slide-5
SLIDE 5

5

slide-6
SLIDE 6

6

slide-7
SLIDE 7

7

slide-8
SLIDE 8

8

slide-9
SLIDE 9

9

slide-10
SLIDE 10

10

slide-11
SLIDE 11

11

slide-12
SLIDE 12

12

slide-13
SLIDE 13

13

slide-14
SLIDE 14

14

slide-15
SLIDE 15

15

slide-16
SLIDE 16

16

slide-17
SLIDE 17

17

slide-18
SLIDE 18

18

slide-19
SLIDE 19

19

Finite domains === “essentially propositional.” Also called: Propositional schema.

slide-20
SLIDE 20

20

slide-21
SLIDE 21

21

slide-22
SLIDE 22

22

slide-23
SLIDE 23

23

Also discussed earlier. Here some additional axiom details. R&N Section 10.4.2.

slide-24
SLIDE 24

24

slide-25
SLIDE 25

25

Result(action, situation) à à situation (unique outcome)

slide-26
SLIDE 26

26

slide-27
SLIDE 27

27

Again, as discussed in propositional case.

slide-28
SLIDE 28

28

slide-29
SLIDE 29

29

Further illustration of FOL formulation. R&N 8.4.2.

slide-30
SLIDE 30

30

slide-31
SLIDE 31

31

Always define first and carefully.

slide-32
SLIDE 32

32

slide-33
SLIDE 33

33

slide-34
SLIDE 34

34

slide-35
SLIDE 35

35

slide-36
SLIDE 36

36

slide-37
SLIDE 37

37

Aside: previously The same here but we want a bit more “detailed answer”. Inference will also give us variable bindings if existential query is entailed.

slide-38
SLIDE 38

38

slide-39
SLIDE 39

39

Done with prop. logic. Just check for syntax and FOL form.

slide-40
SLIDE 40

40

slide-41
SLIDE 41

41

slide-42
SLIDE 42

42

See R&N p. 443 FOL formalizations can be challenging for “everyday” concepts. Probabilistic representations (extending prop. logic / FOL) can help!

slide-43
SLIDE 43

43

Chapter 9 R&N. But for finite domains that are not too large, better to “ground to” propositional and use SAT solver.

slide-44
SLIDE 44

44

slide-45
SLIDE 45

45

slide-46
SLIDE 46

46

slide-47
SLIDE 47

47

slide-48
SLIDE 48

48

Find the “right” substitution for a universal quantified variable.

slide-49
SLIDE 49

49

slide-50
SLIDE 50

50

Can substitute in because original clause universally quantified.

slide-51
SLIDE 51

51

slide-52
SLIDE 52

52

slide-53
SLIDE 53

53

slide-54
SLIDE 54

54

slide-55
SLIDE 55

55

slide-56
SLIDE 56

56

slide-57
SLIDE 57

57

YES!

Natural language input. The query (From dog to more general.) (General statement.) What “hidden” background knowledge is being used?

slide-58
SLIDE 58

58

Cats are animals. Not stated explicitly! This is an example of background knowledge key to Natural Language Understanding. ( ) Executable semantic parsing. Persi Liang, Stanford. Query: KB |== Kills(Curiosity, Tuna) ?? NLU needs to resolve “the cat” to Curiosity!

slide-59
SLIDE 59

59 D is a “fake name” for the dog.

Translation to clausal form automatic. Missing?

  • 8. ¬ Kills(Curiosity, Tuna)

Negation of query! Proof by contradiction for resolution.

slide-60
SLIDE 60

60 i.e. : Kills(Curiosity,Tuna)

Warning: Non-standard notation!!

slide-61
SLIDE 61

61

First-order resolution proof (more carefully)

  • 9. ¬ Owns(x, D)∨ AnimalLover(x) using S(x)/D
  • 10. AnimalLover(Jack)

using x/Jack

  • 11. Animal (Tuna) using z/Tuna
slide-62
SLIDE 62

62

  • 11. Animal (Tuna)
  • 12. ¬ AnimalLover(w) ∨ ¬ Kills(w, Tuna) using y/Tuna
  • 10. AnimalLover(Jack)
  • 13. ¬ Kills(Jack, Tuna) using w/Jack
  • 14. Kills(Curiosity, Tuna)
  • 8. ¬ Kills(Curiosity, Tuna)

15 ⧠ (contradiction reached) So, KB |== Kills(Curiosity, Tuna) 15 lines; trivial with modern solvers. Can do 1+ billion lines!

slide-63
SLIDE 63

63

So, we answered a natural language query using (1) Natural language parsing (almost there) (2) Background knowledge (much work remaining) (3) Reasoning (works fine now) We will see much progress in this kind of natural language question answering in next decade.

Eg executable semantic parsing. Persi Liang, Stanford.

slide-64
SLIDE 64

64

slide-65
SLIDE 65

65

slide-66
SLIDE 66

66

slide-67
SLIDE 67

67

slide-68
SLIDE 68

68

slide-69
SLIDE 69

69

Or, better yet, for finite domains, fall back to SAT solvers. Certain sets of first-order statements can overwhelm general resolution solvers, e.g. about infinite sets (natural numbers).

slide-70
SLIDE 70

70

Concludes propositional and first-order logic for knowledge representation and reasoning. Next “Big Picture Slide”

slide-71
SLIDE 71

71

AI Knowledge- Data- Inference Triangle Knowledge Intensive Data Intensive Reasoning/ Search Intensive Common Sense Watson Google Search (IR) Google’s Knowl. Graph Siri Verification

NLU Computer Vision

Deep Blue Robbin’s Conj. Semantic Web 20+yr GAP! Google Transl. 4-color thm. Speech understanding Object recognition Sentiment analysis