today’s topics 12/15/15cs 540 - fall 2015 (shavlik©), lecture 31, week 151 exam (comprehensive,...

20
Today’s Topics 12/15/15 CS 540 - Fall 2015 (Shavlik©), Lecture 31, Week 15 1 •Exam (comprehensive, with focus on material since midterm), Thurs 5:30-7:30pm, in this room, two pages and notes and simple calculator (log, e, * / + -) allowed •The Turing Test •Strong vs Weak AI Hypotheses •Searle’s Chinese Room Story •High-Level Recap of Topics since Midterm •Final List of Topics Covered this Term (to various levels of depth, of course) •Review of Fall 2014 Final (Recall: another review tomorrow of Spring 2013 final) •Future of AI? [Not on Final] - As a science/technology - Its impact of society

Upload: polly-warner

Post on 06-Jan-2018

216 views

Category:

Documents


0 download

DESCRIPTION

The Turing Test Says intelligence is judged based on behavior (rather than inspecting internal data structures) Focus on cognition, rather than perception, so use a simple ‘ascii’ interface If human judge interacting (via a teletype) with two ‘entities’ cannot accurately say which is the human and which is the computer, then the computer is intelligent (visualized on next slide) 12/15/15CS Fall 2015 (Shavlik©), Lecture 31, Week 15 3

TRANSCRIPT

Page 1: Today’s Topics 12/15/15CS 540 - Fall 2015 (Shavlik©), Lecture 31, Week 151 Exam (comprehensive, with focus on material since midterm), Thurs 5:30-7:30pm,

1

Today’s Topics

12/15/15 CS 540 - Fall 2015 (Shavlik©), Lecture 31, Week 15

• Exam (comprehensive, with focus on material since midterm), Thurs 5:30-7:30pm, in this room, two pages and notes and simple calculator (log, e, * / + -) allowed

• The Turing Test• Strong vs Weak AI Hypotheses• Searle’s Chinese Room Story• High-Level Recap of Topics since Midterm• Final List of Topics Covered this Term (to various levels of depth, of course)• Review of Fall 2014 Final (Recall: another review tomorrow of Spring

2013 final)• Future of AI? [Not on Final]

- As a science/technology - Its impact of society

Page 2: Today’s Topics 12/15/15CS 540 - Fall 2015 (Shavlik©), Lecture 31, Week 151 Exam (comprehensive, with focus on material since midterm), Thurs 5:30-7:30pm,

CS 540 - Fall 2015 (Shavlik©), Lecture 31, Week 15

An Informal Survey

• First, be sure to do on-line course evals!– More programming? More (but shorter) HWs?

• Would you prefer TWICE WEEKLY classes?

• How many use/do AI (ML? Other?) at work?– Not in the sense of simply using Google, Siri, etc

• How many expect to? Within 2 yrs? 5?

• Does the ‘singularity’ seems NEARER or farther now than it did on Day 1 of the class?

12/15/15 2

Page 3: Today’s Topics 12/15/15CS 540 - Fall 2015 (Shavlik©), Lecture 31, Week 151 Exam (comprehensive, with focus on material since midterm), Thurs 5:30-7:30pm,

CS 540 - Fall 2015 (Shavlik©), Lecture 31, Week 15

The Turing Test

• Says intelligence is judgedbased on behavior(rather than inspecting internal data structures)

• Focus on cognition, rather than perception, so use a simple ‘ascii’ interface

• If human judge interacting (via a teletype) with two ‘entities’ cannot accurately say which is the human and which is the computer, then the computer is intelligent (visualized on next slide)

12/15/15 3

Page 4: Today’s Topics 12/15/15CS 540 - Fall 2015 (Shavlik©), Lecture 31, Week 151 Exam (comprehensive, with focus on material since midterm), Thurs 5:30-7:30pm,

CS 540 - Fall 2015 (Shavlik©), Lecture 31, Week 15

The Turing Test

12/15/15 4

Not a serious concern of nearly all AI researchers

Page 5: Today’s Topics 12/15/15CS 540 - Fall 2015 (Shavlik©), Lecture 31, Week 151 Exam (comprehensive, with focus on material since midterm), Thurs 5:30-7:30pm,

CS 540 - Fall 2015 (Shavlik©), Lecture 31, Week 15

Strong vs. Weak AI Hypotheses

Weak AI Hypothesiswe can accurately simulate animal/human intelligence in a computer

STRONG AI Hypothesiswe can create algo’s that are intelligent(conscious?)

12/15/15 5

Page 6: Today’s Topics 12/15/15CS 540 - Fall 2015 (Shavlik©), Lecture 31, Week 151 Exam (comprehensive, with focus on material since midterm), Thurs 5:30-7:30pm,

CS 540 - Fall 2015 (Shavlik©), Lecture 31, Week 15

Searle’s Chinese Room

• What does it mean to ‘understand’?• Assume non-Chinese speaker is in a room with

a bunch of IF-THEN rules written in Chinese (see next slide)– Questions come in written in Chinese– Human inside room matches symbols,

adding intermediate deductions to some ‘scratch space’

– Some rules say (in English) in their THEN part, ‘send this Chinese symbol … out to the user’

12/15/15 6

Page 7: Today’s Topics 12/15/15CS 540 - Fall 2015 (Shavlik©), Lecture 31, Week 151 Exam (comprehensive, with focus on material since midterm), Thurs 5:30-7:30pm,

CS 540 - Fall 2015 (Shavlik©), Lecture 31, Week 15

Searle’s Chinese Room (1980)

12/15/15 7

If person inside does a great job of answering questions, can we say he or she understands?

Even if she or he is only blindly following rules?(Of course the ‘person inside’ is acting like an AI program)

Page 8: Today’s Topics 12/15/15CS 540 - Fall 2015 (Shavlik©), Lecture 31, Week 151 Exam (comprehensive, with focus on material since midterm), Thurs 5:30-7:30pm,

CS 540 - Fall 2015 (Shavlik©), Lecture 31, Week 15

Some Debate

• Your thoughts/comments?

• Is the room + the human intelligent?– After all, no one part of an airplane has the property

flies, but the whole thing does– This is called ‘the systems reply’

(see http://plato.stanford.edu/entries/chinese-room/)

• The ‘robot reply’ says that the problem is that the person doesn’t sense/interact with the real world – ‘symbols’ would be grounded to actual physical things and thereby become meaningful

12/15/15 8

Page 9: Today’s Topics 12/15/15CS 540 - Fall 2015 (Shavlik©), Lecture 31, Week 151 Exam (comprehensive, with focus on material since midterm), Thurs 5:30-7:30pm,

CS 540 - Fall 2015 (Shavlik©), Lecture 31, Week 15

Main Topics Covered Since Midterm (incomplete sublists)

• But don’t forget that ML and search played major role in second half of class as well!

• Bayesian Networks and Bayes’ Rule– Full joint, Naïve Bayes, odds ratios, statistical inference

• Artificial Neural Networks– Perceptrons, gradient descent, HUs, linear separability, deep nets

• Support Vector Machines– Large margins, penalties for outliers, kernels (for non-linearity)

• First-Order Predicate Calculus– Representation of English sentences, logical deduction, prob logic

• Unsupervised ML, RL, ILP, COLT, AI & Philosophy

12/15/15 9

Page 10: Today’s Topics 12/15/15CS 540 - Fall 2015 (Shavlik©), Lecture 31, Week 151 Exam (comprehensive, with focus on material since midterm), Thurs 5:30-7:30pm,

10

Detailed List of Course Topics:Final Version

12/15/15 CS 540 - Fall 2015 (Shavlik©), Lecture 31, Week 15

Reasoning probabilistically Probabilistic inferenceBayes' rule, Bayesian networks, Naïve Bayes

Reasoning from concrete cases Cased-based reasoningNearest-neighbor algorithmKernels

Reasoning logicallyFirst-order predicate calculusRepresenting domain knowledge using mathematical logicLogical inferenceProbabilistic logic

Problem-solving methods based on the biophysical world Genetic algorithmsSimulated annealingNeural networksReinforcement learning

Philosophical aspectsTuring testSearle's Chinese Room thought experimentThe coming singularityStrong vs. weak AISocietal impact and future of AI

Learning from labeled data Experimental methodologies for choosing parameter

settings and estimating future accuracyDecision trees and random forestsProbabilistic modelsNearest-neighbor methodsGenetic algorithmsNeural networksSupport vector machinesReinforcement learning (reinforcements are ‘indirect’ labels)Inductive logic programmingComputational learning theoryVariations: incremental, active, and transfer learning

Learning from unlabeled dataK-meansExpectation maximization Auto association neural networks

Searching for solutions Heuristically finding shortest pathsAlgorithms for playing games like chessSimulated annealingGenetic algorithms

Page 11: Today’s Topics 12/15/15CS 540 - Fall 2015 (Shavlik©), Lecture 31, Week 151 Exam (comprehensive, with focus on material since midterm), Thurs 5:30-7:30pm,

CS 540 - Fall 2015 (Shavlik©), Lecture 31, Week 15

Suggestions• Be sure to carefully review all the HW solutions, especially HWs 3, 4, & 5• Imagine a HW 6 on MLNs and RL (and see worked examples in lec notes)• My old cs540 exams highly predictive of my future cs540 exams• ILP: understand search space when predicates have k arguments

• Some things to only know at the ‘2 pt’ level

– Calculus: have an intuitive sense of slope in non-linear curves(only need to know well: algebra, exp & log’s, arithmetic, (weighted) sums and products: and )

– Matrices and using linear programming to solve SVMs (do know dot product well)

– Active, transfer, and incremental learning

– ‘Generalizing across state’ in RL

– ‘Covering’ algorithms for learning a set of rules (covered in ILP lecture)

– Won’t be on final: Using variable types to control search in ILP

– COLT: only need to understand role of epsilon and delta ( and )

– How to build your own walking-talking robot :-)12/15/15 11

Page 12: Today’s Topics 12/15/15CS 540 - Fall 2015 (Shavlik©), Lecture 31, Week 151 Exam (comprehensive, with focus on material since midterm), Thurs 5:30-7:30pm,

An “On Your Own” RL HW(Solution)

Consider the deterministic reinforcement environment drawn below. Let γ=0.5. Immediate rewards are indicated inside nodes. Once the agent reaches the ‘end’ state the current episode ends and the agent is magically transported to the ‘start’ state.

 

(a) A one-step, Q-table learner follows the path Start B C End. On the graph below, show the Q values that have changed, and show your work. Assume that for all legal actions (ie, for all the arcs on the graph), the initial values in the Q table are 4, as show above (feel free to copy the above 4’s below, but somehow highlight the changed values).

   

    

 

12/15/15 CS 540 - Fall 2015 (Shavlik©), Lecture 31, Week 15 12

Start(r=0)

End(r=5)

B (r=5)

A (r=2)

C (r=3)

Start(r=0)

End(r=5)

B (r=5)

A (r=2)

C (r=3)

4

4

4 4

4

4

4

75

5

Page 13: Today’s Topics 12/15/15CS 540 - Fall 2015 (Shavlik©), Lecture 31, Week 151 Exam (comprehensive, with focus on material since midterm), Thurs 5:30-7:30pm,

An “On Your Own” RL HW(Solution)

(b) Starting with the Q table you produced in Part (a), again follow the path Start B C End and show the Q values below that have changed from Part (a).Show your work.

 

(c) What would the final Q values be in the limit of trying all possible arcs ‘infinitely’ often? Ie, what is the Bellman-optimal Q table? Explain your answer.

(d) What is the optimal path between Start and End? Explain.

Start B C End The policy is: take the arc with the highest Q out of each node  

    

 

12/15/15 CS 540 - Fall 2015 (Shavlik©), Lecture 31, Week 15 13

Start(r=0)

End(r=5)

B (r=5)

A (r=2)

C (r=3)

Start(r=0)

End(r=5)

B (r=5)

A (r=2)

C (r=3)

7.5

5.55

5

5

5.5

5.5

7.757.75

5.875

Page 14: Today’s Topics 12/15/15CS 540 - Fall 2015 (Shavlik©), Lecture 31, Week 151 Exam (comprehensive, with focus on material since midterm), Thurs 5:30-7:30pm,

CS 540 - Fall 2015 (Shavlik©), Lecture 31, Week 15

Another Worked MLN Example

Given these three rules, what is the prob of P?wgt = 2P Rwgt = 3R Q [ same as R Q ]wgt = 1Q [shorthand for the rule: ‘true Q’ ]

P Q R Unnormalized ProbF F F exp(0 + 3 + 0)F F T exp(0 + 0 + 0)F T F exp(0 + 3 + 1)F T T exp(0 + 3 + 1)T F F exp(0 + 3 + 0)T F T exp(2 + 0 + 0)T T F exp(0 + 3 + 1)T T T exp(2 + 3 + 1)

12/15/15 14

To get Z, sum all the unnormalized probs

Then divide all the probs by Z to normalize

Finally sum prob’s of those cells where P is true

Page 15: Today’s Topics 12/15/15CS 540 - Fall 2015 (Shavlik©), Lecture 31, Week 151 Exam (comprehensive, with focus on material since midterm), Thurs 5:30-7:30pm,

CS 540 - Fall 2015 (Shavlik©), Lecture 31, Week 15

Break to Review Fall 2014 Final

12/15/15 15

Page 16: Today’s Topics 12/15/15CS 540 - Fall 2015 (Shavlik©), Lecture 31, Week 151 Exam (comprehensive, with focus on material since midterm), Thurs 5:30-7:30pm,

CS 540 - Fall 2015 (Shavlik©), Lecture 31, Week 15

Future of AI?(Remember everyone’s bad at predicting the future!)

• Your comments/questions?• ML, ML, and more ML?• Ditto for Data? Scaling up even more?

Specialized h/w for AI/ML algorithms (GPUs++)?• Personalized s/w, learns from our every action?

Our watches predict heart attacks N minutes in advance? Etc

• Will ‘knowledge’ (ever) play a bigger role? Eg, can we train our s/w agents and robots

by talking to them, like humans teach humans? [Bonus lecture if time today]

• Robots becoming ubiquitous? (Eg, self-driving cars) • More natural interaction with computers?

Language, gestures, sketches, images, brain waves?12/15/15 16

Page 17: Today’s Topics 12/15/15CS 540 - Fall 2015 (Shavlik©), Lecture 31, Week 151 Exam (comprehensive, with focus on material since midterm), Thurs 5:30-7:30pm,

CS 540 - Fall 2015 (Shavlik©), Lecture 31, Week 15

Robots Teaching Robots

• How much time did we, as a group, spend me teaching you a fraction of what I (and the authors of assigned readings) know about AI?– 50 hrs of class time x 70 humans 150 days– Plus, no doubt, 10x that time outside of class :-)

• How long will it take one robot that has learned ‘a lot’ to teach 70 robots? 7M robots? 7B?– A few seconds?– Or will robots+owners have ‘individual differences’

that preclude direct brain-to-brain copying?– Remember : predictions (a) for nuclear power leading to

“electricity to cheap to meter” and (b) `the war to end all wars’12/15/15 17

Page 18: Today’s Topics 12/15/15CS 540 - Fall 2015 (Shavlik©), Lecture 31, Week 151 Exam (comprehensive, with focus on material since midterm), Thurs 5:30-7:30pm,

CS 540 - Fall 2015 (Shavlik©), Lecture 31, Week 15

Societal Impact of AI?• When will majority of highway miles be robot driven?

• When will most of the 'exciting new' S/W come from ML?

• When will half of current jobs be fully automated?

• For every job automated by AI/ML, how many new jobs will be created?   0.8?  1.5?

• Will there be a minimal guaranteed income?  Proposed in Finland For ‘industrialized’ countries?  All countries?

• Do we really all want to retire at 30? Humanities majors victorious?

12/15/15 18

Page 19: Today’s Topics 12/15/15CS 540 - Fall 2015 (Shavlik©), Lecture 31, Week 151 Exam (comprehensive, with focus on material since midterm), Thurs 5:30-7:30pm,

CS 540 - Fall 2015 (Shavlik©), Lecture 31, Week 15

Societal Impact of AI? (2)When will owning a car be a hobby?

When will communication between human speakers of any two natural (and non-rare) languages be as easy as communication in the same one?

When will our 'digital doubles' and robots do all our Travel planning?  Entertainment planning?  Financial decision making? Medical decision making? Shopping? Cooking? Cleaning?

When will the average human life span grow faster than one year per year? (Will AI drive med?) Robot care and engagement in nursing homes?

AI and war? AI and privacy? AI and income distribution?

Others? Comments or Questions?

What is the prob we will all look back at these questions in 25 years and see them as naively optimistic? Seems likely (but other things will happen faster than we expect)

12/15/15 19

Ever watch “Planet of the Apes”?

Page 20: Today’s Topics 12/15/15CS 540 - Fall 2015 (Shavlik©), Lecture 31, Week 151 Exam (comprehensive, with focus on material since midterm), Thurs 5:30-7:30pm,

CS 540 - Fall 2015 (Shavlik©), Lecture 31, Week 15

Final Comments

• Even if you don’t work in AI in the future, hopefully the class helps you understand the AI news, technological opportunities, and social impacts

• If you do/will work in AI, seems to be an exciting time! (Hope there’s no lurking ‘AI Winter 2’ due to over-hyped expectations)

• Good luck on the exam and keep in touch, especially if working in AI!

12/15/15 20