34
Joanna J. Bryson University of Bath, United Kingdom An Introduction to Artificial Intelligence and Cognition Intelligent Control and Cognitive Systems

Intelligent Control and Cognitive Systems An Introduction ...cs.bath.ac.uk/~jjb/here/CM30229/Lecture2 - newAI.pdf · Joanna J. Bryson University of Bath, United Kingdom An Introduction

Embed Size (px)

Citation preview

Page 1: Intelligent Control and Cognitive Systems An Introduction ...cs.bath.ac.uk/~jjb/here/CM30229/Lecture2 - newAI.pdf · Joanna J. Bryson University of Bath, United Kingdom An Introduction

Joanna J. BrysonUniversity of Bath, United Kingdom

An Introduction to Artificial Intelligence

and Cognition

Intelligent Control and Cognitive Systems

Page 2: Intelligent Control and Cognitive Systems An Introduction ...cs.bath.ac.uk/~jjb/here/CM30229/Lecture2 - newAI.pdf · Joanna J. Bryson University of Bath, United Kingdom An Introduction

Outline• Last Time:

• Defined intelligence in terms of behaviour. Talked about sensing for action.

• This time:

• Why focus on action? What about cognition?

• Intro to Cognitive Architectures.

Page 3: Intelligent Control and Cognitive Systems An Introduction ...cs.bath.ac.uk/~jjb/here/CM30229/Lecture2 - newAI.pdf · Joanna J. Bryson University of Bath, United Kingdom An Introduction

Coursework• Academic writing is part of what you learn

here.

• Hypothesis & outcome are introduced in the Introduction, Approach describes experiments. Titles communicate results.

• The robot is there so you can learn, and to give you something to do write about.

• The coursework is marked for writing science, and understanding of material.

Page 4: Intelligent Control and Cognitive Systems An Introduction ...cs.bath.ac.uk/~jjb/here/CM30229/Lecture2 - newAI.pdf · Joanna J. Bryson University of Bath, United Kingdom An Introduction

Resources

• Lots of books in the library (many on LEGO robots!)

• Russel & Norvig is the ultimate AI textbook (for the last decade), though comes from a CMU & Stanford prespective.

• Norvig & Thrun’s Stanford AI lectures are available on line.

Page 5: Intelligent Control and Cognitive Systems An Introduction ...cs.bath.ac.uk/~jjb/here/CM30229/Lecture2 - newAI.pdf · Joanna J. Bryson University of Bath, United Kingdom An Introduction

Quick History of AI

• Early 20c Turing invents CS to solve AI.

• Dartmouth Conference (1956) John McCarthy, Marvin Minsky, Nathaniel Rochester & Claude Shannon proposed, Alan Newell, Herbert Simon & Oliver Selfridge (among others) attended.

• Proposal used the phrase “artificial intelligence”, apparently for the first time.

Page 6: Intelligent Control and Cognitive Systems An Introduction ...cs.bath.ac.uk/~jjb/here/CM30229/Lecture2 - newAI.pdf · Joanna J. Bryson University of Bath, United Kingdom An Introduction

The Dartmouth ProposalWe propose that a 2 month, 10 man study of artificial intelligence be carried out... The study is to proceed on the basis of the conjecture that every aspect of learning or any other feature of intelligence can in principle be so precisely described that a machine can be made to simulate it. An attempt will be made to find how to make machines use language, form abstractions and concepts, solve kinds of problems now reserved for humans, and improve themselves. We think that a significant advance can be made in one or more of these problems if a carefully selected group of scientists work on it together for a summer.

McCarthy & Minsky et al 1956

Page 7: Intelligent Control and Cognitive Systems An Introduction ...cs.bath.ac.uk/~jjb/here/CM30229/Lecture2 - newAI.pdf · Joanna J. Bryson University of Bath, United Kingdom An Introduction

The Dartmouth ProposalWe propose that a 2 month, 10 man study of artificial intelligence be carried out... The study is to proceed on the basis of the conjecture that every aspect of learning or any other feature of intelligence can in principle be so precisely described that a machine can be made to simulate it. An attempt will be made to find how to make machines use language, form abstractions and concepts, solve kinds of problems now reserved for humans, and improve themselves. We think that a significant advance can be made in one or more of these problems if a carefully selected group of scientists work on it together for a summer.

McCarthy & Minsky et al 1956

Page 8: Intelligent Control and Cognitive Systems An Introduction ...cs.bath.ac.uk/~jjb/here/CM30229/Lecture2 - newAI.pdf · Joanna J. Bryson University of Bath, United Kingdom An Introduction

The Dartmouth ProposalWe propose that a 2 month, 10 man study of artificial intelligence be carried out... The study is to proceed on the basis of the conjecture that every aspect of learning or any other feature of intelligence can in principle be so precisely described that a machine can be made to simulate it. An attempt will be made to find how to make machines use language, form abstractions and concepts, solve kinds of problems now reserved for humans, and improve themselves. We think that a significant advance can be made in one or more of these problems if a carefully selected group of scientists work on it together for a summer.

McCarthy & Minsky et al 1956

Page 9: Intelligent Control and Cognitive Systems An Introduction ...cs.bath.ac.uk/~jjb/here/CM30229/Lecture2 - newAI.pdf · Joanna J. Bryson University of Bath, United Kingdom An Introduction

The Dartmouth ProposalWe propose that a 2 month, 10 man study of artificial intelligence be carried out... The study is to proceed on the basis of the conjecture that every aspect of learning or any other feature of intelligence can in principle be so precisely described that a machine can be made to simulate it. An attempt will be made to find how to make machines use language, form abstractions and concepts, solve kinds of problems now reserved for humans, and improve themselves. We think that a significant advance can be made in one or more of these problems if a carefully selected group of scientists work on it together for a summer.

McCarthy & Minsky et al 1956

Page 10: Intelligent Control and Cognitive Systems An Introduction ...cs.bath.ac.uk/~jjb/here/CM30229/Lecture2 - newAI.pdf · Joanna J. Bryson University of Bath, United Kingdom An Introduction

The Summer Vision ProjectThe summer vision project is an attempt to use our summer workers [11 UGs] effectively in the construction of a significant part of a visual system. The particular task was chosen partly because it can be segmented into sub-problems which allow individuals to work independently and yet participate in the construction of a system complex enough to be real landmark in the development of "pattern recognition"... The primary goal of the project is to construct a system of programs which will divide a vidisector picture into regions such as likely objects, likely background areas and chaos. We shall call this part of its operation FIGURE-GROUND analysis. It will be impossible to do this without considerable analysis of shape and surface properties, so FIGURE-GROUND analysis is really inseparable in practice from the second goal which is REGION DESCRIPTION. The final goal is OBJECT IDENTIFICATION which will actually name objects by matching them with a vocabulary of known objects.

Papert & Minsky (w/ Sussman) MIT 1966

Page 11: Intelligent Control and Cognitive Systems An Introduction ...cs.bath.ac.uk/~jjb/here/CM30229/Lecture2 - newAI.pdf · Joanna J. Bryson University of Bath, United Kingdom An Introduction

Quick History of AI

• Early 20c Turing invents CS to solve AI.

• Dartmouth Conference (1956) John McCarthy, Marvin Minsky, Nathaniel Rochester & Claude Shannon proposed, Alan Newell, Herbert Simon & Oliver Selfridge (among others) attended.

• Proposal used the phrase “artificial intelligence”.

Page 12: Intelligent Control and Cognitive Systems An Introduction ...cs.bath.ac.uk/~jjb/here/CM30229/Lecture2 - newAI.pdf · Joanna J. Bryson University of Bath, United Kingdom An Introduction

• Physical Symbol System Hypothesis (Newell & Simon 1963) “A physical symbol system has the necessary and sufficient means for general intelligent action.” Implies:

• Human thinking is a kind of symbol manipulation (because a symbol system is necessary for intelligence).

• Machines can be intelligent (because a symbol system is sufficient for intelligence).

The CMU Perspective

Page 13: Intelligent Control and Cognitive Systems An Introduction ...cs.bath.ac.uk/~jjb/here/CM30229/Lecture2 - newAI.pdf · Joanna J. Bryson University of Bath, United Kingdom An Introduction

Symbols

• Symbols (and sometimes Language) have been thought to define intelligence for a long time.

• Brooks (1991) was a significant challenge to this (more next week).

Page 14: Intelligent Control and Cognitive Systems An Introduction ...cs.bath.ac.uk/~jjb/here/CM30229/Lecture2 - newAI.pdf · Joanna J. Bryson University of Bath, United Kingdom An Introduction

AI Heaven• If intelligence is just

symbol systems, and we’re all Turing compatible...

• Cartesian dualism should hold.

• We can upload our brains & “live” forever.

Mind uploading / whole brain scanning

cf. Minsky, Vinge.

Page 15: Intelligent Control and Cognitive Systems An Introduction ...cs.bath.ac.uk/~jjb/here/CM30229/Lecture2 - newAI.pdf · Joanna J. Bryson University of Bath, United Kingdom An Introduction

“New AI” (1986)

• AI “wasn’t working” (more on this later in the course).

• Refocus attention on behaviour, robots.

• Produced first robots that could operate at animal-like speeds.

Genghis, MIT 1986

Page 16: Intelligent Control and Cognitive Systems An Introduction ...cs.bath.ac.uk/~jjb/here/CM30229/Lecture2 - newAI.pdf · Joanna J. Bryson University of Bath, United Kingdom An Introduction

New AIFunctionalist Assumption: All we care about is producing intelligent behaviour.

• Physical Symbol System Hypothesis (Newell & Simon 1963); Qualia, Chalmers “hard problem” (1995) Build thinking first.

• Consciousness as epiphenomena (Churchland 1988, Brooks 1991).

We’ll build it if we need it. Scienc

Page 17: Intelligent Control and Cognitive Systems An Introduction ...cs.bath.ac.uk/~jjb/here/CM30229/Lecture2 - newAI.pdf · Joanna J. Bryson University of Bath, United Kingdom An Introduction

Functionalist Assumption: All we care about is producing intelligent behaviour.

• Physical Symbol System Hypothesis (Newell & Simon 1963); Qualia, Chalmers “hard problem” (1995). Build thinking first.

• Consciousness as epiphenomena (Churchland 1988, Brooks & Stein 1993).

We’ll build it to see if we need it.(Bias alert: Stein was my PhD supervisor)

Newer New AI

Page 18: Intelligent Control and Cognitive Systems An Introduction ...cs.bath.ac.uk/~jjb/here/CM30229/Lecture2 - newAI.pdf · Joanna J. Bryson University of Bath, United Kingdom An Introduction

Sept 1

1 9 9 3

Sept 1

1 9 9 4Sept 1

1 9 9 5

Sept 1

1 9 9 6

Sept 1

1 9 9 7

Syst em sof t ware ( 0 t h) Syst em sof t ware ( commercial processor)

Periperhal Mot ion

Saccades

VOR

Smoot h pursuit

Vergence

based st ereo

Ullman-esque

visual rout ines

Face pop-out s Face remembering Face recognit ion

Gest ure recognit ion Facial gest ure recog. Body mot ion recog.

Own hand t racking

Physical schema

based obj. recog.

Bring hands

midline

Hand

linking

Grasping,

& t ransf er

Specif ic obj. recog. Generic object recog.

Body-based met aphors

DOF reduct ion

( specif ic coords)

DOF reduct ion

( generic coords)Bat t ing st at ic

ob ject s

Head/ eye coord

Body st abilit y ,

leaning, rest ing

Head/ body / ey e/ coord

Body+arm reaching Body mimicry

Manipulat ion t urn t aking

Sound localizat ion

Sound/ mot ion correl Human voice ext ract ion

Sound-based manip. Voice/ f ace assoc

Voice t urn t aking

Prot o language

Visual imagery Symbolizat ion

Imaginat ionMent al rehearsal

Mult iple-draf t s emergence

Tone ident if icat ion

“Building Brains

for Bodies”, Brooks & Stein (1993), MIT AI lab tech report 1439.

Page 19: Intelligent Control and Cognitive Systems An Introduction ...cs.bath.ac.uk/~jjb/here/CM30229/Lecture2 - newAI.pdf · Joanna J. Bryson University of Bath, United Kingdom An Introduction

Intelligence & CognitionText

A European / Brooksian Perspective

Page 20: Intelligent Control and Cognitive Systems An Introduction ...cs.bath.ac.uk/~jjb/here/CM30229/Lecture2 - newAI.pdf · Joanna J. Bryson University of Bath, United Kingdom An Introduction

Intelligence

• What matters is expressing the right behavior at the right time: action selection.

• Finding the right action requires search.

• Search is intractable.

• Corollary 1: This is why we all act stupid.

• Corollary 2: Culture / concurrency is what makes humans so smart.

Page 21: Intelligent Control and Cognitive Systems An Introduction ...cs.bath.ac.uk/~jjb/here/CM30229/Lecture2 - newAI.pdf · Joanna J. Bryson University of Bath, United Kingdom An Introduction

Why is it hard to be smart?

Pretend someone handed you a robot brain brick, and it came with 100 things it knew how to do without being told.

For example, eat, sleep, turn right, turn left, step forward, step backward, pick things up, drop them...

Now pick a goal for your robot.

For example, flying to Osaka.

Page 22: Intelligent Control and Cognitive Systems An Introduction ...cs.bath.ac.uk/~jjb/here/CM30229/Lecture2 - newAI.pdf · Joanna J. Bryson University of Bath, United Kingdom An Introduction

Suppose you can’t be bothered to tell your robot exactly how to get to Osaka, so you have it guess.

If getting to Osaka is a built-in primitive, the robot may have to try 100 different things.

If it requires two steps, the robot may have to try each thing after each thing:

The hardness of smartness (2)

1002 = 10, 000

Sanyo robot watchdog

Page 23: Intelligent Control and Cognitive Systems An Introduction ...cs.bath.ac.uk/~jjb/here/CM30229/Lecture2 - newAI.pdf · Joanna J. Bryson University of Bath, United Kingdom An Introduction

The hardness of smartness (3)

If the robot doesn’t know how many steps it takes to go to Osaka, it might get caught in an infinite loop.

For example, it might eat, sleep, work, eat, sleep, work, eat, sleep, work... and never buy a passport.

When computer scientists say “hard” they mean “pretty much intractable.”

Sony SDR-4Xs. Pictures from BBC

Page 24: Intelligent Control and Cognitive Systems An Introduction ...cs.bath.ac.uk/~jjb/here/CM30229/Lecture2 - newAI.pdf · Joanna J. Bryson University of Bath, United Kingdom An Introduction

Intelligence & Design

• Combinatorics is the problem, search is the only solution.

• The task of intelligence is to focus search.

• Called bias (learning) or constraint (planning).

• Most `intelligent’ behavior has no or little real-time search (non-cognitive) (c.f. Brooks IJCAI91).

• For artificial intelligence, most focus from design.

priors

Page 25: Intelligent Control and Cognitive Systems An Introduction ...cs.bath.ac.uk/~jjb/here/CM30229/Lecture2 - newAI.pdf · Joanna J. Bryson University of Bath, United Kingdom An Introduction

Intelligence• What matters is expressing the right

behavior at the right time: action selection.

• Conventional AI planning searches for an action sequence, requires set of primitives.

• That set of primitives came from search by the system’s designers.

• ∴ Building AI requires tradeoffs between search by designers & computers.

Page 26: Intelligent Control and Cognitive Systems An Introduction ...cs.bath.ac.uk/~jjb/here/CM30229/Lecture2 - newAI.pdf · Joanna J. Bryson University of Bath, United Kingdom An Introduction

What About Learning?• A learning system consists of a

representation (state) and an algorithm for changing the values in that representation.

• Learning searches for the right parameter values, requires primitives and parameters.

• No learning algorithm automatically generates AI through invocation.

• Evolution and development are just special kinds of learning.

Page 27: Intelligent Control and Cognitive Systems An Introduction ...cs.bath.ac.uk/~jjb/here/CM30229/Lecture2 - newAI.pdf · Joanna J. Bryson University of Bath, United Kingdom An Introduction

What About Cognition

Definition:

Cognition is on-line (real-time) search.

Consequence:

Cognition is bad.

Page 28: Intelligent Control and Cognitive Systems An Introduction ...cs.bath.ac.uk/~jjb/here/CM30229/Lecture2 - newAI.pdf · Joanna J. Bryson University of Bath, United Kingdom An Introduction

Cognition

• Why is cognition / individual search bad?

• Slow

• Uncertain

• Unpopular in most species.

• e.g. Plants

Page 29: Intelligent Control and Cognitive Systems An Introduction ...cs.bath.ac.uk/~jjb/here/CM30229/Lecture2 - newAI.pdf · Joanna J. Bryson University of Bath, United Kingdom An Introduction

Cognition• When is cognition useful?

• Dynamic environments – change faster than learning or evolution can adapt.

• Note this depends on lifehistory.

• Baldwin Effect – fast & noisy search facilitates (speeds up) slower & more reliable learning processes (Baldwin 1896, Hinton & Nowlan 1987).

Page 30: Intelligent Control and Cognitive Systems An Introduction ...cs.bath.ac.uk/~jjb/here/CM30229/Lecture2 - newAI.pdf · Joanna J. Bryson University of Bath, United Kingdom An Introduction
Page 31: Intelligent Control and Cognitive Systems An Introduction ...cs.bath.ac.uk/~jjb/here/CM30229/Lecture2 - newAI.pdf · Joanna J. Bryson University of Bath, United Kingdom An Introduction

Why History Matters

• A lineage is a type of state – a set of data forming a preexisting solution, that then gets improved upon, e.g. through

• innovation – Generate

• selection – Test

Page 32: Intelligent Control and Cognitive Systems An Introduction ...cs.bath.ac.uk/~jjb/here/CM30229/Lecture2 - newAI.pdf · Joanna J. Bryson University of Bath, United Kingdom An Introduction

Cognition• When is cognition useful?

• Dynamic environments – change faster than learning or evolution can adapt.

• Note this depends on lifehistory.

• Baldwin Effect – fast & noisy search facilitates (speeds up) slower & more reliable learning processes (Baldwin 1896, Hinton & Nowlan 1987).

Page 33: Intelligent Control and Cognitive Systems An Introduction ...cs.bath.ac.uk/~jjb/here/CM30229/Lecture2 - newAI.pdf · Joanna J. Bryson University of Bath, United Kingdom An Introduction

Why Cognitive Systems?• What artefacts need to be cognitive?

• What artefacts need to adjust in real time?

• (possible answers…) traits:

• Proactive, interactive, sensing, mapping...

• examples:

• Smart homes, personal digital assistants / phones, drones.

(interactive)

Page 34: Intelligent Control and Cognitive Systems An Introduction ...cs.bath.ac.uk/~jjb/here/CM30229/Lecture2 - newAI.pdf · Joanna J. Bryson University of Bath, United Kingdom An Introduction

Summary

• The history of AI through about 1995.

• More contemporary stuff later in the course

• Introduction to “New AI” and Systems AI.

• Introduction to discussion of academic / scientific lineages, including mine.