what ai is - plone site · psychology to construct precise and testable theories of the human mind....

44
What AI is A.Y. 2019/2020

Upload: others

Post on 19-Aug-2020

5 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: What AI is - Plone site · psychology to construct precise and testable theories of the human mind. The interdisciplinary, scientific study of the mind and its processes. It examines

What AI isA.Y. 2019/2020

Page 2: What AI is - Plone site · psychology to construct precise and testable theories of the human mind. The interdisciplinary, scientific study of the mind and its processes. It examines

A taste of AI

http://bit.ly/2RW7xlv

All problems present in a few seconds: fears, NLU, speech, knowledge, problem solving, monetisation over-fitting, …

Page 3: What AI is - Plone site · psychology to construct precise and testable theories of the human mind. The interdisciplinary, scientific study of the mind and its processes. It examines

A taste of AI (contd.)

http://bit.ly/2Sl2XMT

Page 4: What AI is - Plone site · psychology to construct precise and testable theories of the human mind. The interdisciplinary, scientific study of the mind and its processes. It examines

A taste of AI (contd.)

http://bit.ly/2GUDPaA

Page 5: What AI is - Plone site · psychology to construct precise and testable theories of the human mind. The interdisciplinary, scientific study of the mind and its processes. It examines

When was AI born?

Page 6: What AI is - Plone site · psychology to construct precise and testable theories of the human mind. The interdisciplinary, scientific study of the mind and its processes. It examines
Page 7: What AI is - Plone site · psychology to construct precise and testable theories of the human mind. The interdisciplinary, scientific study of the mind and its processes. It examines

Strictly speaking AI was born in ‘50s, but…

Page 8: What AI is - Plone site · psychology to construct precise and testable theories of the human mind. The interdisciplinary, scientific study of the mind and its processes. It examines

The Lullian Circle - 1274

- A paper machine operated by rotating concentrically arranged circles to combine a symbolic alphabet, which was repeated on each level. These combinations were said to show all possible truth about the subject of inquiry.

- Llull based this notion on the idea that there were a limited number of basic, undeniable truths in all fields of knowledge, and that everything about these fields of knowledge could be understood by studying combinations of these elemental truths.

Page 9: What AI is - Plone site · psychology to construct precise and testable theories of the human mind. The interdisciplinary, scientific study of the mind and its processes. It examines

Pascal's calculator - 1642

- Pascal's calculator (aka Pascaline) is a mechanical calculator invented by Blaise Pascal in the early 17th century.

- Pascal was led to develop a calculator by the laborious arithmetical calculations required by his father's work as the supervisor of taxes in Rouen

- He designed the machine to add and subtract two numbers directly and to perform multiplication and division through repeated addition or subtraction.

Page 10: What AI is - Plone site · psychology to construct precise and testable theories of the human mind. The interdisciplinary, scientific study of the mind and its processes. It examines

Leibniz’ Characteristica Universalis and Diagrammatic Reasoning - 1666

- Characteristica universalis is a formal and universal language able to express, through a series of symbols, mathematical, scientific and metaphysical concepts.

Page 11: What AI is - Plone site · psychology to construct precise and testable theories of the human mind. The interdisciplinary, scientific study of the mind and its processes. It examines

The Mechanical Turk - 1770

- The Mechanical Turk or Automaton Chess Player was a fake chess-playing machine constructed in the late 18th century.

- The mechanism appeared to be able to play a strong game of chess against a human opponent, as well as perform the knight's tour, a puzzle that requires the player to move a knight to occupy every square of a chessboard exactly once.

Page 12: What AI is - Plone site · psychology to construct precise and testable theories of the human mind. The interdisciplinary, scientific study of the mind and its processes. It examines

Babbage’s Analytical Engine - 1837

- A mechanical general-purpose and Turing-complete computer designed by Charles Babbage in 1837.

Page 13: What AI is - Plone site · psychology to construct precise and testable theories of the human mind. The interdisciplinary, scientific study of the mind and its processes. It examines

Boole’s Law of Thought - 1854

Page 14: What AI is - Plone site · psychology to construct precise and testable theories of the human mind. The interdisciplinary, scientific study of the mind and its processes. It examines

What is AI?

Page 15: What AI is - Plone site · psychology to construct precise and testable theories of the human mind. The interdisciplinary, scientific study of the mind and its processes. It examines

What is artificial? intelligence? learning? rationality? knowledge? schema?

Page 16: What AI is - Plone site · psychology to construct precise and testable theories of the human mind. The interdisciplinary, scientific study of the mind and its processes. It examines

A few definitions of AI

Thinking Humanly

“The exciting new effort to make computers think . . . machines with minds, in the full and literal sense.” (Haugeland, 1985)

“[The automation of] activities that we associate with human thinking, activities such as decision-making, problem solving, learning . . .” (Bellman, 1978)

Thinking Rationally

“The study of mental faculties through the use of computational models.” (Charniak and McDermott, 1985)

“The study of the computations that make it possible to perceive, reason, and act.” (Winston, 1992)

Acting Humanly

“The art of creating machines that per- form functions that require intelligence when performed by people.” (Kurzweil, 1990)

“The study of how to make computers do things at which, at the moment, people are better.” (Rich and Knight, 1991)

Acting Rationally

“Computational Intelligence is the study of the design of intelligent agents.” (Poole et al., 1998)

“AI ...is concerned with intelligent be- havior in artifacts.” (Nilsson, 1998)

Page 17: What AI is - Plone site · psychology to construct precise and testable theories of the human mind. The interdisciplinary, scientific study of the mind and its processes. It examines

A few definitions of AI

Thinking Humanly

“The exciting new effort to make computers think . . . machines with minds, in the full and literal sense.” (Haugeland, 1985)

“[The automation of] activities that we associate with human thinking, activities such as decision-making, problem solving, learning . . .” (Bellman, 1978)

Thinking Rationally

“The study of mental faculties through the use of computational models.” (Charniak and McDermott, 1985)

“The study of the computations that make it possible to perceive, reason, and act.” (Winston, 1992)

Acting Humanly

“The art of creating machines that per- form functions that require intelligence when performed by people.” (Kurzweil, 1990)

“The study of how to make computers do things at which, at the moment, people are better.” (Rich and Knight, 1991)

Acting Rationally

“Computational Intelligence is the study of the design of intelligent agents.” (Poole et al., 1998)

“AI ...is concerned with intelligent be- havior in artifacts.” (Nilsson, 1998)

AI measured in terms of human performance

Page 18: What AI is - Plone site · psychology to construct precise and testable theories of the human mind. The interdisciplinary, scientific study of the mind and its processes. It examines

A few definitions of AI

Thinking Humanly

“The exciting new effort to make computers think . . . machines with minds, in the full and literal sense.” (Haugeland, 1985)

“[The automation of] activities that we associate with human thinking, activities such as decision-making, problem solving, learning . . .” (Bellman, 1978)

Thinking Rationally

“The study of mental faculties through the use of computational models.” (Charniak and McDermott, 1985)

“The study of the computations that make it possible to perceive, reason, and act.” (Winston, 1992)

Acting Humanly

“The art of creating machines that per- form functions that require intelligence when performed by people.” (Kurzweil, 1990)

“The study of how to make computers do things at which, at the moment, people are better.” (Rich and Knight, 1991)

Acting Rationally

“Computational Intelligence is the study of the design of intelligent agents.” (Poole et al., 1998)

“AI ...is concerned with intelligent be- havior in artifacts.” (Nilsson, 1998)

AI measured in terms of rationality

Page 19: What AI is - Plone site · psychology to construct precise and testable theories of the human mind. The interdisciplinary, scientific study of the mind and its processes. It examines

A few definitions of AI

Thinking Humanly

“The exciting new effort to make computers think . . . machines with minds, in the full and literal sense.” (Haugeland, 1985)

“[The automation of] activities that we associate with human thinking, activities such as decision-making, problem solving, learning . . .” (Bellman, 1978)

Thinking Rationally

“The study of mental faculties through the use of computational models.” (Charniak and McDermott, 1985)

“The study of the computations that make it possible to perceive, reason, and act.” (Winston, 1992)

Acting Humanly

“The art of creating machines that per- form functions that require intelligence when performed by people.” (Kurzweil, 1990)

“The study of how to make computers do things at which, at the moment, people are better.” (Rich and Knight, 1991)

Acting Rationally

“Computational Intelligence is the study of the design of intelligent agents.” (Poole et al., 1998)

“AI ...is concerned with intelligent be- havior in artifacts.” (Nilsson, 1998)

AI as thought processes and reasoning

Page 20: What AI is - Plone site · psychology to construct precise and testable theories of the human mind. The interdisciplinary, scientific study of the mind and its processes. It examines

A few definitions of AI

Thinking Humanly

“The exciting new effort to make computers think . . . machines with minds, in the full and literal sense.” (Haugeland, 1985)

“[The automation of] activities that we associate with human thinking, activities such as decision-making, problem solving, learning . . .” (Bellman, 1978)

Thinking Rationally

“The study of mental faculties through the use of computational models.” (Charniak and McDermott, 1985)

“The study of the computations that make it possible to perceive, reason, and act.” (Winston, 1992)

Acting Humanly

“The art of creating machines that per- form functions that require intelligence when performed by people.” (Kurzweil, 1990)

“The study of how to make computers do things at which, at the moment, people are better.” (Rich and Knight, 1991)

Acting Rationally

“Computational Intelligence is the study of the design of intelligent agents.” (Poole et al., 1998)

“AI ...is concerned with intelligent be- havior in artifacts.” (Nilsson, 1998)

AI addressing behaviour

Page 21: What AI is - Plone site · psychology to construct precise and testable theories of the human mind. The interdisciplinary, scientific study of the mind and its processes. It examines

Acting humanly

Page 22: What AI is - Plone site · psychology to construct precise and testable theories of the human mind. The interdisciplinary, scientific study of the mind and its processes. It examines

The Turing Test approach

- The Turing Test, proposed by Alan Turing (1950), was designed to provide a satisfactory operational definition of intelligence.

- A computer passes the test if a human interrogator, after posing some written questions, cannot tell whether the written responses come from a person or from a computer.

Page 23: What AI is - Plone site · psychology to construct precise and testable theories of the human mind. The interdisciplinary, scientific study of the mind and its processes. It examines

AI capabilities required by the Turing Test

• Natural language processing: to enable it to communicate successfully in English;

• Knowledge representation: to store what it knows or hears;

• Automated reasoning: to use the stored information to answer questions and to draw new conclusions;

• Machine learning: to adapt to new circumstances and to detect and extrapolate patterns.

Page 24: What AI is - Plone site · psychology to construct precise and testable theories of the human mind. The interdisciplinary, scientific study of the mind and its processes. It examines

Thinking humanly

Page 25: What AI is - Plone site · psychology to construct precise and testable theories of the human mind. The interdisciplinary, scientific study of the mind and its processes. It examines

The cognitive modelling approach

- Writing programs that thinks like humans requires that we understand how humans think

- Examples - The General Problem Solver (GPS) by Newell and Simon (1961) - Cognitive science

Page 26: What AI is - Plone site · psychology to construct precise and testable theories of the human mind. The interdisciplinary, scientific study of the mind and its processes. It examines

General Problem Solver

● The General Problem Solver (GPS) by Newell and Simon (1961) was designed in order to compare the trace of its reasoning steps to traces of human subjects solving the same problems

● Intuition: if the program’s input–output behaviour matches corresponding human behaviour, that is evidence that some of the program’s mechanisms could also be operating in humans

Page 27: What AI is - Plone site · psychology to construct precise and testable theories of the human mind. The interdisciplinary, scientific study of the mind and its processes. It examines

Cognitive science

● It brings together computer models from AI and experimental techniques from psychology to construct precise and testable theories of the human mind.

● The interdisciplinary, scientific study of the mind and its processes.

● It examines the nature, the tasks, and the functions of cognition (in a broad sense). Cognitive scientists study intelligence and behaviour, with a focus on how nervous systems represent, process, and transform information.

Page 28: What AI is - Plone site · psychology to construct precise and testable theories of the human mind. The interdisciplinary, scientific study of the mind and its processes. It examines

Thinking rationally

Page 29: What AI is - Plone site · psychology to construct precise and testable theories of the human mind. The interdisciplinary, scientific study of the mind and its processes. It examines

The “laws of thought” approach● The logicist tradition within artificial intelligence is focused on building on programs

modelled as logical axioms about all kinds of objects in the world (or a part of it) and the relations among them

● In the field of logics the laws of thought are ● fundamental axiomatic rules upon which rational discourse itself is often considered

to be based. ● supposed to govern the operation of the mind.

● Aristotle was one of the first to attempt to codify “right thinking,” that is, irrefutable reasoning processes.

● Syllogisms provided patterns for argument structures that always yielded correct conclusions when given correct premises ● “Socrates is a man; all men are mortal; therefore, Socrates is mortal.”

Page 30: What AI is - Plone site · psychology to construct precise and testable theories of the human mind. The interdisciplinary, scientific study of the mind and its processes. It examines

Acting rationally

Page 31: What AI is - Plone site · psychology to construct precise and testable theories of the human mind. The interdisciplinary, scientific study of the mind and its processes. It examines

The rational agent approach

● An agent is just something that acts (agent comes from the Latin agere, to do).

● Of course, all computer programs do something, but computer agents are expected to do more: operate autonomously, perceive their environment, persist over a prolonged time period, adapt to change, and create and pursue goals.

● A rational agent is one that acts so as to achieve the best outcome or, when there is uncertainty, the best expected outcome.

Page 32: What AI is - Plone site · psychology to construct precise and testable theories of the human mind. The interdisciplinary, scientific study of the mind and its processes. It examines

Towards a conceptual framework to understand AI

Page 33: What AI is - Plone site · psychology to construct precise and testable theories of the human mind. The interdisciplinary, scientific study of the mind and its processes. It examines

What is an agent?

● An agent is anything that can be viewed as perceiving its environment through sensors and acting upon that environment through actuators.

● A human agent has eyes, ears, and other organs for sensors and hands, legs, vocal tract, and so on for actuators.

● A robotic agent might have cameras and infrared range finders for sensors and various motors for actuators.

● A software agent receives keystrokes, file contents, and network packets as sensory inputs and acts on the environment by displaying on the screen, writing files, and sending network packets.

Page 34: What AI is - Plone site · psychology to construct precise and testable theories of the human mind. The interdisciplinary, scientific study of the mind and its processes. It examines

How an agents is able to act?

Page 35: What AI is - Plone site · psychology to construct precise and testable theories of the human mind. The interdisciplinary, scientific study of the mind and its processes. It examines

The main axis of the framework

● Problem solving

● Knowledge representation

Page 36: What AI is - Plone site · psychology to construct precise and testable theories of the human mind. The interdisciplinary, scientific study of the mind and its processes. It examines

Problem solving

● How to design an agent with “appropriate” behaviour based on given inputs? This is representable as a function from a perceptual history to an action

[f: P* ! A]

● How to automatise “rational” decisions in a given situation?

● Keywords: automatisation; control flow; relevance; appropriateness; rationality; pro-activity vs. re-activity; agents, robots, and services; (de-)centralisation

Page 37: What AI is - Plone site · psychology to construct precise and testable theories of the human mind. The interdisciplinary, scientific study of the mind and its processes. It examines

What is rational at any given time depends on four things

● The performance measure that defines the criterion of success.

● The agent’s prior knowledge of the environment.

● The actions that the agent can perform.

● The agent’s percept sequence to date

Page 38: What AI is - Plone site · psychology to construct precise and testable theories of the human mind. The interdisciplinary, scientific study of the mind and its processes. It examines

Rational agent: Maximising the Expected Utility

● For each possible percept sequence, a rational agent should select an action that is expected to maximise its performance measure, given the evidence provided by the percept sequence and whatever built-in knowledge the agent has.

Page 39: What AI is - Plone site · psychology to construct precise and testable theories of the human mind. The interdisciplinary, scientific study of the mind and its processes. It examines

Example: A vacuum-cleaner agent

Percept sequence Action[A, Clean] Right[A, Dirty] Suck[B, Clean] Left[B, Dirty] Suck[A, Clean], [A, Clean] Right[A, Clean], [A, Dirty] Suck

Is this a rational agent?

Page 40: What AI is - Plone site · psychology to construct precise and testable theories of the human mind. The interdisciplinary, scientific study of the mind and its processes. It examines

Example: A vacuum-cleaner agent (contd.)● First, we need to say what the performance measure is, what is known about the environment,

and what sensors and actuators the agent has. ● For example:

● The performance measure awards one point for each clean square at each time step, over a “lifetime” of 1000 time steps.

● The “geography” of the environment is known a priori but the dirt distribution and the initial location of the agent are not. Clean squares stay clean and sucking cleans the current square. The Left and Right actions move the agent left and right except when this would take the agent outside the environment, in which case the agent remains where it is.

● The only available actions are Left, Right, and Suck.

● The agent correctly perceives its location and whether that location contains dirt.

Page 41: What AI is - Plone site · psychology to construct precise and testable theories of the human mind. The interdisciplinary, scientific study of the mind and its processes. It examines

Knowledge representation #1

● How to extract and represent what is known so that a machine can use it?

● How to extract and represent all and only relevant knowledge?

● Keywords: information; data; semantics; ontology; logic; inference; discovery; learning; interoperability; natural languages; epistemology

Page 42: What AI is - Plone site · psychology to construct precise and testable theories of the human mind. The interdisciplinary, scientific study of the mind and its processes. It examines

Knowledge representation #2

● Data vs. Knowledge ● Data structures (e.g. arrays, lists, records, objects) ● Levels: symbolic vs. interpreted ● Ontology design ● Reasoning

● Deduction vs. Induction ● Classical vs. Non-Classical ● Modularisation and contextualisation ● Automated (Machine) Learning and Data Mining (aka Knowledge Discovery)

● The Web has changed everything ● quantitatively (huge amount of K) ● qualitatively (openness, dereferencing, decentralisation)

Page 43: What AI is - Plone site · psychology to construct precise and testable theories of the human mind. The interdisciplinary, scientific study of the mind and its processes. It examines

Paper we will discuss next time

Turing’s Computing Machinery and Intelligence, 1950

http://bit.ly/2Sh1lnk

Page 44: What AI is - Plone site · psychology to construct precise and testable theories of the human mind. The interdisciplinary, scientific study of the mind and its processes. It examines

Questions