Truth Maintenance Systems. Outline What is a TMS? Basic TMS model Justification-based TMS.

Slides:



Advertisements
Similar presentations
CS4026 Formal Models of Computation Part II The Logic Model Lecture 6 – Arithmetic, fail and the cut.
Advertisements

Problems and Their Classes
FT228/4 Knowledge Based Decision Support Systems
Introduction to Truth Maintenance Systems A Truth Maintenance System (TMS) is a PS module responsible for: 1.Enforcing logical relations among beliefs.
Logic Programming Automated Reasoning in practice.
Markov Decision Process
CHAPTER 13 Inference Techniques. Reasoning in Artificial Intelligence n Knowledge must be processed (reasoned with) n Computer program accesses knowledge.
1 Rule Based Systems Introduction to Production System Architecture.
Justification-based TMSs (JTMS) JTMS utilizes 3 types of nodes, where each node is associated with an assertion: 1.Premises. Their justifications (provided.
Iterative Deepening A* & Constraint Satisfaction Problems Lecture Module 6.
Situation Calculus for Action Descriptions We talked about STRIPS representations for actions. Another common representation is called the Situation Calculus.
Uncertainty in Expert Systems (Certainty Factors).
Assumption-Based Truth Maintenance Systems Meir Kalech.
Default Reasoning the problem: in FOL, universally-quantified rules cannot have exceptions –  x bird(x)  can_fly(x) –bird(tweety) –bird(opus)  can_fly(opus)
Methods of Proof Chapter 7, second half.. Proof methods Proof methods divide into (roughly) two kinds: Application of inference rules: Legitimate (sound)
Logic Use mathematical deduction to derive new knowledge.
1 DCP 1172 Introduction to Artificial Intelligence Chang-Sheng Chen Topics Covered: Introduction to Nonmonotonic Logic.
Knowledge Representation CPSC 386 Artificial Intelligence Ellen Walker Hiram College.
Knowledge Representation
Dynamic Bayesian Networks (DBNs)
Intelligent systems Lecture 6 Rules, Semantic nets.
1 CSIS 7102 Spring 2004 Lecture 8: Recovery (overview) Dr. King-Ip Lin.
Best-First Search: Agendas
Knowledge Representation and Reasoning University "Politehnica" of Bucharest Department of Computer Science Fall 2010 Adina Magda Florea
Rule Based Systems Michael J. Watts
Constraint Logic Programming Ryan Kinworthy. Overview Introduction Logic Programming LP as a constraint programming language Constraint Logic Programming.
CONTROL STATEMENTS Lakhbir Singh(Lect.IT) S.R.S.G.P.C.G. Ludhiana.
1 Backward-Chaining Rule-Based Systems Elnaz Nouri December 2007.
C OURSE : D ISCRETE STRUCTURE CODE : ICS 252 Lecturer: Shamiel Hashim 1 lecturer:Shamiel Hashim second semester Prepared by: amani Omer.
Hypothesis Testing A hypothesis is a conjecture about a population. Typically, these hypotheses will be stated in terms of a parameter such as  (mean)
Katanosh Morovat.   This concept is a formal approach for identifying the rules that encapsulate the structure, constraint, and control of the operation.
Notes for Chapter 12 Logic Programming The AI War Basic Concepts of Logic Programming Prolog Review questions.
1 TMS and ATMS Philippe Dague and Yuhong YAN NRC-IIT
Copyright © Cengage Learning. All rights reserved. CHAPTER 4 ELEMENTARY NUMBER THEORY AND METHODS OF PROOF ELEMENTARY NUMBER THEORY AND METHODS OF PROOF.
Putting the JTMS to Work. Outline Interface between a JTMS and a rule engine Chronological Search versus Dependency Directed Search: A Playoff Using a.
CSC201 Analysis and Design of Algorithms Asst.Proof.Dr.Surasak Mungsing Oct-151 Lecture 2: Definition of algorithm and Mathematical.
1 Sections 1.5 & 3.1 Methods of Proof / Proof Strategy.
 Architecture and Description Of Module Architecture and Description Of Module  KNOWLEDGE BASE KNOWLEDGE BASE  PRODUCTION RULES PRODUCTION RULES 
1 N -Queens via Relaxation Labeling Ilana Koreh ( ) Luba Rashkovsky ( )
Pattern-directed inference systems
CP Summer School Modelling for Constraint Programming Barbara Smith 2. Implied Constraints, Optimization, Dominance Rules.
Soft Computing Lecture 19 Part 2 Hybrid Intelligent Systems.
COM362 Knowledge Engineering Inferencing 1 Inferencing: Forward and Backward Chaining John MacIntyre
Ch. 13 Ch. 131 jcmt CSE 3302 Programming Languages CSE3302 Programming Languages (notes?) Dr. Carter Tiernan.
Basic Problem Solving Search strategy  Problem can be solved by searching for a solution. An attempt is to transform initial state of a problem into some.
Some Thoughts to Consider 8 How difficult is it to get a group of people, or a group of companies, or a group of nations to agree on a particular ontology?
Method of proofs.  Consider the statements: “Humans have two eyes”  It implies the “universal quantification”  If a is a Human then a has two eyes.
Artificial Intelligence
Lecture 7 Page 1 CS 111 Summer 2013 Dynamic Domain Allocation A concept covered in a previous lecture We’ll just review it here Domains are regions of.
Expert System Seyed Hashem Davarpanah University of Science and Culture.
Assumption-based Truth Maintenance Systems: Motivation n Problem solvers need to explore multiple contexts at the same time, instead of a single one (the.
Knowledge Representation and Reasoning University "Politehnica" of Bucharest Department of Computer Science Fall 2011 Adina Magda Florea Master of Science.
Explaining and Controlling Reasoning Dr Nicholas Gibbins 32/3077.
Conditional Statements A conditional statement lets us choose which statement will be executed next Conditional statements give us the power to make basic.
Logic-based TMS Main idea: Represent negation explicitly to permit the IE to express any logical constraint among nodes. Recall: JTMS and ATMS do not allow.
Logical Agents. Outline Knowledge-based agents Logic in general - models and entailment Propositional (Boolean) logic Equivalence, validity, satisfiability.
Automatic Test Generation
Lecture 7: Constrained Conditional Models
Limitations of First-Order Logic
Chapter 14: System Protection
Multiway Search Trees Data may not fit into main memory
Unit 5: Hypothesis Testing
Artificial Intelligence Chapter 17 Knowledge-Based Systems
Artificial Intelligence Chapter 17 Knowledge-Based Systems
Knowledge Representation
Knowledge Representation
CS2136: Paradigms of Computation
Artificial Intelligence Chapter 17 Knowledge-Based Systems
Logical reasoning systems
Logical reasoning systems
Presentation transcript:

Truth Maintenance Systems

Outline What is a TMS? Basic TMS model Justification-based TMS

What is a TMS? A useful problem-solver module Inference Engine TMS Justifications, assumptions Beliefs, contradictions

How using a TMS helps Identify responsibility for decisions Recover from inconsistencies Maintain and update cache of beliefs Guide backtracking Support default reasoning

Advantages of a TMS Meets the desiderata Frees designer to work on domain issues Avoids reinventing the wheel Avoids reinventing the wheel badly Change underlying implementation as needed

Desiderata 1 Identify Responsibility Providing answers is not enough –Cut the patient’s heart out –That design won’t work Explanations are needed –Radical bypass surgery is required because... –No material will stand the projected stresses.

Desiderata 2 Recover from Inconsistencies Data can be wrong –The patient’s temperature is 986 degrees. Constraints can be impossible –Our new computer should »Run off batteries for 8 hours »Fit in a shirt pocket »Run faster than a Cray MP-X

Desiderata 3 Maintain and Update Cache All AI problem solvers search Changing assumptions requires updating consequences of beliefs Rederivation can be expensive –Large, complex calculations (e.g., computational fluid dynamics) –Physical experiments

Desiderata 4 Guide Backtracking Avoid rediscovering contradictions Avoid throwing away useful results

Example Choose in sequence: –A or B –C or D –E or F Given: A and C cannot hold together Given: B and E cannot hold together Assume we want all consistent solutions Assume that we cannot test until every choice has been made

Example Search Space (global view) AB CDC D E F E F E F F E {B,D,F} {B,D,E} {B,C,F} {B,C,E} {A,D,F} {A,D,E} {A,C,F} {A,C,E}

Chronological Backtracking Often wastes computation Example: Suppose D and F together cause lots of work. Popping context loses this work AB D D F F {B,D,F} {A,D,F}

Chronological Backtracking Rediscovers Contradictions Example: Useless to try B and E together more than once B C D E E {B,D,E} {B,C,E}

Dependencies can guide backtracking A C E {A,C,E} Bad tactic Better tactic

Desiderata 5 Support default reasoning Simple defaults Bird(Tweety) implies Can-Fly(Tweety) unless Broiled(Tweety) Closed-world assumptions The design can use either NMOS or CMOS The only possible bugs are in the fuel pump or the carburetor

How does the TMS do it? Justifications express relationships between beliefs –Justifications for a belief provide explanations, ability to pinpoint culprits Belief in an assertion expressed via its label –P being in database no longer is the same as believing P –Assertions and justifications serve as cache –Rules/other computations need only be executed once Justifications can be used to record inconsistencies –Dependency-directed backtracking Defaults can be represented via explicit assumptions

Justification-based TMS One element of a TMS design space –JTMS = justification-based TMS –LTMS = logic-based TMS –ATMS = assumption-based TMS Simplest Good model for most “embedded” dependency systems Can quickly focus on how to use it

JTMS nodes Each belief is represented by a TMS node Typically, TMS nodes are associated 1:1 with assertions The label of a node represents the belief status of the corresponding problem solver fact. The relationships between beliefs are expressed by the justifications it participates in.

JTMS Labels Every assertion is either IN or OUT –IN = “believed” –OUT = “not believed” Warning: IN does not mean TRUE Contradiction (not P) true Don’t know P true P in P out (not P) in (not P) out

JTMS Justifications Must be Horn clauses Nomenclature –Consequent is the node whose belief is supported by a the justification –Antecedents are the beliefs which, when IN, support the consequent –Informant records information from external systems C AB

Dependency Networks Each node has: –Justifications = the justifications which have it as the consequent –Consequences = justifications which use it as an antecedent –Support = a single justification taken as the reason for it being IN, if any. N

Special states of JTMS nodes Assumptions are IN if enabled. Premises are always IN. Contradictions should never hold. Assumption Premise Contradiction

Enforcing constraints between beliefs A node is IN when either: 1It is an enabled assumption or premise 2There exists a justification for it whose antecedents are all IN Assumptions underlying a belief can be found by backchaining through supporting justifications JTMS operations must preserve well-founded support.

A TMS operates incrementally At any time, the inference engine can add –new justifications –delcare a statement to be a premise or contradiction (permanently) –Assume a statement In all cases, 1Set the directly affected node, if any. 2Propagate the consequences ( Propagate-inness)

Propagation of Belief Example Initial state of dependency network A C B J3 J1 J2 E D F

Example of Propagate-inness Suppose inference engine enables A: A C B J3 J1 J2 E D F

Example of Propagate-inness D becomes believed via J1: A C B J3 J1 J2 E D F

Example of Propagate-inness F becomes believed via J3: A C B J3 J1 J2 E D F

Retracting information Premises, contradictions cannot be retracted Justifications cannot be retracted –They comprise the problem solver’s cache –Rules need only be run once for each set of matching data Assumptions can be retracted Algorithm: 1Make assumption OUT 2Retract all nodes which rely on it ( Propagate-outness ) 3Find alternate support for newly OUT nodes.

Retraction Example Initial state: A C B J3 J1 J2 E D F

Retraction Example, cont Retract C: A C B J3 J1 J2 E D F

Retraction Example, cont. E becomes out: A C B J3 J1 J2 E D F

Retraction Example, cont. F becomes out: A C B J3 J1 J2 E D F

Retract, then Resupport Initial state: A C B J3 J1 J2 E D F J4

Retract A: A C B J3 J1 J2 E D F J4

Retract D via J1: A C B J3 J1 J2 E D F J4

Resupport D via J4: A C B J3 J1 J2 E D F J4 Loss of well-founded support!

Whither Context No explicit representation of context Context implicit in union of premises and enabled assumptions Advantages –Context is often very large –Context often changes slowly Drawbacks –Hard to compare two contexts –Context switching can be expensive

Non-monotonicity Attempt to capture default reasoning Divide antecedents into in-list and out-list. A node is IN if either –it is an enabled assumption or premise –at least one justification has all in-list nodes IN and all out-list nodes OUT Can-Fly Tweety Bird Tweety Broiled Tweety

Problems with out-lists Beliefs become order-sensitive Odd loops don’t converge