knowledge representation
play

Knowledge Representation Philipp Koehn 23 March 2020 Philipp Koehn - PowerPoint PPT Presentation

Knowledge Representation Philipp Koehn 23 March 2020 Philipp Koehn Artificial Intelligence: Knowledge Representation 23 March 2020 Outline 1 Representation systems Categories and objects Frames Events and scripts Practical


  1. Knowledge Representation Philipp Koehn 23 March 2020 Philipp Koehn Artificial Intelligence: Knowledge Representation 23 March 2020

  2. Outline 1 ● Representation systems ● Categories and objects ● Frames ● Events and scripts ● Practical examples – Cyc – Semantic web Philipp Koehn Artificial Intelligence: Knowledge Representation 23 March 2020

  3. 2 representation systems Philipp Koehn Artificial Intelligence: Knowledge Representation 23 March 2020

  4. Knowledge 3 ● Goal: common sense reasoning ● Need to represent knowledge about the world ● Types of knowledge – objects – events – procedures – relations – mental states – meta knowledge Philipp Koehn Artificial Intelligence: Knowledge Representation 23 March 2020

  5. Properties of Representation Systems 4 ● Representational adequacy – ability to represent the required knowledge ● Inferential adequacy – ability to manipulate knowledge ⇒ produce new knowledge ● Inferential efficiency – ability to direct inference methods into productive directions – ability to respond with limited resources (time, storage) ● Acquisitional efficiency – ability to acquire new knowledge – ideally, automatically Philipp Koehn Artificial Intelligence: Knowledge Representation 23 March 2020

  6. 5 categories and objects Philipp Koehn Artificial Intelligence: Knowledge Representation 23 March 2020

  7. Categories 6 ● Specific objects , e.g., my basketball BB 9 ● General category , e.g., Basketballs – categories as relationships: Basketballs(BB 9 ) – reification of predicate: Basketballs → use in other predicates Member(BB 9 , Basketballs) → abbreviated to BB 9 ∈ Basketballs ● Subcategories – for instance Subset(Basketballs, Ball) – abbreviated as Basketballs ⊂ Ball ● Taxomony : System of categories and subcategories Philipp Koehn Artificial Intelligence: Knowledge Representation 23 March 2020

  8. Basic Relations for Categories 7 ● Disjoint( { Animals, Vegetables } ) ● ExhaustiveDecomposition( { Americans, Canadians, Mexicans } , NorthAmericans) ● Partition( { Males, Females } , Animals) ● These properties can be defined with first order logic Philipp Koehn Artificial Intelligence: Knowledge Representation 23 March 2020

  9. Physical Composition 8 ● Basic relations such as PartOf – PartOf(Bucharest, Romania) – PartOf(Romania, EasternEurope) – PartOf(EasternEurope, Europe) – PartOf(Europe, Earth) ● Can be used to define composite objects Biped ( a ) ⇒ ∃ l 1 ,l 2 ,b Leg ( l 1 ) ∧ Leg ( l 2 ) ∧ Body ( b ) ∧ PartOf ( l 1 ,a ) ∧ PartOf ( l 2 ,a ) ∧ PartOf ( b,a ) ∧ Attached ( l 1 ,b ) ∧ Attached ( l 2 ,b ) ∧ l 1 ≠ l 2 ∧ [ ∀ l 3 Leg ( l 3 ) ∧ PartOf ( l 3 ,a ) ⇒ ( l 3 = l 1 ∨ l 3 = l 2 )] Philipp Koehn Artificial Intelligence: Knowledge Representation 23 March 2020

  10. Prototypes 9 ● Recall: natural categories are hard to define ● There is no set of features that applies to all instances ● But: prototypes have such properties ● Select typical members of categories ∃ b ∈ Typical(Bird) ⇒ CanFly ( b ) Philipp Koehn Artificial Intelligence: Knowledge Representation 23 March 2020

  11. Hierarchies and Inheritance 10 ● Hierarchy (or taxonomy) is a natural way to structure categories ● Importance of abstraction in remembering and reasoning – groups of things share properties in the world – we do not have to repeat definitions ● Example: saying ”elephants are mammals” is sufficient to know a lot about them ● Inheritance is the result of reasoning over paths in a hierarchy: ”does a inherit from b?” is the same as ”is b in the transitive closure of :IS-A (or subsumption) from a?” Philipp Koehn Artificial Intelligence: Knowledge Representation 23 March 2020

  12. Graphical Representation of Inheritance 11 ● IS relations: Clyde ↓ Elephant (category) ↓ Gray (property) ● Clyde is an Elephant, Elephant is Gray ● Reasoning with paths and conclusions they represent (”Transitive relations”) ● Transitive closure Clyde is Elephant, Elephant is Gray ⇒ Clyde is Gray Philipp Koehn Artificial Intelligence: Knowledge Representation 23 March 2020

  13. Strict Inheritance 12 ● Conclusions produced by complete transitive closure on all paths (any traversal procedure will do) ● All reachable nodes are implied Philipp Koehn Artificial Intelligence: Knowledge Representation 23 March 2020

  14. Lattice Structure with Strict Inheritance 13 ● Multiple AND ( ∧ ) parents (= multiple inheritance) ● Trees: all conclusions you can reach by any paths are supported Philipp Koehn Artificial Intelligence: Knowledge Representation 23 March 2020

  15. Defeasible Inheritance 14 ● Inherited properties do not always hold, and can be overridden (defeated) ● Conclusions determined by searching upward from focus node and selecting first version of property you want Philipp Koehn Artificial Intelligence: Knowledge Representation 23 March 2020

  16. Shortest Path Heuristic 15 ● Links have polarity (positive or negative) ● Use shortest path heuristic to determine which polarity counts ● As a result, not all paths count in generating conclusions ● Some are ”preempted” but some are ”admissible” ● Think of paths as arguments in support of conclusions Philipp Koehn Artificial Intelligence: Knowledge Representation 23 March 2020

  17. Problem: Ambiguity 16 ● There may be no single shortest path ● Conclusion is changed by adding additional categories, edges ⇒ Explicit handling of ambiguous reasoning chains – distinguish between ambiguous and unambiguous chains – preference for some extensions over others (default logic) – credulous vs. skeptical reasoning Philipp Koehn Artificial Intelligence: Knowledge Representation 23 March 2020

  18. Ontologies 17 ● Organize knowledge about everything in a single taxonomy Philipp Koehn Artificial Intelligence: Knowledge Representation 23 March 2020

  19. 18 frames Philipp Koehn Artificial Intelligence: Knowledge Representation 23 March 2020

  20. Simple Relational Knowledge 19 ● We often want represent a large number of facts that follow a simple pattern Planet Star system Radius Moons Mercury Sun 2440 km 0 Venus Sun 6052 km 0 Earth Sun 6371 km 1 Mars Sun 3389 km 2 Kepler-438b Kepler-438 7135 km ? ● Database table in relational database Philipp Koehn Artificial Intelligence: Knowledge Representation 23 March 2020

  21. Frames 20 ● A frame is a collection of attributes or slots and associated values that describe some real world entity ● Each frame represents – a class, or – an instance (an element of a class) Philipp Koehn Artificial Intelligence: Knowledge Representation 23 March 2020

  22. Frames: Example 21 Philipp Koehn Artificial Intelligence: Knowledge Representation 23 March 2020

  23. Knowledge Discovery 22 ● Information retrieval when facing a new situation – information is stored in frames with slots – some of the slots trigger actions, causing new situations ● Frames are templates – need to be filled-in in a situation – filling them causes the agent to undertake actions and retrieve other frames ● Frames are extensions of record datatype in databases ● Also very similar to object oriented processing Philipp Koehn Artificial Intelligence: Knowledge Representation 23 March 2020

  24. Flexibility in Frames 23 ● Slots in a frame can contain – information for choosing a frame in a situation – relationship between this and other frames – procedures to carry out after various slots filled – default information to use when input is missing – blank slots — left blank unless required for a task – other frames, which gives a hierarchy Philipp Koehn Artificial Intelligence: Knowledge Representation 23 March 2020

  25. Example: Frames Hierarchy 24 Philipp Koehn Artificial Intelligence: Knowledge Representation 23 March 2020

  26. 25 events Philipp Koehn Artificial Intelligence: Knowledge Representation 23 March 2020

  27. Events 26 ● So far, facts were treated as true independent of time ● Events: need to describe what is true, when something is happening ● For instance: Flying event – E ∈ Flyings – Flyer ( E,Shankar ) – Origin ( E,SanFrancisco ) – Destination ( E,Baltimore ) ● The event may or may not ongoing during a specific time t : Happens ( E,t ) ● In general, facts that are true only at specific time points are called fluents e.g., At ( Shankar,Baltimore ) Philipp Koehn Artificial Intelligence: Knowledge Representation 23 March 2020

  28. Predicates of Events 27 ● T ( f,t ) — Fluent f is true at time t ● Happens ( e,i ) — Event e happens over the time interval i ● Initiates ( e,f,t ) — Event e causes fluent f to start at time t ● Terminates ( e,f,t ) — Event e causes fluent f to end at time t ● Clipped ( e,f,i ) — Fluent f ceases to be true at some point during time interval i ● Restored ( e,f,i ) — Fluent f becomes true at some point during time interval i Philipp Koehn Artificial Intelligence: Knowledge Representation 23 March 2020

Recommend


More recommend