Reasoning with Neural Networks

Similar documents
Machine Learning.! A completely different way to have an. agent acquire the appropriate abilities to solve a particular goal is via machine learning.

Challenge Math & Summer Activities

IMAGE CAPTIONING USING PHRASE-BASED HIERARCHICAL LSTM MODEL

Recurrent neural network grammars. Slide credits: Chris Dyer, Adhiguna Kuncoro

Week 42: Siamese Network: Architecture and Applications in Visual Object Tracking. Yuanwei Wu

Human Uniqueness. Human Uniqueness. Why are we so different? 12/6/2017. Four Candidates

Kathryn s pets. B) Complete the article with the sentences below. Write the letter on the line.

[Boston March for Science 2017 photo Hendrik Strobelt]

United Church of God An International Association. Level 1 Unit 5 Week 3 JESUS CHRIST THE PARABLE OF THE LOST SHEEP

How the Dog Found Himself a New Master!

The Three Little Kittens

Proceedings of the European Veterinary Conference Voorjaarsdagen

How the Dog Found Himself. a New Master! L...-"

How to draw. pets & farm animals. with basic shapes!

The Sheep and the Goat by Pie Corbett. So, they walked and they walked and they walked until they met a hare. Can I come with you? said the hare.

Sight word flashcards: species, weighs, echoloca6on, danger, camouflage The Reading Race, by Abby Klein Worksheets 17, 17a

Part4. Saint Fatima Language School Form 3 Second Term 2018 / The Vision of the School : Distinct Environment for Refined Education

THE WORLD OF NATURE. 1 Conversation: Korean wildlife. Robert: ... Robert: .?. Robert: : Robert: : Robert: : Robert: : IN THIS UNIT...

Photocopiable Resources

Interactive whiteboard activities

An Esterel Virtual Machine (EVM) Aruchunan Vaseekaran

Logical Forms. Prof. Sameer Singh CS 295: STATISTICAL NLP WINTER February 16, 2017

Wolves By Gail Gibbons. Recommended Reading for grades 3-5

PROGRAMMANUS. TRUMP: Fake news. It s fake, phony, fake. Fake news. You are fake news.

Genera&on of Image Descrip&ons. Tambet Ma&isen

Wonderful World I I Vocabulary and Structure. h-l-copt-r dra-ing p-n

The Troll the play Based on the children s book: The Troll by Julia Donaldson

Sample unit. At the Eco Zoo VISIT THE ANIMALS! UNIT Listen and number Read and match. Listen and check. 10 ten. lion. bear.

Cladistics (Evolutionary Relationships) Understanding Branching Diagrams

A Teacher's Guide to. Chicks! Written by Sandra Horning Illustrated by Jon Goodell

On Deriving Aspectual Sense

THE PIGEONHOLE PRINCIPLE AND ITS APPLICATIONS

SAN ĠORĠ PRECA COLLEGE PRIMARY SCHOOLS. Half Yearly Exams Year 5 ENGLISH Time: 1 hour 15 minutes. Reading Comprehension, Language and Writing

Massachusetts State Search & Rescue Dog Federation Basic Human Remains Detection Canine Evaluation Form

The weekly passage discussed issues related to dog ownership. Here is some information that might be helpful to students less familiar the topic.

PROBLEM SOLVING. (2) Cross out one digit in the number 1829 so that you get the smallest possible number.

Module D: Unit 3/Lesson1

St Margaret College Half Yearly Examinations Year 4 English Written Time: 1 Hour 15 minutes. Name: Class: She works in a hospital.

Veterinarian Assistant

Please initial and date as your child has completely mastered reading each column.

Dogs Developed from Wolves -- But How?

Unit 5 Lesson 5: Mouse Mess

Half Yearly Examination

The King of the Arctic

Tapescript Lasso Englisch 3, Arbeitsblätter mit Audio-CD

Population Dynamics: Predator/Prey Teacher Version

Superlative Quantifiers as Meta Speech Acts

ASSIGNMENT Q.) Look at the picture and answer the following:

mouse shapes F4F79BABB796794A55EFF1B Mouse Shapes 1 / 6

CHILDREN & STUDENT COMMUNITY SERVICE PROJECT SUGGESTIONS

Semantics. These slides were produced by Hadas Kotek.

Copyright 2008, Animal Behavior Associates, Inc. All Rights Reserved.

Why... THANK YOU! By Cat Wagman READ ONLINE

Pages 1-2 are the user friendly version (no picture numbers). Pages 3-4 describe the pictures used written in B&W. Pages 5-6 are colour coded

Alice s Adventures In Wonderland

AFD Profile. By Tanya Kenevich. Photo: Doyle Shugart shows the viewing room of his family s new pet funeral home in Atlanta.

Essential Elements that Require Vocabulary Word DLMEE DLMEE DLMEE DLMEE CCSS CCSS CCSS. Priority

R U S T Y D O G N I T I O N R E P O R T - A P R I L 1 2,

kids english book 2 international edition

contributes to the response and cite evidence to support an inference about a Read this text and then answer the prompt that follows it.

Anglia Examination Syndicate (England) Certificate in English for Overseas Candidates

The 5 animal welfare needs. Puppy socialisation. Things to think about

Animals in Housing. Definition of Disability 10/5/2017. Disability (Handicap) means:

In-Comi ng Fifth Gra de r

Script for 8th Grade English Practice Questions

LIVING WITH WOLVES. They are creatures of legend,

Case Study: In Sickness and in Health: A Trip to the Genetic Counselor

THE ARTICLE. New mammal species found

Chinese New Year ACTIVITY 1: Animals (all levels) - WORKSHEET 1

BEHAVIOUR QUESTIONNAIRE FOR DOGS Alison Blaxter BA BVM&S Dip(AS)CABC PhD MRCVS

A C E. Applications. Applications Connections Extensions

CAREERS INFORMATION. learnwithdogstrust.org.uk. Dogs Trust Registered Charity Nos and SC037843

Population Dynamics: Predator/Prey Teacher Version

Welcome to BENTON s Extended Donor Profile

Credits 4 Introduction 5 CHAPTER 1: DOGS AND HUMANS 6

Cam in the Classroom Mrs. Brown s Fourth Grade Class Churchville Elementary School Churchville Ave, Churchville, VA

C H A S E R D O G N I T I O N R E P O R T - A P R I L 0 5,

Text by Sy Montgomery Photographs by Nic BIshop

Literacy Lesson Ideas

The online processing of semantic and pragmatic content

CLE CIPI Inglés. Ejemplo 1 Opción A: describe what you can see in the picture

Unit. Say then write the animals. Which parts of a crocodile can you see? What can you see in this picture?

Dog Owners SHORT COURSE

The Wolf in Literature

Visiting Lowry Park Zoo

Mammal Scavenger Hunt Activity

LEVELED BOOK P Aesop s Fables. Retold by Julie Harding Illustrated by Maria Voris. Aesop s Fables

The integration of dogs into collaborative humanrobot. - An applied ethological approach - PhD Thesis. Linda Gerencsér Supervisor: Ádám Miklósi

Cat Swarm Optimization

1-1. Juan wrote this pattern on his paper. 3 6 = = = 1, ,000 = What is the unknown number in Juan s pattern?

B U S T E R D O G N I T I O N R E P O R T - A P R I L 1 2,

MY ANIMAL FRIENDS THE HEN HAS A CHICK

Cover Page. The handle holds various files of this Leiden University dissertation.

National Geographic Kids Mission: Lion Rescue: All About Lions And How To Save Them By Ashlee Brown Blewett

Teach Me to Read Duets Book 2

Lecture 1: Turtle Graphics. the turtle and the crane and the swallow observe the time of their coming; Jeremiah 8:7

Grade 8 English Language Arts

Dr Leanne Lawrence. General Practitioner Auckland

March 2017 Animal Care Conference, Sacramento, CA

Wolves & Coyotes. Literacy Centers For 2 nd & 3 rd Grades. FREE from The Curriculum Corner

Transcription:

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

Motivation Could a crocodile run a steeplechase? 1 1 The example was borrowed from Levesque (2014)

Symbolic approach KB:... x.crocodile(x) W eaklegs(x)... x.w eaklegs(x) CanJump(x)... x. CanJump(x) CanSteeplechase(x)... Query: x.crocodile(x) CanSteeplechase(x)

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

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

Symbolic approach Strategy: Contradiction proof. Assume query is false: Crocodile(a) CanSteeplechase(a) Observations: - This is SLD resolution.

Symbolic approach Strategy: Contradiction proof. Assume query is false: Crocodile(a) CanSteeplechase(a) Observations: - This is SLD resolution. - Scalability problems.

A Neural Conversational Model Vinyals & Le (2015) They trained a seq2seq: Credit: Vinyals & Le... with movie subtitles.

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

Research question Can we use neural networks for common sense reasoning?

Long term goal

Reasoning with Neural Networks Two main branches: - Common Sense embeddings. - Neural Reasoners.

Common Sense embeddings Hinton (1990)

Common Sense embeddings Hinton (1990)

Common Sense embeddings McClelland & Rogers (2003)

Common Sense embeddings McClelland & Rogers (2003)

Common Sense embeddings McClelland & Rogers (2003)

Common Sense embeddings Socher et al. (2013) Reasoning with neural tensor networks for knowledge base completion.

Common Sense embeddings Socher et al. (2013) Reasoning with neural tensor networks for knowledge base completion.

Common Sense embeddings Socher et al. (2013)

Common Sense embeddings Bowman et al. (2014) Recursive neural networks can learn logical semantics.

Common Sense embeddings Bowman et al. (2014) Recursive neural networks can learn logical semantics.

Common Sense embeddings Bowman et al. (2014) y TreeRNN = f ( [ x (l) M x (r) ] + ) b y TreeRNTN = y TreeRNN + f( x (l)t T [1...n] x (r) )

Common Sense embeddings Bowman et al. (2014)

Common Sense embeddings Bowman et al. (2014)

Common Sense embeddings Bowman et al. (2014)

Common Sense embeddings Bowman et al. (2014)

Common Sense embeddings Bowman et al. (2014)

Common Sense embeddings Bowman et al. (2014)

Common Sense embeddings Bowman et al. (2014)

Common Sense embeddings Bowman et al. (2014)

Common Sense embeddings Bowman et al. (2014)

Common Sense embeddings Bowman et al. (2014) SICK textual entailment challenge

Common Sense embeddings Bowman et al. (2014)

Reasoning about facts

Reasoning about facts The babi project (Weston et al. (2015)).

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))

Reasoning about facts Credit: Sukhbaatar et al. (2015)

Reasoning about facts Credit: Kumar et al. (2015)

Reasoning about facts Credit: Peng et al. (2015)

Reasoning about facts Credit: Sukhbaatar et al. (2015)

Reasoning about facts SLD resolution.

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?

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%)

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?

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%)

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?

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%)

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?

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%)

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?

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%)

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?

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%)

Reasoning about facts Credit: Sukhbaatar et al. (2015)

Proposals: Explanations Example 1: - julius is white. - What is julius color? White.

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.

Questions

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.

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).

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.