RUCIR at NTCIR-14 STC-3 CECG Subtask
Speaker: Jiaqing Liu
School of Information Renmin University of China
Author: Xiaohe Li and Zhicheng Dou
1 2019/6/12
CECG Subtask Speaker: Jiaqing Liu School of Information Renmin - - PowerPoint PPT Presentation
RUCIR at NTCIR-14 STC-3 CECG Subtask Speaker: Jiaqing Liu School of Information Renmin University of China Author: Xiaohe Li and Zhicheng Dou 2019/6/12 1 STC-3 CECG @ NTCIR-14 Conversation Generation Task Input: post ( = 1
Speaker: Jiaqing Liu
School of Information Renmin University of China
Author: Xiaohe Li and Zhicheng Dou
1 2019/6/12
2019/6/12 2
Post (Given) Response (to be Generated)
็ฑ็่ฟไผๅ้ฅญ็็ทไบบ๏ผๆๅธ ไบ๏ผ The man who cooks and loves dogs is very handsome! ไผๅ้ฅญ็็ทไบบๆฏๅพๅธ ็ๅใ The man who cooks is handsome.
2019/6/12 3
No Not Co Conside ider Em Emotion
ant in Co Convers ersati ation)
Post (Given) Response (to be Generated)
็ฑ็่ฟไผๅ้ฅญ็็ทไบบ๏ผๆๅธ ไบ๏ผ The man who cooks and loves dogs is very handsome! ไผๅ้ฅญ็็ทไบบๆฏๅพๅธ ็ๅใ The man who cooks is handsome.
2019/6/12 4
{Like, Happiness, Anger, Disgust, Sadness, Other}
& emotional consistency)
Post (Given) Emotion (Given) Response (to be Generated)
็ฑ็่ฟไผๅ้ฅญ็็ทไบบ๏ผๆๅธ ไบ๏ผ The man who cooks and loves dogs is very handsome! ๅๆฌข Like ไผๅ้ฅญ็็ทไบบๆฏๅพๅธ ็ๅใ The man who cooks is handsome.
2019/6/12 5
{Like, Happiness, Anger, Disgust, Sadness, Other}
& emotional consistency)
Post (Given) Emotion (Given) Response (to be Generated)
็ฑ็่ฟไผๅ้ฅญ็็ทไบบ๏ผๆๅธ ไบ๏ผ The man who cooks and loves dogs is very handsome! ๅๆฌข Like ไผๅ้ฅญ็็ทไบบๆฏๅพๅธ ็ๅใ The man who cooks is handsome.
Goal: l: Genera rate te the Respon
se with h Sp Specia ial l Em Emotion
2019/6/12 6
Post (Given) Emotion (Given) Response (to be Generated)
็ฑ็่ฟไผๅ้ฅญ็็ทไบบ๏ผๆๅธ ไบ๏ผ The man who cooks and loves dogs is very handsome! ๅๆฌข Like ไผๅ้ฅญ็็ทไบบๆฏๅพๅธ ็ๅใ The man who cooks is handsome. ็ฑ็่ฟไผๅ้ฅญ็็ทไบบ๏ผๆๅธ ไบ๏ผ The man who cooks and loves dogs is very handsome! ๅๆถ Disgust ไฝๆฏๆ็็่ฎจๅ่ฟๆ ท็็ทไบบ๏ผ But I really hate such a man! ็ฑ็่ฟไผๅ้ฅญ็็ทไบบ๏ผๆๅธ ไบ๏ผ The man who cooks and loves dogs is very handsome! ๆฒไผค Sadness ๅฅฝไผคๅฟ๏ผๆๆฒก้ๅฐ่ฟ่ฟๆ ท็็ทไบบใ So sad, I have never met such a man.
Same me Post: st: Different ferent Res espo ponse se with th Diffe ffere rent nt Emotion
2019/6/12 7
Post & Emotion Keywords Extraction Rule-Based Attention Mechanism Copy Mechanism Emotion Factor Encoder Decoder Attention Mechanism Attention Mechanism Encoder Encoder Decoder Decoder ร๐ Reranker
Emotional Response
2019/6/12 8
Post & Emotion Keywords Extraction Rule-Based Attention Mechanism Copy Mechanism Emotion Factor Encoder Decoder Attention Mechanism Attention Mechanism Encoder Encoder Decoder Decoder ร๐ Reranker
Emotional Response
2019/6/12 9
Post ๆตทๅๆธธๆฏ็ ด็ญไบ[ๆ][ๆ][ๆ] Hainan tour is ruined [angry] [angry] [angry] ๅๆฌข Like ๆๅๆฌข ๆตทๅ ไบ I like Hainan most. ้ซๅ ด Happiness ๆณๅฐ ๆตทๅ ๅฐฑๅพๅผๅฟ I am very happy when I think of Hainan . ็ๆฐ Anger ไธๆณๅฌๅฐ ๆตทๅ ๏ผๅซ่ทๆๆ๏ผ I donโt want to hear about Hainan , don't mention it to me! ๅๆถ Disgust ่ถ ็บงไธๅๆฌข ๆตทๅ ๏ผ Super dislike Hainan ! ๆฒไผค Sadness ๆตทๅ ไผค้ไบๆ็ๅฟ Hainan broke my heart
2019/6/12 10
Post & Emotion Keywords Extraction Rule-Based Attention Mechanism Copy Mechanism Emotion Factor Encoder Decoder
Attention Mechanism Attention Mechanism
Encoder Encoder Decoder Decoder ร๐ Reranker
Emotional Response
2019/6/12 11
โ1 โ2 โ3 โ4
้ฃ That ๅฐๅญ guy ็ is really ้ ท cool
๐ก1 ๐ก2 ๐ก3 ๐ก4
<SOS> <EOS>
ๆฏ็ Yeah ็็กฎ totally ๅฆๆญค true ๅฆๆญค true ็็กฎ totally ๆฏ็ Yeah
๐3,1 ๐3,2 ๐3,3 ๐3,4 Alignment Model + ๐3
Image Reference: Qiu et al., 2017. Alime chat: A sequence to sequence and rerank based chatbot engine. ACL 2017.
Encoder Decoder Attention
2019/6/12 12
Attention Encoder Decoder Post Response All Data:
2019/6/12 13
Attention Encoder Decoder Post Response All Data: Attention Encoder Decoder Post Response (Like) Like Data: Attention Encoder Decoder Post Response (Happy) Happy Data: Attention Encoder Decoder Post Response (Anger) Anger Data: Attention Encoder Decoder Post Response (Disgust) Disgust Data: Attention Encoder Decoder Post Response (Sad) Sad Data:
2019/6/12 14
Post & Emotion Keywords Extraction Rule-Based
Attention Mechanism Copy Mechanism Emotion Factor
Encoder Decoder Attention Mechanism Attention Mechanism Encoder Encoder Decoder Decoder ร๐ Reranker
Emotional Response
2019/6/12 15 Reference: Zhou et al., 2018. Emotional chatting machine: Emotional conversation generation with internal and external memory. AAAI 2018.
Attention Mechanism Encoder Post Decoder Response Copy-Net Mechanism Emotion Factor Emotion Category ๐
2019/6/12 16 Reference: Zhou et al., 2018. Emotional chatting machine: Emotional conversation generation with internal and external memory. AAAI 2018.
Attention Mechanism Encoder Post Decoder Response Copy-Net Mechanism Emotion Factor Emotion Category ๐
๐๐
๐ก๐ข = GRUdecoder ๐ก๐ขโ1; [๐ง๐ขโ1, ๐๐ข, ๐๐]
2019/6/12 17 Reference: Zhou et al., 2018. Emotional chatting machine: Emotional conversation generation with internal and external memory. AAAI 2018.
Attention Mechanism Encoder Post Decoder Response Copy-Net Mechanism
in Emotional Dictionary (E) Built by Clustering ๐ ๐ง๐ข|๐ก๐ข = ๐๐๐ ๐ ๐ง๐ข|๐ก๐ข + ๐
๐๐๐ ๐ง๐ข|๐ก๐ข, ๐น
๐
๐๐๐ ๐ง๐ข|๐ก๐ข, ๐น = แ0,
๐๐๐โ๐๐๐๐ข๐๐๐๐๐ ๐ฅ๐๐ ๐ softmax ๐น๐
๐๐ก๐ข , ๐๐๐๐ข๐๐๐๐๐ ๐ฅ๐๐ ๐
2019/6/12 18
Post & Emotion Keywords Extraction Rule-Based Attention Mechanism Copy Mechanism Emotion Factor Encoder Decoder Attention Mechanism Attention Mechanism Encoder Encoder Decoder Decoder ร๐ Reranker
Emotional Response
2019/6/12 19
Rule-Base Method Generated Response Multi-Seq2Seq Generated Responses Emotional Seq2Seq Generated Responses 1 Beam Width Beam Width
2019/6/12 20
Rule-Base Method Generated Response Multi-Seq2Seq Generated Responses Emotional Seq2Seq Generated Responses 1 Beam Width Beam Width
Ranked by Generated Probability
2019/6/12 21 Dictionary Reference: ๅพ็ณๅฎ, ๆ้ธฟ้ฃ, ๆฝๅฎ, ไปปๆ , ้ๅปบ็พ: ๆ ๆ่ฏๆฑๆฌไฝ็ๆ้ . ๆ ๆฅๅญฆๆฅ 27(2), 180โ185 (2008).
Post ไฝ ็ไธๅปไธๅคชๅฅฝใ You don't look very good. ๆฒไผค Sadness ๆๆจๆๅคฑ็ ไบใ I lost sleep last night. ๆฒไผค Sadness ๆจๆๅคฑ็ ไบ๏ผๆๅฅฝ้พ่ฟใ I was so sad about insomnia last night.
2019/6/12 22
Post ๆ่ทๅฅไบใ I won the prize. ้ซๅ ด Happiness ๆไธบไฝ ๆๅฐๅพๅผๅฟใ I am so happy for you. ้ซๅ ด Happiness ๆไธบไฝ ่ทๅฅ่ๆๅฐๅผๅฟใ I am very happy that you won the prize.
2019/6/12 23
The dataset (from weibo) looks like: [[[post,post_label],[response,response_label]], [[[post,post_label],[response,response_label]], ...]. Emotion Label 0: Other; 1: Like; 2: Sadness; 3: Disgust; 4: Anger; 5: Happiness Training Set: 1.5M+ Dev Set & Test Set: 5000 Final Submit Set: 200
Data Source: Hosted by Prof. Minlie Huang, AI lab. of Computer Science, Tsinghua University, Beijing 100084, China.
2019/6/12 24
๏ฌ Token-level Data Pre-processing
๏ฌ Sentence-level Data Pre-processing
2019/6/12 25
Emotion Response Coherence and Fluency Emotion Consistency Label ๅๆฌข Like ไผๅ้ฅญ็็ทไบบๆฏๅพๅธ ็ๅใ The man who cooks is handsome. Yes Yes 2 ๅๆฌข Like ๆฏ็๏ผๆไน่งๅพใ Yes, I feel the same way. Yes No 1 ๅๆฌข Like ่ฟๆฏๅไธปไนๅ็้๏ผ This is the same way of the same doctrine! No No
Post: ็ฑ็่ฟไผๅ้ฅญ็็ทไบบ๏ผๆๅธ ไบ๏ผ The man who cooks and loves dogs is very handsome!
2019/6/12 26
Team Name Label 0 Label 1 Label 2 Total Overall Score Average Score 1191_1 581 320 99 1,000 518 0.518 1191_2 831 109 60 1,000 229 0.229 AINTPU_1 716 200 84 1,000 367 0.336 CKIP_1 845 29 126 1,000 281 0.281 CKIP_2 840 28 132 1,000 292 0.292 IMTKU_1 580 248 172 1,000 592 0.592 IMTKU_2 954 32 14 1,000 60 0.060 TMUNLP_1 777 126 97 1,000 320 0.320 TUA1_1 443 293 264 1,000 821 0.821 TUA1_2 454 278 268 1,000 814 0.814 WUST_1 601 211 188 1,000 587 0.587 WUST_2 999 1 1,000 2 0.002 TKUIM_2 507 260 233 1,000 726 0.726 RUCIR_1 392 263 345 1,000 953 0.953 RUCIR_2 460 342 198 1,000 738 0.738
2019/6/12 27
Emotion Category Team Name Label 0 Label 1 Label 2 Overall Score Average Score Like RUCIR_1 88 36 76 188 0.940 RUCIR_2 96 44 60 164 0.820 TKUIM_2 90 56 54 164 0.820 Sad RUCIR_1 72 48 80 208 1.040 TUA1_1 84 31 85 201 1.005 RUCIR_2 83 57 60 177 0.885 Disgust RUCIR_1 71 76 53 182 0.910 TUA1_2 92 82 26 134 0.670 TUA1_1 82 105 13 131 0.655 Anger RUCIR_1 88 63 49 161 0.805 TKUIM_2 112 45 43 131 0.655 TUA1_2 85 107 8 123 0.615 Happy TUA1_2 76 25 99 223 1.115 TUA1_1 71 36 93 222 1.110 RUCIR_1 73 40 87 214 1.070
Speaker: Jiaqing Liu Author: Xiaohe Li and Zhicheng Dou Email: {lixiaohe, dou}@ruc.edu.cn
2019/6/12 28