Top Banner
AliMe Bot Platform - Alibaba’s Personal Intelligent Assistant Alibaba Group – Intelligent Innovation Division ——Haiqing Chen(Hunter)
32

AliMe Bot Platform - LMS | Lab for Media Search at NUSlms.comp.nus.edu.sg/sites/default/files/news-attachments/Industry1... · AliMe Bot Platform - Alibaba’s ... Chit Chat others

Jul 27, 2018

Download

Documents

vonga
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: AliMe Bot Platform - LMS | Lab for Media Search at NUSlms.comp.nus.edu.sg/sites/default/files/news-attachments/Industry1... · AliMe Bot Platform - Alibaba’s ... Chit Chat others

AliMe Bot Platform- Alibaba’s Personal � Intelligent � Assistant � 

Alibaba Group � – Intelligent Innovation Division

——Haiqing Chen(Hunter)

Page 2: AliMe Bot Platform - LMS | Lab for Media Search at NUSlms.comp.nus.edu.sg/sites/default/files/news-attachments/Industry1... · AliMe Bot Platform - Alibaba’s ... Chit Chat others

Outline

n AliMe Bot Platform Introduction

n Intelligent �  Interaction � Technical � Practice

n Look � Forward � to � The � Future

Page 3: AliMe Bot Platform - LMS | Lab for Media Search at NUSlms.comp.nus.edu.sg/sites/default/files/news-attachments/Industry1... · AliMe Bot Platform - Alibaba’s ... Chit Chat others

Outline

n AliMe Bot Platform Introduction

n Intelligent �  Interaction � Technical � Practice

n Look � Forward � to � The � Future

Page 4: AliMe Bot Platform - LMS | Lab for Media Search at NUSlms.comp.nus.edu.sg/sites/default/files/news-attachments/Industry1... · AliMe Bot Platform - Alibaba’s ... Chit Chat others

AliMe Bot Platform Introduction

Customer Service

Self � Support Outsource Cloud � 

Service

Customer Service

Self � Support

Outsource

Cloud � Service

ChatbotPlatform

Platform

3rd

party AlibabaMerchantEnterprise

n Upgrading � of � service: � From � manpower � to � intelligence � plus � manpowern Upgrading � of � field: From � Ali � inside � to � merchants and � enterprises

Page 5: AliMe Bot Platform - LMS | Lab for Media Search at NUSlms.comp.nus.edu.sg/sites/default/files/news-attachments/Industry1... · AliMe Bot Platform - Alibaba’s ... Chit Chat others

AliMe Bot Platform Introduction

AliMe bot � platform is a complete set of intelligent human-computerinteraction solution.

• Face to three domains solutions:• AliMe Assistant: Platform  solution  for  Alibaba business• TiMi: Platform  solution  forMerchants of Taobao• Bee Bot: Platform  solution for enterprises, ISVetc.

• Supporting two types of infrastructures:• SaaS: Front to end solution, a whole chatbot system includingchat UI• PaaS: SupplyAI interfaces capability for developers to help build their

systems

Page 6: AliMe Bot Platform - LMS | Lab for Media Search at NUSlms.comp.nus.edu.sg/sites/default/files/news-attachments/Industry1... · AliMe Bot Platform - Alibaba’s ... Chit Chat others

ConfigurationPlatform Chatbot QA Platform Smart Knowledge

Base AI Boost

Chatbot Application Platform

AliMe Assistant Platform

Different Domains of AliMe AssistantsTiMi

Alibaba Merchant

Taobao Tmall

SaaS

Enterprise

Super AliMeAssistant

Bee Bot Platform

WangXiang Travel

Second-hand

Other

B2B Logistics

Youku Other

SaaS PaaS

QianniuPlatform

DingTalk

AliCloud IOT

SaaS

Bot Framework

Algorithm Component Platform Data Platform

Oversea

SaaS or PaaS

AliMe Bot Platform Introduction

Page 7: AliMe Bot Platform - LMS | Lab for Media Search at NUSlms.comp.nus.edu.sg/sites/default/files/news-attachments/Industry1... · AliMe Bot Platform - Alibaba’s ... Chit Chat others

AliMe Bot Platform Introduction

AliMe Assistant

• Covered Areas:• Customer  Service• Shopping  Guide• General Assistant

Application• Chit Chat• Activity  Operation• ……

Page 8: AliMe Bot Platform - LMS | Lab for Media Search at NUSlms.comp.nus.edu.sg/sites/default/files/news-attachments/Industry1... · AliMe Bot Platform - Alibaba’s ... Chit Chat others

AliMe Bot Platform Introduction

TiMi

• Features:• General  ontology  

model  for  all  categories:  logistics  field

• Industry  ontology  model:  mobile  phone,  clothing  etc.

• General  QA  model

Page 9: AliMe Bot Platform - LMS | Lab for Media Search at NUSlms.comp.nus.edu.sg/sites/default/files/news-attachments/Industry1... · AliMe Bot Platform - Alibaba’s ... Chit Chat others

AliMe Bot Platform Introduction

Bee Bot Platform

• Features:• This is a whole solution

for 3rd party, i.e.enterprise, ISV etc.

• Smart knowledgebaseto fullfill knowledges

Page 10: AliMe Bot Platform - LMS | Lab for Media Search at NUSlms.comp.nus.edu.sg/sites/default/files/news-attachments/Industry1... · AliMe Bot Platform - Alibaba’s ... Chit Chat others

Outline

n AliMe Bot Platform Introduction

n Intelligent � Interaction � Technical � Practice

n Look � Forward � to � The � Future

Page 11: AliMe Bot Platform - LMS | Lab for Media Search at NUSlms.comp.nus.edu.sg/sites/default/files/news-attachments/Industry1... · AliMe Bot Platform - Alibaba’s ... Chit Chat others

Intelligent �  Interaction � Technical � Practice

AliMeAssistant TiMi Bee Bot

Platform

PaaS Service Layer

Dialog Management System

Matching Model Bot Framework

Algorithm Component Platform

ConfigurationPlatform

Knowledge � Base AI Boost

AliMe Bot Platform Application � Architecture

Page 12: AliMe Bot Platform - LMS | Lab for Media Search at NUSlms.comp.nus.edu.sg/sites/default/files/news-attachments/Industry1... · AliMe Bot Platform - Alibaba’s ... Chit Chat others

Intelligent �  Interaction � Technical � Practice

Intent Routing

CustomerService

ShoppingGuide

LogisticsField

ChitChat

others

ImageRecognition

Muti-turn Interaction

ASRSemantic � RecognitionUser Profile

Muti-model Interaction Recommendation

Knowledge(QA pairs, Ontology, Knowledge Graph)

Data AnalyticsData MiningML/DL Training

Routing Layer

Service Layer

Model Layer

Data Layer

AliMe Bot Platform Algorithm Model � Architecture

Page 13: AliMe Bot Platform - LMS | Lab for Media Search at NUSlms.comp.nus.edu.sg/sites/default/files/news-attachments/Industry1... · AliMe Bot Platform - Alibaba’s ... Chit Chat others

Intelligent �  Interaction � Technical � Practice

Query+Context

Intention Recognition

Dialog Management System

QA Bot Task Bot Chat Bot

KowledgeGraph IR Slot Filling Bot

FrameworkDRL IR+LSTM

Page 14: AliMe Bot Platform - LMS | Lab for Media Search at NUSlms.comp.nus.edu.sg/sites/default/files/news-attachments/Industry1... · AliMe Bot Platform - Alibaba’s ... Chit Chat others

Intelligent �  Interaction � Technical � Practice

Intention Identification Process

QuerySegmentation,POS Tagging,

NER

IntentionClassification

DialogManagement

SemanticRepresentation

IntentionAttribute

Extraction

DomainModel

ContextModel

Page 15: AliMe Bot Platform - LMS | Lab for Media Search at NUSlms.comp.nus.edu.sg/sites/default/files/news-attachments/Industry1... · AliMe Bot Platform - Alibaba’s ... Chit Chat others

Intelligent �  Interaction � Technical � Practice

Intention Identification Classification

• Traditionalmachine Learningmethods :• Supervised  multiply classification• Supervised  multiply binary classification• E.g.  Bayes,  KNN,  SVM,  Logistic Regression  etc.

• Deep Learning:• Combined user profile or behavior to build deep learningprediction

model• E.g. CNN, DNN, LSTM  etc.

Page 16: AliMe Bot Platform - LMS | Lab for Media Search at NUSlms.comp.nus.edu.sg/sites/default/files/news-attachments/Industry1... · AliMe Bot Platform - Alibaba’s ... Chit Chat others

Intelligent �  Interaction � Technical � Practice

Enrich Question with Profile, Behavior and Context

Question User Behavior

User � Profile

Query+ Context

DL Model

Page 17: AliMe Bot Platform - LMS | Lab for Media Search at NUSlms.comp.nus.edu.sg/sites/default/files/news-attachments/Industry1... · AliMe Bot Platform - Alibaba’s ... Chit Chat others

Intelligent �  Interaction � Technical � Practice

Intention � Identification � with Deep Learning

N V

Question(BOW/RNN/CNN)

Behavior,Profile, Context

L

Embedding

Softmax

N V

Question(BOW/RNN/CNN)

Behavior,Profile, Context

0/1

Embedding

0/1 0/1 0/1 Logistic Regression (LR)

All labels L1 L2 L3 ……

Multiple Classification(DNN 2-channel inputs)

Multiple Binary Classification(DNN 2-channel inputs)

Page 18: AliMe Bot Platform - LMS | Lab for Media Search at NUSlms.comp.nus.edu.sg/sites/default/files/news-attachments/Industry1... · AliMe Bot Platform - Alibaba’s ... Chit Chat others

Intelligent �  Interaction � Technical � Practice

Clas

s2vec

Intent rule

Intetionmodel

Senrepresenta

tion

• Cosine• WMD

Intent � decision & � feature � generation

Similaritymodel

Data

Domain2:top up

Intentrelation

Domain2:weatherreport

Domain1:book airlinetickets

SM

graph

Topicmodel LDA

aiml

• Lda2vec

• skip-thoughts

• Maxent• CNN

BotFramework

B

A

DC

Algorithmcomponent

feature � generation

feature � generation

feature � generation

feature � generation

feature � generation

feature � generation

feature � generation

S2S model RNN • SentenceRNN• ContextRNN

Page 19: AliMe Bot Platform - LMS | Lab for Media Search at NUSlms.comp.nus.edu.sg/sites/default/files/news-attachments/Industry1... · AliMe Bot Platform - Alibaba’s ... Chit Chat others

Intelligent �  Interaction � Technical � Practice -QA Bot

An � Excerpt � of � a Knowledge � Graph

Pros

Supports Contextual Reasoning

Minimized maintaining � costs for � knowledge � items

Improved accuracy (10%+) and user experience

Cons

Loss of recall at initial stage

Page 20: AliMe Bot Platform - LMS | Lab for Media Search at NUSlms.comp.nus.edu.sg/sites/default/files/news-attachments/Industry1... · AliMe Bot Platform - Alibaba’s ... Chit Chat others

Intelligent �  Interaction � Technical � Practice - QA Bot

Preprocessing1. � Anaphora � resolution

2. � Word segmentation

3. � Error correction

Recall1. � Open � search

AnswerProcessing

1. � Answer rendering

2. � Logging

Computation1. � Similarity

2. � Sentiment analysis

3. � Attribute identification

Indexing1. � Inverted Indexing

StructuredKnowledge

Term Weighting

Question

Answer

Retrieval � Model

Page 21: AliMe Bot Platform - LMS | Lab for Media Search at NUSlms.comp.nus.edu.sg/sites/default/files/news-attachments/Industry1... · AliMe Bot Platform - Alibaba’s ... Chit Chat others

Intelligent �  Interaction � Technical � Practice -Task Bot

Task-Oriented � QA

DomainData

Input DMS

Slots � Filling

ContextModel

Output

Input:Extract the slots of query

Output:DMS feedbacks the result

Processes:

•Get the attributes of the intent tree to fill

•Check the state of the intent tree

•Get the result by � the � state

Page 22: AliMe Bot Platform - LMS | Lab for Media Search at NUSlms.comp.nus.edu.sg/sites/default/files/news-attachments/Industry1... · AliMe Bot Platform - Alibaba’s ... Chit Chat others

Intelligent �  Interaction � Technical � Practice -Task Bot

AliMe.ai

• Features:• Customchat flow• Customentities and

slot values• Support the 3rd party

interfaces to beinvokedwith specificprotocol

Page 23: AliMe Bot Platform - LMS | Lab for Media Search at NUSlms.comp.nus.edu.sg/sites/default/files/news-attachments/Industry1... · AliMe Bot Platform - Alibaba’s ... Chit Chat others

Intelligent �  Interaction � Technical � Practice -Task Bot

RL for task-botØrelated-work from MSR

References � Williams � J � D, � Zweig � G. � End-to-end � LSTM-based � dialog � control � optimized � with � supervised � and � reinforcement � learning[J]. � 2016.

Page 24: AliMe Bot Platform - LMS | Lab for Media Search at NUSlms.comp.nus.edu.sg/sites/default/files/news-attachments/Industry1... · AliMe Bot Platform - Alibaba’s ... Chit Chat others

Intelligent �  Interaction � Technical � Practice -Task Bot

DRL for task-botØrelated-work【From Cambrige】

References Wen T H, Vandyke D, Mrksic N, et al. A Network-based End-to-End Trainable Task-oriented Dialogue System[J]. 2016.

task �  generation

action � generation

dialogue � managerment

belief-tracking intentrepresentation context

slot-extraction pattern-extration

word � seg ner

task  generation

reinforcementlearning

datapreprocess

Page 25: AliMe Bot Platform - LMS | Lab for Media Search at NUSlms.comp.nus.edu.sg/sites/default/files/news-attachments/Industry1... · AliMe Bot Platform - Alibaba’s ... Chit Chat others

Intelligent �  Interaction � Technical � Practice - Chit Chat

Hybrid Approach: Retrieval Model + Generation

• Retrieval Model and Generation Model:

• Retireval Model:More platform, but only � output � answers � in � a � 

pre-established �  knowledge � base

• Generation Model: Generate � answers � out � of � the � box, � but � the � 

generated � answers � sometimes � can � be � inconsistent � or � meanless

• Basic � ideas:

• Hybrid Approach: IR Rerank + Generation

Page 26: AliMe Bot Platform - LMS | Lab for Media Search at NUSlms.comp.nus.edu.sg/sites/default/files/news-attachments/Industry1... · AliMe Bot Platform - Alibaba’s ... Chit Chat others

Intelligent �  Interaction � Technical � Practice - Chit Chat

Seq2Seq � Rerank � Module

Page 27: AliMe Bot Platform - LMS | Lab for Media Search at NUSlms.comp.nus.edu.sg/sites/default/files/news-attachments/Industry1... · AliMe Bot Platform - Alibaba’s ... Chit Chat others

Outline

n AliMe Bot Platform Introduction

n Intelligent �  Interaction � Technical � Practice

n Look � Forward � to � The � Future

Page 28: AliMe Bot Platform - LMS | Lab for Media Search at NUSlms.comp.nus.edu.sg/sites/default/files/news-attachments/Industry1... · AliMe Bot Platform - Alibaba’s ... Chit Chat others

Look � Forward � to � The � Future

p Model � construction � in � different � domains � and � scenes

p The � accumulation � of � domain � data � and � knowledge � is � very � important

p The � direction � of � continuous � exploration � in � the � field � of � Technology: � generative � model, � reinforcement � learning, � transfer � learning, � machine � reading, � emotion � and � so � on

p Construction � and � application � of � small � data � model

Page 29: AliMe Bot Platform - LMS | Lab for Media Search at NUSlms.comp.nus.edu.sg/sites/default/files/news-attachments/Industry1... · AliMe Bot Platform - Alibaba’s ... Chit Chat others

Thank You!

Page 30: AliMe Bot Platform - LMS | Lab for Media Search at NUSlms.comp.nus.edu.sg/sites/default/files/news-attachments/Industry1... · AliMe Bot Platform - Alibaba’s ... Chit Chat others

Intelligent �  Interaction � Technical � Practice - QA Bot

Page 31: AliMe Bot Platform - LMS | Lab for Media Search at NUSlms.comp.nus.edu.sg/sites/default/files/news-attachments/Industry1... · AliMe Bot Platform - Alibaba’s ... Chit Chat others

Intelligent �  Interaction � Technical � Practice - Chit Chat

Experiment

Page 32: AliMe Bot Platform - LMS | Lab for Media Search at NUSlms.comp.nus.edu.sg/sites/default/files/news-attachments/Industry1... · AliMe Bot Platform - Alibaba’s ... Chit Chat others

Intelligent �  Interaction � Technical � Practice - Chit Chat

Hybrid Approach: IR Rerank + Generation