ai: week 1tch/cs5300/lectures/august_26_28.pdf · 2014-08-28 · cs 5300 major ai contexts (2...

85
AI: Week 1 Fall 2014 Tom Henderson CS 5300

Upload: others

Post on 05-Jun-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

AI: Week 1

Fall 2014

Tom Henderson

CS 5300

Page 2: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

What is AI?

I is automated (in machine or

constructed artifact)

• From biological cells? (slime mold)

• By mimicking biology? (see Edelman)

• Are animals (other than humans)

intelligent?

CS 5300

Page 3: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

What is AI?

• Is AI abstract?

• i.e., collection of algorithms

• Or must be embodied?

• Is Eagle Eye or SkyNet an AI system?

CS 5300

Page 4: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

Eagle Eye as AI?

Book’s list of capabilities:

• NLP √

• Knowledge Rep √

• Automated Reasoning √

• Machine Learning √

• Computer Vision √

• Robotics √

CS 5300

Can’t distinguish

system from human

Page 5: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

CS 5300

Some Issues

Thinking:

• Like Human (Cognitive Science)

• Rationally (Logic)

Acting:

• Like Human (Turing Test)

• Rationally (Best Expected Outcome)

Page 6: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

CS 5300

Some Other Issues

Intelligence:

• Abstract (Descartes)

• Physical (Skinner)

Computation:

• Discrete (Turing Machines)

• Continuous (Real Numbers)

Page 7: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

CS 5300

Abstract Smarts

• Language (e.g., English)

• Math (algebra, logic, geometry)

• Games (chess, cards, backgammon)

• Science (Physics)

• Problem Solving (word problems)

• Planning (moving, route optimization)

Page 8: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

CS 5300

Physical Smarts

• Sports (soccer)

• Dexterity (surgery, manipulation)

• Social skills (humanoid robots)

• Service (health, disability)

• Security (homes, business)

• Military

Page 9: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

Is AI Math or Science?

• Math: axiomatic method

• Science:

• Observe Phenomenon

• Develop Model (math, process, concept)

• Predict Phenomena

• Validate predictions via experiment

CS 5300

Page 10: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

Math

• Development of abstractions that

idealize aspects of the world

• E.g., “straight line”

• Axiomatic method

• Assume axioms true

• Choose inference procedures

• Theory is what follows

• Validity: syntax or semantics

CS 5300

Requires mapping to specific domain

Page 11: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

Logic Example

1. Socrates is a man

2. All men are mortal

-----------------------------

? Conclusion

Socrates better think of something

fast if he doesn’t want to die!

CS 5300

Page 12: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

Scientific Method

CS 5300

Phenomenon ObservationsExperiments

Model Predictions

Computer

Simulation

Verification

Hypothesis Validation

Simulations

Page 13: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

Scientific Method

Theory must be falsifiable

I.e., there exist experiments to

distinguish from other theories

E.g., “Intelligence arises from an

undetectable force from a parallel

universe”

CS 5300

Page 14: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

CS 5300

Outlook

• Why optimistic?

Living creatures offer proof of

existence

• Why pessimistic?

Success does not come easily!

Page 15: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

CS 5300

Misleading Jargon

“agent” program

“percept” sensor data

“knowledge” data/structures

“learning” modify data structures

“artificial life” e.g., Brooks is working

on primordial soup

Page 16: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

CS 5300

Mapping as a Paradigm

• Discrete: if – then –

• Continuous: dx/dt = f(x,…) + del x

Allows for moving around in a space

Can roll downhill to solution

Have attractors and repellors

Need to know some math (chemistry?)

Page 17: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

CS 5300

Environment Modeling

• If performance is important (!!), then

need model of environment and an

evaluation function

Why not simulate to determine best

action?

Page 18: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

CS 5300

Environment Modeling

• If performance in real world is

important, how can we hope

abstraction will succeed (we leave

out too much)?

Use real world to train/learn etc.

Page 19: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

CS 5300

Foundations

• Philosophy

• Mathematics

• Engineering

• Psychology

• Economics

• Neuroscience

• Linguistics

Page 20: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

CS 5300

Foundations

AI, taking humans as the primary

object of study, involves the

attempt to understand all

aspects of what is means to be

human.

Page 21: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

CS 5300

Why Study AI?

• Cultural imperative:

“So God created man in his own

image”

• Androids to take menial tasks

• Mental prosthetic

• …

Page 22: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

CS 5300

Fundamental Issues

• Knowledge

• Inference

• Goals

• Language

Do these exist? Or are they

linguistic structures?

Page 23: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

CS 5300

Is AI Possible?

Weak AI Hypothesis: Machines can act

intelligently

Strong AI Hypothesis: Machines can be

intelligent

Page 24: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

CS 5300

Physical Symbol Hypothesis

• Computational processes operate on

symbol structures

• Cognition is symbol manipulation

(Proposed by Newell and Simon)

PSH: A necessary and sufficient condition

for general intelligent action is the ability

to manipulate symbol structures

Page 25: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

CS 5300

View from the Other Side

Are humans just machines (e.g., meat

machines as Marvin Minsky says)?

Will reductionism work? I.e., figure out

the physics and chemistry in a

bottom-up approach.

Page 26: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

CS 5300

Meaning???

• Functionalism: “a mental state is any

intermediate causal condition

between input and output … any two

systems with isomorphic causal

processes would have the same

mental state.” (p. 954)

Can this ever occur?

Page 27: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

CS 5300

The Chinese Room

This teaser gets at the heart of the matter:

A program is running, and the computer (human or

machine) does not really understand anything that

happens or why.

Is this the way a human body functions?

Page 28: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

CS 5300

Searle’s Axioms

1. Computer programs are formal, syntactic

entities.

2. Minds have mental contents, or semantics.

3. Syntax by itself is not sufficient for semantics.

4. Brains cause minds.

Thus, programs are not sufficient for mind.

(Can you prove this using propositional logic?)

Do you accept axiom 3?

Page 29: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

CS 5300

Major AI Contexts (1)

“Mind can be modeled through the adequate

combination of interacting functional machines

(modules)… the mind is a multitude of

interacting components … and a hack … only a

model incorporating a rich spectrum of (animal

or human) mental functioning will give us a

correct picture of the broad principles underlying

intelligence.” from: “Contructionist Design

Methodology for Interactive Intelligences,” AI

Magazine, Winter 2004, Vol. 25, No 4, pp.77-90

Page 30: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

CS 5300

Major AI Contexts (2)

“A biologically oriented definition of intelligence is the

starting point of the investigation. Intelligence is

defined with respect to the capability of an

autonomous system to maintain itself. This gives an

objective criterion, as opposed to subjective criteria

based on judgment of performance or the ascription

of knowledge or reasoning. This definition is refined

by considering functionalities used to increase the

chances of survival: representation, specialization,

cooperation, communication, reflection, etc.

Page 31: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

CS 5300

Major AI Contexts (2 cont’d)

“A theory of intelligence must be compatible with the basic laws of

physics and biology and it must be a universal theory, I.e.,

independent of a particular embodiment (wetware or silicon) or

system level (brain component, individual agent, society). This

universality can be achieved by using complex dynamical

systems theory as a foundation. Intelligence then is seen as

the result of a set of nonlinear processes which exhibit

properties also found in other physical systems. Phenomena

like behavioral coherence, cooperation, or the emergence of

diversity between agents can be explained using bifurcation

theory, chaos, self-organization, etc.” from: “Intelligence –

Dynamics and Representation,” Luc Steels, in The Biology and

Technology of Intelligent Autonomous Agents, Springer, 1995.

Page 32: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

CS 5300

Patterns from Dynamical Systems

E.g., Stripe Pattern

Page 33: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

CS 5300

Bio-systems Observations

• Pattern Formation in Nature

• Role of Developmental Cycle

• Environmental Niche

• Context, Signals and Algorithms

• Dissipative Information Systems

Page 34: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

CS 5300

Patterns and Coloration

Page 35: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

CS 5300

Role of Development

Page 36: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

CS 5300

Evolutionary Niche

Page 37: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

CS 5300

Similarity of Patterns

Page 38: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

CS 5300

Context and Signals

Page 39: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

Turing’s Morphogenesis Idea

• “The Chemical Basis of Morphogenesis”

• http://www.dna.caltech.edu/courses/cs191/

paperscs191/turing.pdf

CS 5300

Page 40: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

CS 5300

Reaction-Diffusion Patterns

Formula:

cDcft

c 2)(

reactiondiffusion

Page 41: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

CS 5300

Example: Turing’s Morphogenesis Approach

Page 42: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

CS 5300

Example: Turing’s Morphogenesis Approach

Page 43: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

CS 5300

Caricature of Alan Turing

Playing hockey

(by his mom)

Page 44: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

CS 5300

Major AI Contexts (3)

Gerald Edelman: An adequate theory of

consciousness must contain an explanation of the

properties of conscious experience. It should account

both for intentionality and for the discriminability of qualia

or phenomenal experiences. To qualify as a scientific

account, a theoretical analysis od consciousness must

achieve four goals: (1) propose explicit neural models

that explain how consciousness can arise; (2) relate

these models to the emergence of consciousness during

evolution and development; (3) relate these models to

concept formation, memory, and language; and (4)

describe stringent tests for the models in terms of known

neurobiological facts.

Page 45: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

CS 5300

Questions?

Page 46: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

CS 5300

What is an Agent Function?

Page 47: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

CS 5300

Agent Function

• Abstract

• External View

• Complete Map

f: {P}* A

perceptaction

Page 48: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

CS 5300

What is a Percept?

Page 49: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

CS 5300

Percept

A vector:

Must a percept vector be finite?

nPPPP ...21

Page 50: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

CS 5300

Percepts

• Enumerable single percepts

• Enumerable sequences

• Experimentally find where percept

sequence goes

aPs

Page 51: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

CS 5300

How To Organize Ps Selection?

• One Percept?

E.g., [<room>,<dirt status>]

[A,Clean], [A,Dirty],[B,Clean],[B,Dirty]

#rooms * #status_states

What if there’re an infinite #???

Page 52: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

CS 5300

Two Percepts

Number possibilities is |S1|*|S2|

Are all perception sequences possible?

Can we arrange to try them all?

If so, why?

Build Behavior Model (Agent Function)

Page 53: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

CS 5300

What is an Agent Program?

Page 54: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

CS 5300

Agent Program

• Concrete

• Internal

• Implementation

• Just Current Percept

• Maybe persistent state

Page 55: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

CS 5300

How Should We Design an

Agent Function?

Page 56: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

CS 5300

Do the right thing

Do the most successful thing

Need measures of success

(performance measures)

Page 57: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

CS 5300

What is a Rational Agent?

Page 58: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

CS 5300

Rational Agent

For every perception sequence

Select an action that is

Expected to maximize a

Performance measure

Given evidence of P*

and knowledge

Page 59: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

CS 5300

Example

Given an agent that always vacuums,

and the performance criterion p. 38

and one more: -1 for vacuuming,

Show it is not a rational agent.

Page 60: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

CS 5300

Agents

Agent

sensors (percepts)

Environment

actions

Page 61: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

CS 5300

Current Approach

Programmer does most of work!

• Skeleton agent

• Table-driven agent

• Simple reflex agent

• Reflex agent with state

• Utility agent

Page 62: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

CS 5300

Autonomy

What is it?

• Freedom to choose action?

• Behavior based on experience?

• Behavior not programmed in?

Page 63: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

CS 5300

Autonomy

Book argues:

• Compensate for partial or incorrect knowledge

• With experience, becomes effectively independent of prior knowledge

Do you buy that?

Page 64: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

CS 5300

Autonomy

Last assertion too strong:

Choose appropriate action based on

context.

Page 65: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

CS 5300

Agent Structure

Map percepts (and state!) to actions

Percepts: Bump, Dirt, Home

Actions: Forward, Right, Left, Suck,

Stop

Page 66: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

CS 5300

Agent Functions and Programs

An agent is completely specified by the

agent function mapping percepts to

actions

One agent function is rational

Aim: Find a way to implement concisely

An agent program takes a single

percept as input, keeps internal state

Page 67: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

CS 5300

Enumeration vs. ???

Is there an approach to capture the

infinite percept and behavior issue?

Page 68: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

CS 5300

Consider

What is it?

Geometrically?

Numerically?

Page 69: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

CS 5300

Skeleton Agent

function SKELETON-AGENT(percept) returns action

static: memory, the agent’s memory of the world

memory Update-Memory(memory,percept)

action Choose-Best-Action(memory)

memory Update-Memory(memory,action)

return action

Page 70: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

CS 5300

Agent Types

Four basic types in order of increasing

generality:

• Simple reflex agents

• Reflex agents with state

• Goal-based agents

• Utility-based agents

Page 71: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

CS 5300

Page 72: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

CS 5300

Page 73: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

CS 5300

Page 74: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

CS 5300

Page 75: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

CS 5300

The Vacuum World

Percepts: [bump,dirt,home]

Actions: STOP, FORWARD, SUCK,

LEFT, RIGHT

Goals: (performance measure)

• +100 for each pile of dirt cleaned up

• -1 for each action

• -1000 for stopping not at home

Page 76: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

CS 5300

The Vacuum World

Environment:

• Grid, walls/obstacles, dirt, agent body

• Movement actions work unless bump

into wall

• Suck action cleans dirt from cell

Page 77: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

CS 5300

Some Issues

• hidden goals in reflex agent; determine from:

Behavior? Observables?

• learned vs. prior knowledge

• Nature/nurture, learned/innate

• agent = architecture+program: does this cover

everything? How about people? Adaptation?

• model how world evolves and how actions affect

world: simulation?

Page 78: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

Assignment 1

CS 5300

[pm,pc,nm,rt] = CS6380_Assgn1_run_sim(10,0.4,200,10,10);

>> pm

pm = 121

>> pc

pc = 1

>> nm

nm = 1170

Page 79: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

CS 5300

function trace = CS5300_random_walk(row0,col0,max_time,num_rows,num_cols)

%

trace = [row0,col0];

del_row = [0,-1,-1,-1,0,1,1,1];

del_col = [1,1,0,-1,-1,-1,0,1];

row = row0;

col = col0;

t = 0;

while t<max_time

t = t + 1;

perm = randperm(8);

dir = perm(1);

new_row = row + del_row(dir);

new_col = col + del_col(dir);

if new_row>0&&new_row<=num_rows&&new_col>0&&new_col<=num_cols

row = new_row;

col = new_col;

end

trace = [trace; row,col];

end

Page 80: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

CS 5300

From: Simulation,

Modeling and Analysis

A.M. Law

Page 81: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

CS 5300

From: Simulation,

Modeling and Analysis

A.M. Law

Page 82: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

CS 5300

From: Simulation,

Modeling and Analysis

A.M. Law

Page 83: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

CS 5300

From: Simulation,

Modeling and Analysis

A.M. Law

Page 84: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

CS 5300

From: Simulation,

Modeling and Analysis

A.M. Law

Page 85: AI: Week 1tch/CS5300/lectures/August_26_28.pdf · 2014-08-28 · CS 5300 Major AI Contexts (2 cont’d) “A theory of intelligence must be compatible with the basic laws of physics

CS 5300

Questions?