Artificial Intelligence Lecture 9

Similar documents
Proof Theory for Syntacticians

Objectives. Chapter 2: The Representation of Knowledge. Expert Systems: Principles and Programming, Fourth Edition

Compositional Semantics

AQUA: An Ontology-Driven Question Answering System

A Version Space Approach to Learning Context-free Grammars

Transfer Learning Action Models by Measuring the Similarity of Different Domains

Axiom 2013 Team Description Paper

Evolution of Collective Commitment during Teamwork

Module 12. Machine Learning. Version 2 CSE IIT, Kharagpur

Lecture 1: Basic Concepts of Machine Learning

Pre-Processing MRSes

Rule-based Expert Systems

Knowledge-Based - Systems

A R "! I,,, !~ii ii! A ow ' r.-ii ' i ' JA' V5, 9. MiN, ;

Intension, Attitude, and Tense Annotation in a High-Fidelity Semantic Representation

MYCIN. The MYCIN Task

Some Principles of Automated Natural Language Information Extraction

Rule Learning With Negation: Issues Regarding Effectiveness

The Enterprise Knowledge Portal: The Concept

THE ANTINOMY OF THE VARIABLE: A TARSKIAN RESOLUTION Bryan Pickel and Brian Rabern University of Edinburgh

CS 598 Natural Language Processing

Grammars & Parsing, Part 1:

Introduction to HPSG. Introduction. Historical Overview. The HPSG architecture. Signature. Linguistic Objects. Descriptions.

Specifying Logic Programs in Controlled Natural Language

An Experimental Comparison of Knowledge Representation Schemes

Visual CP Representation of Knowledge

Segmented Discourse Representation Theory. Dynamic Semantics with Discourse Structure

COMPUTATIONAL COMPLEXITY OF LEFT-ASSOCIATIVE GRAMMAR

ReinForest: Multi-Domain Dialogue Management Using Hierarchical Policies and Knowledge Ontology

Rule Learning with Negation: Issues Regarding Effectiveness

Foundations of Knowledge Representation in Cyc

An Interactive Intelligent Language Tutor Over The Internet

Laboratorio di Intelligenza Artificiale e Robotica

Syntax Parsing 1. Grammars and parsing 2. Top-down and bottom-up parsing 3. Chart parsers 4. Bottom-up chart parsing 5. The Earley Algorithm

OPTIMIZATINON OF TRAINING SETS FOR HEBBIAN-LEARNING- BASED CLASSIFIERS

Lecture 10: Reinforcement Learning

On the Polynomial Degree of Minterm-Cyclic Functions

Constraining X-Bar: Theta Theory

The 9 th International Scientific Conference elearning and software for Education Bucharest, April 25-26, / X

Developing a TT-MCTAG for German with an RCG-based Parser

Radius STEM Readiness TM

Machine Learning from Garden Path Sentences: The Application of Computational Linguistics

11/29/2010. Statistical Parsing. Statistical Parsing. Simple PCFG for ATIS English. Syntactic Disambiguation

A Neural Network GUI Tested on Text-To-Phoneme Mapping

The Conversational User Interface

Computerized Adaptive Psychological Testing A Personalisation Perspective

RANKING AND UNRANKING LEFT SZILARD LANGUAGES. Erkki Mäkinen DEPARTMENT OF COMPUTER SCIENCE UNIVERSITY OF TAMPERE REPORT A ER E P S I M S

Exploration. CS : Deep Reinforcement Learning Sergey Levine

Knowledge based expert systems D H A N A N J A Y K A L B A N D E

A Genetic Irrational Belief System

Chapter 4: Valence & Agreement CSLI Publications

Chapter 2. Intelligent Agents. Outline. Agents and environments. Rationality. PEAS (Performance measure, Environment, Actuators, Sensors)

Language properties and Grammar of Parallel and Series Parallel Languages

UC Merced Proceedings of the Annual Meeting of the Cognitive Science Society

Causal Link Semantics for Narrative Planning Using Numeric Fluents

Chapter 2 Rule Learning in a Nutshell

Case government vs Case agreement: modelling Modern Greek case attraction phenomena in LFG

Chinese Language Parsing with Maximum-Entropy-Inspired Parser

Lecture 2: Quantifiers and Approximation

Evolution of Symbolisation in Chimpanzees and Neural Nets

Degree Qualification Profiles Intellectual Skills

Discriminative Learning of Beam-Search Heuristics for Planning

University of Groningen. Systemen, planning, netwerken Bosman, Aart

Penn State University - University Park MATH 140 Instructor Syllabus, Calculus with Analytic Geometry I Fall 2010

An Approach to Polarity Sensitivity and Negative Concord by Lexical Underspecification

SARDNET: A Self-Organizing Feature Map for Sequences

Neuro-Symbolic Approaches for Knowledge Representation in Expert Systems

Timeline. Recommendations

Cooperative evolutive concept learning: an empirical study

Notes on The Sciences of the Artificial Adapted from a shorter document written for course (Deciding What to Design) 1

Action Models and their Induction

Shared Mental Models

Evolutive Neural Net Fuzzy Filtering: Basic Description

Lip reading: Japanese vowel recognition by tracking temporal changes of lip shape

An Investigation into Team-Based Planning

How do adults reason about their opponent? Typologies of players in a turn-taking game

Informatics 2A: Language Complexity and the. Inf2A: Chomsky Hierarchy

EXPERT SYSTEMS IN PRODUCTION MANAGEMENT. Daniel E. O'LEARY School of Business University of Southern California Los Angeles, California

Proposal of Pattern Recognition as a necessary and sufficient principle to Cognitive Science

Self Study Report Computer Science

Version Space. Term 2012/2013 LSI - FIB. Javier Béjar cbea (LSI - FIB) Version Space Term 2012/ / 18

A General Class of Noncontext Free Grammars Generating Context Free Languages

Artificial Neural Networks written examination

Part III: Semantics. Notes on Natural Language Processing. Chia-Ping Chen

TEACHING AND EXAMINATION REGULATIONS PART B: programme-specific section MASTER S PROGRAMME IN LOGIC

Inleiding Taalkunde. Docent: Paola Monachesi. Blok 4, 2001/ Syntax 2. 2 Phrases and constituent structure 2. 3 A minigrammar of Italian 3

The Strong Minimalist Thesis and Bounded Optimality

Module Title: Managing and Leading Change. Lesson 4 THE SIX SIGMA

AP Calculus AB. Nevada Academic Standards that are assessable at the local level only.

A Minimalist Approach to Code-Switching. In the field of linguistics, the topic of bilingualism is a broad one. There are many

SEMAFOR: Frame Argument Resolution with Log-Linear Models

Semantic Inference at the Lexical-Syntactic Level

Intra-talker Variation: Audience Design Factors Affecting Lexical Selections

arxiv: v1 [math.at] 10 Jan 2016

Reinforcement Learning by Comparing Immediate Reward

16 WEEKS STUDY PLAN FOR BS(IT)2 nd Semester

The Interface between Phrasal and Functional Constraints

Applications of memory-based natural language processing

CS Machine Learning

RUDOLF CARNAP ON SEMANTICAL SYSTEMS AND W.V.O. QUINE S PRAGMATIST CRITIQUE

Transcription:

Artificial Intelligence Lecture 9

Lecture plan Prolog Probabilities AI in general (ch. 1) Search based AI (ch. 4) search, games, planning, optimization Agents (ch. 8) applied AI techniques in robots, software agents,... Knowledge representation (ch. 2) semantic networks, frames, logic, resolution Expert systems (ch. 3) forward/backward chaining, uncertainty, baysian networks Natural language processing (ch. 5) Machine learning (ch. 7) version spaces, decision trees, classification, neural networks 2

Conjunctive Normal Form (CNF) Prolog Probabilities 3

Resolution Prolog Probabilities Requires all expression in CNF Only one rule required for all reasoning A 1... A i C A i+1... A N B 1... B j C B j+1... B M A 1... A N B 1... B M Example: X Y Y Z X Z 4

Resolution in propositional logic Prolog Probabilities To prove that P holds with respect to axioms F 1. Convert all propositions in F into CNF 2. Negate P and convert into CNF 3. Repeat until a contradiction is found a) Select two clauses b) Resolve these two clauses c) If resolvent is empty, a contradiction have been found Propositional resolution is sound Propositional resolution is complete The algorithm will always terminate, and will find a contraduction if there is one Sooner or later, no more new clauses can be added 5

Examples Prolog Probabilities 1.Given X (Y ( X Z) and Y, prove X 2. Given A (B C) and C A, prove A B A 1... A i C A i+1... A N B 1... B j C B j+1... B M A 1... A N B 1... B M 6

Limitations of propositional logic Prolog Probabilities Can only express statements about specific propositional variables Finite number of propositional variables How do we express a statements like: All birds can fly, Tom is a bird, therefore Tom can fly? 7

Predicate logic Prolog Probabilities More expressive logic Predicates Functions Quantifiers No complete inference mechanism Terms Constants and variables are terms f(t 1,..., t N ) is a term iff f is a function and t 1.., t N are terms Atomic sentence p(t 1,..., t N ) is an atomic sentence iff p is a predicate and t 1.., t N are terms 8

Predicate logic well formed formulas Prolog Probabilities 9

Quantifiers Prolog Probabilities Ground term / formula Scope of quantifiers Closed term / formula Quantification rules x : A is equivalent to x : A x : A is equivalent to x : A 10

Example: english to predicate logic Prolog Probabilities All purple mushrooms are poisonous. No purple mushrooms are poisonous. All mushrooms are purple or poisonous. All mushrooms are either purple or poisonous, but not both. There are exactly two purple mushrooms. All purple mushrooms except one are poisonous. 11

Semantics Prolog Probabilities 12

Semantics Prolog Probabilities 13

Predicate logic inference mechanism Prolog Probabilities Recall resolution To prove that P holds with respect to axioms F 1. Convert all propositions in F into CNF 2. Negate P and convert into CNF 3. Repeat until a contradiction is found a) Select two clauses b) Resolve these two clauses c) If resolvent is empty, a contradiction have been found Only new step is how to convert predicate logic formulas into CNF 14

Predicate logic CNF Prolog Probabilities 15

Predicate logic resolution Prolog Probabilities Recall resolution rule how can we match the two expressions for C? Does father(bill, bob) match father(x,y) Depends on how we substitute values for variables A 1... A i C A i+1... A N B 1... B j C B j+1... B M A 1... A N B 1... B M 16

Unification Prolog Probabilities Find most general substitution so that two formulas become syntactically equivalent The substitution algorithm for L1, L2 1. Set SUBST to nil 2. If L1 or L2 is a variable or a constant, then: 2.1 If L1 and L2 are identical, then return success. 2.2 If L1 is a variable then: 2.2.1 If L1 occurs in L2 return fail, 2.2.2 Otherwise set SUBST to {L2/L1} and return success. 2.3 Equivalent case if L2 is a variable. 2.4 Otheriwise FAIL. 3. If the initial predicate symbol of L1, L2 are not identical then FAIL. 4. If L1, L2 have different number of arguments then FAIL. 5. For i=1 to the artity of L1, do: 5.1 Unify i:th argument of L1 with i:th argument of L2 5.2 If unification fails then FAIL. 5.3 Apply subst. to rest of L1, L2 and concatenate with SUBST. 6. Success 17

Predicate logic example Prolog Probabilities Jack owns a dog Every dog owner is an animal lover No animal lover kills an animal Either Jack or Curiosity killed the cat, who is named Tuna. Did Curiosity kill the cat? 18

Computational properties Prolog Probabilities Resolution is sound, but not complete Resolution is refutation complete When do we stop the resolution algorithm? We cannot generate all logical consequences there might be infinitly many Example: P(x) P(f(x)), P(a) Predicate calculus is undecidable No effective method deciding if a given formula is a theorem (holds in every interpretation) Some subsets of predicate logic is decidable eg. Horn clauses 19

Prolog Prolog Probabilities Programming language based on pred. logics Statements given in implication normal form ancestor(x,y) : father(x,y). ancestor(x,y) : father(x,z), ancestor(z,y). father(kalle, erik). father(erik, lars). Version of resolution for solving questions ancestor(a, lars)? ancestor(kalle, B)? gives A=erik or A=kalle gives B=erik or B=lars 20

Other logics Prolog Probabilities Precicate logic allows us to express predicates, functions and rules involving quantifiers Defines a static world How can we express changes over time? How can we reason about space? Temporal logic(s) Defines syntax and semantics for reasoning over discrete timesteps. Spatial logic(s)... Reason about space and topologies 21