the neural basis of thought and languagecs182/sp07/sections/... · 2007-05-03 · interrupt resume...

54
The Neural Basis of Thought and Language Final Review Session

Upload: others

Post on 28-May-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: The Neural Basis of Thought and Languagecs182/sp07/sections/... · 2007-05-03 · interrupt resume suspended walker=Harry WALK goal=cafe. Analysis Process Utterance Simulation Belief

The Neural Basis ofThought and Language

Final

Review Session

Page 2: The Neural Basis of Thought and Languagecs182/sp07/sections/... · 2007-05-03 · interrupt resume suspended walker=Harry WALK goal=cafe. Analysis Process Utterance Simulation Belief

Administrivia

• Final in class next Tuesday, May 8th

• Be there on time!

• Format:

– closed books, closed notes

– short answers, no blue books

• Final paper due on bSpace on Friday, May 11

Page 3: The Neural Basis of Thought and Languagecs182/sp07/sections/... · 2007-05-03 · interrupt resume suspended walker=Harry WALK goal=cafe. Analysis Process Utterance Simulation Belief

Resources

• Textbook!

• Class slides

• Section slides

• Joe Makin's class notes from last year

– on notes page

Page 4: The Neural Basis of Thought and Languagecs182/sp07/sections/... · 2007-05-03 · interrupt resume suspended walker=Harry WALK goal=cafe. Analysis Process Utterance Simulation Belief

The Second Half

Cognition and Language

Computation

S tructured Connectionism

Computational Neurobiology

Biology

Midterm Final

abst

ract

ion

Motor Control Metaphor Grammar

Bailey Model

KARMA ECG

SHRUTI

ECG Learning

Bayes Nets

Page 5: The Neural Basis of Thought and Languagecs182/sp07/sections/... · 2007-05-03 · interrupt resume suspended walker=Harry WALK goal=cafe. Analysis Process Utterance Simulation Belief

Overview

• Bailey Model

– feature structures

– Bayesian model merging

– recruitment learning

• KARMA

– X-schema, frames

– aspect

– event-structure metaphor

– inference

• Grammar Learning

– parsing

– construction grammar

– learning algorithm

• SHRUTI

• FrameNet

• Bayesian Model of Human Sentence Processing

Page 6: The Neural Basis of Thought and Languagecs182/sp07/sections/... · 2007-05-03 · interrupt resume suspended walker=Harry WALK goal=cafe. Analysis Process Utterance Simulation Belief

Important topics

• Regier's model of spatial relation learning

• Bailey's model of verb learning

• KARMA model of metaphor

• Binding and inference

– SHRUTI, short signatures

• Grammars and learning

• ECG

– Learning ECG

• Bayes nets

• Model merging, MDL

• Petri nets

• Language

– Metaphor

– Aspect

– Grammars

– Schemas

– Frames

– SemSpec

Page 7: The Neural Basis of Thought and Languagecs182/sp07/sections/... · 2007-05-03 · interrupt resume suspended walker=Harry WALK goal=cafe. Analysis Process Utterance Simulation Belief

Q & A

Page 8: The Neural Basis of Thought and Languagecs182/sp07/sections/... · 2007-05-03 · interrupt resume suspended walker=Harry WALK goal=cafe. Analysis Process Utterance Simulation Belief

Bayes Nets

• Bayes' Rule / Product Rule

– P(A|B) = P(A,B) / P(B)

– P(A,B) = P(A|B) P(B)

– P(B|A) = P(A|B) P(B) / P(A)

– All the same!

• Variables have distributions

• Variables depend on other variables

Page 9: The Neural Basis of Thought and Languagecs182/sp07/sections/... · 2007-05-03 · interrupt resume suspended walker=Harry WALK goal=cafe. Analysis Process Utterance Simulation Belief

Regier's model

• Learn spatial relation terms

– e.g. in, on, above

• Neural network + hand-designed “vision” parts

Page 10: The Neural Basis of Thought and Languagecs182/sp07/sections/... · 2007-05-03 · interrupt resume suspended walker=Harry WALK goal=cafe. Analysis Process Utterance Simulation Belief
Page 11: The Neural Basis of Thought and Languagecs182/sp07/sections/... · 2007-05-03 · interrupt resume suspended walker=Harry WALK goal=cafe. Analysis Process Utterance Simulation Belief
Page 12: The Neural Basis of Thought and Languagecs182/sp07/sections/... · 2007-05-03 · interrupt resume suspended walker=Harry WALK goal=cafe. Analysis Process Utterance Simulation Belief

Bailey's model

• Verb learning

• Learn parameters matched to words

– word senses

– can connect to simulator

• Model merging!

Page 13: The Neural Basis of Thought and Languagecs182/sp07/sections/... · 2007-05-03 · interrupt resume suspended walker=Harry WALK goal=cafe. Analysis Process Utterance Simulation Belief
Page 14: The Neural Basis of Thought and Languagecs182/sp07/sections/... · 2007-05-03 · interrupt resume suspended walker=Harry WALK goal=cafe. Analysis Process Utterance Simulation Belief

6palmextendslide

accelpostureelbow jntschema

8palmextendslide

accelpostureelbow jntschema

[6]palm 0.9extend 0.9slide 0.9

accelpostureelbow jntschema

data #1

data #2

data #3

data #4

[2]index 0.9fixed 0.9depress 0.9

accelpostureelbow jntschema

[6 - 8]palm 0.9extend 0.9slide 0.9

accelpostureelbow jntschema

palm 0.7

grasp 0.3

extend 0.9slide 0.9

postureelbow jntschema

2indexfixeddepress

accelpostureelbow jntschema

2graspextendslide

accelpostureelbow jntschema

Page 15: The Neural Basis of Thought and Languagecs182/sp07/sections/... · 2007-05-03 · interrupt resume suspended walker=Harry WALK goal=cafe. Analysis Process Utterance Simulation Belief

Computational Details

• complexity of model + ability to explain data

• maximum a posteriori (MAP) hypothesis

)|( argmax DmPm

rule Bayes'by )()|( argmax mPmDPm

=

how likely is the data given this model?

penalize complex models – those with too many word senses

wants the best model given data

Page 16: The Neural Basis of Thought and Languagecs182/sp07/sections/... · 2007-05-03 · interrupt resume suspended walker=Harry WALK goal=cafe. Analysis Process Utterance Simulation Belief

Model merging

• Start with a simple model

• Merge to refine it

– “Greedy” merges: reduce cost without thought for future

• Cost metric

– prefer simple representation

– prefer to explain data well

Page 17: The Neural Basis of Thought and Languagecs182/sp07/sections/... · 2007-05-03 · interrupt resume suspended walker=Harry WALK goal=cafe. Analysis Process Utterance Simulation Belief

Metaphor

• There are LOTS of metaphors we use

– Power is size

– Knowing is seeing

– Event structure is motion

Page 18: The Neural Basis of Thought and Languagecs182/sp07/sections/... · 2007-05-03 · interrupt resume suspended walker=Harry WALK goal=cafe. Analysis Process Utterance Simulation Belief

Event Structure Metaphor

• States are Locations • Changes are Movements • Causes are Forces• Causation is Forced Movement• Actions are Self-propelled Movements• Purposes are Destinations• Means are Paths• Difficulties are Impediments to Motion• External Events are Large, Moving Objects• Long-term, Purposeful Activities are Journeys

Page 19: The Neural Basis of Thought and Languagecs182/sp07/sections/... · 2007-05-03 · interrupt resume suspended walker=Harry WALK goal=cafe. Analysis Process Utterance Simulation Belief

Ego Moving versus Time Moving

Page 20: The Neural Basis of Thought and Languagecs182/sp07/sections/... · 2007-05-03 · interrupt resume suspended walker=Harry WALK goal=cafe. Analysis Process Utterance Simulation Belief

Results

30.8%69.2%Object Moving

73.3%26.7%Ego Moving

Meeting is Friday

Meeting is Monday

PRIME

Page 21: The Neural Basis of Thought and Languagecs182/sp07/sections/... · 2007-05-03 · interrupt resume suspended walker=Harry WALK goal=cafe. Analysis Process Utterance Simulation Belief

KARMA simulator

• Invented by Carson Daly

• Allows metaphor understanding

– Event structure metaphor

• Source domain is Petri net

– Target domain is Bayes net

– Metaphor maps connect

Page 22: The Neural Basis of Thought and Languagecs182/sp07/sections/... · 2007-05-03 · interrupt resume suspended walker=Harry WALK goal=cafe. Analysis Process Utterance Simulation Belief

KARMA

• DBN to represent target domain knowledge

• Metaphor maps link target and source domain

• X-schema to represent source domain knowledge

Page 23: The Neural Basis of Thought and Languagecs182/sp07/sections/... · 2007-05-03 · interrupt resume suspended walker=Harry WALK goal=cafe. Analysis Process Utterance Simulation Belief

Temporal synchrony and SHRUTI

• Binding problem

– bind properties to objects

– don't mix them up!

• Reflexive reasoning

– understand implied information

– not conscious of this

Page 24: The Neural Basis of Thought and Languagecs182/sp07/sections/... · 2007-05-03 · interrupt resume suspended walker=Harry WALK goal=cafe. Analysis Process Utterance Simulation Belief

SHRUTI

• entity, type, and predicate focal clusters

• An “entity” is a phase in the rhythmic activity.

• Bindings are synchronous firings of role and entity cells

• Rules are interconnection patterns mediated by coincidence detector circuits that allow selective propagation of activity

• An episode of reflexive processing is a transient propagation of rhythmic activity

Page 25: The Neural Basis of Thought and Languagecs182/sp07/sections/... · 2007-05-03 · interrupt resume suspended walker=Harry WALK goal=cafe. Analysis Process Utterance Simulation Belief

• asserting that walk(Harry, café)

• Harry fires in phase with agent role

• cafe fires in phase with goal role

+ - ? agt goal

+e +v ?e ?v

+ ?

walk

cafe

Harry

type

entity

predicate

“Harry walked to the café.”

Page 26: The Neural Basis of Thought and Languagecs182/sp07/sections/... · 2007-05-03 · interrupt resume suspended walker=Harry WALK goal=cafe. Analysis Process Utterance Simulation Belief

• asserting that walk(Harry, café)

• Harry fires in phase with agent role

• cafe fires in phase with goal role

+ - ? agt goal

+e +v ?e ?v

+ ?

walk

cafe

Harry

type

entity

predicate

“Harry walked to the café.”

Page 27: The Neural Basis of Thought and Languagecs182/sp07/sections/... · 2007-05-03 · interrupt resume suspended walker=Harry WALK goal=cafe. Analysis Process Utterance Simulation Belief

Activation Trace for walk(Harry, café)

+: Harry

+: walk

+e: cafe

walk-agt

walk-goal

1 2 3 4

Page 28: The Neural Basis of Thought and Languagecs182/sp07/sections/... · 2007-05-03 · interrupt resume suspended walker=Harry WALK goal=cafe. Analysis Process Utterance Simulation Belief

Alternative: short signatures

+ - ? agt goal

+e +v ?e ?v

+ ?

walk

cafe

Harry

type

entity

predicate

= 010

= 110

Page 29: The Neural Basis of Thought and Languagecs182/sp07/sections/... · 2007-05-03 · interrupt resume suspended walker=Harry WALK goal=cafe. Analysis Process Utterance Simulation Belief

Language

• Grammar

– Syntax

• Tense

• Aspect

• Semantics

• Metaphor

• Simulation

• Unification

Page 30: The Neural Basis of Thought and Languagecs182/sp07/sections/... · 2007-05-03 · interrupt resume suspended walker=Harry WALK goal=cafe. Analysis Process Utterance Simulation Belief

Computer-science style grammar

• Regular grammar

– X -> a b c Y

• Context-free grammar

– X -> a Y b Z W

Page 31: The Neural Basis of Thought and Languagecs182/sp07/sections/... · 2007-05-03 · interrupt resume suspended walker=Harry WALK goal=cafe. Analysis Process Utterance Simulation Belief

Analysis Process

Utterance

Simulation

Belief State

General Knowledge

Constructions

SemanticSpecification

“Harry walked into the café.”

Page 32: The Neural Basis of Thought and Languagecs182/sp07/sections/... · 2007-05-03 · interrupt resume suspended walker=Harry WALK goal=cafe. Analysis Process Utterance Simulation Belief

The INTO construction

construction INTO subcase of Spatial-Relation

form selff .orth ← “into”

meaning: Trajector-Landmarkevokes Container as contevokes Source-Path-Goal as spgtrajector ↔ spg.trajectorlandmark ↔ contcont.interior ↔ spg.goalcont.exterior ↔ spg.source

Page 33: The Neural Basis of Thought and Languagecs182/sp07/sections/... · 2007-05-03 · interrupt resume suspended walker=Harry WALK goal=cafe. Analysis Process Utterance Simulation Belief

Unification

• Basic idea: capture agreement and semantic features in feature structures

• Enforce constraints on these features using unification rules

Patnumber : SGperson : 3rd agreement

Inumber : SGperson : 1stagreement

Went

agreementShop

agreementnumber : person : 1st

VP → Verb NP VP.agreement ↔ Verb.agreement

S → NP VPNP.agreement ↔ VP.agreement

Page 34: The Neural Basis of Thought and Languagecs182/sp07/sections/... · 2007-05-03 · interrupt resume suspended walker=Harry WALK goal=cafe. Analysis Process Utterance Simulation Belief

The Spatial-Phrase construction

construction SPATIAL-PHRASEconstructional

constituentssr : Spatial-Relationlm : Ref-Expr

formsrf before lmf

meaningsrm.landmark ↔ lmm

Page 35: The Neural Basis of Thought and Languagecs182/sp07/sections/... · 2007-05-03 · interrupt resume suspended walker=Harry WALK goal=cafe. Analysis Process Utterance Simulation Belief

The Directed-Motion construction

construction DIRECTED-MOTIONconstructional

constituentsa : Ref-Expm: Motion-Verbp : Spatial-Phrase

form af before mf

mf before pf

meaningevokes Directed-Motion as dmselfm.scene ↔ dm

dm.agent ↔ am

dm.motion ↔ mm

dm.path ↔ pm

schema Directed-Motionroles

agent : Entitymotion : Motionpath : SPG

Page 36: The Neural Basis of Thought and Languagecs182/sp07/sections/... · 2007-05-03 · interrupt resume suspended walker=Harry WALK goal=cafe. Analysis Process Utterance Simulation Belief

What exactly is simulation?

• Belief update and/or X-schema execution

hungry meeting

cafe

time of day

readystart

ongoingfinish

done

iterate

WALK

at goal

Page 37: The Neural Basis of Thought and Languagecs182/sp07/sections/... · 2007-05-03 · interrupt resume suspended walker=Harry WALK goal=cafe. Analysis Process Utterance Simulation Belief

“Harry walked into the café.”

readywalk

done

walker=Harry goal=cafe

Page 38: The Neural Basis of Thought and Languagecs182/sp07/sections/... · 2007-05-03 · interrupt resume suspended walker=Harry WALK goal=cafe. Analysis Process Utterance Simulation Belief

Analysis Process

Utterance

Simulation

Belief State

General Knowledge

Constructions

SemanticSpecification

“Harry is walking to the café.”

Page 39: The Neural Basis of Thought and Languagecs182/sp07/sections/... · 2007-05-03 · interrupt resume suspended walker=Harry WALK goal=cafe. Analysis Process Utterance Simulation Belief

“Harry is walking to the café.”

readystart

ongoingfinish

done

iterateabortcancelled

interrupt resume

suspended

WALKwalker=Harry goal=cafe

Page 40: The Neural Basis of Thought and Languagecs182/sp07/sections/... · 2007-05-03 · interrupt resume suspended walker=Harry WALK goal=cafe. Analysis Process Utterance Simulation Belief

Analysis Process

Utterance

Simulation

Belief State

General Knowledge

Constructions

SemanticSpecification

“Harry has walked into the wall.”

Page 41: The Neural Basis of Thought and Languagecs182/sp07/sections/... · 2007-05-03 · interrupt resume suspended walker=Harry WALK goal=cafe. Analysis Process Utterance Simulation Belief

Perhaps a different sense of INTO?

construction INTO subcase of spatial-prep

form selff .orth ← “into”

meaningevokes Trajector-Landmark as tlevokes Container as contevokes Source-Path-Goal as spgtl.trajector ↔ spg.trajectortl.landmark ↔ contcont.interior ↔ spg.goalcont.exterior ↔ spg.source

construction INTO subcase of spatial-prep

form selff .orth ← “into”

meaningevokes Trajector-Landmark as tlevokes Impact as imevokes Source-Path-Goal as spgtl.trajector ↔ spg.trajectortl.landmark ↔ spg.goalim.obj1 ↔ tl.trajectorim.obj2 ↔ tl.landmark

Page 42: The Neural Basis of Thought and Languagecs182/sp07/sections/... · 2007-05-03 · interrupt resume suspended walker=Harry WALK goal=cafe. Analysis Process Utterance Simulation Belief

“Harry has walked into the wall.”

readystart

ongoingfinish

done

iterateabortcancelled

interrupt resume

suspended

WALKwalker=Harry goal=wall

Page 43: The Neural Basis of Thought and Languagecs182/sp07/sections/... · 2007-05-03 · interrupt resume suspended walker=Harry WALK goal=cafe. Analysis Process Utterance Simulation Belief

Map down to timeline

S

R

E

readystart

ongoingfinish

done

consequence

Page 44: The Neural Basis of Thought and Languagecs182/sp07/sections/... · 2007-05-03 · interrupt resume suspended walker=Harry WALK goal=cafe. Analysis Process Utterance Simulation Belief

further questions?

Page 45: The Neural Basis of Thought and Languagecs182/sp07/sections/... · 2007-05-03 · interrupt resume suspended walker=Harry WALK goal=cafe. Analysis Process Utterance Simulation Belief

How do you learn…

the meanings of spatial relations,

the meanings of verbs,

the metaphors, and

the constructions?

Page 46: The Neural Basis of Thought and Languagecs182/sp07/sections/... · 2007-05-03 · interrupt resume suspended walker=Harry WALK goal=cafe. Analysis Process Utterance Simulation Belief

How do you learn…

the meanings of spatial relations,

the meanings of verbs,

the metaphors, and

the constructions?

That’s the Regier model.

Page 47: The Neural Basis of Thought and Languagecs182/sp07/sections/... · 2007-05-03 · interrupt resume suspended walker=Harry WALK goal=cafe. Analysis Process Utterance Simulation Belief

How do you learn…

the meanings of spatial relations,

the meanings of verbs,

the metaphors, and

the constructions?

That's Bailey's model

Page 48: The Neural Basis of Thought and Languagecs182/sp07/sections/... · 2007-05-03 · interrupt resume suspended walker=Harry WALK goal=cafe. Analysis Process Utterance Simulation Belief

How do you learn…

the meanings of spatial relations,

the meanings of verbs,

the metaphors, and

the constructions?

conflation hypothesis(primary metaphors)

Page 49: The Neural Basis of Thought and Languagecs182/sp07/sections/... · 2007-05-03 · interrupt resume suspended walker=Harry WALK goal=cafe. Analysis Process Utterance Simulation Belief

How do you learn…

the meanings of spatial relations,

the meanings of verbs,

the metaphors, and

the constructions?

construction learning

Page 50: The Neural Basis of Thought and Languagecs182/sp07/sections/... · 2007-05-03 · interrupt resume suspended walker=Harry WALK goal=cafe. Analysis Process Utterance Simulation Belief

Acquisition

Reorganize

Hypothesize

Production

Utterance

(Comm. Intent, Situation)

Generate

Constructions

(Utterance, Situation)

Analysis

Comprehension

Analyze

Partial

Usage-based Language Learning

Page 51: The Neural Basis of Thought and Languagecs182/sp07/sections/... · 2007-05-03 · interrupt resume suspended walker=Harry WALK goal=cafe. Analysis Process Utterance Simulation Belief

Main Learning Loop

while <utterance, situation> available and cost > stoppingCriterion

analysis = analyzeAndResolve(utterance, situation, currentGrammar);

newCxns = hypothesize(analysis);

if cost(currentGrammar + newCxns) < cost(currentGrammar)

addNewCxns(newCxns);

if (re-oganize == true) // frequency depends on learning parameter

reorganizeCxns();

Page 52: The Neural Basis of Thought and Languagecs182/sp07/sections/... · 2007-05-03 · interrupt resume suspended walker=Harry WALK goal=cafe. Analysis Process Utterance Simulation Belief

Three ways to get new constructions

• Relational mapping

– throw the ball

• Merging

– throw the block

– throwing the ball

• Composing

– throw the ball

– ball off

– you throw the ball off THROW < BALL < OFF

THROW < OBJECT

THROW < BALL

Page 53: The Neural Basis of Thought and Languagecs182/sp07/sections/... · 2007-05-03 · interrupt resume suspended walker=Harry WALK goal=cafe. Analysis Process Utterance Simulation Belief

Minimum Description Length• Choose grammar G to minimize cost(G|D):

– cost(G|D) = α • size(G) + β • complexity(D|G)

– Approximates Bayesian learning; cost(G|D) ≈ posterior probability P(G|D)

• Size of grammar = size(G) ≈ 1/prior P(G) – favor fewer/smaller constructions/roles; isomorphic mappings

• Complexity of data given grammar ≈ 1/likelihood P(D|G)– favor simpler analyses

(fewer, more likely constructions)

– based on derivation length + score of derivation

Page 54: The Neural Basis of Thought and Languagecs182/sp07/sections/... · 2007-05-03 · interrupt resume suspended walker=Harry WALK goal=cafe. Analysis Process Utterance Simulation Belief

further questions?