Lack of external knowledge makes empathetic dialogue systems difficult to perceive implicit emotions and learn emotional interactions from limited dialogue history. To address the above problems, we propose to leverage external knowledge, including commonsense knowledge and emotional lexical knowledge, to explicitly understand and express emotions in empathetic dialogue generation. We first enrich the dialogue history by jointly interacting with external knowledge and construct an emotional context graph. Then we learn emotional context representations from the knowledge-enriched emotional context graph and distill emotional signals, which are the prerequisites to predicate emotions expressed in responses. Finally, to generate the empathetic response, we propose an emotional cross-attention mechanism to learn the emotional dependencies from the emotional context graph. Extensive experiments conducted on a benchmark dataset verify the effectiveness of the proposed method. In addition, we find the performance of our method can be further improved by integrating with a pre-trained model that works orthogonally.
翻译:缺乏外部知识使同情对话系统难以感知隐含情感,难以从有限的对话历史中学习情感互动。为了解决上述问题,我们提议利用外部知识,包括常识知识和情感词汇知识,在同情对话的生成过程中明确理解和表达情感。我们首先通过与外部知识互动来丰富对话历史,并绘制情感背景图。然后我们从知识丰富情感背景图中学习情感背景表现,并提取情感信号,这是在回应中表达的上游情感的先决条件。最后,为了产生同情反应,我们提议了一种情感交叉关注机制,从情感背景图中学习情感依赖性。对基准数据集进行的广泛实验,验证了拟议方法的有效性。此外,我们发现我们方法的性能可以通过与预先训练的、能起作用的模式相结合来进一步改进。