Reasoning with Neural Networks Rodrigo Toro Icarte - - PowerPoint PPT Presentation

reasoning with neural networks
SMART_READER_LITE
LIVE PREVIEW

Reasoning with Neural Networks Rodrigo Toro Icarte - - PowerPoint PPT Presentation

University of Toronto Faculty of Arts and Science Department of Computer Science Reasoning with Neural Networks Rodrigo Toro Icarte (rntoro@cs.toronto.edu) March 08, 2016 Introduction Reasoning with Neural Networks Questions References


slide-1
SLIDE 1

University of Toronto Faculty of Arts and Science Department of Computer Science

Reasoning with Neural Networks

Rodrigo Toro Icarte (rntoro@cs.toronto.edu) March 08, 2016

slide-2
SLIDE 2

Introduction Reasoning with Neural Networks Questions References

Motivation

Could a crocodile run a steeplechase?1

1The example was borrowed from Levesque (2014)

slide-3
SLIDE 3

Introduction Reasoning with Neural Networks Questions References

Symbolic approach

KB: ... ∀x.Crocodile(x) ⊃ WeakLegs(x) ... ∀x.WeakLegs(x) ⊃ ¬CanJump(x) ... ∀x.¬CanJump(x) ⊃ ¬CanSteeplechase(x) ... Query: ¬∃x.Crocodile(x) ∧ CanSteeplechase(x)

slide-4
SLIDE 4

Introduction Reasoning with Neural Networks Questions References

Symbolic approach

Strategy: Contradiction proof. Assume query is false: Crocodile(a) ∧ CanSteeplechase(a)

slide-5
SLIDE 5

Introduction Reasoning with Neural Networks Questions References

Symbolic approach

Strategy: Contradiction proof. Assume query is false: Crocodile(a) ∧ CanSteeplechase(a)

slide-6
SLIDE 6

Introduction Reasoning with Neural Networks Questions References

Symbolic approach

Strategy: Contradiction proof. Assume query is false: Crocodile(a) ∧ CanSteeplechase(a) Observations:

  • This is SLD resolution.
slide-7
SLIDE 7

Introduction Reasoning with Neural Networks Questions References

Symbolic approach

Strategy: Contradiction proof. Assume query is false: Crocodile(a) ∧ CanSteeplechase(a) Observations:

  • This is SLD resolution.
  • Scalability problems.
slide-8
SLIDE 8

Introduction Reasoning with Neural Networks Questions References

A Neural Conversational Model Vinyals & Le (2015)

They trained a seq2seq:

Credit: Vinyals & Le

... with movie subtitles.

slide-9
SLIDE 9

Introduction Reasoning with Neural Networks Questions References

A Neural Conversational Model Vinyals & Le (2015)

Human: who is skywalker ? Machine: he is a hero . Human: what is the color of the sky ? Machine: blue . Human: how many legs does a cat have ? Machine: four , i think . Human: what is the purpose of living ? Machine: to live forever

slide-10
SLIDE 10

Introduction Reasoning with Neural Networks Questions References

Research question

Can we use neural networks for common sense reasoning?

slide-11
SLIDE 11

Introduction Reasoning with Neural Networks Questions References

Long term goal

slide-12
SLIDE 12

Introduction Reasoning with Neural Networks Questions References

Reasoning with Neural Networks

Two main branches:

  • Common Sense embeddings.
  • Neural Reasoners.
slide-13
SLIDE 13

Introduction Reasoning with Neural Networks Questions References

Common Sense embeddings Hinton (1990)

slide-14
SLIDE 14

Introduction Reasoning with Neural Networks Questions References

Common Sense embeddings Hinton (1990)

slide-15
SLIDE 15

Introduction Reasoning with Neural Networks Questions References

Common Sense embeddings McClelland & Rogers (2003)

slide-16
SLIDE 16

Introduction Reasoning with Neural Networks Questions References

Common Sense embeddings McClelland & Rogers (2003)

slide-17
SLIDE 17

Introduction Reasoning with Neural Networks Questions References

Common Sense embeddings McClelland & Rogers (2003)

slide-18
SLIDE 18

Introduction Reasoning with Neural Networks Questions References

Common Sense embeddings Socher et al. (2013)

Reasoning with neural tensor networks for knowledge base completion.

slide-19
SLIDE 19

Introduction Reasoning with Neural Networks Questions References

Common Sense embeddings Socher et al. (2013)

Reasoning with neural tensor networks for knowledge base completion.

slide-20
SLIDE 20

Introduction Reasoning with Neural Networks Questions References

Common Sense embeddings Socher et al. (2013)

slide-21
SLIDE 21

Introduction Reasoning with Neural Networks Questions References

Common Sense embeddings Bowman et al. (2014)

Recursive neural networks can learn logical semantics.

slide-22
SLIDE 22

Introduction Reasoning with Neural Networks Questions References

Common Sense embeddings Bowman et al. (2014)

Recursive neural networks can learn logical semantics.

slide-23
SLIDE 23

Introduction Reasoning with Neural Networks Questions References

Common Sense embeddings Bowman et al. (2014)

− → y TreeRNN = f

  • M

− → x (l) − → x (r)

  • + −

→ b

→ y TreeRNTN = − → y TreeRNN + f(− → x (l)T T[1...n]− → x (r))

slide-24
SLIDE 24

Introduction Reasoning with Neural Networks Questions References

Common Sense embeddings Bowman et al. (2014)

slide-25
SLIDE 25

Introduction Reasoning with Neural Networks Questions References

Common Sense embeddings Bowman et al. (2014)

slide-26
SLIDE 26

Introduction Reasoning with Neural Networks Questions References

Common Sense embeddings Bowman et al. (2014)

slide-27
SLIDE 27

Introduction Reasoning with Neural Networks Questions References

Common Sense embeddings Bowman et al. (2014)

slide-28
SLIDE 28

Introduction Reasoning with Neural Networks Questions References

Common Sense embeddings Bowman et al. (2014)

slide-29
SLIDE 29

Introduction Reasoning with Neural Networks Questions References

Common Sense embeddings Bowman et al. (2014)

slide-30
SLIDE 30

Introduction Reasoning with Neural Networks Questions References

Common Sense embeddings Bowman et al. (2014)

slide-31
SLIDE 31

Introduction Reasoning with Neural Networks Questions References

Common Sense embeddings Bowman et al. (2014)

slide-32
SLIDE 32

Introduction Reasoning with Neural Networks Questions References

Common Sense embeddings Bowman et al. (2014)

slide-33
SLIDE 33

Introduction Reasoning with Neural Networks Questions References

Common Sense embeddings Bowman et al. (2014)

SICK textual entailment challenge

slide-34
SLIDE 34

Introduction Reasoning with Neural Networks Questions References

Common Sense embeddings Bowman et al. (2014)

slide-35
SLIDE 35

Introduction Reasoning with Neural Networks Questions References

Reasoning about facts

slide-36
SLIDE 36

Introduction Reasoning with Neural Networks Questions References

Reasoning about facts

The bAbI project (Weston et al. (2015)).

slide-37
SLIDE 37

Introduction Reasoning with Neural Networks Questions References

Reasoning about facts

Three models have been proposed:

  • Dynamic Networks (Kumar et al. (2015))
  • Memory Networks (Sukhbaatar et al. (2015))
  • Neural Reasoner (Peng et al. (2015))
slide-38
SLIDE 38

Introduction Reasoning with Neural Networks Questions References

Reasoning about facts

Credit: Sukhbaatar et al. (2015)

slide-39
SLIDE 39

Introduction Reasoning with Neural Networks Questions References

Reasoning about facts

Credit: Kumar et al. (2015)

slide-40
SLIDE 40

Introduction Reasoning with Neural Networks Questions References

Reasoning about facts

Credit: Peng et al. (2015)

slide-41
SLIDE 41

Introduction Reasoning with Neural Networks Questions References

Reasoning about facts

Credit: Sukhbaatar et al. (2015)

slide-42
SLIDE 42

Introduction Reasoning with Neural Networks Questions References

Reasoning about facts

SLD resolution.

slide-43
SLIDE 43

Introduction Reasoning with Neural Networks Questions References

Reasoning about facts Testing Memory Networks

Facts mice are afraid of sheep wolves are afraid of cats jessica is a wolf sheep are afraid of cats winona is a mouse cats are afraid of mice gertrude is a cat emily is a wolf Questions what is jessica afraid of?

slide-44
SLIDE 44

Introduction Reasoning with Neural Networks Questions References

Reasoning about facts Testing Memory Networks

Facts mice are afraid of sheep wolves are afraid of cats jessica is a wolf sheep are afraid of cats winona is a mouse cats are afraid of mice gertrude is a cat emily is a wolf Questions what is jessica afraid of? A: cat (99.74%)

slide-45
SLIDE 45

Introduction Reasoning with Neural Networks Questions References

Reasoning about facts Testing Memory Networks

Facts mice are afraid of sheep wolves are afraid of cats jessica is a wolf sheep are afraid of cats winona is a mouse cats are afraid of mice gertrude is a cat emily is a wolf Questions what is jessica afraid of? A: cat (99.74%) is emily afraid of gertrude?

slide-46
SLIDE 46

Introduction Reasoning with Neural Networks Questions References

Reasoning about facts Testing Memory Networks

Facts mice are afraid of sheep wolves are afraid of cats jessica is a wolf sheep are afraid of cats winona is a mouse cats are afraid of mice gertrude is a cat emily is a wolf Questions what is jessica afraid of? A: cat (99.74%) is emily afraid of gertrude? A: cat (71.79%)

slide-47
SLIDE 47

Introduction Reasoning with Neural Networks Questions References

Reasoning about facts Testing Memory Networks

Facts the triangle is to the left of the red square the pink rectangle is below the triangle Questions is the red square to the right of the pink rectangle?

slide-48
SLIDE 48

Introduction Reasoning with Neural Networks Questions References

Reasoning about facts Testing Memory Networks

Facts the triangle is to the left of the red square the pink rectangle is below the triangle Questions is the red square to the right of the pink rectangle? A: yes (87%)

slide-49
SLIDE 49

Introduction Reasoning with Neural Networks Questions References

Reasoning about facts Testing Memory Networks

Facts the triangle is to the left of the red square the pink rectangle is below the triangle Questions is the red square to the right of the pink rectangle? A: yes (87%) is the red square to the left of the pink rectangle?

slide-50
SLIDE 50

Introduction Reasoning with Neural Networks Questions References

Reasoning about facts Testing Memory Networks

Facts the triangle is to the left of the red square the pink rectangle is below the triangle Questions is the red square to the right of the pink rectangle? A: yes (87%) is the red square to the left of the pink rectangle? A: yes (92%)

slide-51
SLIDE 51

Introduction Reasoning with Neural Networks Questions References

Reasoning about facts Testing Memory Networks

Facts sandra and daniel journeyed to the bedroom john and sandra travelled to the garden sandra and john travelled to the bedroom mary and sandra went back to the kitchen sandra and mary travelled to the bedroom john and mary moved to the office Questions where is daniel?

slide-52
SLIDE 52

Introduction Reasoning with Neural Networks Questions References

Reasoning about facts Testing Memory Networks

Facts sandra and daniel journeyed to the bedroom john and sandra travelled to the garden sandra and john travelled to the bedroom mary and sandra went back to the kitchen sandra and mary travelled to the bedroom john and mary moved to the office Questions where is daniel? A: bedroom (99.60%)

slide-53
SLIDE 53

Introduction Reasoning with Neural Networks Questions References

Reasoning about facts Testing Memory Networks

Facts sandra and daniel journeyed to the bedroom john and sandra travelled to the garden sandra and john travelled to the bedroom mary and sandra went back to the kitchen sandra and mary travelled to the bedroom john and mary moved to the office Questions where is daniel? A: bedroom (99.60%) is daniel in the bedroom?

slide-54
SLIDE 54

Introduction Reasoning with Neural Networks Questions References

Reasoning about facts Testing Memory Networks

Facts sandra and daniel journeyed to the bedroom john and sandra travelled to the garden sandra and john travelled to the bedroom mary and sandra went back to the kitchen sandra and mary travelled to the bedroom john and mary moved to the office Questions where is daniel? A: bedroom (99.60%) is daniel in the bedroom? A: no (91.38%)

slide-55
SLIDE 55

Introduction Reasoning with Neural Networks Questions References

Reasoning about facts

Credit: Sukhbaatar et al. (2015)

slide-56
SLIDE 56

Introduction Reasoning with Neural Networks Questions References

Proposals: Explanations

Example 1:

  • julius is white.
  • What is julius color? White.
slide-57
SLIDE 57

Introduction Reasoning with Neural Networks Questions References

Proposals: Explanations

Example 1:

  • julius is white.
  • What is julius color? White.

Example 2:

  • julius is a lion.
  • julius is white.
  • greg is a lion.
  • What is greg color? White.
slide-58
SLIDE 58

Introduction Reasoning with Neural Networks Questions References

Questions

slide-59
SLIDE 59

Introduction Reasoning with Neural Networks Questions References

References I

Bowman, S. R., Potts, C., & Manning, C. D. (2014). Recursive neural networks can learn logical semantics. arXiv preprint arXiv:1406.1827. Hinton, G. E. (1990). Mapping part-whole hierarchies into connectionist networks. Artificial Intelligence, 46(1), 47–75. Kiros, R., Zhu, Y., Salakhutdinov, R. R., Zemel, R., Urtasun, R., Torralba, A., & Fidler, S. (2015). Skip-thought vectors. In Advances in neural information processing systems (pp. 3276–3284). Kumar, A., Irsoy, O., Su, J., Bradbury, J., English, R., Pierce, B., . . . Socher, R. (2015). Ask me anything: Dynamic memory networks for natural language processing. arXiv preprint arXiv:1506.07285.

slide-60
SLIDE 60

Introduction Reasoning with Neural Networks Questions References

References II

Levesque, H. J. (2014). On our best behaviour. Artificial Intelligence, 212, 27–35. McClelland, J. L., & Rogers, T. T. (2003). The parallel distributed processing approach to semantic cognition. Nature Reviews Neuroscience, 4(4), 310–322. Mikolov, T., Chen, K., Corrado, G., & Dean, J. (2013). Efficient estimation of word representations in vector space. arXiv preprint arXiv:1301.3781. Peng, B., Lu, Z., Li, H., & Wong, K.-F. (2015). Towards neural network-based reasoning. arXiv preprint arXiv:1508.05508. Socher, R., Chen, D., Manning, C. D., & Ng, A. (2013). Reasoning with neural tensor networks for knowledge base

  • completion. In Advances in neural information processing

systems (pp. 926–934).

slide-61
SLIDE 61

Introduction Reasoning with Neural Networks Questions References

References III

Sukhbaatar, S., Weston, J., Fergus, R., et al. (2015). End-to-end memory networks. In Advances in neural information processing systems (pp. 2431–2439). Vinyals, O., & Le, Q. (2015). A neural conversational model. arXiv preprint arXiv:1506.05869. Weston, J., Bordes, A., Chopra, S., & Mikolov, T. (2015). Towards ai-complete question answering: A set of prerequisite toy tasks. arXiv preprint arXiv:1502.05698.