Skip to main content
QUICK REVIEW

[Paper Review] Emotional Chatting Machine: Emotional Conversation Generation with Internal and External Memory

Hao Zhou, Minlie Huang|arXiv (Cornell University)|Apr 4, 2017
Topic ModelingComputer Science45 references116 citations
TL;DR

ECM generates open-domain responses that are not only relevant and grammatical but also emotionally coherent, by integrating emotion category embedding, an internal emotion memory, and an external emotion vocabulary memory into a seq2seq framework.

ABSTRACT

Perception and expression of emotion are key factors to the success of dialogue systems or conversational agents. However, this problem has not been studied in large-scale conversation generation so far. In this paper, we propose Emotional Chatting Machine (ECM) that can generate appropriate responses not only in content (relevant and grammatical) but also in emotion (emotionally consistent). To the best of our knowledge, this is the first work that addresses the emotion factor in large-scale conversation generation. ECM addresses the factor using three new mechanisms that respectively (1) models the high-level abstraction of emotion expressions by embedding emotion categories, (2) captures the change of implicit internal emotion states, and (3) uses explicit emotion expressions with an external emotion vocabulary. Experiments show that the proposed model can generate responses appropriate not only in content but also in emotion.

Motivation & Objective

  • Address the challenge of incorporating emotion into large-scale conversation generation.
  • Develop an end-to-end neural model that produces content-appropriate and emotion-consistent responses.
  • Introduce three mechanisms—emotion category embedding, internal emotion memory, and external emotion memory—to control emotional expression.
  • Train on emotion-labeled data automatically annotated for large-scale training.
  • Evaluate whether emotion-aware generation improves both content quality and emotional accuracy.

Proposed method

  • Extend encoder-decoder seq2seq with GRUs to handle post X and generate response Y conditioned on emotion category e.
  • Embed emotion category vectors v_e and inject them into the decoder alongside context c_t and previous word embedding e(y_{t-1}).
  • Introduce an internal memory M^I_e,t with read/write gates to model dynamic emotion state during decoding and ensure decay to zero by end of generation.
  • Add an external emotion memory with separate emotion word vocabulary and a type selector alpha_t to weight emotion versus generic word generation, enabling explicit emotion expression.
  • Train with a loss that combines cross-entropy on token predictions, supervision for emotion/generic word selection, and a regularization term to ensure internal emotion decay.
  • Prepare data by training an emotion classifier on NLPCC data to label a large STC-based corpus (ESTC) with six emotion categories, then train ECM on (post, response, emotion) triples.

Experimental results

Research questions

  • RQ1Can a neural encoder-decoder framework generate responses that are both content-appropriate and emotionally coherent given a specified emotion category?
  • RQ2Do emotion category embeddings, internal memory, and external memory improve emotion accuracy and naturalness of responses compared to baseline seq2seq models?
  • RQ3How do ablations of the proposed memory modules and emotion vocabularies affect perplexity and emotion accuracy?
  • RQ4Is explicit emotion word generation via an external memory beneficial for producing recognizable emotional expressions?

Key findings

  • ECM achieves higher emotion accuracy (0.773) than baselines and variants, indicating improved emotional expressiveness.
  • ECM achieves perplexity (65.9) better than Seq2Seq but slightly worse than the Emb baseline, reflecting supervision on both content and emotion generation.
  • Ablations show external memory boosts emotion accuracy the most, internal memory helps balance grammar and emotion, and removing external memory reduces emotion expression.
  • Manual evaluation shows ECM attains higher Content and Emotion scores than Seq2Seq and Emb, with substantial preference for ECM in pairwise tests.
  • ECM demonstrates the ability to generate responses conditioned on diverse emotion categories, with explicit emotion words enhancing expressiveness.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.