中国科学技术大学:《人工智能基础》课程教学资源(课件讲稿)Lecture 07 Logical Agents

Logical Agents 吉建民 USTC jianminOustc.edu.cn 2022年4月5日 4口◆4⊙t1三1=,¥9QC
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Logical Agents 吉建民 USTC jianmin@ustc.edu.cn 2022 年 4 月 5 日

Used Materials Disclaimer:本课件采用了S.Russell and P.Norvig's Artificial Intelligence-A modern approach slides,徐林莉老师课件和其他网 络课程课件,也采用了GitHub中开源代码,以及部分网络博客 内容 口卡4三4色进分QC
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Used Materials Disclaimer: 本课件采用了 S. Russell and P. Norvig’s Artificial Intelligence –A modern approach slides, 徐林莉老师课件和其他网 络课程课件,也采用了 GitHub 中开源代码,以及部分网络博客 内容

Some modeling paradigms State-based models:search problems,MDPs,games Applications:routing finding,game playing,etc. Think in terms of states,actions,and costs Variable-based models:CSPs,Bayesian networks Applications:scheduling,medical diagnosis,etc. Think in terms of variables and factors Logic-based models:propositional logic,first-order logic Applications:theorem proving,verification,reasoning Think in terms of logical formulas and inference rules Search problems Constraint satisfaction problems Markov decision processes Markov networks Adversarial games Bayesian networks Reflex States Variables "Low-level intelligence' "High-level intelligence Machine learning
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Some modeling paradigms ▶ State-based models: search problems, MDPs, games ▶ Applications: routing finding, game playing, etc. ▶ Think in terms of states, actions, and costs ▶ Variable-based models: CSPs, Bayesian networks ▶ Applications: scheduling, medical diagnosis, etc. ▶ Think in terms of variables and factors ▶ Logic-based models: propositional logic, first-order logic ▶ Applications: theorem proving, verification, reasoning ▶ Think in terms of logical formulas and inference rules

Example Question:If X1+X2 10 and X1-X2 =4,what is X1? Think about how you solved this problem.You could treat it as a CSP with variables Xi and X2,and search through the set of candidate solutions,checking the constraints. However,more likely,you just added the two equations, divided both sides by 2 to easily find out that X1=7. This is the power of logical inference,where we apply a set of truth-preserving rules to arrive at the answer.This is in contrast to what is called model checking,which tries to directly find assignments. We'll see that logical inference allows you to perform very powerful manipulations in a very compact way.This allows us to vastly increase the representational power of our models. 口卡+四t4二老正)QG
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Example ▶ Question: If X1 + X2 = 10 and X1 − X2 = 4, what is X1? ▶ Think about how you solved this problem. You could treat it as a CSP with variables X1 and X2, and search through the set of candidate solutions, checking the constraints. ▶ However, more likely, you just added the two equations, divided both sides by 2 to easily find out that X1 = 7. ▶ This is the power of logical inference, where we apply a set of truth-preserving rules to arrive at the answer. This is in contrast to what is called model checking, which tries to directly find assignments. ▶ We’ll see that logical inference allows you to perform very powerful manipulations in a very compact way. This allows us to vastly increase the representational power of our models

A historical note Logic was dominant paradigm in Al before 1990s Problem 1:deterministic,didn't handle uncertainty (probability addresses this) Problem 2:rule-based,didn't allow fine tuning from data (machine learning addresses this) Strength:provides expressiveness in a compact way There is one strength of logic which has not quite yet been recouped by existing probability and machine learning methods,and that is expressivity of the model 4口◆4⊙t1三1=,¥9QC
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A historical note ▶ Logic was dominant paradigm in AI before 1990s ▶ Problem 1: deterministic, didn’t handle uncertainty (probability addresses this) ▶ Problem 2: rule-based, didn’t allow fine tuning from data (machine learning addresses this) ▶ Strength: provides expressiveness in a compact way ▶ There is one strength of logic which has not quite yet been recouped by existing probability and machine learning methods, and that is expressivity of the model

Motivation:smart personal assistant Tell information Ask questions Use natural language! How to build smart personal assistants? Systems like Apple's Siri,Microsoft Cortana,Amazon Echo (Alexa).and Google Now (Assistant) Smart speaker(current):Intent Detection Slot Filling Search Smart speaker(future):Semantic Parsing Reasoning Need to: Digest heterogenous information Reason deeply with that information
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Motivation: smart personal assistant ▶ How to build smart personal assistants? ▶ Systems like Apple’s Siri, Microsoft Cortana, Amazon Echo (Alexa), and Google Now (Assistant) ▶ Smart speaker (current): Intent Detection + Slot Filling + Search ▶ Smart speaker (future): Semantic Parsing + Reasoning ▶ Need to: ▶ Digest heterogenous information ▶ Reason deeply with that information

Language Language is a mechanism for expression Natural languages (informal): ·汉语:二能除偶数。 English:Two divides even numbers. Programming languages (formal): Python:def even(x):return x 2 ==0 C++:bool even(int x)return x 2 ==0; Logical languages (formal): First-order logic:Vx.Even(x)-Divides(x,2) 4口◆4⊙t1三1=,¥9QC
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Language ▶ Language is a mechanism for expression ▶ Natural languages (informal): ▶ 汉语:二能除偶数。 ▶ English: Two divides even numbers. ▶ Programming languages (formal): ▶ Python: def even(x): return x % 2 == 0 ▶ C++: bool even(int x) { return x % 2 == 0; } ▶ Logical languages (formal): ▶ First-order logic: ∀x. Even(x) → Divides(x, 2)

Two goals of logic Represent knowledge about the world Reason with that knowledge 口卡4三,4色,进分QC
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Two goals of logic

Elaboration Tolerance Elaboration Tolerance (McCarthy,1998) "A formalism is elaboration tolerant if]it is convenient to modify a set of facts expressed in the formalism to take into account new phenomena or changed circumstances." Uniform problem representation For solving a problem instance of a problem class C, I is represented as a set of facts P. C is represented as a set of rules Pc.and Pc can be used to solve all problem instances in C 4口◆4⊙t1三1=,¥9QC
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Elaboration Tolerance ▶ Elaboration Tolerance (McCarthy, 1998) “A formalism is elaboration tolerant [if] it is convenient to modify a set of facts expressed in the formalism to take into account new phenomena or changed circumstances.” ▶ Uniform problem representation For solving a problem instance I of a problem class C, ▶ I is represented as a set of facts PI , ▶ C is represented as a set of rules PC, and ▶ PC can be used to solve all problem instances in C

Traditional Software User Problem Programmer Program Solving Computer 口卡B·三4色进分双0
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Traditional Software
按次数下载不扣除下载券;
注册用户24小时内重复下载只扣除一次;
顺序:VIP每日次数-->可用次数-->下载券;
- 中国科学技术大学:《人工智能基础》课程教学资源(课件讲稿)Lecture 06 Game Playing.pdf
- 中国科学技术大学:《人工智能基础》课程教学资源(课件讲稿)Lecture 05 Constraint Satisfaction Problems.pdf
- 中国科学技术大学:《人工智能基础》课程教学资源(课件讲稿)Lecture 04 Informed Search.pdf
- 中国科学技术大学:《人工智能基础》课程教学资源(课件讲稿)Lecture 03 Solving Problems by Searching.pdf
- 中国科学技术大学:《人工智能基础》课程教学资源(课件讲稿)Lecture 02 Intelligent Agents.pdf
- 《Artificial Intelligence:A Modern Approach》教学资源(PPT课件,英文版)Chapter 9-Inference in first-order logic.ppt
- 《Artificial Intelligence:A Modern Approach》教学资源(PPT课件,英文版)Chapter 8-First-Order Logic.ppt
- 《Artificial Intelligence:A Modern Approach》教学资源(PPT课件,英文版)Chapter 7-Logical Agents.ppt
- 《Artificial Intelligence:A Modern Approach》教学资源(PPT课件,英文版)Chapter 6-Adversarial Search.ppt
- 《Artificial Intelligence:A Modern Approach》教学资源(PPT课件,英文版)Chapter 5-Constraint Satisfaction Problems.ppt
- 《Artificial Intelligence:A Modern Approach》教学资源(PPT课件,英文版)Chapter 4-Informed search algorithms.ppt
- 《Artificial Intelligence:A Modern Approach》教学资源(PPT课件,英文版)Chapter 3-Solving problems by searching.ppt
- 《Artificial Intelligence:A Modern Approach》教学资源(PPT课件,英文版)Chapter 2-Intelligent Agents.ppt
- 《Artificial Intelligence:A Modern Approach》教学资源(PPT课件,英文版)Chapter 18-Learning from Observations.ppt
- 《Artificial Intelligence:A Modern Approach》教学资源(PPT课件,英文版)Chapter 14-Bayesian networks.ppt
- 《Artificial Intelligence:A Modern Approach》教学资源(PPT课件,英文版)Chapter 13-Uncertainty.ppt
- 《Artificial Intelligence:A Modern Approach》教学资源(PPT课件,英文版)Chapter 1-Introduction.ppt
- 《Artificial Intelligence:A Modern Approach》教学资源(讲义,英文版)chapter25.pdf
- 《Artificial Intelligence:A Modern Approach》教学资源(讲义,英文版)chapter25-6pp.pdf
- 《Artificial Intelligence:A Modern Approach》教学资源(讲义,英文版)chapter22.pdf
- 中国科学技术大学:《人工智能基础》课程教学资源(课件讲稿)Lecture 10 Uncertainty and Bayesian Networks.pdf
- 中国科学技术大学:《人工智能基础》课程教学资源(课件讲稿)Lecture 11 马尔可夫决策过程.pdf
- 中国科学技术大学:《人工智能基础》课程教学资源(课件讲稿)Lecture 08 First-Order Logic and Inference in FOL.pdf
- 中国科学技术大学:《人工智能基础》课程教学资源(课件讲稿)Lecture 09 AI Planning.pdf
- 中国科学技术大学:《人工智能基础》课程教学资源(课件讲稿)Lecture 13 神经网络与深度学习.pdf
- 中国科学技术大学:《人工智能基础》课程教学资源(课件讲稿)Lecture 14 Reinforcement Learning.pdf
- 中国科学技术大学:《人工智能基础》课程教学资源(课件讲稿)Lecture 15 智能机器人系统介绍.pdf
- 中国科学技术大学:《人工智能基础》课程教学资源(课件讲稿)Lecture 01 Introdution(主讲:吉建民).pdf
- 北京大学:《信息检索》课程教学资源(PPT课件讲稿)Course Overview(主讲:闫宏飞).ppt
- 北京大学:《信息检索》课程教学资源(PPT课件讲稿)Web Search.ppt
- 北京大学:《信息检索》课程教学资源(PPT课件讲稿)Crawling the Web.ppt
- 北京大学:《信息检索》课程教学资源(PPT课件讲稿)Retrieval Models.ppt
- 北京大学:《信息检索》课程教学资源(PPT课件讲稿)Essential Background.ppt
- 哈尔滨工业大学:《信息检索》课程教学资源(课件讲义)文本分类 Text Categorization(主讲:刘挺).pdf
- 哈尔滨工业大学:《信息检索》课程教学资源(课件讲义)信息过滤(主讲:刘挺).pdf
- 哈尔滨工业大学:《信息检索》课程教学资源(课件讲义)信息检索模型 IRModel.pdf
- 哈尔滨工业大学:《信息检索》课程教学资源(课件讲义)信息检索概述.pdf
- 哈尔滨工业大学:《信息检索》课程教学资源(课件讲义)搜索引擎技术 SearchEngine.pdf
- 《统计自然语言处理》课程教学资源(PPT课件讲稿)第7章 汉语自动分词与词性标注.ppt
- 北京大学:《信息检索》课程PPT课件讲稿(自然语言处理)01 Introduction(主讲:彭波)The CCF Advanced Disciplines Lectures.ppt