26
Three Key Engines of A Conversational Bot Dr. Ming Zhou Principal Researcher Microsoft Research Asia Aug. 26, 2016 [email protected]

Three Key Engines of A Conversational Botpic.huodongjia.com/ganhuodocs/2016-09-29/1475115678.31.pdf · 29-9-2016  · •Face detection, beauty score and age detection •Image commenting

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Three Key Engines of A Conversational Botpic.huodongjia.com/ganhuodocs/2016-09-29/1475115678.31.pdf · 29-9-2016  · •Face detection, beauty score and age detection •Image commenting

Three Key Engines of A Conversational Bot

Dr. Ming Zhou

Principal Researcher

Microsoft Research Asia

Aug. 26, 2016

[email protected]

Page 2: Three Key Engines of A Conversational Botpic.huodongjia.com/ganhuodocs/2016-09-29/1475115678.31.pdf · 29-9-2016  · •Face detection, beauty score and age detection •Image commenting

June, 2014• Weichat, Weibo, Win10

Aug.

2015

• Line and Twitter

Late March 2016

• Groupme, Kik, Twitter

Xiaoice, Rinna and Tay

•Single-turn and multi-turn

•Passive and proactive

•Speech enabledNL chat

•Image search and recognition

•Face detection, beauty score and age detection

•Image commenting

Image-based chat

•Reminder, translation, mathematics

•Joking, role play

•Count sheep, fortune-telling, horoscope

Skills

Page 3: Three Key Engines of A Conversational Botpic.huodongjia.com/ganhuodocs/2016-09-29/1475115678.31.pdf · 29-9-2016  · •Face detection, beauty score and age detection •Image commenting

User Profiling Context Modeling

Query Understanding

Candidate Response

GenerationRanking Selection

Style Variation

Intent, focus, topic, emotion, opinion

Chit-chat, QnA and dialogue

Session consistency Personalization Language styleDialectEmoticon

Data & IndexGeneral Topic Knowledge Base Topic-Centered Knowledge Base

1 2 3 4 5

General Architecture of Chatbot

Page 4: Three Key Engines of A Conversational Botpic.huodongjia.com/ganhuodocs/2016-09-29/1475115678.31.pdf · 29-9-2016  · •Face detection, beauty score and age detection •Image commenting

TASK COMPLETIONTask Completion

Social Chat (chit-chat) Layer 1

Layer 3

Three Key Engines

Layer 2Information and Answer

Page 5: Three Key Engines of A Conversational Botpic.huodongjia.com/ganhuodocs/2016-09-29/1475115678.31.pdf · 29-9-2016  · •Face detection, beauty score and age detection •Image commenting

Engine 1: Social Chat

Page 6: Three Key Engines of A Conversational Botpic.huodongjia.com/ganhuodocs/2016-09-29/1475115678.31.pdf · 29-9-2016  · •Face detection, beauty score and age detection •Image commenting

Personalized Chat

Sleep pattern Horoscope Interest

Page 7: Three Key Engines of A Conversational Botpic.huodongjia.com/ganhuodocs/2016-09-29/1475115678.31.pdf · 29-9-2016  · •Face detection, beauty score and age detection •Image commenting

Deep-ChatWithout Chat Knowledge

Do you know EXO?

What?

Tell me something about

EXO

Tell

what

……

With Chat Knowledge

Do you know EXO?

I do not want to see Kris in China because he has let EXO

Right!

Because of Kris, I will no longer be a fan of EXO

You were a fan of EXO?

I am an audience in every concert of

EXO

Who do you like best in EXO?

I like LAY best.

Me too.

Page 8: Three Key Engines of A Conversational Botpic.huodongjia.com/ganhuodocs/2016-09-29/1475115678.31.pdf · 29-9-2016  · •Face detection, beauty score and age detection •Image commenting

Image-Based Chat

DuplicateMeasured by local feature

10B Image index from BING

SimilarMeasured by DNN feature

9M Image index from SNS

RecognitionVia DNN

10K Categories

Mona Lisa, by Leonard…

Reproductionof “Mona Lisa”

Grandmother and Mona Lisa

Mona Lisa这不是Mona Lisa吗?

Isn’t this Mona Lisa?

Page 9: Three Key Engines of A Conversational Botpic.huodongjia.com/ganhuodocs/2016-09-29/1475115678.31.pdf · 29-9-2016  · •Face detection, beauty score and age detection •Image commenting

Image-Based Chat

DuplicateMeasured by local feature

10B Image index from BING

SimilarMeasured by DNN feature

9M Image index from SNS

RecognitionVia DNN

10K Categories

这小舌头。。。

这小舌头。。。

Look at the tiny tongue

Page 10: Three Key Engines of A Conversational Botpic.huodongjia.com/ganhuodocs/2016-09-29/1475115678.31.pdf · 29-9-2016  · •Face detection, beauty score and age detection •Image commenting

Image-Based Chat

Food

DuplicateMeasured by local feature

10B Image index from BING

SimilarMeasured by DNN feature

9M Image index from SNS

RecognitionVia DNN

10K Categories

看得我都流口水了

My mouth is watering

Page 11: Three Key Engines of A Conversational Botpic.huodongjia.com/ganhuodocs/2016-09-29/1475115678.31.pdf · 29-9-2016  · •Face detection, beauty score and age detection •Image commenting
Page 12: Three Key Engines of A Conversational Botpic.huodongjia.com/ganhuodocs/2016-09-29/1475115678.31.pdf · 29-9-2016  · •Face detection, beauty score and age detection •Image commenting

Engine 2: Information and Answer

Page 13: Three Key Engines of A Conversational Botpic.huodongjia.com/ganhuodocs/2016-09-29/1475115678.31.pdf · 29-9-2016  · •Face detection, beauty score and age detection •Image commenting

Botification of Search Results

Converting into NL expression

Summarization, entity extraction, card to NL

Bing

Documents, answers and cards

Query processing

Query type, query focus

Today, Beijing is sunny, 64 degree.

TechFest is Microsoft Research annual event…

Reinforcement learning is an area of machine learning…

Leonardo DiCaprio

Page 14: Three Key Engines of A Conversational Botpic.huodongjia.com/ganhuodocs/2016-09-29/1475115678.31.pdf · 29-9-2016  · •Face detection, beauty score and age detection •Image commenting

Planner

Ensemble Engine

Answers with confidence and evidences

Question Understanding

Knowledge Q/A

MSRA.KS

Web Q/A Social Q/A

QnA Based on Multi-Intelligences

Page 15: Three Key Engines of A Conversational Botpic.huodongjia.com/ganhuodocs/2016-09-29/1475115678.31.pdf · 29-9-2016  · •Face detection, beauty score and age detection •Image commenting

Engine 3: Task Completion

Page 16: Three Key Engines of A Conversational Botpic.huodongjia.com/ganhuodocs/2016-09-29/1475115678.31.pdf · 29-9-2016  · •Face detection, beauty score and age detection •Image commenting

Dialogue System

• Enabling both card-based or chat-based

Option-2

Trigger a dialogue to complete the task

Option-1

Trigger a form/URLto complete the task

Page 17: Three Key Engines of A Conversational Botpic.huodongjia.com/ganhuodocs/2016-09-29/1475115678.31.pdf · 29-9-2016  · •Face detection, beauty score and age detection •Image commenting

Dialogue Process

Hi there~

So how are u doing?

I’m fine. Please reserve a trip to Seattle for me.

Which type of room do you like?

Single room is just ok to me.

Got it, I will recommend you some travel packages now.

Do you have any preferred hotel?

Hilton, please. I will check-in on 2015-10-01, and stay there 3 days

IntentBook Travel

Package

Destination Seattle

Hotel

Check-in Date

Length of Stay

Room Type

Slot Name Slot ValueIntent=NilChit-chat Response

Intent=Book Travel Package; Destination=Seattle;

Dialogue Response

Hotel=Hilton; Check-in Date=2015-10-01; Length of Stay=3 Days;

Dialogue Response

Room Type=Single RoomDialogue Response

Hotel Hilton

Check-in Date

2015-10-01

Length of Stay

3 Days

Room Type Single Room

Query Understanding

• Intent detection• Slot value extraction

Dialogue Management

• Intent changes leads to state transition

• Slot info update• Select next slot to ask

Response Generation

• Call services• Call chit-chat

Page 18: Three Key Engines of A Conversational Botpic.huodongjia.com/ganhuodocs/2016-09-29/1475115678.31.pdf · 29-9-2016  · •Face detection, beauty score and age detection •Image commenting

Applications

Shopping Guider

Robot Brain

Customer Service

Page 19: Three Key Engines of A Conversational Botpic.huodongjia.com/ganhuodocs/2016-09-29/1475115678.31.pdf · 29-9-2016  · •Face detection, beauty score and age detection •Image commenting
Page 20: Three Key Engines of A Conversational Botpic.huodongjia.com/ganhuodocs/2016-09-29/1475115678.31.pdf · 29-9-2016  · •Face detection, beauty score and age detection •Image commenting
Page 21: Three Key Engines of A Conversational Botpic.huodongjia.com/ganhuodocs/2016-09-29/1475115678.31.pdf · 29-9-2016  · •Face detection, beauty score and age detection •Image commenting
Page 22: Three Key Engines of A Conversational Botpic.huodongjia.com/ganhuodocs/2016-09-29/1475115678.31.pdf · 29-9-2016  · •Face detection, beauty score and age detection •Image commenting

Robot Brain

Page 23: Three Key Engines of A Conversational Botpic.huodongjia.com/ganhuodocs/2016-09-29/1475115678.31.pdf · 29-9-2016  · •Face detection, beauty score and age detection •Image commenting

Customer Service

Page 24: Three Key Engines of A Conversational Botpic.huodongjia.com/ganhuodocs/2016-09-29/1475115678.31.pdf · 29-9-2016  · •Face detection, beauty score and age detection •Image commenting

Customer Service (HI)

Unsatisfied

Satisfied

Page 25: Three Key Engines of A Conversational Botpic.huodongjia.com/ganhuodocs/2016-09-29/1475115678.31.pdf · 29-9-2016  · •Face detection, beauty score and age detection •Image commenting

Research Opportunities

• Productivity of knowledge engineering• Learning from existing data to build hierarchical knowledge base • Powerful tool for human editing and updating

• Context-sensitive understanding and responding • Better context modelling about current topic and task• Allow various styles of user’s input to map into intent space

• Semantic computing (distance, entailment)• Embedding of word, entity, sentence• Lexical semantic relation (synonym, hyponym, hypernym, distance)

Page 26: Three Key Engines of A Conversational Botpic.huodongjia.com/ganhuodocs/2016-09-29/1475115678.31.pdf · 29-9-2016  · •Face detection, beauty score and age detection •Image commenting

Thanks!