Affective Neural Response Generation

Nabiha Asghar, Pascal Poupart, Jesse Hoey, Xin Jiang, Lili Mou

TL;DR

This paper introduces "affective intelligence" to neural conversational models by explicitly incorporating emotional dimensions into the response generation process. By leveraging a 3D affective space (Valence, Arousal, and Dominance), the authors propose novel word embeddings, loss functions, and decoding strategies that transform chatbots from generic, dull responders into more natural and emotionally resonant conversation partners.

What Problem Does This Paper Address?

Standard neural dialogue systems (like Seq2Seq models) are remarkably good at learning grammar and syntax, but they are notoriously "emotionally stunted." Because they are trained primarily on lexico-syntactic patterns, they often default to safe, generic, and "dull" responses like "I don't know" or "That's nice."

The core issue is that traditional word embeddings (like Word2Vec) capture semantic context but fail to distinguish between words with similar contexts but opposite emotional polarities (e.g., "good" vs. "bad"). This paper seeks to bridge the gap between purely linguistic processing and the affective content that defines human-to-human interaction.

Methods

The authors propose a three-pronged approach to inject affect into Long Short-Term Memory (LSTM) encoder-decoder models:

  1. Affective Word Embeddings: They use a cognitively engineered dictionary (Warriner et al., 2013) to map words into a 3D VAD space:
  2. Valence (V): The pleasantness of a stimulus (e.g., happiness vs. pedophile).
  3. Arousal (A): The intensity of emotion (e.g., insanity vs. dull).
  4. Dominance (D): The degree of power/control (e.g., paradise vs. dementia). These 3D vectors are concatenated with traditional 1024-D Word2Vec embeddings.

  5. Affective Loss Functions: They move beyond standard cross-entropy loss by adding affective heuristics:

  6. Minimizing/Maximizing Affective Dissonance: Encouraging the response to either match or contrast with the emotional tone of the prompt.
  7. Maximizing Affective Content ($L_{AC}$): Explicitly penalizing emotionally neutral responses to force the model to choose "richer" words.
  8. Affectively Diverse Beam Search (ADBS): During the inference (decoding) phase, they modify the Beam Search algorithm. Instead of just looking for the most likely sequence, ADBS penalizes candidate responses that are emotionally similar to one another, forcing the model to explore a diverse range of affective "moods" before picking the best one.

Datasets

The models were trained and evaluated on the Cornell Movie Dialogs Corpus, which contains approximately 300,000 utterance-response pairs. This dataset is a standard benchmark for open-domain dialogue but is particularly suited for this task due to the high emotional variance found in movie scripts.

Key Insights and Ideas

  • Context isn't enough for emotion: The authors highlight that co-occurrence statistics (the basis of Word2Vec) are insufficient for affect. Words like "happy" and "sad" often appear in identical syntactic frames, making them look similar to a standard model. Explicitly adding VAD scores breaks this symmetry.
  • The "I don't know" problem is a neutrality problem: By using the $L_{AC}$ loss function to penalize the "neutral vector" [5, 1, 5] in VAD space, the model is pro-actively discouraged from giving vague, non-committal answers.
  • Sentence-level vs. Word-level diversity: The authors found that Sentence-Level Affectively Diverse Beam Search (SL-ADBS) outperforms word-level diversity. This is because it considers the cumulative emotional impact of the entire sentence rather than just diversifying individual word choices.

Key Results

The authors used human judges to score responses on a scale of 0 to 2 across three metrics: Syntactic Coherence, Naturalness, and Emotional Appropriateness.

  • Affective Embeddings are a "Quick Win": Simply adding VAD embeddings to the input improved the Emotional Appropriateness score from 0.41 to 1.01.
  • The Power of Combination: The best-performing model combined all three strategies (Embeddings + $L_{AC}$ Loss + SL-ADBS). This model achieved a Naturalness score of 1.09 and an Emotional Appropriateness score of 1.10, compared to the baseline Seq2Seq's 0.69 and 0.41, respectively.
  • Qualitative Shift: In case studies, while the baseline gave generic replies like "Um, you know...", the affective models produced contextually relevant, emotionally charged responses like "It's suicide!" or "I still love you!" when prompted with high-emotion messages.

Limitations and Future Work

  • Simplistic Interaction Models: The authors note that the relationship between a prompt and a response is often more complex than simple "matching" or "contrasting." They suggest that future work should incorporate more sophisticated sociological theories, such as Affect Control Theory.
  • Attention Mechanisms: The current work focuses on embeddings and decoding; the authors identify affect-based attention mechanisms as a promising next step to help the model focus on the most emotionally relevant parts of a prompt.
  • Personalization: The paper suggests using reinforcement learning to personalize affective responses based on individual user preferences.

Summary updated

BibTeX
@inproceedings{asghar2018affective,
  author = {Nabiha Asghar and Pascal Poupart and Jesse Hoey and Xin Jiang and Lili Mou},
  title = {{Affective Neural Response Generation}},
  booktitle = {ECIR},
  year = {2018},
  doi = {10.1007/978-3-319-76941-7\_12},
}
Figure