learning matching models with weak
play

Learning Matching Models with Weak Supervision for Response - PowerPoint PPT Presentation

Learning Matching Models with Weak Supervision for Response Selection in Retrieval-based Chatbots Wei Wu Yu Wu Microsoft Corporation SKLSDE, Beihang University wuwei@microsoft.com wuyu@buaa.edu.cn Zhoujun Li Ming Zhou SKLSDE, Beihang


  1. Learning Matching Models with Weak Supervision for Response Selection in Retrieval-based Chatbots Wei Wu Yu Wu Microsoft Corporation SKLSDE, Beihang University wuwei@microsoft.com wuyu@buaa.edu.cn Zhoujun Li Ming Zhou SKLSDE, Beihang University Microsoft Research lizj@buaa.edu.cn mingzhou@microsoft.com

  2. Outline • Task, challenges, and ideas • Our approach • A new learning method for matching models. • Experiment • Datasets • Evaluation and analysis

  3. Task: retrieval-based chatbots • Given a message, find most suitable responses • Large repository of message-response pairs • Take it as a search problem Context Responses Feature Retrieval Ranking generation Learning to Context-response Index matching rank

  4. Related Work • Previous works focus on network architectures. • Single Turn • CNN, RNN, syntactic based neural networks …. • Multiple Turn • CNN, RNN, attention mechanism… • These models are data hungry, so they are trained on large scale State-of-the-art multi-turn architecture (Wu et al. ACL 2017) negative sampled dataset.

  5. Background-----Loss Function Cross Entropy Loss (Pointwise loss) Hinge Loss (Pairwise loss) • 𝑀 = − 𝑗 p 𝑗 log( • 𝑇 + − 𝑇 − > 𝜁 𝑞 𝑗 ) • 𝑀 = max(0, 𝑇 − − 𝑇 + + 𝜁)

  6. Background: traditional training method Given a (Q,R) pair, Update the designed Test model on we first randomly model with the use human annotation sampled N instances of point-wise cross data. − 𝑅, 𝑆 𝑗 𝑂 . entropy loss. Two problem: 1. Most of the randomly sampled responses are far from the semantics of the messages or the contexts. 2. Some of randomly sampled responses are false negatives which pollute the training data as noise.

  7. Challenges of Response Selection in Chatbots • Negative sampling oversimplifies response selection task in the training phrase. • Train: Given a utterance, positive responses are collected from human conversations, but negative ones are negative sampled. • Test: Given a utterance, a bunch of responses are returned by a search engine. Human annotators are asked to label these responses. • Human labeling is expensive and exhausting, one cannot have large scale labeled data for model training.

  8. Outline • Task, challenges, and ideas • Our approach • A new learning method for matching models. • Experiment • Datasets • Evaluation and analysis

  9. Our Idea Out training process The margin in our loss is dynamic. R Hinge loss R’_1 𝑇(𝑅, 𝑆) − 𝑇(𝑅, 𝑆’ 1 ) + 𝑑 1 R’_2 𝑇(𝑅, 𝑆) − 𝑇(𝑅, 𝑆’ 2 ) + 𝑑 2 Query Optimization Index 𝑇(𝑅, 𝑆) − 𝑇(𝑅, 𝑆’ 3 ) + 𝑑 3 R’_3 … … 𝑇(𝑅, 𝑆) − 𝑇(𝑅, 𝑆’_𝑂 ) + 𝑑_𝑂 R’_N R is the ground-truth response, 𝐷_𝑗 is a confidence score for each and R’_ i is a retrieved instance. instance. Our method encourages the model to be more confident to classify a response with a high 𝑑 𝑗 as a negative one.

  10. How to calculate the dynamic margin? • We employ a Seq2Seq model to compute 𝑑 𝑗 . • Seq2Seq model is a unsupervised model. • It is able to compute a conditional probability likelihood 𝑄 𝑆 𝑅 without human annotation. 𝑡2𝑡 𝑅,𝑆 𝑗 • 𝑑 𝑗 = max(0, 𝑡2𝑡 𝑅,𝑆 − 1)

  11. A new training method Pre-train the Given a (Q,R) pair, Update the matching model retrieve N Test model on designed model with negative instances human annotation with the dynamic − 𝑅, 𝑆 𝑗 𝑂 from a da sampling and cross hinge loss. entropy loss. pre-defined index. 1. Oversimplification problem of the negative sampling The pre-training process approach can be partially mitigated. enables the matching model 2. We can avoid false negative to distinguish semantically far examples and true negative examples are treated away responses. equally during training

  12. Outline • Task, challenges, and ideas • Our approach • A new learning method for matching models. • Experiment • Datasets • Evaluation and analysis

  13. Dataset • STC data set (Wang et al., 2013) • Single-turn response selection • Over 4 million post-response pairs (true response) in Weibo for training. • The test set consists of 422 posts with each one associated with around 30 responses labeled by human annotators in “good” and “bad”. • Douban Conversation Corpus (Wu et al., 2017) • Multi-turn response selection • 0.5 million context-response (true response) pairs for training • In the test set, every context has 10 response candidates, and each of the response has a label “good” or “bad” judged by human annotators.

  14. Evaluation Results

  15. Ablation Test • +WSrand: negative samples are randomly generated. • +const: the marginal in the loss function is a static number. • +WS: Our full model

  16. More Findings • Updating the Seq2Seq model is not beneficial to the discriminator. • The number of negative instances is an important hyper- parameter for our model.

  17. Conclusion • We study a less explored problem in retrieval-based chatbots. • We propose of a new method that can leverage unlabeled data to learn matching models for retrieval-based chatbots. • We empirically verify the effectiveness of the method on public data sets.

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