[Paper Review] EmpTransfo: A Multi-head Transformer Architecture for Creating Empathetic Dialog Systems
EmpTransfo introduces a multi-head Transformer dialog model that incorporates emotion, topic, and action context via multi-task learning to generate empathetic and coherent responses, outperforming baselines on DailyDialog in Hit@1 and perplexity."
Understanding emotions and responding accordingly is one of the biggest challenges of dialog systems. This paper presents EmpTransfo, a multi-head Transformer architecture for creating an empathetic dialog system. EmpTransfo utilizes state-of-the-art pre-trained models (e.g., OpenAI-GPT) for language generation, though models with different sizes can be used. We show that utilizing the history of emotions and other metadata can improve the quality of generated conversations by the dialog system. Our experimental results using a challenging language corpus show that the proposed approach outperforms other models in terms of Hit@1 and PPL (Perplexity).
Motivation & Objective
- Motivate building empathetic conversational agents that respond with appropriate emotions.
- Investigate how explicit contextual signals (emotions, topics, actions) affect response quality.
- Develop a scalable architecture compatible with different pre-trained language models.
- Show multi-task learning improves both empathetic quality and generation performance.
Proposed method
- Propose EmpTransfo, a 12-layer Transformer decoder with three parallel prediction heads for next emotion, next utterance, and next token.
- Use OpenAI GPT pre-trained weights and fine-tune on DailyDialog with emotion, action, and topic embeddings.
- Train with a multi-task objective L_total = c1 L1 + c2 L2 + c3 L3 where each L corresponds to language modeling, next utterance prediction, and next emotion prediction.
- Represent inputs with token, emotion, action embeddings, and topic embeddings concatenated to form the model input.
- Incorporate nucleus (top-p) sampling (p=0.9, T=0.7) for decoding to balance creativity and reliability.
- Evaluate using Hit@1, perplexity (PPL), F1, and BLEU on the DailyDialog evaluation set.
Experimental results
Research questions
- RQ1How does incorporating emotion, topic, and action context affect empathetic response generation?
- RQ2Can a multi-head Transformer with auxiliary tasks improve both response quality and emotion prediction accuracy?
- RQ3Is the EmpTransfo architecture robust to different pre-trained language model sizes?
- RQ4What is the impact of adding contextual features (topic/action) on automatic evaluation metrics?
Key findings
- EmpTransfo and its context-augmented variants outperform baselines on Hit@1 and PPL.
- Adding topic and action context yields higher Hit@1 and lower PPL than the base EmpTransfo.
- EmpTransfo with emotion, action, and topic features achieves the best overall gains in Hit@1 (78.47) and PPL (9.04) among tested configurations.
- OpenAI GPT without emotion already performs strong on Hit@1 (75.01) but leaves room for improvement in other metrics.
- Emotion prediction for next utterance achieves Precision 81.35, Recall 72.37, F1 76.59, outperforming a prior baseline.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.