Top Banner
Language technologies past present, and future Christopher Potts CSLI Summer Internship Program July 21, 2017 Many slides joint work with Bill MacCartney: http://web.stanford.edu/class/cs224u/
55

July 21, 2017 present, and future CSLI Summer Internship ...cgpotts/talks/potts-csli-internship2017-seminar.pdf · • The machine must have a rich, human-like cognitive life, and

Mar 13, 2020

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: July 21, 2017 present, and future CSLI Summer Internship ...cgpotts/talks/potts-csli-internship2017-seminar.pdf · • The machine must have a rich, human-like cognitive life, and

Language technologies past present, and future

Christopher PottsCSLI Summer Internship Program

July 21, 2017

Many slides joint work with Bill MacCartney:http://web.stanford.edu/class/cs224u/

Page 2: July 21, 2017 present, and future CSLI Summer Internship ...cgpotts/talks/potts-csli-internship2017-seminar.pdf · • The machine must have a rich, human-like cognitive life, and

Hype and hand-wringing

• Jürgen Schmidhuber: “We are on the verge not of another industrial revolution, but a new form of life, more like the big bang.” [link]

• Elon Musk: “AI is a fundamental existential risk for human civilization, and I don't think people fully appreciate that.” [link]

• October 2016: “Microsoft has made a major breakthrough in speech recognition, creating a technology that recognizes the words in a conversation as well as a person does.” [link]

Page 3: July 21, 2017 present, and future CSLI Summer Internship ...cgpotts/talks/potts-csli-internship2017-seminar.pdf · • The machine must have a rich, human-like cognitive life, and

Two perspectives

Page 4: July 21, 2017 present, and future CSLI Summer Internship ...cgpotts/talks/potts-csli-internship2017-seminar.pdf · • The machine must have a rich, human-like cognitive life, and

Overview

• What is understanding?

• A brief history of language technologies

• Language technologies of the past

• Language technologies of today

• Current approaches and prospects

• Predictions about the future!

Page 5: July 21, 2017 present, and future CSLI Summer Internship ...cgpotts/talks/potts-csli-internship2017-seminar.pdf · • The machine must have a rich, human-like cognitive life, and

Readings and other background

• Percy Liang: Talking to computers in natural language

• Levesque: On our best behaviour

• Mitchell: Reading the Web: A breakthrough goal for AI

• Podcast: The challenge and promise of artificial intelligence

• Podcast: Hal Daume on Talking Machines

• Stanford CS224u, Natural language understanding

Page 6: July 21, 2017 present, and future CSLI Summer Internship ...cgpotts/talks/potts-csli-internship2017-seminar.pdf · • The machine must have a rich, human-like cognitive life, and

What is understanding?

• determine its truth (with justification)

• calculate its entailments

• take appropriate action in light of it

• translate it into another language

• …

To understand a statement is to:

Page 7: July 21, 2017 present, and future CSLI Summer Internship ...cgpotts/talks/potts-csli-internship2017-seminar.pdf · • The machine must have a rich, human-like cognitive life, and

The Turing Test (Turing 1950)

Turing replaced “Can machines think?”, which he regarded as “too meaningless to deserve discussion” (p. 442), with the question whether an interrogator could be tricked into thinking that a machine was a human using only conversation (no visuals, no demands for physical performance, etc.).

Page 8: July 21, 2017 present, and future CSLI Summer Internship ...cgpotts/talks/potts-csli-internship2017-seminar.pdf · • The machine must have a rich, human-like cognitive life, and

Some of the objections Turing anticipates

• “Thinking is a function of man’s immortal soul. God has given an immortal soul to every man and woman, but not to any-other animal or to machines. Hence no animal or machine can think.”

• “There are a number of results of mathematical logic which can be used to show that there are limitations to the powers of discrete-state machines.”

• The machine must have a rich, human-like cognitive life, and we must be able to verify that.

Page 9: July 21, 2017 present, and future CSLI Summer Internship ...cgpotts/talks/potts-csli-internship2017-seminar.pdf · • The machine must have a rich, human-like cognitive life, and

Report from the first Turing Test

Shieber 1994: Cynthia Clay, the Shakespeare aficionado, was thrice misclassified as a computer. At least one of the judges made her classifications on the premise that “[no] human would have that amount of knowledge about Shakespeare” [26]. Lisette Gozo was honored as the most human of the agents for her discussion of women’s clothing, although one judge rated two computer programs above her.

Page 10: July 21, 2017 present, and future CSLI Summer Internship ...cgpotts/talks/potts-csli-internship2017-seminar.pdf · • The machine must have a rich, human-like cognitive life, and

The case of Eugene Goostman

• June 2014: “A computer program called Eugene Goostman, which simulates a 13-year-old Ukrainian boy, is said to have passed the Turing test at an event organised by the University of Reading.” [link]

• Gary Marcus: “It’s easy to see how an untrained judge might mistake wit for reality, but once you have an understanding of how this sort of system works, the constant misdirection and deflection becomes obvious, even irritating. The illusion, in other words, is fleeting.” [link]

Page 11: July 21, 2017 present, and future CSLI Summer Internship ...cgpotts/talks/potts-csli-internship2017-seminar.pdf · • The machine must have a rich, human-like cognitive life, and

Searle’s Chinese Room Argument

Imagine yourself in a room containing a basketful of symbols from a language L that you don’t understand, along with a rule book (written in English) for matching symbols in L with other symbols in L. People outside the room pass you strings of symbols in L, you follow your rules, and pass them back symbols in L. The rule book is so good that the symbols you pass back are indistinguishable from the replies of a native speaker of L. You would pass the Turing test, but (Searle says) no one would say you understand.

Page 12: July 21, 2017 present, and future CSLI Summer Internship ...cgpotts/talks/potts-csli-internship2017-seminar.pdf · • The machine must have a rich, human-like cognitive life, and

A question of fact, or a question of usage?

Chomsky (1996): The question of whether a computer is playing chess, or doing long division, or translating Chinese, is like the question of whether robots can murder or airplanes can fly — or people; after all, the “flight” of the Olympic long jump champion is only an order of magnitude short of that of the chicken champion (so I’m told). These are questions of decision, not fact; decision as to whether to adopt a certain metaphoric extension of common usage.

Page 13: July 21, 2017 present, and future CSLI Summer Internship ...cgpotts/talks/potts-csli-internship2017-seminar.pdf · • The machine must have a rich, human-like cognitive life, and

Levesque 2013: On our best behaviour

“This paper is about the science of AI. Unfortunately, the technology of AI that gets all the attention.”

“AI is the study of intelligent behaviour in computational terms.”

“Should baseball players be allowed to glue small wings onto their caps?”

“We need to return to our roots in Knowledge Representation and Reasoning for language and from language.”

Page 14: July 21, 2017 present, and future CSLI Summer Internship ...cgpotts/talks/potts-csli-internship2017-seminar.pdf · • The machine must have a rich, human-like cognitive life, and

Technological and cognitive goals

James Allen (1987): “[T]here can be two underlying motivations for building a computational theory. The technological goal is simply to build better computers, and any solution that works would be acceptable. The cognitive goal is to build a computational analog of the human-language-processing mechanism; such a theory would be acceptable only after it had been verified by experiment.”

Page 15: July 21, 2017 present, and future CSLI Summer Internship ...cgpotts/talks/potts-csli-internship2017-seminar.pdf · • The machine must have a rich, human-like cognitive life, and

Super-human partnerships

Moderator: How far are we away from human intelligence? Just take a gamble.

Peter Norvig: Well, first of all, I object to that, because I think that’s a low target to aim at. [Audience laughs.] Right, ’cause certainly there’s lots of things already that computers are much, much better than people at. [. . . ] We want to be able to say, “What is it that humans can’t do that computers can do better?” Now, part of that may be that the computers want to have some basic competency at the human-level in order to interact with us better. But the goal shouldn’t be human-level performance. The goal should be super-human partnership. [http://www.kqed.org/a/radiospecials/R201111302000]

Page 16: July 21, 2017 present, and future CSLI Summer Internship ...cgpotts/talks/potts-csli-internship2017-seminar.pdf · • The machine must have a rich, human-like cognitive life, and

A brief history of language technologies

• 1960s: Pattern-matching with small rule-sets

• 1970-80s: Linguistically rich, logic-driven, grounded systems; restricted applications

• 1990s: the statistical revolution in NLP leads to a decrease in NLU work

• 2010s: NLU returns to center stage, mixing techniques from previous decades

Page 17: July 21, 2017 present, and future CSLI Summer Internship ...cgpotts/talks/potts-csli-internship2017-seminar.pdf · • The machine must have a rich, human-like cognitive life, and

Prominent language technologies of the past

Page 18: July 21, 2017 present, and future CSLI Summer Internship ...cgpotts/talks/potts-csli-internship2017-seminar.pdf · • The machine must have a rich, human-like cognitive life, and

2001: A Space Odyssey – Graphics

Page 19: July 21, 2017 present, and future CSLI Summer Internship ...cgpotts/talks/potts-csli-internship2017-seminar.pdf · • The machine must have a rich, human-like cognitive life, and

2001: A Space Odyssey – Chess

Page 20: July 21, 2017 present, and future CSLI Summer Internship ...cgpotts/talks/potts-csli-internship2017-seminar.pdf · • The machine must have a rich, human-like cognitive life, and

2001: A Space Odyssey – Dialogue

Dave Bowman: Open the pod doors, Hal.

HAL: I’m sorry, Dave, I’m afraid I can’t do that.

Bowman: What are you talking abou, HAL?

HAL: I know that you and Frank were planning to disconnect me, and I’m afraid that’s something I cannot allow to happen.

Page 21: July 21, 2017 present, and future CSLI Summer Internship ...cgpotts/talks/potts-csli-internship2017-seminar.pdf · • The machine must have a rich, human-like cognitive life, and

The reality of conversational agents today

Colbert: Write the show.

Siri: What would you like to search for?

Colbert: I don’t want to search for anything! I want to write the show!

Siri: Searching the Web for “search for anything. I want to write the shuffle.”

[...]

Colbert: For the love of God, the cameras are on, give me something?

Siri: What kind of place are you looking for? Camera stores or churches?

http://www.cc.com/video-clips/h40j2n/the-colbert-report-talking-iphone-4s

Page 22: July 21, 2017 present, and future CSLI Summer Internship ...cgpotts/talks/potts-csli-internship2017-seminar.pdf · • The machine must have a rich, human-like cognitive life, and

Eliza (1966)

User: You are like my father in some ways.

ELIZA: What resemblance do you see

User: You are not very aggressive but I think you don’t want me to notice that.

ELIZA: What makes you think I am not aggressive?

User: You don’t argue with me.

ELIZA: Why do you think I don’t argue with you?

User: You are afraid of me.

ELIZA: Does it please you to believe I am afraid of you?

Page 23: July 21, 2017 present, and future CSLI Summer Internship ...cgpotts/talks/potts-csli-internship2017-seminar.pdf · • The machine must have a rich, human-like cognitive life, and

Eliza (1966)

Rewrite user’s reply by:

• Swapping 1st and 2nd person• Interpolating stock phrase• Using scores to rank possible transformations• When desperate, search the Web [21st century]

Page 24: July 21, 2017 present, and future CSLI Summer Internship ...cgpotts/talks/potts-csli-internship2017-seminar.pdf · • The machine must have a rich, human-like cognitive life, and

Another comment about the first Turing Test

Shieber 1994: One reporter noted that Weizenbaum himself was “disturbed” by how easily people were fooled by these programs [26], and more than one of the judges reported that they were disappointed in the programs’ capabilities after their expectations had been raised by interacting with ELIZA in the interviewing process.

Page 25: July 21, 2017 present, and future CSLI Summer Internship ...cgpotts/talks/potts-csli-internship2017-seminar.pdf · • The machine must have a rich, human-like cognitive life, and

STUDENT (Bobrow 1964)

• Sample input: “If the number of customer Tom gets is twice the square of 20% of the number of advertisement he runs, and the number of advertisements he runs is 45, what is the number of customers Tom gets?

• Method: pattern match and transform until the string is something that a computer can treat as a logic problem.

Page 26: July 21, 2017 present, and future CSLI Summer Internship ...cgpotts/talks/potts-csli-internship2017-seminar.pdf · • The machine must have a rich, human-like cognitive life, and

SHRDLU

Find a block which is taller than the one you are holding and put it into the box.

OK.

How many blocks are not in the box?

FOUR OF THEM.

Is at least one of them narrower than the one which I told you to pick up?

YES, THE RED CUBE.

http://youtube.com/watch?v=8SvD-lNg0TA

Page 27: July 21, 2017 present, and future CSLI Summer Internship ...cgpotts/talks/potts-csli-internship2017-seminar.pdf · • The machine must have a rich, human-like cognitive life, and

Chat-80

• Developed 1979-82 by Fernando Pereira & David Warren

• Hand-built lexicon and grammar

• Could answer highly complex questions about geography:

◦ Which country bordering the Mediterranean borders a country that is bordered by a country whose population exceeds the population of India?

◦ What is the total area of countries south of the Equator and not in Australasia?

Page 28: July 21, 2017 present, and future CSLI Summer Internship ...cgpotts/talks/potts-csli-internship2017-seminar.pdf · • The machine must have a rich, human-like cognitive life, and

Prominent language of today

Page 29: July 21, 2017 present, and future CSLI Summer Internship ...cgpotts/talks/potts-csli-internship2017-seminar.pdf · • The machine must have a rich, human-like cognitive life, and

Siri: NLU’s celebrity spokesperson

Susan Bennett, a veteran voice actor, claimed that she is the original voice behind the popular digital assistant. Tight-lipped Apple officials won't confirm or deny the claim, but an audio forensics expert confirmed that the voices are a match. http://goo.gl/H28y9v

Page 30: July 21, 2017 present, and future CSLI Summer Internship ...cgpotts/talks/potts-csli-internship2017-seminar.pdf · • The machine must have a rich, human-like cognitive life, and

Siri

• The voice-driven personal assistant on your iPhone

• Perhaps the most visible & exciting application of NLU today

• A major breakthrough in artificial intelligence (AI)???

• The next generation of interaction design???

Page 31: July 21, 2017 present, and future CSLI Summer Internship ...cgpotts/talks/potts-csli-internship2017-seminar.pdf · • The machine must have a rich, human-like cognitive life, and

The promise of conversational agents

Where is The Hobbit playing in Mountain View?

The Hobbit is playing at the Century 16 Theater.

When is it playing there?

It’s playing at 2pm, 5pm, and 8pm.

OK. I’d like 1 adult and 2 children for the first show.How much would that cost?

Need domain knowledge, discourse knowledge, world knowledge

Page 32: July 21, 2017 present, and future CSLI Summer Internship ...cgpotts/talks/potts-csli-internship2017-seminar.pdf · • The machine must have a rich, human-like cognitive life, and

The reality of conversational agents

Page 33: July 21, 2017 present, and future CSLI Summer Internship ...cgpotts/talks/potts-csli-internship2017-seminar.pdf · • The machine must have a rich, human-like cognitive life, and

Conversational search at Google

https://www.youtube.com/watch?v=yiQX-_Y0gms

what’s the population of Chicagowho’s the mayorhow old is hewho is he married to

OK Google, where am Ihow is traffic in San Diegoshow me things to do therewhen did the San Diego Zoo openis it openhow far is itcall them

when is ThanksgivingI meant the Canadian one

Page 34: July 21, 2017 present, and future CSLI Summer Internship ...cgpotts/talks/potts-csli-internship2017-seminar.pdf · • The machine must have a rich, human-like cognitive life, and

Semantic query parsing at Google

A growing proportion of queries require semantic interpretation.Conventional keyword-based retrieval does not suffice!

how to bike to my office

(TravelQuery (Destination /m/0d6lp) (Mode BIKE))

text my wife on my way

(SendMessage (Recipient 0x31cbf492) (MessageType SMS) (Subject "on my way"))

weather friday austin tx

(WeatherQuery (Location /m/0vzm) (Date 2013-12-13))

angelina jolie net worth

(FactoidQuery (Entity /m/0f4vbz) (Attribute /person/net_worth))

is REI open on sunday

(LocalQuery (QueryType OPENING_HOURS) (Location /m/02nx4d) (Date 2013-12-15))

play sunny by boney m

(PlayMedia (MediaType MUSIC) (SongTitle "sunny") (MusicArtist /m/017mh))

Page 35: July 21, 2017 present, and future CSLI Summer Internship ...cgpotts/talks/potts-csli-internship2017-seminar.pdf · • The machine must have a rich, human-like cognitive life, and

Wolfram Alpha

Page 36: July 21, 2017 present, and future CSLI Summer Internship ...cgpotts/talks/potts-csli-internship2017-seminar.pdf · • The machine must have a rich, human-like cognitive life, and

Wolfram Alpha

Page 37: July 21, 2017 present, and future CSLI Summer Internship ...cgpotts/talks/potts-csli-internship2017-seminar.pdf · • The machine must have a rich, human-like cognitive life, and

Watson

Page 38: July 21, 2017 present, and future CSLI Summer Internship ...cgpotts/talks/potts-csli-internship2017-seminar.pdf · • The machine must have a rich, human-like cognitive life, and

Watson gets confused

Answer: Grasshoppers eat it.

Watson: What is kosher?

Wired: Watson also tripped up on an “Olympic Oddities” answer, but so imperceptibly that Alex Trebek didn’t notice at first, raising an important point of clarification. After Jennings responded incorrectly that Olympian gymnast George Eyser was “missing a hand”, Watson responded, “What is a leg?

Page 40: July 21, 2017 present, and future CSLI Summer Internship ...cgpotts/talks/potts-csli-internship2017-seminar.pdf · • The machine must have a rich, human-like cognitive life, and

Application: sentiment analysis

(All airlines tweets are negative; perhaps we can achieve more nuanced judgments.)

Page 41: July 21, 2017 present, and future CSLI Summer Internship ...cgpotts/talks/potts-csli-internship2017-seminar.pdf · • The machine must have a rich, human-like cognitive life, and

Identifying the target of criticism

These reviews are not critical of the book, but rather of the publisher’s decision by the publisher’s about an electronic edition.

Page 42: July 21, 2017 present, and future CSLI Summer Internship ...cgpotts/talks/potts-csli-internship2017-seminar.pdf · • The machine must have a rich, human-like cognitive life, and

Deep problems of sentiment analysis

1. There was an earthquake in LA2. The team failed the physical challenge. (We win/lose!)3. They said it would be great. They were right/wrong.4. Many consider the masterpiece bewildering, boring,

slow-moving or annoying.5. The party fat-cats are sipping their expensive, imported

wines.6. Oh, you’re terrible!

Page 43: July 21, 2017 present, and future CSLI Summer Internship ...cgpotts/talks/potts-csli-internship2017-seminar.pdf · • The machine must have a rich, human-like cognitive life, and

Twitter prognostication

• Twitter mood predicts the stock market [Bollen et al. 2011]

• “In February 2011 Derwent Capital Markets launched a hedge fund using Twitter for investment direction.” [Wikipedia]

• The junk science behind the ‘Twitter Hedge Fund’

• Derwent closes shop

Page 44: July 21, 2017 present, and future CSLI Summer Internship ...cgpotts/talks/potts-csli-internship2017-seminar.pdf · • The machine must have a rich, human-like cognitive life, and

Automated trading

• Most financial trading is now done by automated systems

• Many trading strategies rely in part on automated analysis of unstructured data feeds: newswires, analyst reports, etc.

• Vast profits if you discover and act on market-moving news faster and more accurately than rivals!

Page 45: July 21, 2017 present, and future CSLI Summer Internship ...cgpotts/talks/potts-csli-internship2017-seminar.pdf · • The machine must have a rich, human-like cognitive life, and

Hathaway vs. Hathaway

Page 46: July 21, 2017 present, and future CSLI Summer Internship ...cgpotts/talks/potts-csli-internship2017-seminar.pdf · • The machine must have a rich, human-like cognitive life, and

The 2008 United Airlines “bankruptcy”

• Newspaper accidentally republished old bankruptcy story• Automated trading reacted within seconds• $1B in market value evaporated within 12 minutes

Read more athttp://nyti.ms/1dBzJSK

Page 47: July 21, 2017 present, and future CSLI Summer Internship ...cgpotts/talks/potts-csli-internship2017-seminar.pdf · • The machine must have a rich, human-like cognitive life, and

The 2013 @AP Twitter hack

@AP Twitter feed hacked.

Within seconds,Dow plunged 140 points.

Recovered in 6 minutes.

S&P 500 temporarily lost $136B in market cap!

Oops.

Page 48: July 21, 2017 present, and future CSLI Summer Internship ...cgpotts/talks/potts-csli-internship2017-seminar.pdf · • The machine must have a rich, human-like cognitive life, and

The 2013 @AP Twitter hack

The rapid fire trading also highlights the role of computers and algorithmic trading on Wall Street. “That goes to show you how algorithms read headlines and create these automatic orders — you don’t even have time to react as a human being,” said Kenny Polcari of O’Neill Securities, on Power Lunch. “I’d imagine the SEC’s going to look into how this happens. It’s not about banning computers, but it’s about protection and securing our markets.”

http://www.cnbc.com/id/100646197

Page 49: July 21, 2017 present, and future CSLI Summer Internship ...cgpotts/talks/potts-csli-internship2017-seminar.pdf · • The machine must have a rich, human-like cognitive life, and

Business intelligence

• Extracting actionable intelligence from millions of unstructured documents

• Cataphora, H5: legal discovery, compliance, and information management

• Palantir, Quid: intelligence for government and business

Scene of legal discoveryfrom the movie Syriana

Page 50: July 21, 2017 present, and future CSLI Summer Internship ...cgpotts/talks/potts-csli-internship2017-seminar.pdf · • The machine must have a rich, human-like cognitive life, and

Ethical issues in designing artificial agents

• Discovering Unwarranted Associations in Data-Driven Applications with the FairTest Testing Toolkit [link]

• Twitter taught Microsoft’s AI chatbot to be a racist asshole in less than a day [link]

• When Google gets it wrong: direct answers with debatable, incorrect, and weird content [link]

• Global brands shun Google: hundreds of companies suspend advertising in row over extremist content [link]

• The social impact of natural language processing [link]

Page 51: July 21, 2017 present, and future CSLI Summer Internship ...cgpotts/talks/potts-csli-internship2017-seminar.pdf · • The machine must have a rich, human-like cognitive life, and

The Army’s Robot Recruiter: Sgt. Star

Can respond to about 800 issues

Likely a simple, rule-based system using keywords

Social advantage: there are some questions recruits will ask a bot, but not a human

http://www.onthemedia.org/story/18-armys-robot-recruiter/

Page 52: July 21, 2017 present, and future CSLI Summer Internship ...cgpotts/talks/potts-csli-internship2017-seminar.pdf · • The machine must have a rich, human-like cognitive life, and

Current approaches and prospects

Page 53: July 21, 2017 present, and future CSLI Summer Internship ...cgpotts/talks/potts-csli-internship2017-seminar.pdf · • The machine must have a rich, human-like cognitive life, and

How do conversational agents work?

NLU

Servicemanager

Internal & external APIS

email

SMS

maps

weather

stocks

etc.

Automatic speech recognition (ASR)

NLP annotation(tokenization, POS tagging, NER, …)

Interpreter

Response formulation

Text-to-speech (TTS)

Page 54: July 21, 2017 present, and future CSLI Summer Internship ...cgpotts/talks/potts-csli-internship2017-seminar.pdf · • The machine must have a rich, human-like cognitive life, and

Winograd schema (back to Levesque’s paper)

• The town councillors refused to give the angry demonstrators a permit because they feared/advocated violence. Who feared/advocated violence?the town councillors / the angry demonstrators

• The trophy would not fit in the brown suitcase because it was so small/big? What was so small/big?the trophy / the brown suitcase

Page 55: July 21, 2017 present, and future CSLI Summer Internship ...cgpotts/talks/potts-csli-internship2017-seminar.pdf · • The machine must have a rich, human-like cognitive life, and

Predictions about the future: what are yours?

• Shift from learning from big data to learning effectively from small data.

• NLP breakthroughs from integration with real-world tasks, goals, and environments.

• Increased use of voice interfaces (with speech-to-text continuing to outpace understanding).

• More frequent disasters related to systems run amuck, but overall gains in convenience and accessibility.