74 419 Artificial Intelligence Knowledge Representation Russell and

  • Slides: 28
Download presentation
74. 419 Artificial Intelligence Knowledge Representation Russell and Norvig, Ch. 8

74. 419 Artificial Intelligence Knowledge Representation Russell and Norvig, Ch. 8

Outline n n n n Ontological engineering Categories and objects Actions, situations and events

Outline n n n n Ontological engineering Categories and objects Actions, situations and events Mental events and mental objects Reasoning systems for categories Reasoning with default information Truth maintenance systems

Ontological engineering n How to create more general and flexible representations. n n n

Ontological engineering n How to create more general and flexible representations. n n n Define general framework of concepts n n Concepts like actions, time, physical object and beliefs Operates on a bigger scale than K. E. Upper ontology Limitations of logic representation n Red, green and yellow tomatoes: exceptions and uncertainty

The upper ontology of the world

The upper ontology of the world

General-purpose Ontologies n A general-purpose ontology should be applicable in more or less any

General-purpose Ontologies n A general-purpose ontology should be applicable in more or less any special-purpose domain. n n In any sufficiently demanding domain different areas of knowledge need to be unified. n n Add domain-specific axioms Reasoning and problem solving could involve several areas simultaneously What do we need to express? Categories, Measures, Composite objects, Time, Space, Change, Events, Processes, Physical Objects, Substances, Mental Objects, Beliefs

Categories and objects n KR requires the organization of objects into categories n n

Categories and objects n KR requires the organization of objects into categories n n n Categories play a role in predictions about objects n n Based on perceived properties Categories can be represented in two ways by FOL n n n Interaction at the level of the object Reasoning at the level of categories Predicates: apple(x) Reification of categories into objects: apples Category = set of its members

Category organization n Relation = inheritance: n n All instance of food are edible,

Category organization n Relation = inheritance: n n All instance of food are edible, fruit is a subclass of food and apples is a subclass of fruit then an apple is edible. Defines a taxonomy

FOL and categories n An object is a member of a category n BB

FOL and categories n An object is a member of a category n BB 12 Basketballs Member-of(BB 12, Basketballs) n A category is a subclass of another category n Basketballs Balls Subset-of(Basketballs, Balls) n All members of a category have some properties n x x Basketballs Round(x) n All members of a category can be recognized by some properties n x (Orange(x) Round(x) Diameter(x)=9. 5 in x Balls x Basket. Balls

Relations between categories n Two or more categories are disjoint if they have no

Relations between categories n Two or more categories are disjoint if they have no members in common: n Disjoint(s) ( c 1, c 2 c 1 s c 2 s c 1 ¹ c 2 Intersection(c 1, c 2) = ) n n Example; Disjoint({animals, vegetables}) A set of categories s constitutes an exhaustive decomposition of a category c if all members of the set c are covered by categories in s: n E. D. (s, c) ( i i c c 2 s i c 2) n Example: Exhaustive. Decomposition ({Americans, Canadian, Mexicans}, North. Americans)

Relations between categories n A partition is a disjoint exhaustive decomposition: n n Partition(s,

Relations between categories n A partition is a disjoint exhaustive decomposition: n n Partition(s, c) Disjoint(s) E. D. (s, c) Example: Partition({Males, Females}, Persons). n Is ({Americans, Canadian, Mexicans}, North. Americans) a partition? n Categories can be defined by providing necessary and sufficient conditions for membership n x Bachelor(x) Male(x) Adult(x) Unmarried(x)

Natural kinds n n Many categories have no clear-cut definitions, e. g. chair, bush,

Natural kinds n n Many categories have no clear-cut definitions, e. g. chair, bush, book. natural kinds Tomatoes: sometimes green, red, yellow, black. Mostly round. n n We can write down useful facts about categories without providing exact definitions. Prototypes category Typical(Tomatoes) x, x Typical(Tomatoes) Red(x) Spherical(x). What about “bachelor”? Quine challenged the utility of the notion of strict definition. We might question a statement such as “the Pope is a bachelor”.

Physical composition n One object may be part of another: n Part. Of(Bucharest, Romania)

Physical composition n One object may be part of another: n Part. Of(Bucharest, Romania) n Part. Of(Romania, Eastern. Europe) n Part. Of(Eastern. Europe, Europe) The Part. Of predicate is transitive (and irreflexive), so we can infer that Part. Of(Bucharest, Europe) More generally: n x Part. Of(x, x) n x, y, z Part. Of(x, y) Part. Of(y, z) Part. Of(x, z)

Physical composition n Often characterized by structural relations among parts. n E. g. Biped(a)

Physical composition n Often characterized by structural relations among parts. n E. g. Biped(a)

Measurements n n Objects have height, mass, cost, . . Values that we assign

Measurements n n Objects have height, mass, cost, . . Values that we assign to these are measures Combine Unit functions with a number: Length(L 1) = Inches(1. 5) = Centimeters(3. 81). Conversion between units: x Centimeters(2. 54 x)=Inches(x). Some measures have no scale: Beauty, Difficulty, etc. n n Most important aspect of measures: is that they are orderable. Don't care about the actual numbers. (An apple can have deliciousness. 9 or. 1. )

Actions, events and situations • Reasoning about outcome of actions is central to KBagent.

Actions, events and situations • Reasoning about outcome of actions is central to KBagent. • How can we keep track of location in FOL? • Remember the multiple copies in PL. • Representing time by situations (states resulting from the execution of actions). • Situation calculus

Actions, events and situations n Situation calculus: n n Actions are logical terms Situations

Actions, events and situations n Situation calculus: n n Actions are logical terms Situations are logical terms consisting of n The initial situation s n All situations resulting from the action on s (=Result(a, s)) Fluents are functions and predicates that vary from one situation to the next. n E. g. Holding(G 1, S 0) Eternal predicates are also allowed n E. g. Gold(G 1)

Actions, events and situations n n n Results of action sequences are determined by

Actions, events and situations n n n Results of action sequences are determined by the individual actions. Projection task: an agent should be able to deduce the outcome of a sequence of actions. Planning task: find a sequence that achieves a desirable effect

Actions, events and situations

Actions, events and situations

Describing change n Simple Situation calculus requires two axioms to describe change: n Possibility

Describing change n Simple Situation calculus requires two axioms to describe change: n Possibility axiom: when is it possible to do the action At(Agent, x, s) Adjacent(x, y) Poss(Go(x, y), s) n Effect axiom: describe changes due to action Poss(Go(x, y), s) At(Agent, y, Result(Go(x, y), s)) n What stays the same? n n Frame problem: how to represent what stays the same? Frame axiom: describe non-changes due to actions At(o, x, s) (o Agent) Holding(o, s) At(o, x, Result(Go(y, z), s))

Representational frame problem n n If there are F fluents and A actions then

Representational frame problem n n If there are F fluents and A actions then we need AF frame axioms to describe other objects are stationary unless they are held. n We write down the effect of each actions Solution; describe how each fluent changes over time n Successor-state axiom: Poss(a, s) (At(Agent, y, Result(a, s)) (a = Go(x, y)) (At(Agent, y, s) a Go(y, z)) n n Note that next state is completely specified by current state. Each action effect is mentioned only once.

Other problems n How to deal with secondary (implicit) effects? n n n How

Other problems n How to deal with secondary (implicit) effects? n n n How to decide EFFICIENTLY whether fluents hold in the future? n n If the agent is carrying the gold and the agent moves then the gold moves too. Ramification problem Inferential frame problem. Extensions: n n Event calculus (when actions have a duration) Process categories

Mental events and objects n n n KB agents can have beliefs and deduce

Mental events and objects n n n KB agents can have beliefs and deduce new beliefs. "Epistemic Logic" - Reasoning with K and B. Problem: Referential Opaqueness What about knowledge about beliefs? What about knowledge about the inference process? n Requires a model of the mental objects in someone’s head and the processes that manipulate these objects. Relationships between agents and mental objects: believes, knows, wants, … n Believes(Lois, Flies(Superman)) with Flies(Superman) being a function … a candidate for a mental object (reification).

Reasoning systems for categories n How to organize and reason with categories? n Semantic

Reasoning systems for categories n How to organize and reason with categories? n Semantic networks n n n Visualize knowledge-base Efficient algorithms for category membership inference Description logics n n Formal language for constructing and combining category definitions Efficient algorithms to decide subset and superset relationships between categories.

Semantic network example

Semantic network example

Semantic Networks n Many variations n n Allows for inheritance reasoning n n Sister.

Semantic Networks n Many variations n n Allows for inheritance reasoning n n Sister. Of vs. Has. Sister Drawbacks n n n Female persons inherit all properties from person. Inference of inverse links n n All represent individual objects, categories of objects and relationships among objects. Links can only assert binary relations Can be resolved by reification of the proposition as an event Representation of default values n Enforced by the inheritance mechanism.

Description logics n Are designed to describe definitions and properties about categories n n

Description logics n Are designed to describe definitions and properties about categories n n A formalization of semantic networks Principal inference task is n n n Subsumption: checking if one category is the subset of another by comparing their definitions Classification: checking whether an object belongs to a category. Consistency: checking whether the category membership criteria are logically satisfiable.

Reasoning with Default Information n “The following courses are offered: CS 101, CS 102,

Reasoning with Default Information n “The following courses are offered: CS 101, CS 102, CS 106, EE 101” n n Four (db) § Assume that this information is complete (not asserted ground atomic sentences are false) = CLOSED WORLD ASSUMPTION § Assume that distinct names refer to distinct objects = UNIQUE NAMES ASSUMPTION Between one and infinity (logic) § Does not make these assumptions § Requires completion.

Truth maintenance systems n Many of the inferences have default status rather than being

Truth maintenance systems n Many of the inferences have default status rather than being absolutely certain n n Inferred facts can be wrong and need to be retracted = BELIEF REVISION. Assume KB contains sentence P and we want to execute TELL(KB, P) n n n To avoid contradiction: RETRACT(KB, P) But what about sentences inferred from P? Truth maintenance systems are designed to handle these complications.