Artificial Intelligence PDF
Artificial Intelligence PDF
A whirlwind tour of Artificial Intelligence. We spend just one lecture, but there are: Many courses on AI, but only one at Princeton :- ( Professorships of AI. Entire university departments of AI.
! ! !
Origins
Idea of programming computers for "intelligent" behavior. First suggested by--who else?--Alan Turing, 1950.
!
8-puzzle
Slide tiles until they're in numerical order. Of course there is: 8-puzzle on the Web.
Term "artificial intelligence" coined by John McCarthy in 1955. Dartmouth summer conference, 1956. Gathering of field's luminaries Very optimistic!
! !
7 1 2
3 8
5 4 6
4
"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."
J. McCarthy, *51
From this position, Three successor positions. From each of these, Two, three, or four successors. And so on.
! !
Optimistic predictions very commmon in 50's and 60's. Actual progress much slower than predicted. Now (2004): some striking successes; still lots to do.
Game Trees
What if you have an opponent?
"Heuristic" search. Uses "evaluation function" to rank successor nodes; pick best. No guarantee of success. Example uses distance from start plus number of tiles out of place Many other functions possible. Note: only 6 nodes expanded
! ! ! ! !
You choose . . .
And your opponent should do likewise. "Minimax" methods use heuristics that assume you make choice that's best for you (max) and opponent makes choice that's worst for you (min).
Tic-tac-toe
Partial game tree.
Tic-tac-toe
10
Chess
A favorite target of AI researchers since 1950's. How big is game tree? 20 possible first moves. 35 possible next moves on average. called "branching factor" Suppose games average 40 moves (each side). Complete game tree therefore has
! ! ! !
Tic-tac-toe (ignoring symmetries). First move: one of 9 spots. Second move: one of 8. Some games terminate before 9 moves made. Total number of nodes < 9! = 362,880
! ! ! !
Both numbers small, so exhaustive search feasible. But what about some bigger game, for instance . . .
11
13
Chess
Lots of effort, and steady improvements, since 1950's. Deep Blue chess machine developed at IBM Hsu, Campbell, Tan, Hoane, Brody, Benjamin, 1990's. 32-processor parallel computer. 512 special chess chips. Evaluates 200 million positions/sec. Huge amount of chess knowledge programmed in. Uses heuristic functions and minimax tree search.
! ! ! ! ! !
Backgammon
About 20 possible moves, on average, per dice roll. Game tree has branching factor of about 400. (That's big.) Searches of even moderate depth computationally prohibitive. Really good heuristic function VERY important.
!
In a 6-game match in 1997, Deep Blue defeated Garry Kasparov, the World Chess Champion.
14
15
TD-Gammon
G. Tesauro, 1995. Uses neural network and reinforcement learning. Each connection has a weight. Each node outputs weighted sum of inputs. Weights adjusted at each step.
! ! !
TD-Gammon
Initial state of neural net: random weights! Program begins "training" with practically no knowledge of game! (Well, OK, it knows what a legal move is, but that's almost all.)
! !
Training ("learning" ?) process. Program evaluates predicted game outcomes for all legal next moves. Program picks move with best outcome for current player. Then: Adjusts weights according to TD function. Switches sides and repeats until game over (plays against itself).
! ! !
Weight adjustment function. Tries to make successive predictions agree. Hence: Temporal Difference.
! !
Results Early random games took thousands of moves to finish! After 1.5 million games, program became best player in the world!
! !
16
17
Eliza
Weizenbaum, 1966. First "chatterbot": program that mimics human conversation. Just 200 lines of code! Works by generating scripted responses to keywords.
! ! !
Turing Test
Judge types questions to both. Computer claims to be human. (So does human, btw!)
! !
Program imitates Rogerian psychiatrist. "Active listening" Psychiatrist doesn't disagree; does not delve into the unconscious.
! !
If judge cannot tell which entity is human, we say computer has passed the test and is "intelligent."
18
19
Turing Test
Loebner Prize $100,000 to first program to pass modified Turing Test. Annual competition held since 1995. Small awards given to best programs.
! ! !
20
24
"Strong" AI hypothesis. Machines can be programmed to possess intelligence. Must they use brain-like methods (e.g., neural nets) ? "Connectionism"
! !
Searle used Chinese Room as absolute refutation of the possibility of strong AI. But many disagree!
CAPTCHA. Completely Automated Public Turing test to tell Computers and Humans Apart
!
25
26
Visual CAPTCHAs
Samples from CMU:
"Just as the Wright brothers at Kitty Hawk in 1903 were on the right track to the 747, so too is AI, with its attempts to formalize commonsense understanding, on its way to fully intelligent machines." (Patrick Winston) "Believing that writing these types of programs will bring us closer to real artificial intelligence is like believing that someone climbing a tree is making progress toward reaching the moon." (Hubert Dreyfus) "The brain happens to be a meat machine." (Marvin Minsky, *54) "Either artificial intelligence is possible...or we're not." (Herb Simon)
27
28
AI in Everyday Life
Many examples of AI methods at work in the real world. Microsoft Office's helpful talking paperclip. R.I.P. ?
!
Omitted Topics
Knowledge representation. Reasoning. Expert systems.
Google (and other "intelligent" search engines). Speech recognition. Speak slowly and clearly to the telephone robot.
!
Natural language understanding. Speech recognition. Computer vision. And dozens more. . . (But hey, we only had the one lecture.)
Control of spacecraft ! AI system given control of Deep Space 1 for 2 days in May 1999.
!
29
30
Summary
Games computers play. Some easy: 8-puzzle, tic-tac-toe. Some formerly hard, now easy: checkers, chess, backgammon. Some still hard: Go.
! ! !
Announcements
Exam still not cancelled Wed April 27, 7:30 PM, right here Closed book, but You can bring one cheatsheet both sides of one (8.5 by 11) sheet, handwritten by you P.S. No calculators, laptops, Palm Pilots, talking watches, etc.
! ! ! !
Methods.
! !
Exhaustive search (small problems only). Heuristic search. Neural networks. Special-purpose machines with built-in knowledge. Convincing conversation still a challenge! Chinese Room experiment refutes (?) possibility of strong AI.
Turing Test
! !
Helpful review session Tonight, 7:30 PM, COS 105 Not a canned presentation Driven by your questions, so bring some!
! ! !
31
32