NaturalLI: Natural Logic Inference for Common Sense Reasoning Gabor - - PowerPoint PPT Presentation

naturalli natural logic inference for common sense
SMART_READER_LITE
LIVE PREVIEW

NaturalLI: Natural Logic Inference for Common Sense Reasoning Gabor - - PowerPoint PPT Presentation

NaturalLI: Natural Logic Inference for Common Sense Reasoning Gabor Angeli, Chris Manning Stanford University October 26, 2014 Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26,


slide-1
SLIDE 1

NaturalLI: Natural Logic Inference for Common Sense Reasoning

Gabor Angeli, Chris Manning

Stanford University

October 26, 2014

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 0 / 22
slide-2
SLIDE 2

Natural Logic Inference for Common Sense Reasoning

Kittens play with yarn Kittens play with computers

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 1 / 22
slide-3
SLIDE 3

Natural Logic Inference for Common Sense Reasoning

Kittens play with yarn Kittens play with computers

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 1 / 22
slide-4
SLIDE 4

Common Sense Reasoning for NLP

The city refused the demonstrators a permit because they feared violence.

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 2 / 22
slide-5
SLIDE 5

Common Sense Reasoning for NLP

The city refused the demonstrators a permit because they feared violence. a city fears violence demonstrators fear violence

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 2 / 22
slide-6
SLIDE 6

Common Sense Reasoning for NLP

The city refused the demonstrators a permit because they feared violence. a city fears violence demonstrators fear violence I ate the cake with a cherry vs. I ate the cake with a fork cakes come with cherries cakes are eaten using cherries

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 2 / 22
slide-7
SLIDE 7

Common Sense Reasoning for NLP

The city refused the demonstrators a permit because they feared violence. a city fears violence demonstrators fear violence I ate the cake with a cherry vs. I ate the cake with a fork cakes come with cherries cakes are eaten using cherries Put a sarcastic comment in your talk. That’s a great idea. Sarcasm in your talk is a great idea

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 2 / 22
slide-8
SLIDE 8

Common Sense Reasoning for Vision

Dogs drive cars People drive cars

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 3 / 22
slide-9
SLIDE 9

Common Sense Reasoning for Vision

Dogs drive cars People drive cars Baseball is played underwater Baseball is played on grass

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 3 / 22
slide-10
SLIDE 10

Prior Work on Common Sense Reasoning

Old School AI: Nuanced reasoning; tiny coverage. Default reasoning (Reiter 1980; McCarthy 1980). Theorem proving (e.g., Datalog).

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 4 / 22
slide-11
SLIDE 11

Prior Work on Common Sense Reasoning

Old School AI: Nuanced reasoning; tiny coverage. Default reasoning (Reiter 1980; McCarthy 1980). Theorem proving (e.g., Datalog). Textual Entailment: Rich inference; small data. RTE Challenges. Episodic Logic (Schubert, 2002).

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 4 / 22
slide-12
SLIDE 12

Prior Work on Common Sense Reasoning

Old School AI: Nuanced reasoning; tiny coverage. Default reasoning (Reiter 1980; McCarthy 1980). Theorem proving (e.g., Datalog). Textual Entailment: Rich inference; small data. RTE Challenges. Episodic Logic (Schubert, 2002). Information Extraction: Shallow inference, large data. OpenIE (Yates et al., 2007), NELL (Carlson et al., 2010). Extraction of facts from a large corpus; fuzzy lookup.

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 4 / 22
slide-13
SLIDE 13

Start with a large knowledge base

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 5 / 22
slide-14
SLIDE 14

Start with a large knowledge base

The cat ate a mouse All cats have tails All kittens are cute

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 5 / 22
slide-15
SLIDE 15

Infer new facts...

The cat ate a mouse ... ... All cats have tails All kittens are cute

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 5 / 22
slide-16
SLIDE 16

Infer new facts...

The cat ate a mouse ... ... No carnivores eat animals All cats have tails All kittens are cute

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 5 / 22

↑ Don’t want to run inference

  • ver every fact!

← Don’t want to store all of these!

slide-17
SLIDE 17

Infer new facts...

The cat ate a mouse ... ... No carnivores eat animals All cats have tails All kittens are cute

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 5 / 22

↑ Don’t want to run inference

  • ver every fact!

← Don’t want to store all of these!

slide-18
SLIDE 18

Infer new facts...

The cat ate a mouse ... ... No carnivores eat animals All cats have tails All kittens are cute

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 5 / 22

↑ Don’t want to run inference

  • ver every fact!

← Don’t want to store all of these!

slide-19
SLIDE 19

Infer new facts...on demand from a query...

No carnivores eat animals? ... ... The cat ate a mouse All cats have tails All kittens are cute

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 5 / 22
slide-20
SLIDE 20

...Using text as the meaning representation...

No carnivores eat animals? The carnivores eat animals The cat eats animals The cat ate an animal The cat ate a mouse All cats have tails All kittens are cute

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 5 / 22
slide-21
SLIDE 21

...Without aligning to any particular premise.

No carnivores eat animals? The carnivores eat animals The cat eats animals The cat ate an animal The cat ate a mouse ... ... ... ... All cats have tails All kittens are cute

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 5 / 22
slide-22
SLIDE 22

A Better Knowledge Base Lookup

Lookup in 270 million entry KB... ...by lemmas 12% recall ...with NaturalLI 49% recall (91% precision)

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 6 / 22
slide-23
SLIDE 23

A Better Knowledge Base Lookup

Lookup in 270 million entry KB... ...by lemmas 12% recall ...with NaturalLI 49% recall (91% precision) Formal logical entailment: Not just fuzzy lookup.

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 6 / 22
slide-24
SLIDE 24

A Better Knowledge Base Lookup

Lookup in 270 million entry KB... ...by lemmas 12% recall ...with NaturalLI 49% recall (91% precision) Formal logical entailment: Not just fuzzy lookup. Maintain good properties of fuzzy lookup. Fast. Minimal pre-processing of query. Minimal pre-processing of knowledge base.

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 6 / 22
slide-25
SLIDE 25

A Better Knowledge Base Lookup

Lookup in 270 million entry KB... ...by lemmas 12% recall ...with NaturalLI 49% recall (91% precision) Formal logical entailment: Not just fuzzy lookup. Maintain good properties of fuzzy lookup. Fast. Minimal pre-processing of query. Minimal pre-processing of knowledge base.

Natural Logic

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 6 / 22
slide-26
SLIDE 26

Natural Logic as Syllogisms

s/Natural Logic/Syllogistic Reasoning/g Some cat ate a mouse (all mice are rodents) ∴ Some cat ate a rodent

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 7 / 22
slide-27
SLIDE 27

Natural Logic as Syllogisms

s/Natural Logic/Syllogistic Reasoning/g Some cat ate a mouse (all mice are rodents) ∴ Some cat ate a rodent Cognitively easy inferences are easy: Most cats eat mice ∴ Most cats eat rodents

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 7 / 22
slide-28
SLIDE 28

Natural Logic as Syllogisms

s/Natural Logic/Syllogistic Reasoning/g Some cat ate a mouse (all mice are rodents) ∴ Some cat ate a rodent Cognitively easy inferences are easy: Most cats eat mice ∴ Most cats eat rodents “All students who know a foreign language learned it at university.”

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 7 / 22
slide-29
SLIDE 29

Natural Logic as Syllogisms

s/Natural Logic/Syllogistic Reasoning/g Some cat ate a mouse (all mice are rodents) ∴ Some cat ate a rodent Cognitively easy inferences are easy: Most cats eat mice ∴ Most cats eat rodents “All students who know a foreign language learned it at university.” ∴ “They learned it at school.”

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 7 / 22
slide-30
SLIDE 30

Natural Logic as Syllogisms

s/Natural Logic/Syllogistic Reasoning/g Some cat ate a mouse (all mice are rodents) ∴ Some cat ate a rodent Cognitively easy inferences are easy: Most cats eat mice ∴ Most cats eat rodents “All students who know a foreign language learned it at university.” ∴ “They learned it at school.” Facts are text; inference is lexical mutation

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 7 / 22
slide-31
SLIDE 31

Natural Logic and Polarity

Treat hypernymy as a partial order.

⊤ animal feline cat dog ⊥ Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 8 / 22
slide-32
SLIDE 32

Natural Logic and Polarity

Treat hypernymy as a partial order.

⊤ animal feline cat dog ⊥

Polarity is the direction a lexical item can move in the ordering. animal feline cat house cat

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 8 / 22
slide-33
SLIDE 33

Natural Logic and Polarity

Treat hypernymy as a partial order.

⊤ animal feline cat dog ⊥

Polarity is the direction a lexical item can move in the ordering. animal feline ↑ cat house cat

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 8 / 22
slide-34
SLIDE 34

Natural Logic and Polarity

Treat hypernymy as a partial order.

⊤ animal feline cat dog ⊥

Polarity is the direction a lexical item can move in the ordering. living thing animal ↑ feline cat

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 8 / 22
slide-35
SLIDE 35

Natural Logic and Polarity

Treat hypernymy as a partial order.

⊤ animal feline cat dog ⊥

Polarity is the direction a lexical item can move in the ordering. thing living thing ↑ animal feline

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 8 / 22
slide-36
SLIDE 36

Natural Logic and Polarity

Treat hypernymy as a partial order.

⊤ animal feline cat dog ⊥

Polarity is the direction a lexical item can move in the ordering. thing living thing ↓ animal feline

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 8 / 22
slide-37
SLIDE 37

Natural Logic and Polarity

Treat hypernymy as a partial order.

⊤ animal feline cat dog ⊥

Polarity is the direction a lexical item can move in the ordering. living thing animal ↓ feline cat

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 8 / 22
slide-38
SLIDE 38

Natural Logic and Polarity

Treat hypernymy as a partial order.

⊤ animal feline cat dog ⊥

Polarity is the direction a lexical item can move in the ordering. animal feline ↓ cat house cat

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 8 / 22
slide-39
SLIDE 39

An Example Inference

Quantifiers determines the polarity (↑ or ↓) of words. Polarity Inference is reversible. ↑ All↓↑ carnivores felines ↓ cats house cats consume ↑ eat slurp placentals rodents ↑ mice fieldmice

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 9 / 22
slide-40
SLIDE 40

An Example Inference

Quantifiers determines the polarity (↑ or ↓) of words. Mutations must respect polarity. Inference is reversible. ↑ All↓↑ felines cats ↓ house cats kitties consume ↑ eat slurp placentals rodents ↑ mice fieldmice

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 9 / 22
slide-41
SLIDE 41

An Example Inference

Quantifiers determines the polarity (↑ or ↓) of words. Mutations must respect polarity. Inference is reversible. ↑ All↓↑ felines cats ↓ house cats kitties ↑ consume eat placentals rodents ↑ mice fieldmice

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 9 / 22
slide-42
SLIDE 42

An Example Inference

Quantifiers determines the polarity (↑ or ↓) of words. Mutations must respect polarity. Inference is reversible. ↑ All↓↑ felines cats ↓ house cats kitties ↑ consume eat rodents mice ↑ fieldmice pine vole

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 9 / 22
slide-43
SLIDE 43

An Example Inference

Quantifiers determines the polarity (↑ or ↓) of words. Mutations must respect polarity. Inference is reversible. ↑ All↓↑ felines cats ↓ house cats kitties ↑ consume eat placentals rodents ↑ mice fieldmice

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 9 / 22
slide-44
SLIDE 44

An Example Inference

Quantifiers determines the polarity (↑ or ↓) of words. Mutations must respect polarity. Inference is reversible. ↑ All↓↑ felines cats ↓ house cats kitties ↑ consume eat mammals placentals ↑ rodents mice

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 9 / 22
slide-45
SLIDE 45

An Example Inference

Quantifiers determines the polarity (↑ or ↓) of words. Mutations must respect polarity. Inference is reversible. ↑ All↓↑ felines cats ↓ house cats kitties ↑ consume eat mammals placentals ↑ rodents mice

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 9 / 22
slide-46
SLIDE 46

Properties of Natural Logic

Computationally fast during inference.

“Semantic” parse of query is just syntactic parse. Inference is lexical mutations / insertions / deletions. Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 10 / 22
slide-47
SLIDE 47

Properties of Natural Logic

Computationally fast during inference.

“Semantic” parse of query is just syntactic parse. Inference is lexical mutations / insertions / deletions.

Computationally fast during pre-processing.

Plain text! Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 10 / 22
slide-48
SLIDE 48

Properties of Natural Logic

Computationally fast during inference.

“Semantic” parse of query is just syntactic parse. Inference is lexical mutations / insertions / deletions.

Computationally fast during pre-processing.

Plain text!

Still captures common inferences.

We make these types of inferences regularly and instantly. Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 10 / 22
slide-49
SLIDE 49

Properties of Natural Logic

Computationally fast during inference.

“Semantic” parse of query is just syntactic parse. Inference is lexical mutations / insertions / deletions.

Computationally fast during pre-processing.

Plain text!

Still captures common inferences.

We make these types of inferences regularly and instantly. We expect readers to make these inferences instantly. Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 10 / 22
slide-50
SLIDE 50

Natural Logic Inference is Search

The cat ate a mouse ... ... No carnivores eat animals All cats have tails All kittens are cute

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 11 / 22
slide-51
SLIDE 51

Natural Logic Inference is Search

No carnivores eat animals? The carnivores eat animals The cat eats animals The cat ate an animal The cat ate a mouse All cats have tails All kittens are cute

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 11 / 22
slide-52
SLIDE 52

Natural Logic Inference is Search

No carnivores eat animals? The carnivores eat animals The cat eats animals The cat ate an animal The cat ate a mouse ... ... ... ... All cats have tails All kittens are cute

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 11 / 22
slide-53
SLIDE 53

Natural Logic Inference is Search

Nodes ( fact, truth maintained ∈ {true,false})

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 11 / 22
slide-54
SLIDE 54

Natural Logic Inference is Search

Nodes ( fact, truth maintained ∈ {true,false}) Start Node ( query fact, true ) End Nodes any known fact

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 11 / 22
slide-55
SLIDE 55

Natural Logic Inference is Search

Nodes ( fact, truth maintained ∈ {true,false}) Start Node ( query fact, true ) End Nodes any known fact Edges Mutations of the current fact

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 11 / 22
slide-56
SLIDE 56

Natural Logic Inference is Search

Nodes ( fact, truth maintained ∈ {true,false}) Start Node ( query fact, true ) End Nodes any known fact Edges Mutations of the current fact Edge Costs How “wrong” an inference step is (learned)

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 11 / 22
slide-57
SLIDE 57

An Example Search (as reverse inference)

Search mutates opposite to polarity

  • rganism

animal ↓ carnivores felines

  • rganism

animal ↓ carnivores felines

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 12 / 22
slide-58
SLIDE 58

An Example Search (as reverse inference)

Truth maintained: true Current Node:

↑ No↓↓
  • rganism
animal ↓ carnivores felines consume ↓ eat slurp living thing
  • rganism
↓ animals chordate Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 12 / 22
slide-59
SLIDE 59

An Example Search (as reverse inference)

Truth maintained: false Current Node:

↑ The↑↑ All↓↑
  • rganism
animal ↑ carnivores felines consume ↑ eat slurp living thing
  • rganism
↑ animals chordate Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 12 / 22
slide-60
SLIDE 60

An Example Search (as reverse inference)

Truth maintained: false Current Node:

↑ The↑↑ All↓↑ animals carnivores ↑ felines cats consume ↑ eat slurp living thing
  • rganism
↑ animals chordate Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 12 / 22
slide-61
SLIDE 61

An Example Search (as reverse inference)

Truth maintained: false Current Node:

↑ The↑↑ All↓↑ carnivores felines ↑ cats kitties consume ↑ eat slurp living thing
  • rganism
↑ animals chordate Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 12 / 22
slide-62
SLIDE 62

An Example Search (as reverse inference)

Truth maintained: false Current Node:

↑ The↑↑ All↓↑ carnivores felines ↑ cats kitties consume ↑ eat slurp
  • rganisms
animals ↑ chordates mice Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 12 / 22
slide-63
SLIDE 63

An Example Search (as reverse inference)

Truth maintained: false Current Node:

↑ The↑↑ All↓↑ carnivores felines ↑ cats kitties consume ↑ eat slurp animals chordates ↑ mice fieldmice Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 12 / 22
slide-64
SLIDE 64

An Example Search (as reverse inference)

Truth maintained: false Current Node:

↑ The↑↑ All↓↑ carnivore feline ↑ cat kitty consumed ↑ ate slurped ↑ a↑↑ All↓↑ animal chordate ↑ mouse fieldmouse Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 12 / 22
slide-65
SLIDE 65

An Example Search (as graph search)

Shorthand for a node:

↑ No↓↓
  • rganism
animal ↑ carnivores felines consume ↓ eat slurp living thing
  • rganism
↑ animals chordate

No carnivores eat animals?

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 13 / 22
slide-66
SLIDE 66

An Example Search (as graph search)

ROOT No carnivores eat animals? The carnivores eat animals No cats eat animals ...

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 13 / 22
slide-67
SLIDE 67

An Example Search (as graph search)

No carnivores eat animals The carnivores eat animals? The feline eats animals All carnivores eat animals ...

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 13 / 22
slide-68
SLIDE 68

An Example Search (as graph search)

The carnivores eat animals The feline eats animals? The cat eats animals The cat eats chordate ...

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 13 / 22
slide-69
SLIDE 69

An Example Search (as graph search)

The feline eats animals The cat eats animals? The cat eats chordates The kitty eats animals ...

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 13 / 22
slide-70
SLIDE 70

An Example Search (as graph search)

The cat eats animals The cat eats chordates? The cat eats mice The cat eats dogs ...

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 13 / 22
slide-71
SLIDE 71

An Example Search (as graph search)

The cat eats chordates The cat eats mice? The cat ate a mouse The kitty eats mice ...

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 13 / 22
slide-72
SLIDE 72

An Example Search (with edges)

ROOT No carnivores eat animals? The carnivores eat animals No cats eat animals ...

Template Instance Edge Operator Negate NOOP NOOP NOOP

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 14 / 22
slide-73
SLIDE 73

An Example Search (with edges)

ROOT No carnivores eat animals? The carnivores eat animals No cats eat animals ...

Template Instance Edge Operator Negate No → The NOOP NOOP

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 14 / 22
slide-74
SLIDE 74

An Example Search (with edges)

ROOT No carnivores eat animals? The carnivores eat animals No cats eat animals ...

Template Instance Edge Operator Negate No → The No carnivores eat animals → The carnivores eat animals

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 14 / 22
slide-75
SLIDE 75

Edge Templates

Template Instance Hypernym animal → cat Hyponym cat → animal Antonym good → bad Synonym cat → true cat Add Word cat → · Delete Word · → cat Operator Weaken some → all Operator Strengthen all → some Operator Negate all → no Operator Synonym all → every Nearest Neighbor cat → dog

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 15 / 22
slide-76
SLIDE 76

“Soft” Natural Logic

Want to make likely (but not certain) inferences. Same motivation as Markov Logic, Probabilistic Soft Logic, etc.

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 16 / 22
slide-77
SLIDE 77

“Soft” Natural Logic

Want to make likely (but not certain) inferences. Same motivation as Markov Logic, Probabilistic Soft Logic, etc. Each edge template has a cost θ ≥ 0.

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 16 / 22
slide-78
SLIDE 78

“Soft” Natural Logic

Want to make likely (but not certain) inferences. Same motivation as Markov Logic, Probabilistic Soft Logic, etc. Each edge template has a cost θ ≥ 0. Detail: Variation among edge instances of a template. WordNet: cat → feline vs. cup → container. Nearest neighbors distance. Each edge instance has a distance f.

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 16 / 22
slide-79
SLIDE 79

“Soft” Natural Logic

Want to make likely (but not certain) inferences. Same motivation as Markov Logic, Probabilistic Soft Logic, etc. Each edge template has a cost θ ≥ 0. Detail: Variation among edge instances of a template. WordNet: cat → feline vs. cup → container. Nearest neighbors distance. Each edge instance has a distance f. Cost of an edge is θi ·fi.

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 16 / 22
slide-80
SLIDE 80

“Soft” Natural Logic

Want to make likely (but not certain) inferences. Same motivation as Markov Logic, Probabilistic Soft Logic, etc. Each edge template has a cost θ ≥ 0. Detail: Variation among edge instances of a template. WordNet: cat → feline vs. cup → container. Nearest neighbors distance. Each edge instance has a distance f. Cost of an edge is θi ·fi. Cost of a path is θ ·f.

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 16 / 22
slide-81
SLIDE 81

“Soft” Natural Logic

Want to make likely (but not certain) inferences. Same motivation as Markov Logic, Probabilistic Soft Logic, etc. Each edge template has a cost θ ≥ 0. Detail: Variation among edge instances of a template. WordNet: cat → feline vs. cup → container. Nearest neighbors distance. Each edge instance has a distance f. Cost of an edge is θi ·fi. Cost of a path is θ ·f. Can learn parameters θ.

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 16 / 22
slide-82
SLIDE 82

Contribution: Simple Transitivity

Taken for granted: A ⇒ B and B ⇒ C then A ⇒ C.

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 17 / 22
slide-83
SLIDE 83

Contribution: Simple Transitivity

Taken for granted: A ⇒ B and B ⇒ C then A ⇒ C. More complicated in (prior work on) Natural Logic: nocturnal

⇃ ↾

− → diurnal, all

→ not all ∴ all bats are nocturnal

?

− → not all bats are diurnal

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 17 / 22
slide-84
SLIDE 84

Contribution: Simple Transitivity

Taken for granted: A ⇒ B and B ⇒ C then A ⇒ C. More complicated in (prior work on) Natural Logic: nocturnal

⇃ ↾

− → diurnal, all

→ not all ∴ all bats are nocturnal

?

− → not all bats are diurnal ⊲ ⊳ ≡ ⊑ ⊒

  • #

≡ ≡ ⊑ ⊒

  • #

⊑ ⊑ ⊑ # ⇃ ↾ ⇃ ↾ # # ⊒ ⊒ # ⊒

  • #
  • #

↾ ≡ ⊒ ⊑ # ⇃ ↾ ⇃ ↾ # ⇃ ↾ ⊑ # ⊑ #

  • #

⊒ ⊒ # # # # # # # # # #

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 17 / 22
slide-85
SLIDE 85

Contribution: Simple Transitivity

Taken for granted: A ⇒ B and B ⇒ C then A ⇒ C. More complicated in (prior work on) Natural Logic: nocturnal

⇃ ↾

− → diurnal, all

→ not all ∴ all bats are nocturnal

?

− → not all bats are diurnal ⊲ ⊳ ≡ ⊑ ⊒

  • #

≡ ≡ ⊑ ⊒

  • #

⊑ ⊑ ⊑ # ⇃ ↾ ⇃ ↾ # # ⊒ ⊒ # ⊒

  • #
  • #

↾ ≡ ⊒ ⊑ # ⇃ ↾ ⇃ ↾ # ⇃ ↾ ⊑ # ⊑ #

  • #

⊒ ⊒ # # # # # # # # # #

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 17 / 22
slide-86
SLIDE 86

Contribution: Simple Transitivity

Taken for granted: A ⇒ B and B ⇒ C then A ⇒ C. More complicated in (prior work on) Natural Logic: nocturnal

⇃ ↾

− → diurnal, all

→ not all ∴ all bats are nocturnal

?

− → not all bats are diurnal ⊲ ⊳ ≡ ⊑ ⊒

  • #

≡ ≡ ⊑ ⊒

  • #

⊑ ⊑ ⊑ # ⇃ ↾ ⇃ ↾ # # ⊒ ⊒ # ⊒

  • #
  • #

↾ ≡ ⊒ ⊑ # ⇃ ↾ ⇃ ↾ # ⇃ ↾ ⊑ # ⊑ #

  • #

⊒ ⊒ # # # # # # # # # #

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 17 / 22

slide-87
SLIDE 87

Contribution: Simple Transitivity

Natural Logic Analog of Transitivity: State Fact Mutation ⇒ all bats are nocturnal,

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 17 / 22
slide-88
SLIDE 88

Contribution: Simple Transitivity

Natural Logic Analog of Transitivity: State Fact Mutation ⇒ all bats are nocturnal, (nocturnal

⇃ ↾

− → diurnal)

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 17 / 22
slide-89
SLIDE 89

Contribution: Simple Transitivity

Natural Logic Analog of Transitivity: State Fact Mutation ⇒ all bats are nocturnal, (nocturnal

⇃ ↾

− → diurnal) ⇒ ¬ all bats are diurnal,

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 17 / 22
slide-90
SLIDE 90

Contribution: Simple Transitivity

Natural Logic Analog of Transitivity: State Fact Mutation ⇒ all bats are nocturnal, (nocturnal

⇃ ↾

− → diurnal) ⇒ ¬ all bats are diurnal, (all

→ not all)

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 17 / 22
slide-91
SLIDE 91

Contribution: Simple Transitivity

Natural Logic Analog of Transitivity: State Fact Mutation ⇒ all bats are nocturnal, (nocturnal

⇃ ↾

− → diurnal) ⇒ ¬ all bats are diurnal, (all

→ not all) ⇒ not all bats are diurnal

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 17 / 22
slide-92
SLIDE 92

Contribution: Simple Transitivity

Natural Logic Analog of Transitivity: State Fact Mutation ⇒ all bats are nocturnal, (nocturnal

⇃ ↾

− → diurnal) ⇒ ¬ all bats are diurnal, (all

→ not all) ⇒ not all bats are diurnal Complex join table can be reduced to tracking a simple binary distinction.

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 17 / 22
slide-93
SLIDE 93

Experiments

FraCaS Textual Entailment Suite: Used in MacCartney and Manning (2007; 2008). RTE-style problems: is the hypothesis entailed from the premise? P: At least three commissioners spend a lot of time at home. H: At least three commissioners spend time at home. P: At most ten commissioners spend a lot of time at home. H: At most ten commissioners spend time at home. 9 focused sections; 3 in scope for this work.

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 18 / 22
slide-94
SLIDE 94

Experiments

FraCaS Textual Entailment Suite: Used in MacCartney and Manning (2007; 2008). RTE-style problems: is the hypothesis entailed from the premise? P: At least three commissioners spend a lot of time at home. H: At least three commissioners spend time at home. P: At most ten commissioners spend a lot of time at home. H: At most ten commissioners spend time at home. 9 focused sections; 3 in scope for this work. Not a blind test set! “Can we make deep inferences without knowing the premise a priori?”

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 18 / 22
slide-95
SLIDE 95

FraCaS Results

Systems M07: MacCartney and Manning (2007) M08: MacCartney and Manning (2008)

Classify entailment after aligning premise and hypothesis.

N: NaturalLI (this work)

Search blindly from hypothesis for the premise. Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 19 / 22
slide-96
SLIDE 96

FraCaS Results

Systems M07: MacCartney and Manning (2007) M08: MacCartney and Manning (2008)

Classify entailment after aligning premise and hypothesis.

N: NaturalLI (this work)

Search blindly from hypothesis for the premise.

§ Category Accuracy M07 M08 N 1 Quantifiers 84 97 95 5 Adjectives 60 80 73 6 Comparatives 69 81 87

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 19 / 22
slide-97
SLIDE 97

FraCaS Results

Systems M07: MacCartney and Manning (2007) M08: MacCartney and Manning (2008)

Classify entailment after aligning premise and hypothesis.

N: NaturalLI (this work)

Search blindly from hypothesis for the premise.

§ Category Accuracy M07 M08 N 1 Quantifiers 84 97 95 5 Adjectives 60 80 73 6 Comparatives 69 81 87 Applicable (1,5,6) 76 90 89

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 19 / 22
slide-98
SLIDE 98

Experiments

ConceptNet: A semi-curated collection of common-sense facts. not all birds can fly noses are used to smell nobody wants to die music is used for pleasure Negatives: ReVerb extractions marked false by Turkers. Small (1378 train / 1080 test), but fairly broad coverage.

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 20 / 22
slide-99
SLIDE 99

Experiments

ConceptNet: A semi-curated collection of common-sense facts. not all birds can fly noses are used to smell nobody wants to die music is used for pleasure Negatives: ReVerb extractions marked false by Turkers. Small (1378 train / 1080 test), but fairly broad coverage. Our Knowledge Base: 270 million lemmatized Ollie extractions.

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 20 / 22
slide-100
SLIDE 100

ConceptNet Results

Systems Direct Lookup: Lookup by lemmas. NaturalLI: Our system.

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 21 / 22
slide-101
SLIDE 101

ConceptNet Results

Systems Direct Lookup: Lookup by lemmas. NaturalLI: Our system. NaturalLI Only: Use only inference (prohibit exact matches).

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 21 / 22
slide-102
SLIDE 102

ConceptNet Results

Systems Direct Lookup: Lookup by lemmas. NaturalLI: Our system. NaturalLI Only: Use only inference (prohibit exact matches). System P R Direct Lookup 100.0 12.1

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 21 / 22
slide-103
SLIDE 103

ConceptNet Results

Systems Direct Lookup: Lookup by lemmas. NaturalLI: Our system. NaturalLI Only: Use only inference (prohibit exact matches). System P R Direct Lookup 100.0 12.1 NaturalLI Only 88.8 40.1 NaturalLI 90.6 49.1

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 21 / 22
slide-104
SLIDE 104

ConceptNet Results

Systems Direct Lookup: Lookup by lemmas. NaturalLI: Our system. NaturalLI Only: Use only inference (prohibit exact matches). System P R Direct Lookup 100.0 12.1 NaturalLI Only 88.8 40.1 NaturalLI 90.6 49.1 4x improvement in recall.

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 21 / 22
slide-105
SLIDE 105

Conclusions

Takeaways Deep inferences from a large knowledge base. Leverage arbitrarily large plain-text knowledge bases. “Soft” logic with probability of truth.

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 22 / 22
slide-106
SLIDE 106

Conclusions

Takeaways Deep inferences from a large knowledge base. Leverage arbitrarily large plain-text knowledge bases. “Soft” logic with probability of truth. Strictly better than querying a knowledge base. 12% recall → 49% recall @ 91% precision. Checks logical entailment (not just fuzzy query).

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 22 / 22
slide-107
SLIDE 107

Conclusions

Takeaways Deep inferences from a large knowledge base. Leverage arbitrarily large plain-text knowledge bases. “Soft” logic with probability of truth. Strictly better than querying a knowledge base. 12% recall → 49% recall @ 91% precision. Checks logical entailment (not just fuzzy query). Complexity doesn’t grow with knowledge base size.

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 22 / 22
slide-108
SLIDE 108

Thanks!

Gabor Angeli, Chris Manning (Stanford) NaturalLI: Natural Logic Inference for Common Sense Reasoning October 26, 2014 22 / 22