1 / 31

Logical and Rule-Based Reasoning Part II

Logical and Rule-Based Reasoning Part II. Logic for Cognitive Science. Good News: Predicate Logic is sound and complete. A completely rigorous and correct system for predicate logic can be computerized so that any correct pattern of reasoning in the language can be discovered by a computer.

yitro
Download Presentation

Logical and Rule-Based Reasoning Part II

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Logical and Rule-Based Reasoning Part II

  2. Logic for Cognitive Science • Good News: • Predicate Logic is sound and complete. A completely rigorous and correct system for predicate logic can be computerized so that any correct pattern of reasoning in the language can be discovered by a computer. • Turing's Thesis: any process that can be expressed with a finite set of rules can processed by a digital computer that operates on representations in the language of logic. • Bad News: • A fully correct mechanism for logic problem solving may spend exponential time solving problems. So, systems have to sacrifice correctness to obtain efficiency. • Turing's Theorem: Predicate Logic has no decision procedure. Although good reasoning can always be discovered (eventually) by a logic problem solver, there is no guarantee that bad reasoning can be identified as such in a finite amount of time.

  3. Logic for Cognitive Science • Good News: • Systems to handle belief, time and other so-called intensional concepts have been developed, and are being adopted by AI researchers. • Bad News: • Predicate Logic doesn't let you take it back. Standard logic uses monotonic reasoning, which means that the more information you have the more you can prove from it. What if we find that something we knew is in fact false. • Good News: • Non-monotonic logics have been developed that are modifications of predicate logic. In these systems you can say 'All birds fly', and then assert 'Penguins don't fly' without causing contradictions. Logics with exceptions. • Bad News: • Predicate Logic doesn't (conveniently) let you handle matters of degree. If I write 'Tall(John)' then I have said that John really is tall. There is no way to say he is sort of tall, or somewhat tall. Similarly you can't (easily) say that the probability that John is tall is 90%. • Good News: • Many-Valued Logics, Logics of Probability, and Fuzzy Logics allow expression of matters of degree. Fuzzy logics have been found to be quite useful in AI especially in controlling machines.

  4. The Psychological Plausibility of Logic • Primary complaint • Logic is a poor model of human reasoning. • Logic a fine standard for good reasoning but not necessarily how human beings actually reason. • There are two kinds of evidence for this claim: • Logic is too time intensive and full logical reasoning requires long derivations using inference rules • People do not live up to the rules of logic – Recall the Wason's card selection task .

  5. The Psychological Plausibility of Logic • The general finding for the Wason card selection task has been replicated again and again on a wide variety of problems • Tversky & Kahneman, 1974 • People use heuristics for judgments under uncertainty • Representativeness • Availability • Anchoring and adjustment “People rely on a limited number of heuristic principles which reduce the complex tasks of assessing probabilities and predicting values to simpler judgmental operations. In general, these heuristics are quite useful, but sometimes they lead to severe and systematic errors”

  6. Representativeness • Linda is 31 years old, single outspoken and very bright. She majored in philosophy. As a student she was deeply concerned with the issues of discrimination and social justice, and also participated in anti-nuclear demonstrations. • Rank order the following statements by their probability, using 1 for the most probable and 8 for the least probable a) Linda is a teacher in elementary school b) Linda works in a bookstore and takes Yoga classes c) Linda is active in the feminist movement d) Linda is a psychiatric social worker e) Linda is a member of the League of Women voters f) Linda is a bank teller g) Linda is an insurance salesperson h) Linda is a bank teller and is active in the feminist movement

  7. Representativeness Which sequence is more likely to be produced by flipping a fair coin? HHTHT HHHHH

  8. Representativeness Kahneman & Tversky: people judge the probability of an outcome based on the extent to which it is representative of the generating process The fact that HHTHT looks representative of a fair coin and HHHHH does not reflects our implicit theories of how the world works. • Easy to imagine how a trick all-heads coin could work: high prior probability. • Hard to imagine how a trick “HHTHT” coin could work: low prior probability.

  9. The Psychological Plausibility of Logic • Response to Time Complexity: • Can be overcome using massively parallel system like the brain. • Poor reasoning of humans does not show that people fail to have logical machinery in their brains. There are just limitations on how they use it: bad memory, poor attention, etc. • Response to “people aren’t logical” • So what if humans don't use logic. They ought to. Cognitive science is the study of intelligence not stupidity.

  10. The Psychological Plausibility of Logic • Recall the modified Wason selection task • So, people are in principle logical • In practice, however, they are not because their ideal logical abilities are confronted with sever limitations in working memory • Cannot generate indefinitely long chains of deductions • Cannot generate indefinitely many mental models • May require a context to help in the selection of correct logical rules

  11. Another Approach: dual-process accounts of reasoning • Divide reasoning into two modular components • System 1 • Early evolving set of many systems • Common between man and animals • Innate processes and associative learning • Rapid, parallel, automatic • Only their result is available to consciousness • System 2 • Late evolving, unique to people • Slow, serial processing involving working memory • Capable of abstract, hypothetical thought

  12. The Belief-Bias Effect • One of the key methods for demonstrating dual processes in reasoning tasks • Seeks to create a conflict between responses based upon a process of logical reasoning and those derived from prior belief about the truth of conclusions. • In belief-bias experiments, participants are instructed to treat the problem as a logical reasoning task and to endorse only conclusions that necessarily follow from the premises given. • In spite of this, intelligent adult populations (undergraduate students) are consistently influenced by the prior believability of the conclusion given as well as by the validity of the arguments presented.

  13. The Belief-Bias Effect • Typically, syllogisms are presented for evaluation, which fall into one of the four following categories

  14. The Belief-Bias Effect • Participants are substantially influenced by both the logic of the argument and believability of its conclusion, with more belief-bias on invalid arguments • Dual-process accounts propose that although participants attempt to reason logically in accord with the instructions, the influence of prior beliefs is extremely difficult to suppress and effectively competes for control of the responses made. Study of J. B. T. Evans, 1988 Green = Believable Red - Unbelievable

  15. Rules as Mental Representations • Rules • People have mental rules. • People have procedures for using these rules to search a space of possible solutions, and procedures for generating new rules. • Procedures for using and forming rules produce the behavior. • Rule-based systems: • manipulation and transformation of symbols • Rule-based systems in AI and cognitive science: • Newell and Simon, GPS 1950s-60s • Expert systems, 1970s-90s. MYCIN • ACT 1983. John Anderson. • SOAR, Newell and his students, 1980s, John E. Laird (Univ. Michigan) • Prolog: logic programming

  16. Example of a rule-based system • How to get from Chicago to Madison? • IF you want to get to Madison, and you are in Chicago, and you have no car, THEN take the bus. • IF you want to take the bus from Chicago to Madison, THEN go to the bus depot and buy a ticket. • IF you want to buy a ticket, THEN get some money. • IF you want to get some money, then go to the bank and withdraw it. • IF you want to get to Madison and you have a car, THEN take highway 94. • IF: conditions (antecedent) • THEN: action (consequent)

  17. Production Rules • Rules in a rule based systems are often called production rules • Production rules are one of the most popular and widely used knowledge representation languages. • Early expert systems used production rules as their main knowledge representation language. • Production rule system consists of three components • working memory - contains the information that the system has gained about the problem thus far • rule base - contains information that applies to all the problems that the system may be asked to solve • Interpreter - solves the control problem, i.e., decide which rule to execute on each selection-execute cycle (also called recognition-act cycle).

  18. Example: Water Jug Problem • We have two jugs: one holds 4 gallons and the other 3 gallons of water • There are no external measuring devices • We can fill-up a jug from a pump at any time • We can pour water out of a jug or from one into the other • The problem is to start from an initial state (each state would be the status of the two jugs) and get to a final state by a sequence of legal moves • e.g., from [0,0] (both jugs are empty) to [2,0] (the 4-gallon jug has 2 gallons of water and the three gallon jug is empty).

  19. Production Rules for the Water Jug Problem 1. Fill 4-gallon jug: ([x, y] | x < 4)  [4, y] 2. Fill 3-gallon jug: ([x, y] | y < 3)  [x, 3] 3. Empty 4-gallon jug: ([x, y] | x > 0)  [0, y] 4. Empty 3-gallon jug: ([x, y] | y > 0)  [x, 0] 5. From 3-gallon jug to 4 gallon jug, until full: ([x, y] | x+y 4 and y > 0)  [4, y-(4-x)] 6. From 4-gallon jug to 3 gallon jug, until full: ([x, y] | x+y 3 and x > 0)  [x-(3-y)], 3] 7. All of 3-gallon jug into 4-gallon jug: ([x, y] | x+y 4 and y > 0)  [x+y, 0] 8. All of 4-gallon jug into 3-gallon jug: ([x, y] | x+y 3 and x > 0)  [0, x+y] Suppose we start with two empty jugs, i.e., [0,0]. How do we get to the state [2,2]?

  20. How different from logic? • Less informational power than logic: • rule-based system may not have full quantifiers and rules of inference. • But can be more computationally efficient, because it focuses on the task to be accomplished. • Uses processes that are not inherently part of logic: e.g., subgoaling. • Can be tied in with other processes, such as spreading activation to model human memory (ACT, PI). • Can be combined with other representations, such as concepts.

  21. Advantages of Rule-Based Systems • Have been used in many commercial systems (e.g., expert systems). • Modular, easy to add to. • Have modeled various kinds of psychological experiments. • Lots of human knowledge and ability naturally described in terms of rules. • Various techniques known for learning rules automatically.

  22. Expert Systems • A production rule system combined with an inference engine and a user interface • It is often implemented as a “conversational” or interactive system • Pre-defined questions are designed to reduce the search space for rules whose antecedents are satisfied.

  23. Weaknesses • Inflexibility • To change the behavior of the systems must change the rules • Over-generality • Rules may not be able to deal with specific problems that are not part of the knowledge base • Control may be difficult • Actions are performed only if the rule conditions are satisfied • Knowledge acquisition is difficult • The most challenging part: knowledge engineering • E.g., in expert systems, the knowledge of many experts and about many situations must be encoded as rules (often manually).

  24. Rules and Cognitive Science • John Anderson and ACT-R • Cognitive skills are realized by production rules. • Production rules are organized around a set of goals. • Complex cognitive processes involve a sequence of production rules. • Productions are matched against working memory. • Rules are psychologically realistic, because they describe many aspects of skilled behavior, and predict the details of that behavior.

  25. Rules and Problem Solving • Forward chaining: • do deductive reasoning forward by modus ponens: if p then q; p; so q. But use strategies to focus inference, e.g. use most specific rule. • Good for planning. Start with initial state, work forward to goal. • Reasoning is search through a space of states and operators. • Backward chaining: • if p then q; q; so check whether p can be accomplished. Good for diagnosis (explanation), planning. Start with goal, work backward to current state. • Bidirectional search: forward and backward. • Most of the successful commercial expert systems are rule-based. • Modularity of rules: just add more to the rule base.

  26. Learning Rules • Rules can be learned • Generalization from examples: experience, imitation • Fa, Ga  all F are G. Induction. • Rule compilation, chunking (same as transitivity) • p  q, q  r then p  r. • Important for skill acquisition: chunk together several rules into one that can be quickly executed. • Learn by being told – rote learning • Abductive inference uses rules to form hypotheses • Babies with ear infections cry. • Adam is a baby and is crying. • So maybe Adam has an ear infection. • Note that this is not a valid inference, but is a plausible use of backward chaining.

  27. Psychological Plausibility of Rules • Production systems have been used to model performance on many tasks, e.g. chess, Tower of Hanoi. • Quantitative fit: power law of learning. • Rate of learning slows down. • Applies to many kinds of skill acquisition. • Learning in rats: not just associations, but rules. • E.g. if tone then shock. Conditioning is learning rules. • Learning of social rules. • If given something, say thank you • more interesting: in explaining other people's behavior (abduction). • Knowledge of physical systems: mental models. • If you turn the key, the engine starts. • Learning language: grammatical rules • Past tense: learn  learned; turn  turned; shock  shocked • But, what about cry  cryed? OR go  goed?

  28. Rules and Language • Basic questions: • What representations are required for our ability to understand and produce language? • How is language learned? • Behaviorist answer: • Language is based on a set of associations, learned by trial and error. • Chomsky's revolution • Syntactic Structures (1956) - Rejected associationism • grammars are complex, rule-like structures • universal grammar is innate • we are born with readiness to notice what kind of grammar our native language has.

  29. Rules and Language • Evidence supports Chomsky’s View • productivity of language: we can understand sentences that have never been uttered before. • "Colorless green ideas sleep furiously." Compare • Ease of language learning: • Almost all children acquire language with relatively little feedback. • Example of Chomskyan grammar (earlier work): • The girl kicked the ball  The ball was kicked by the girl. • A syntactic transformation produces a new structure. • This explains the productivity of language: transformations can produce an unlimited number of structures. • Learning of grammars is relatively easy • We have innate expectations about structures and transformations. • Learning is a kind of abduction: children form hypotheses to explain the utterances they here.

  30. Rules and Language • Chomsky's 1980's view: government and binding. • Less emphasis on transformations. • More emphasis on constraints on what can count as grammatical. • Innate universal grammar: E.g. asymmetry of subject and object. • All languages have nouns, verbs, adjectives, and adpositions (pre- or post-positions). • XP = X - YP. • For each X (verb, noun, adjective, preposition) there is a phrase YP (noun phrase, etc.) that can follow it. • Children merely need to learn parameters: set of switches to be set. But the basics of universal grammar are not learned, and could not be in the time available. • Concepts are also innate and preexisting: children just need to learn what labels to apply to them.

More Related