exemplar encoder decoder for neural conversation
play

Exemplar Encoder Decoder for Neural Conversation Generation By - PowerPoint PPT Presentation

Exemplar Encoder Decoder for Neural Conversation Generation By Gaurav Pandey, Danish Contractor, Vineet Kumar and Sachindra Joshi IBM Research AI Generative Models for Conversations Context Context Context Response Decoder Embedding


  1. Exemplar Encoder Decoder for Neural Conversation Generation By Gaurav Pandey, Danish Contractor, Vineet Kumar and Sachindra Joshi IBM Research AI

  2. Generative Models for Conversations Context Context Context Response Decoder Embedding Encoder • Context encoder: (1) RNN (2) hierarchical RNN • Decoder: RNN • Objective: log probability of GT response given context. • Can generate novel responses for novel contexts!!

  3. Retrieval Models for Conversations • Retrieve a response from a nearest neighbor index constructed from the training data. • Can be used for closed domain problems. • Advantages: • Answers are grounded in the domain. • Easy to prune answers according to requirements. • Disadvantage: • Can not generate novel responses. Can we use generative models to fix this?

  4. Exemplar Encoder Decoder • Build an index from all context-response pairs offline. • For each context c: • Retrieve a set of exemplar contexts and corresponding responses. 𝑑 (1) , 𝑠 (1) 𝑑 (2) , 𝑠 (2) 𝑑 𝑑 ( 𝐿 ) , 𝑠 ( 𝐿 ) Input Context Index Exemplar conversations • Match the exemplar contexts with c and get the similarities. • Use these similarities to weigh the exemplar responses.

  5. Matching Exemplar Contexts Exemplar contexts Customer: hi . today i have received the wst non- 𝑑 (1) compliance. Agent : i see that you have Encoder an issue with wst non complaints. Input Context Customer : its regarding the tem 𝑡 (1) Customer : i am getting Customer : regarding wst wst non-complaint for tem non-compliant report . i am install c 𝑑 (2) unable to install tivoli Encoder Agent : okay . . let me Encoder endpoint manager ( tem 𝑡 (2) create a ticket to l2 Agent : what is error report support team you get ? Customer : ok . Customer : this one. 𝑡 (3) Customer : i received an email action required : it security noncompliance reported by wst. 𝑑 (3) Encoder Agent : is this showing as wst non complaint ? Customer : yes ... seems . Normalized may i show you the mail that i similarities received ? The normalized similarities are used to weigh the exemplar responses.

  6. 𝐿 𝑑 𝑓 𝑠 (1) 𝑠 (1) ∑ 𝑡 ( 𝑙 ) 𝑞 ( 𝑠 | 𝑓 ( 𝑙 ) ) 𝑚𝑚 = log 𝑓 𝒇 ( 𝟐 ) RESPONSE ENCODER DECODER 𝑙 =1 𝑠 (2) 𝑑 𝑓 𝑠 (2) 𝑓 𝒇 ( 𝟑 ) 𝑠 ( 𝐿 ) 𝑑 𝑓 𝑠 ( 𝐿 ) 𝑓 𝒇 ( 𝑳 ) Likelihood r ENCODER CONTEXT Computation c 𝑡 (1) 𝑑 (1) ENCODER CONTEXT 𝑑 (2) 𝑡 ( 𝐿 ) 𝑑 ( 𝐿 ) Exemplar Decoder Exemplar Encoder

  7. Analyzing the Objective c r ( 𝑑 ′ � , 𝑠 ′ � ) Think of exemplar contexts and responses as latent variables log 𝑞 ( 𝑠 𝑑 ) = log ∑ 𝑞 ( 𝑠 𝑑 , 𝑠 ′ � ) 𝑞 ( 𝑑 ′ � | 𝑑 ) ( 𝑑 ′ � , 𝑠 ′ � ) ≤ log ∑ 𝑞 ( 𝑠 𝑑 , 𝑠 𝑙 ) 𝑞 ( 𝑑 𝑙 | 𝑑 ) 1 ≤ 𝑙 ≤ 𝐿 = log ∑ 𝑞 ( 𝑠 𝑓 ( 𝑙 ) ) 𝑡 ( 𝑙 ) 1 ≤ 𝑙 ≤ 𝐿

  8. Evaluation • Exemplar Encoder Decoder • Hierarchical Recurrent Encoder • TF-IDF for retrieving exemplar conversations • Datasets used: • Ubuntu Dialogue Corpus • IBM Tech Support Dataset • Comparison Metrics • Activity and Entity metrics • Embedding metrics

  9. Activity and Entity metrics These metrics compare the precision, recall and F1 score of specific nouns and verb present in the generated response as compared to the groundtruth response. Ubuntu Dialogue Corpus For comparison, the retrieval only model has an activity F1 score of 4.23 and entity F1 score of 2.72 respectively.

  10. Embedding metrics • These metrics compare the word embeddings of the generated response with the words of the groundtruth response. • These metrics do not correlate with human judgements for Ubuntu Corpus 1 . 1 How NOT To Evaluate Your Dialogue System: An Empirical Study of Unsupervised Evaluation Metrics for Dialogue Response Generation

  11. Generated and retrieved responses

  12. Discussion • A generative model that utilizes similar conversations for response generation. • Can generate novel responses while ensuring that the responses are grounded in the domain. • Incorporating retrieved conversations during generation improves performance as evident from several metrics. • The proposed idea is general and can be used for image captioning and neural machine translation.

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend