From Logic to Behavior Modern semantics and complexity theory in - - PowerPoint PPT Presentation

from logic to behavior
SMART_READER_LITE
LIVE PREVIEW

From Logic to Behavior Modern semantics and complexity theory in - - PowerPoint PPT Presentation

From Logic to Behavior Modern semantics and complexity theory in cognitive modeling Jakub Szymanik Institute for Logic, Language and Computation University of Amsterdam MCMP , June 13th, 2013 Outline Introduction: Logic & Cognition


slide-1
SLIDE 1

From Logic to Behavior

Modern semantics and complexity theory in cognitive modeling Jakub Szymanik

Institute for Logic, Language and Computation University of Amsterdam

MCMP , June 13th, 2013

slide-2
SLIDE 2

Outline

Introduction: Logic & Cognition research project Taking Marr Seriously Using Logic to Predict Behavior Formalization Semantics of the task Descriptive complexity Conclusions

slide-3
SLIDE 3

Divide between logic and psychology

slide-4
SLIDE 4

Divide between logic and psychology

◮ Kant: logical laws as the fabric of thoughts ◮ 19th century: logic=psychologism (Mill)

slide-5
SLIDE 5

Divide between logic and psychology

◮ Kant: logical laws as the fabric of thoughts ◮ 19th century: logic=psychologism (Mill) ◮ Frege’s anti-psychologism enforced separation

slide-6
SLIDE 6

Divide between logic and psychology

◮ Kant: logical laws as the fabric of thoughts ◮ 19th century: logic=psychologism (Mill) ◮ Frege’s anti-psychologism enforced separation ◮ 19/20th century:

◮ Beginnings of modern logic ◮ Beginnings of modern psychology

slide-7
SLIDE 7

Divide between logic and psychology

◮ Kant: logical laws as the fabric of thoughts ◮ 19th century: logic=psychologism (Mill) ◮ Frege’s anti-psychologism enforced separation ◮ 19/20th century:

◮ Beginnings of modern logic ◮ Beginnings of modern psychology

◮ ’60 witness the growth of cognitive science ◮ but also: semantic and computational turn in logics.

slide-8
SLIDE 8

Divide between logic and psychology

◮ Kant: logical laws as the fabric of thoughts ◮ 19th century: logic=psychologism (Mill) ◮ Frege’s anti-psychologism enforced separation ◮ 19/20th century:

◮ Beginnings of modern logic ◮ Beginnings of modern psychology

◮ ’60 witness the growth of cognitive science ◮ but also: semantic and computational turn in logics.

֒ → interpretation and processing

slide-9
SLIDE 9

Modern logic should be a part of CogSci toolbox

  • 1. In building cognitive theories;
slide-10
SLIDE 10

Modern logic should be a part of CogSci toolbox

  • 1. In building cognitive theories;
  • 2. In computational modeling;
slide-11
SLIDE 11

Modern logic should be a part of CogSci toolbox

  • 1. In building cognitive theories;
  • 2. In computational modeling;
  • 3. In designing experiments.
slide-12
SLIDE 12

Modern logic should be a part of CogSci toolbox

  • 1. In building cognitive theories;
  • 2. In computational modeling;
  • 3. In designing experiments.

◮ Not only in the psychology of reasoning ◮ A general tool to build and investigate CogSci models

slide-13
SLIDE 13

Modern logic should be a part of CogSci toolbox

  • 1. In building cognitive theories;
  • 2. In computational modeling;
  • 3. In designing experiments.

◮ Not only in the psychology of reasoning ◮ A general tool to build and investigate CogSci models ◮ Complementary to dominating probabilistic approaches ◮ Logical engine of Bayesian modeling

slide-14
SLIDE 14

Modern logic should be a part of CogSci toolbox

  • 1. In building cognitive theories;
  • 2. In computational modeling;
  • 3. In designing experiments.

◮ Not only in the psychology of reasoning ◮ A general tool to build and investigate CogSci models ◮ Complementary to dominating probabilistic approaches ◮ Logical engine of Bayesian modeling

Expensive experiments and messy computational models should be built upon more principled foundational approach.

slide-15
SLIDE 15

Evaluating cognitive models

Along the following dimensions:

◮ logical relationships, e.g., incompatibility or identity; ◮ explanatory power, e.g., what can be expressed; ◮ computational plausibility, e.g., tractability.

slide-16
SLIDE 16

Outline

Introduction: Logic & Cognition research project Taking Marr Seriously Using Logic to Predict Behavior Formalization Semantics of the task Descriptive complexity Conclusions

slide-17
SLIDE 17

Information processing and 3 levels of Marr

Cognitive task f: initial state − → desired state

slide-18
SLIDE 18

Information processing and 3 levels of Marr

Cognitive task f: initial state − → desired state

  • 1. Computational level:

◮ specify cognitive task f ◮ problems that a cognitive ability has to overcome

slide-19
SLIDE 19

Information processing and 3 levels of Marr

Cognitive task f: initial state − → desired state

  • 1. Computational level:

◮ specify cognitive task f ◮ problems that a cognitive ability has to overcome

  • 2. Algorithmic level:

◮ the algorithms that are used to achieve a solution ◮ compute f

slide-20
SLIDE 20

Information processing and 3 levels of Marr

Cognitive task f: initial state − → desired state

  • 1. Computational level:

◮ specify cognitive task f ◮ problems that a cognitive ability has to overcome

  • 2. Algorithmic level:

◮ the algorithms that are used to achieve a solution ◮ compute f

  • 3. Implementation level:

◮ how this is actually done in neural activity

  • Marr. Vision: a computational investigation into the human representation and processing visual information, 1983
slide-21
SLIDE 21

Extending levels of explanation in CogSci

slide-22
SLIDE 22

Extending levels of explanation in CogSci

Observation

Logical analysis informs about intrinsic properties of a problem.

slide-23
SLIDE 23

Extending levels of explanation in CogSci

Observation

Logical analysis informs about intrinsic properties of a problem. ֒ → Level 1.5: using logic to predict behavior!

slide-24
SLIDE 24

Extending levels of explanation in CogSci

Observation

Logical analysis informs about intrinsic properties of a problem. ֒ → Level 1.5: using logic to predict behavior! There is nothing as practical as good theory. (Lewin, 1951)

slide-25
SLIDE 25

Outline

Introduction: Logic & Cognition research project Taking Marr Seriously Using Logic to Predict Behavior Formalization Semantics of the task Descriptive complexity Conclusions

slide-26
SLIDE 26

Outline

Introduction: Logic & Cognition research project Taking Marr Seriously Using Logic to Predict Behavior Formalization Semantics of the task Descriptive complexity Conclusions

slide-27
SLIDE 27

Level 1: formalizing the task

Example (False belief tasks)

  • 1. Peter is shown a Smarties tube
slide-28
SLIDE 28

Level 1: formalizing the task

Example (False belief tasks)

  • 1. Peter is shown a Smarties tube
  • 2. Smarties have been replaced by pencils
slide-29
SLIDE 29

Level 1: formalizing the task

Example (False belief tasks)

  • 1. Peter is shown a Smarties tube
  • 2. Smarties have been replaced by pencils
  • 3. "What do you think is inside the tube?"
slide-30
SLIDE 30

Level 1: formalizing the task

Example (False belief tasks)

  • 1. Peter is shown a Smarties tube
  • 2. Smarties have been replaced by pencils
  • 3. "What do you think is inside the tube?"
  • 4. Peter answers: "Smarties!"
slide-31
SLIDE 31

Level 1: formalizing the task

Example (False belief tasks)

  • 1. Peter is shown a Smarties tube
  • 2. Smarties have been replaced by pencils
  • 3. "What do you think is inside the tube?"
  • 4. Peter answers: "Smarties!"
  • 5. The tube is then shown to contain pencils only.
slide-32
SLIDE 32

Level 1: formalizing the task

Example (False belief tasks)

  • 1. Peter is shown a Smarties tube
  • 2. Smarties have been replaced by pencils
  • 3. "What do you think is inside the tube?"
  • 4. Peter answers: "Smarties!"
  • 5. The tube is then shown to contain pencils only.
  • 6. "Before it was opened, what did you think was inside?"
slide-33
SLIDE 33

Level 1: formalizing the task

Example (False belief tasks)

  • 1. Peter is shown a Smarties tube
  • 2. Smarties have been replaced by pencils
  • 3. "What do you think is inside the tube?"
  • 4. Peter answers: "Smarties!"
  • 5. The tube is then shown to contain pencils only.
  • 6. "Before it was opened, what did you think was inside?"
  • 7. ???
slide-34
SLIDE 34

Level 1: formalizing the task

Example (False belief tasks)

  • 1. Peter is shown a Smarties tube
  • 2. Smarties have been replaced by pencils
  • 3. "What do you think is inside the tube?"
  • 4. Peter answers: "Smarties!"
  • 5. The tube is then shown to contain pencils only.
  • 6. "Before it was opened, what did you think was inside?"
  • 7. ???

Lambalgen & Stenning. Human reasoning and cognitive science, 2008 Braüner. Hybrid-Logical Reasoning in False-Belief Tasks, TARK 2013 Van Ditmarsch & Labuschagne. My Beliefs about Your Beliefs, Synthese 2007

slide-35
SLIDE 35

Level 1.5: from formalization to actual reasoning

slide-36
SLIDE 36

Level 1.5: from formalization to actual reasoning

Example (Using proof-theory)

◮ Monotonicity calculus as processing model for syllogistic. ◮ Shorter proof = simpler syllogism.

  • Geurts. Reasoning with quantifiers, Cognition, 2003
slide-37
SLIDE 37

Level 1.5: from formalization to actual reasoning

Example (Using proof-theory)

◮ Monotonicity calculus as processing model for syllogistic. ◮ Shorter proof = simpler syllogism.

  • Geurts. Reasoning with quantifiers, Cognition, 2003

◮ Analytic tableaux for MasterMind game. ◮ Simpler proof = simpler game.

Gierasimczuk et al. Logical and psychological analysis of Mastermind, J. of Logic, Language, and Information, 2013

slide-38
SLIDE 38

Outline

Introduction: Logic & Cognition research project Taking Marr Seriously Using Logic to Predict Behavior Formalization Semantics of the task Descriptive complexity Conclusions

slide-39
SLIDE 39

Level 1.5: more semantic approach

◮ To capture structural properties of the task ◮ Independent from particular formalization

slide-40
SLIDE 40

Turn-based games

slide-41
SLIDE 41

Turn-based games

(a) (b) (c) (d) (e)

3 4 4 2 2 1 1 3 B C D A 2 1 4 2 1 3 3 4 B C D A 4 1 2 3 3 2 1 4 B C D A 2 1 4 3 1 2 3 4 B C D A 2 1 4 3 3 4 1 2 B C D A

Player I Player I Player II Player I Player I Player II Player I Player I Player II Player I Player I Player II Player I Player I Player II

slide-42
SLIDE 42

Turn-based games

(a) (b) (c) (d) (e)

3 4 4 2 2 1 1 3 B C D A 2 1 4 2 1 3 3 4 B C D A 4 1 2 3 3 2 1 4 B C D A 2 1 4 3 1 2 3 4 B C D A 2 1 4 3 3 4 1 2 B C D A

Player I Player I Player II Player I Player I Player II Player I Player I Player II Player I Player I Player II Player I Player I Player II

slide-43
SLIDE 43

MDG decision trees

s,1 (t1, t2) t,2 (s1, s2) u,1 (p1, p2) (q1, q2) l r l r l r

slide-44
SLIDE 44

MDG decision trees

s,1 (t1, t2) t,2 (s1, s2) u,1 (p1, p2) (q1, q2) l r l r l r

Definition

G is generic, if for each player, distinct end nodes have different pay-offs.

slide-45
SLIDE 45

Question

Question

What are the cognitively important structural properties?

slide-46
SLIDE 46

Alternation type

Definition

Let’s assume that the players strictly alternate in the game. Then:

  • 1. In a Λi

1 tree all the nodes are controlled by Player i.

  • 2. In a Λi

k tree, k-alternations, starts with an ith Player node.

slide-47
SLIDE 47

Alternation type

Definition

Let’s assume that the players strictly alternate in the game. Then:

  • 1. In a Λi

1 tree all the nodes are controlled by Player i.

  • 2. In a Λi

k tree, k-alternations, starts with an ith Player node.

s,1 (t1, t2) t,2 (s1, s2) u,1 (p1, p2) (q1, q2) l r l r l r

Figure : Λ1

3 -tree

slide-48
SLIDE 48

Pay-off structure

s,1 999, 1 t,1 3, 4 u,2 5, 17 w, 1 8, 19 0, 0 l r l r l r l r s,1 5, 5 t,2 12, 14 u,1 5, 7 w, 1 16, 8 4, 6 l r l r l r l r

Figure : Two Λ1

3 trees.

slide-49
SLIDE 49

Pay-off structure

s,1 999, 1 t,1 3, 4 u,2 5, 17 w, 1 8, 19 0, 0 l r l r l r l r s,1 5, 5 t,2 12, 14 u,1 5, 7 w, 1 16, 8 4, 6 l r l r l r l r

Figure : Two Λ1

3 trees.

Forward reasoning + backtracking

slide-50
SLIDE 50

T −-example

s,1 999, 1 l s,1 5, 5 t,2 12, 14 u,1 5, 7 w, 1 16, 8 l r l r l r l

Figure : Λ1

1 tree and Λ1 3 tree

slide-51
SLIDE 51

T −

Definition

If T is a generic game tree with the root node controlled by Player 1 (2) and n is the highest pay-off for Player 1 (2), then T − is the minimal subtree of T containing the root node and the node with pay-off n for Player 1 (2).

slide-52
SLIDE 52

Conjecture

Let us take two MDG trials T1 and T2. T1 is easier for participants than T2 if and only if T −

1 is lower in the tree alternation hierarchy than T − 2 .

slide-53
SLIDE 53

Experiment

slide-54
SLIDE 54

Experiment

slide-55
SLIDE 55

Results

◮ Structural properties responsible for the cognitive difficulty ◮ Results generalized to other turn-based games ◮ FRB avoids higher-order reasoning

Szymanik et al.. Using intrinsic complexity of turn-taking games to predict participantsÕ reaction times, CogSci 2013

slide-56
SLIDE 56

Outline

Introduction: Logic & Cognition research project Taking Marr Seriously Using Logic to Predict Behavior Formalization Semantics of the task Descriptive complexity Conclusions

slide-57
SLIDE 57

Practical computability

f : initial state − → desired state

slide-58
SLIDE 58

Practical computability

f : initial state − → desired state

◮ computational resource constraints; ◮ realistic time and memory; ◮ bounded agency

slide-59
SLIDE 59

Practical computability

f : initial state − → desired state

◮ computational resource constraints; ◮ realistic time and memory; ◮ bounded agency

֒ → Level 1.5: computational properties

slide-60
SLIDE 60

Simple sentences

  • 1. All poets have low self-esteem.
  • 2. Some dean danced nude on the table.
  • 3. At least 3 grad students prepared presentations.
  • 4. An even number of the students saw a ghost.
  • 5. Most of the students think they are smart.
  • 6. Less than half of the students received good marks.
  • 7. Many of the soldiers have not eaten for several days.
  • 8. A few of the conservatives complained about taxes.
slide-61
SLIDE 61

Corresponding structures

U A B S0 S1 S2 S3 c1 c2 c3 c4 c5

slide-62
SLIDE 62

Corresponding structures

U A B S0 S1 S2 S3 c1 c2 c3 c4 c5 . . . and corresponding computations

slide-63
SLIDE 63

Aristotelian quantifiers

“all”, “some”, “no”, and “not all” q0 q1 Γ − {aA¯

B}

aA¯

B

Γ Finite automaton recognizing LAll LAll = {α ∈ Γ∗ : #aA¯

B(α) = 0}

slide-64
SLIDE 64

Cardinal quantifiers

E.g. “more than 2”, “less than 7”, and “between 8 and 11” q0 q1 q2 q3 Γ − {aAB} Γ − {aAB} Γ − {aAB} Γ aAB aAB aAB Finite automaton recognizing LMore than two LMore than two = {α ∈ Γ∗ : #aAB(α) > 2}

slide-65
SLIDE 65

Parity quantifiers

E.g. “an even number”, “an odd number” q0 q1 Γ − {aAB} aAB aAB Γ − {aAB} Finite automaton recognizing LEven LEven = {α ∈ Γ∗ : #aAB(α) is even}

slide-66
SLIDE 66

Proportional quantifiers

◮ E.g. “most”, “less than half”. ◮ Most As are B iff card(A ∩ B) > card(A − B). ◮ LMost = {α ∈ Γ∗ : #aAB(α) > #aA¯ B(α)}. ◮ There is no finite automaton recognizing this language. ◮ We need internal memory. ◮ A push-down automata will do.

slide-67
SLIDE 67

Does it say anything about processing?

Question

Do minimal automata predict differences in verification?

slide-68
SLIDE 68

A simple study

More than half of the cars are yellow.

slide-69
SLIDE 69

Szymaniki & Zajenkowski, Comprehension of simple quantifiers. Empirical evaluation of a computational model, Cognitive Science, 2010

slide-70
SLIDE 70

Neurobehavioral studies

Differences in brain activity.

◮ All quantifiers are associated with numerosity:

recruit right inferior parietal cortex.

◮ Only higher-order activate working-memory capacity:

recruit right dorsolateral prefrontal cortex.

McMillan et al., Neural basis for generalized quantifiers comprehension, Neuropsychologia, 2005 Szymanik, A Note on some neuroimaging study of natural language quantifiers comprehension, Neuropsychologia, 2007

slide-71
SLIDE 71

Experiment with schizophrenic patients

◮ Compare performance of:

◮ Healthy subjects. ◮ Patients with schizophrenia. ◮ Known WM deficits.

slide-72
SLIDE 72

RT data

slide-73
SLIDE 73

Accuracy data

Zajenkowski et al., A computational approach to quantifiers as an explanation for some language impairments in schizophrenia, Journal of Communication Disorders, 2011.

slide-74
SLIDE 74

Quantifier distribution in language

Distribution is skewed towards quantifiers of low complexity.

some all most > k > k/100 at least k at most k exactly k > p/k recip count max/min sum average

0.0 0.2 0.4 0.6 0.8 1.0

relative frequency Distribution of GQs averages (inc.) averages (cum.) Brown Clinical Geoquery TREC

0.0 0.2 0.4 0.6 0.8 1.0

rank

1 2 3 4 5 6 7

Distribution of GQs (log-log best fit) (cum.) y=0.58-4.66x, r^2=0.84 (incr.) y=0.46-4.52x, r^2=0.81

Thorne & Szymanik. Generalized Quantifier Distribution and Semantic Complexity, 2013.

slide-75
SLIDE 75

Outline

Introduction: Logic & Cognition research project Taking Marr Seriously Using Logic to Predict Behavior Formalization Semantics of the task Descriptive complexity Conclusions

slide-76
SLIDE 76

Summary

◮ Computational awareness in logic of agency and semantics ֒

→ CogSci.

slide-77
SLIDE 77

Summary

◮ Computational awareness in logic of agency and semantics ֒

→ CogSci.

◮ Radically beyond psychology of reasoning:

֒ → focusing on cognitive processes rather than on logical correctness ֒ → computational turn calls for sophisticated experiments ֒ → collaboration is needed more than ever!

slide-78
SLIDE 78

Take home message

◮ Modern logics is a part of CogSci toolbox

slide-79
SLIDE 79

Take home message

◮ Modern logics is a part of CogSci toolbox ◮ It revolves around: interpretation, information, and computation

slide-80
SLIDE 80

Take home message

◮ Modern logics is a part of CogSci toolbox ◮ It revolves around: interpretation, information, and computation ◮ It helps predict behavior

slide-81
SLIDE 81

Take home message

◮ Modern logics is a part of CogSci toolbox ◮ It revolves around: interpretation, information, and computation ◮ It helps predict behavior ◮ Logical perspective extends the notion of explanation in CogSci ◮ ֒

→ Level 1.5

slide-82
SLIDE 82

More examples and discussion

Isaac, Szymanik, and Verbrugge. Logic and Complexity in Cognitive Science, Johan van Benthem on Logical and Informational Dynamics, Trends in Logic, Outstanding Contributions book series, Springer 2013 Szymanik and Verbrugge (Eds). Special issue of Journal of Logic, Language, and Information

  • n ‘Logic and Cognition’

֒ → websites of various courses