Current approaches to empathetic response generation typically encode the entire dialogue history directly and put the output into a decoder to generate friendly feedback. These methods focus on modelling contextual information but neglect capturing the direct intention of the speaker. We argue that the last utterance in the dialogue empirically conveys the intention of the speaker. Consequently, we propose a novel model named InferEM for empathetic response generation. We separately encode the last utterance and fuse it with the entire dialogue through the multi-head attention based intention fusion module to capture the speaker's intention. Besides, we utilize previous utterances to predict the last utterance, which simulates human's psychology to guess what the interlocutor may speak in advance. To balance the optimizing rates of the utterance prediction and response generation, a multi-task learning strategy is designed for InferEM. Experimental results demonstrate the plausibility and validity of InferEM in improving empathetic expression.
翻译:目前,推理情感响应生成的方法通常直接对整个对话历史进行编码,然后将输出放入解码器生成友好反馈。这些方法着重于建模上下文信息,但忽略了捕捉说话者的直接意图。我们认为对话中的最后一句话可以经验性地表达说话者的意图。因此,我们提出了一种名为InferEM的新模型,用于情感响应生成。我们单独对最后一句话进行编码,并通过基于多头注意力的意图融合模块将其与整个对话融合,以捕捉说话者的意图。此外,我们利用先前的话语来预测最后一句话,这模拟了人类的心理,预测对话者可能提前说什么。为了平衡话语预测和响应生成的优化速率,为InferEM设计了一种多任务学习策略。实验结果表明,InferEM在提高情感表达方面是可行和有效的。