Inference in Cyc. This is the final lesson in the Inference Tutorial. It will focus on microtheories and forward/backward inference.

Similar documents
Foundations of Knowledge Representation in Cyc

Inference in Cyc. Copyright 2002 Cycorp

Artificial Intelligence. Clause Form and The Resolution Rule. Prof. Deepak Khemani. Department of Computer Science and Engineering

Artificial Intelligence Prof. P. Dasgupta Department of Computer Science & Engineering Indian Institute of Technology, Kharagpur

Module 5. Knowledge Representation and Logic (Propositional Logic) Version 2 CSE IIT, Kharagpur

(Refer Slide Time 03:00)

Semantic Entailment and Natural Deduction

16. Universal derivation

Artificial Intelligence: Valid Arguments and Proof Systems. Prof. Deepak Khemani. Department of Computer Science and Engineering

Logic I or Moving in on the Monkey & Bananas Problem

1.2. What is said: propositions

Introduction Symbolic Logic

Artificial Intelligence Prof. Deepak Khemani Department of Computer Science and Engineering Indian Institute of Technology, Madras

Logicola Truth Evaluation Exercises

6. Truth and Possible Worlds

HANDBOOK (New or substantially modified material appears in boxes.)

CHAPTER 1 A PROPOSITIONAL THEORY OF ASSERTIVE ILLOCUTIONARY ARGUMENTS OCTOBER 2017

HANDBOOK (New or substantially modified material appears in boxes.)

Artificial Intelligence Prof. P. Dasgupta Department of Computer Science & Engineering Indian Institute of Technology, Kharagpur

Module 02 Lecture - 10 Inferential Statistics Single Sample Tests

Formalizing a Deductively Open Belief Space

Chapter 3: Basic Propositional Logic. Based on Harry Gensler s book For CS2209A/B By Dr. Charles Ling;

Negative Introspection Is Mysterious

Proof as a cluster concept in mathematical practice. Keith Weber Rutgers University

HANDBOOK. IV. Argument Construction Determine the Ultimate Conclusion Construct the Chain of Reasoning Communicate the Argument 13

Basic Concepts and Skills!

INTERMEDIATE LOGIC Glossary of key terms

Verification and Validation

MISSOURI S FRAMEWORK FOR CURRICULAR DEVELOPMENT IN MATH TOPIC I: PROBLEM SOLVING

6.041SC Probabilistic Systems Analysis and Applied Probability, Fall 2013 Transcript Lecture 3

SHORT ANSWER. Write the word or phrase that best completes each statement or answers the question.

Lecture 4: Deductive Validity

Minimal and Maximal Models in Reinforcement Learning

Here s a very dumbed down way to understand why Gödel is no threat at all to A.I..

Outline. 1 Review. 2 Formal Rules for. 3 Using Subproofs. 4 Proof Strategies. 5 Conclusion. 1 To prove that P is false, show that a contradiction

Russell: On Denoting

Reasoning and Decision-Making under Uncertainty

MLLunsford, Spring Activity: Conditional Probability and The Law of Total Probability

Chapter 5: Freedom and Determinism

Writing Module Three: Five Essential Parts of Argument Cain Project (2008)

Also, in Argument #1 (Lecture 11, Slide 11), the inference from steps 2 and 3 to 4 is stated as:

Artificial Intelligence Prof. Deepak Khemani Department of Computer Science and Engineering Indian Institute of Technology, Madras

Critical Thinking - Section 1

Revisiting the Socrates Example

Unit. Science and Hypothesis. Downloaded from Downloaded from Why Hypothesis? What is a Hypothesis?

A New Parameter for Maintaining Consistency in an Agent's Knowledge Base Using Truth Maintenance System

A Brief Introduction to Key Terms

Reply to Cheeseman's \An Inquiry into Computer. This paper covers a fairly wide range of issues, from a basic review of probability theory

***** [KST : Knowledge Sharing Technology]

ILLOCUTIONARY ORIGINS OF FAMILIAR LOGICAL OPERATORS

2.3. Failed proofs and counterexamples

CONTENTS A SYSTEM OF LOGIC

Pearson Education Limited Edinburgh Gate Harlow Essex CM20 2JE England and Associated Companies throughout the world

A rule that guarantees the right solution to a problem. Usually by using a formula. They work but are sometimes impractical.

Selections from Aristotle s Prior Analytics 41a21 41b5

The way we convince people is generally to refer to sufficiently many things that they already know are correct.

Chapter 1. Introduction. 1.1 Deductive and Plausible Reasoning Strong Syllogism

Test Item File. Full file at

Argument. What is it? How do I make a good one?

A BRIEF INTRODUCTION TO LOGIC FOR METAPHYSICIANS

The Differentia Principle as a Cornerstone of Ontology

1. Introduction Formal deductive logic Overview

9 Knowledge-Based Systems

Keeping Your Kids On God s Side - Natasha Crain

POSTSCRIPT A PREAMBLE

KNOWLEDGE AND THE PROBLEM OF LOGICAL OMNISCIENCE

Summer Preparation Work

A Short Course in Logic Answers to Practice

Explanations and Arguments Based on Practical Reasoning

Argument Mapping. Table of Contents. By James Wallace Gray 2/13/2012

Portfolio Project. Phil 251A Logic Fall Due: Friday, December 7

Module - 02 Lecturer - 09 Inferential Statistics - Motivation

Grade 6 Math Connects Suggested Course Outline for Schooling at Home

Georgia Quality Core Curriculum

Foundations of Non-Monotonic Reasoning

D:D(φ) B: B(φ) I:I(φ) I:I(does(e)) C:does(e) C:done(e) B:B(done(e))

SUPPOSITIONAL REASONING AND PERCEPTUAL JUSTIFICATION

Final Paper. May 13, 2015

I Found You. Chapter 1. To Begin? Assumptions are peculiar things. Everybody has them, but very rarely does anyone want

UC Berkeley, Philosophy 142, Spring 2016

Foundationalism Vs. Skepticism: The Greater Philosophical Ideology

Language, Meaning, and Information: A Case Study on the Path from Philosophy to Science Scott Soames

Can machines think? Machines, who think. Are we machines? If so, then machines can think too. We compute since 1651.

Am I free? Freedom vs. Fate

CHAPTER 2 THE LARGER LOGICAL LANDSCAPE NOVEMBER 2017

Full file at

Natural Deduction for Sentence Logic

Rationalizing Denominators

DR. LEONARD PEIKOFF. Lecture 3 THE METAPHYSICS OF TWO WORLDS: ITS RESULTS IN THIS WORLD

Logical Omniscience in the Many Agent Case

2. Refutations can be stronger or weaker.

Introduction to Philosophy Lecture 2 - Methods of knowledge - Inference, dialectic and Plato. justification Platonic Model Divided Line -

Do we have knowledge of the external world?

1/12. The A Paralogisms

1 Clarion Logic Notes Chapter 4

C. Exam #1 comments on difficult spots; if you have questions about this, please let me know. D. Discussion of extra credit opportunities

THEISM AND BELIEF. Etymological note: deus = God in Latin; theos = God in Greek.

THE LARGER LOGICAL PICTURE

Ramsey s belief > action > truth theory.

RATIONALITY AND SELF-CONFIDENCE Frank Arntzenius, Rutgers University

Transcription:

Inference in Cyc Logical Aspects of Inference Incompleteness in Searching Incompleteness from Resource Bounds and Continuable Searches Efficiency through Heuristics Inference Features in Cyc This is the final lesson in the Inference Tutorial. It will focus on microtheories and forward/backward inference. 1

Inference Uses Mts for Consistency MainstreamAmericanCultureMt (genls Vampire MythologicalThing) (isa LochNessMonster MythologicalThing) In the Mainstream AmericanCultureMt, Vampire is a kind of mythological thing. The Loch Ness Monster is a mythological thing. WorldMythologyMt (genls Vampire IntelligentAgent) (isa LochNessMonster Reptile) In the WorldMythologyMt, Vampire is a kind of intelligent agent. The Loch Ness Monster is a reptile. Another unique feature of the Cyc system is our use of microtheories to deal with the difficulty of having global consistency in a knowledge base. The Cyc Knowledge Base does not consist of one single theory that has to be consistent. As theories get larger and larger, it becomes more and more difficult to maintain consistency among all of the statements in them. We solved this problem in our system by not having just one theory; we have a large number of what we call microtheories. These are smaller theories, usually on the order of a few hundred to a few thousand assertions in each one. 2

Mts Inherit from More General Mts Using #$ UniversalVocabularyMt HumanActivitiesMt UnitedStatesSocialLifeMt MainstreamAmericanCultureMt WorldMythologyMt This gives us the ability to state that certain microtheories inherit from other microtheories; we can set up an ontology of theories and have one theory built upon other theories from which it inherits. It is easier to manage the space of millions of assertions because we carve them up into smaller sets of assertions that have common assumptions about them and then we state the relationships among these theories as a means of organizing them and making them more modular and reusable. The predicate that we use to state this inheritance relationship in microtheories is #$. 3

Inference is performed Within Mts UniversalVocabularyMt HumanActivitiesMt UnitedStatesSocialLifeMt ASK in each Mt: (genls Vampire IntelligentAgent) Results in each Mt: True Not Proven MainstreamAmericanCultureMt WorldMythologyMt When you perform an inference in our system, you perform an inference in a particular microtheory. This means that every assertion in that microtheory and all of the microtheories from which it inherits are visible for inference. This allows the system to maintain an enormous number of potential theories in an efficient fashion and to support performing inferences in any of them at the same time. 4

Inference Uses Microtheories and Inheritance Microtheory #1 P Microtheory #2 Q Microtheory #3 (P and Q) R Microtheory #4 R This slide shows a more complicated example of performing an inference within a microtheory. Imagine four microtheories, represented by the blue rectangles on the slide. In the three microtheories on top, there are three assertions. In the first microtheory, there is the assertion we re calling P. In the second microtheory, there is the assertion called Q. In the third microtheory, we have a rule that says that P and Q together imply R. Notice that in none of these three microtheories do we have a theory from which you can conclude R. But the fourth microtheory, below, since it has the three microtheories above it as genmt s, in effect inherits all of those assertions in one place. So in that microtheory you now have a theory which can see all of those three assertions and therefore soundly logically can deduce R. If you were to ask R in any of the three theories above, Cyc would not be able to prove it. But if you were to ask it in the theory below, you would be able to prove it. 5

Two Important Microtheories: and #$ #$BaseKB and #$EverythingPSC BaseKB #$BaseKB : always visible to all other Mts Mt1 Mt2 Mt3 Mt6 #$EverythingPSC can see Mt6, but Mt4 cannot. Mt4 EverythingPSC #$EverythingPSC : all Mts are visible to this Mt There are two microtheories which are worth pointing out as being interesting in cases like the one depicted on the previous slide. The #$BaseKB can thought of as the microtheory on top, from which everything inherits. So this microtheory is always visible to all other theories. It s meant to represent the universal theory vocabulary -- everything which is true, no matter what the theory. In fact, there are now approximately six microtheories above #$BaseKB (an example is #$UniversalVocabularyMt). But it is still true that all microtheories (except for these six) can see #$BaseKB (and, as a result, can see the all of the microtheories above #$BaseKB. The converse of #$BaseKB is a microtheory called #$EverythingPSC (PSC stands for Problem Solving Context.). This can be thought of as the bottom of the microtheory ontology, which inherits from every microtheory in the system. In general, this is not a sound thing to do. But for pragmatic reasons, in various applications it is often useful to have available a microtheory in which you can do an ask that will effectively ignore all of the other microtheories. #$EverythingPSC is a microtheory which has no logically consistent meaning but has a high practical utility just because it is able to see the assertions in every microtheory. 6

Placing a New Microtheory Mt#0 Mt#1 Mt#2 Mt#3 Mt#4 Mt#5 Mt#6 Mt#7 Mt#8 Mt#9 Mt#10 Mt#11 New Mt So, when you re designing an application, it is useful to introduce a microtheory into the ontology of microtheories and add some judicious #$ links to the theories that you want to use. You are, in effect, constructing the theory you want your application to reason in. This allows you to control which theories you use in inference and which theories you ignore, providing another mechanism for filtering out and pruning the space of possible proofs that you d make when you re performing inferences. 7

Inference can be Forward or Backward Forward Inference: Occurs at UPDATE time Causes new assertions to be added throughout the KB Backward Inference: Occurs at QUERY time Creates conditional proofs to be proven by existing facts = New assertion New assertion = Conditional proof Query Inference in Cyc is not limited to either forward or backward inference. We support both. Let me describe what we mean by forward inference and backward inference. Forward inference can be considered eagerly concluding additional assertions as soon as new assertions are added to the system. So forward inference occurs at update time to the Knowledge Base. In effect, it causes more updates to the Knowledge Base which then cause more updates, until eventually it ends the system by allowing operations to complete normally. So, forward inference is eagerly concluding from the assertions towards new assertions that you may or may not ever want to use in inference. The opposite of forward inference is backward inference. Backward inference occurs at query time and starts from particular queries that you want to ask. It attempts to prove mechanisms for how the original query would be true in terms of something else and hopefully you can chain these conditional proofs back until you eventually hit something which already is true in your knowledge base and stop the backward search. 8

Forward Inference: Strengths and Weaknesses Forward Inference: At assert time, eagerly attempt to provide a deductive chain between what you re asking and what is already known. + - larger target for your backward inference to eventually hit a lot of work at update time wasted effort in making new conclusions Both forward and backward inference can be thought of as an attempt to provide a deductive chain between what you re trying to ask in your query and what you have already known in your assertions. So, you want to find a connection between these two? They can be thought of as just two different approaches to doing inference. One is do it eagerly at assert time and one is do it lazily at query time. There are strengths and weaknesses to both. The strength of forward inference is that it provides a larger target for your backward inference to eventually hit. But the weakness is that you have to do a lot of work at update time. So if you have a lot of forward inference, the amount of work you do at update time could be quite large -- it could get larger and larger and larger as the knowledge base grows, so that it could eventually reach a point where there is so much to do at update time that you can t keep up with the updates. There s a limit to how much you can do with strictly forward inference in Cyc, because the space of potential things you can conclude is truly large and it s often far larger than the space of things that you ever want to actually ask the system. 9

Limitation of Forward Inference There is a certain size of knowledge base beyond which the space of conclusions you get in a forward fashion is so large that it just becomes unwieldy. New assertion Fan-out of new conclusions/ assertions Assertions which will never be used In a system with exclusively forward inference, you would have a lot of wasted space spent on concluding things that you aren t ever going to ask about, which in the diagram on the slide is like the two triangles at the bottom which indicate things you ve bothered to conclude but are never going to bother to ask about. Systems that have exclusively forward inference are fairly common in other knowledge representation systems. You can think of active databases with triggers as being ones that are exclusively forward. There are other well-known representation systems in the AI community: the RETE match is an exclusively forward-matching strategy. Magic Sets Transformation in the AI literature talks about how to encode backward inference in an exclusively forward system. So, there are many systems out there that are exclusively forward, and the limitation of them is that there is a certain size of knowledge base beyond which the space of conclusions you get in a forward fashion is so large that it just becomes unwieldy. 10

Limitation to Backward Inference You can have enormous fan-out in the space of proofs which you are trying to prove which have no hope of ever targeting anything that is stated in your system. Proofs which will never be proven Fan-out of conditional proofs Query Backward inference is another common strategy which is often exclusively used in other systems. In backward inference you don t try to remember anything beyond what is stated to the system and you re-derive things when asked at query time. Exclusively backward systems are those like Prolog, where the set of rules and facts are stated to the system ahead of time and proofs are done exclusively at query time, in a backwards fashion; and if you want to re-prove it, you have to re-run the proof again. The downside of an exclusively backward system is the flip-side of that of the exclusively forward system. You can have enormous fan-out in the space of proofs which you are trying to prove which are never going to bottom-out at anything you know about. In this diagram, that is equivalent to the triangles on the top, which represent queries fanning out from the query that you asked, that have no hope of ever targeting anything that is stated in your system. 11

Cyc Supports Both Forward and Backward Inference New assertion Query The benefit of having a system which supports both forward and backward inference is that with a judicious amount of forward inference you can increase the target of knowledge that is already represented in the system so that you have a larger target for your backward inference to hit. In the diagram on this slide, that is represented by the two approaches judiciously meeting in the middle. So, you can save all of the wasted space in the triangles by using a judicious amount of forward inference to expand the target area for your backward inference to hit. 12

A Subset of the KB is Marked Forward Cyc supports both forward and backward inference, and this is the way it is used: every assertion in the system is labeled as being either a forward assertion or not. You can think of all of the forward assertions in the knowledge base as being a subset of the knowledge base that is labeled forward, and amongst all of the forward assertions, whenever a new assertion comes in, forward inference triggers and runs exhaustively amongst just that set. By judiciously choosing a subset of the knowledge base on which it is worthwhile to perform this forward inference, we can have a good mixture of the benefits of both forward and backward inference without having to suffer through the weaknesses of having only one or the other. Just to give you an idea of what is labeled forward in the system, effectively all GAFs in the system are labeled forward and a tiny percentage (probably around 5 percent or less) of the rules in the system are labeled forward. The kind of rules that are labeled forward are typically those which are either extremely application-specific or constraints of some kind. The applicationspecific rules are in some focused microtheory so that the application knows that it wants these conclusions done because it is going to target exactly the results of those conclusions. Things like arities and #$argtype constraints (and some classification rules that conclude things are instances of other things) are worth doing in a forward fashion -- especially those things that have to do with canonicalization and well-formedness checking; these are things where you don t want to do deep inference at assert time to check those things, so it s good to have those things computed in a forward fashion so that you can have simpler queries in the system to check them. 13

Summary Inference Uses Mts for Consistency Mts Inherit from More General Mts Using #$ Inference is performed Within Mts Two Important Microtheories: #$BaseKB and #$EverythingPSC Inference can be Forward or Backward A Subset of the KB is Marked Forward This concludes the tutorial on Inference in Cyc. 14